/* 企服通 PWA · 移动优先设计系统 */
:root {
  --blue-950: #071a48;
  --blue-900: #0a2260;
  --blue-800: #0e2f8c;
  --blue-700: #123cbf;
  --blue-600: #1e4dd8;
  --blue-500: #3366ee;
  --blue-200: #c9d6ff;
  --blue-100: #e8eeff;
  --blue-50: #f2f5ff;
  --ink: #0f1a33;
  --ink-2: #2d3a55;
  --muted: #6b7890;
  --muted-2: #8c97ab;
  --line: #e6eaf3;
  --surface: #ffffff;
  --bg: #f4f6fb;
  --gold: #e8b653;
  --gold-2: #f7d992;
  --gold-ink: #4a330d;
  --green: #0f9d6e;
  --green-soft: #e5f7f0;
  --orange: #e8851c;
  --orange-soft: #fff2e2;
  --red: #d84f4f;
  --red-soft: #fdecec;
  --purple: #6c55dd;
  --purple-soft: #efecff;
  --cyan: #148ba6;
  --cyan-soft: #e4f7fb;
  --pink: #c34f8e;
  --pink-soft: #fcecf5;
  --indigo: #3d5bd9;
  --indigo-soft: #eaeefe;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 8px 24px rgba(16, 35, 90, 0.06);
  --shadow-card: 0 14px 40px rgba(16, 35, 90, 0.09);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --app-width: 460px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(30, 77, 216, 0.16), transparent 60%),
    radial-gradient(700px 520px at 100% 15%, rgba(232, 182, 83, 0.12), transparent 55%),
    #e9edf6;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 360px at 80% 108%, rgba(30, 77, 216, 0.1), transparent 60%);
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--app-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}

.view {
  min-height: 100vh;
  min-height: 100dvh;
  animation: view-in 0.24s ease;
}

/* 只做透明度过渡：不要给 .view 留 transform，否则会改变 fixed 导航/操作栏的包含块。 */
@keyframes view-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 基础组件 ---------- */
.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  border: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 10px 22px rgba(23, 63, 190, 0.28);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-ghost {
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
}

.btn-soft {
  color: var(--blue-700);
  background: var(--blue-100);
}

.btn-primary[disabled],
.btn-ghost[disabled],
.btn-soft[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-primary.is-busy::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-ghost.is-busy::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(18, 60, 191, 0.2);
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  transition: background 0.16s ease, transform 0.16s ease;
}

.icon-btn:active {
  transform: scale(0.94);
  background: var(--blue-50);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--tag-fg, var(--ink-2));
  background: var(--tag-bg, #eff2f7);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tag-blue { --tag-fg: #1d4ed8; --tag-bg: #eaf0ff; }
.tag-green { --tag-fg: #087a55; --tag-bg: var(--green-soft); }
.tag-orange { --tag-fg: #a85a08; --tag-bg: var(--orange-soft); }
.tag-purple { --tag-fg: #5438c9; --tag-bg: var(--purple-soft); }
.tag-cyan { --tag-fg: #0a7188; --tag-bg: var(--cyan-soft); }
.tag-pink { --tag-fg: #a33470; --tag-bg: var(--pink-soft); }
.tag-indigo { --tag-fg: #2d48c2; --tag-bg: var(--indigo-soft); }
.tag-gold { --tag-fg: #8c6211; --tag-bg: #fdf3db; }
.tag-teal { --tag-fg: #0f766e; --tag-bg: #e6fffb; }
.tag-rose { --tag-fg: #b13753; --tag-bg: #fdecef; }
.tag-lime { --tag-fg: #4d6b12; --tag-bg: #f1f7dc; }
.tag-violet { --tag-fg: #6d34c8; --tag-bg: #f3ecff; }
.tag-brown { --tag-fg: #7c4a1e; --tag-bg: #f8eee3; }
.tag-sky { --tag-fg: #0b6d9a; --tag-bg: #e8f6fd; }
.tag-gray { --tag-fg: var(--muted); --tag-bg: #eff2f7; }
.tag-red { --tag-fg: #b13737; --tag-bg: var(--red-soft); }

.tone-blue { --tone: #2a5fe8; --tone-soft: #eaf0ff; }
.tone-green { --tone: #0f9d6e; --tone-soft: #e5f7f0; }
.tone-orange { --tone: #e8851c; --tone-soft: #fff2e2; }
.tone-purple { --tone: #6c55dd; --tone-soft: #efecff; }
.tone-cyan { --tone: #148ba6; --tone-soft: #e4f7fb; }
.tone-pink { --tone: #c34f8e; --tone-soft: #fcecf5; }
.tone-indigo { --tone: #3d5bd9; --tone-soft: #eaeefe; }
.tone-gold { --tone: #b8842a; --tone-soft: #fdf3db; }
.tone-teal { --tone: #0f766e; --tone-soft: #e6fffb; }
.tone-rose { --tone: #b13753; --tone-soft: #fdecef; }
.tone-lime { --tone: #5b7a16; --tone-soft: #f1f7dc; }
.tone-violet { --tone: #6d34c8; --tone-soft: #f3ecff; }
.tone-brown { --tone: #7c4a1e; --tone-soft: #f8eee3; }
.tone-sky { --tone: #0b6d9a; --tone-soft: #e8f6fd; }
.tone-gray { --tone: #6b7890; --tone-soft: #eff2f7; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-closed {
  color: var(--muted);
  background: #eef1f6;
}

.status-pill.is-warn {
  color: #a85a08;
  background: var(--orange-soft);
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--blue-600);
  font-size: 10.5px;
  font-weight: 700;
}

.verified .icon {
  width: 13px;
  height: 13px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-600);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- 启动与状态 ---------- */
.boot-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.boot-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(18, 60, 191, 0.24);
  animation: breathe 1.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); box-shadow: 0 16px 32px rgba(18, 60, 191, 0.24); }
  50% { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(18, 60, 191, 0.32); }
}

.state-view {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px 120px;
  text-align: center;
}

.state-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--blue-600);
  background: var(--blue-100);
  margin-bottom: 18px;
}

.state-icon .icon {
  width: 30px;
  height: 30px;
}

.state-view h2 {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.state-view p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.state-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.empty {
  padding: 38px 20px;
  text-align: center;
  color: var(--muted);
}

.empty .state-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  margin: 0 auto 13px;
}

.empty h3 {
  color: var(--ink);
  font-size: 15px;
}

.empty p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.65;
}

.empty .btn-soft {
  margin-top: 16px;
  min-height: 40px;
  font-size: 13px;
}

/* ---------- 首页 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(18px + env(safe-area-inset-top)) 22px 82px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 2%, rgba(255, 255, 255, 0.24), transparent 36%),
    radial-gradient(circle at 3% 100%, rgba(93, 150, 255, 0.55), transparent 48%),
    linear-gradient(152deg, #081d56 0%, #1237a4 45%, #2c5fe4 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 230px;
  height: 230px;
  right: -92px;
  top: 28px;
}

.hero::after {
  width: 130px;
  height: 130px;
  right: -42px;
  top: 80px;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--blue-800);
  background: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-sub {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.hero-icon-btn .icon {
  width: 19px;
  height: 19px;
}

.hero-icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border: 1px solid #14328c;
  border-radius: 50%;
  background: #ffd36e;
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.hero-badge .icon {
  width: 12px;
  height: 12px;
  color: #ffd98b;
}

.hero h1 {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.035em;
}

.hero h1 em {
  font-style: normal;
  color: #ffdd96;
}

.hero-desc {
  margin-top: 9px;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  line-height: 1.7;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-trust .icon {
  width: 13px;
  height: 13px;
  color: #a9c4ff;
}

.stats-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -52px 16px 0;
  padding: 16px 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 38px rgba(9, 30, 90, 0.16);
  backdrop-filter: blur(10px);
}

.stat {
  position: relative;
  text-align: center;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.stat strong {
  display: block;
  color: var(--blue-800);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.page {
  padding: 18px 16px calc(96px + env(safe-area-inset-bottom));
}

.section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.section-title .mini-dot {
  width: 5px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-800));
}

.section-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.more .icon {
  width: 14px;
  height: 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 10px 11px;
  border: 1px solid rgba(230, 234, 243, 0.9);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(16, 35, 90, 0.035);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.quick-card:active {
  transform: translateY(1px) scale(0.98);
}

.quick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--tone);
  background: var(--tone-soft);
}

.quick-icon .icon {
  width: 18px;
  height: 18px;
}

.quick-card strong {
  font-size: 12px;
  font-weight: 700;
}

.quick-card small {
  margin-top: -5px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.ai-cta {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(132, 167, 255, 0.22);
  border-radius: 18px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(circle at 94% 0%, rgba(115, 158, 255, 0.45), transparent 40%),
    linear-gradient(135deg, #0a1d4f, #1b3c99 58%, #2c58c9);
  box-shadow: 0 12px 28px rgba(10, 29, 79, 0.22);
}

.ai-cta::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.ai-cta-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #ffe0a0;
  background: rgba(255, 255, 255, 0.1);
}

.ai-cta-icon .icon {
  width: 23px;
  height: 23px;
}

.ai-cta-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.ai-cta-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ai-cta-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.ai-cta-copy span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
}

.ai-cta .soon-pill {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 3px 7px;
  border: 1px solid rgba(255, 218, 143, 0.35);
  border-radius: 6px;
  color: #ffe1a3;
  background: rgba(255, 211, 110, 0.1);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 13px 12px;
  border: 1px dashed #d9e0ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  text-align: left;
}

.tool-card .icon {
  width: 20px;
  height: 20px;
  color: var(--blue-600);
}

.tool-card strong {
  font-size: 11.5px;
}

.tool-card span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.compact-card {
  position: relative;
  display: block;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.compact-card:active {
  transform: scale(0.99);
}

.compact-card .card-top {
  margin-bottom: 8px;
}

.compact-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.compact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.compact-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10.5px;
}

.compact-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.compact-meta .icon {
  width: 12px;
  height: 12px;
}

.compact-price {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.home-footer {
  margin: 30px 0 6px;
  text-align: center;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.9;
}

.home-footer .sep {
  margin: 0 5px;
  opacity: 0.5;
}

/* ---------- 列表页 ---------- */
.page-head {
  padding: calc(20px + env(safe-area-inset-top)) 18px 0;
  background:
    radial-gradient(420px 160px at 100% -20%, rgba(30, 77, 216, 0.1), transparent 70%),
    var(--bg);
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.page-head h1 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

.head-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 7px 16px rgba(18, 60, 191, 0.22);
}

.head-action .icon {
  width: 15px;
  height: 15px;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 5px 5px 5px 13px;
  border: 1px solid #dfe5f1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(16, 35, 90, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.searchbar:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(51, 102, 238, 0.1);
}

.searchbar > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
}

.searchbar input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.searchbar input::placeholder {
  color: #a4aec0;
}

.searchbar button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--blue-700);
  font-size: 11.5px;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.region-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-2);
  background: #fff;
  font-size: 11px;
}

.region-select .icon {
  width: 13px;
  height: 13px;
  color: var(--blue-600);
}

.region-select select {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}

.region-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.region-pair .region-select {
  min-width: 0;
}

.region-pair .region-select select {
  max-width: 96px;
}

@media (max-width: 480px) {
  .filter-bar {
    flex-wrap: wrap;
  }

  .region-pair {
    width: 100%;
  }

  .region-pair .region-select {
    flex: 1;
  }

  .region-pair .region-select select {
    width: 100%;
    max-width: none;
  }

  .filter-bar .sort-tabs {
    margin-left: auto;
  }
}

.sort-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sort-tab {
  position: relative;
  padding: 5px 1px;
  color: var(--muted);
  font-size: 11.5px;
}

.sort-tab.is-active {
  color: var(--ink);
  font-weight: 800;
}

.sort-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-600);
  transform: translateX(-50%);
}

.chip-row {
  display: flex;
  gap: 7px;
  margin-top: 13px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  transition: all 0.16s ease;
}

.chip.is-active {
  border-color: var(--blue-900);
  color: #fff;
  background: var(--blue-900);
  box-shadow: 0 6px 14px rgba(10, 34, 96, 0.2);
}

.chip.chip-cat:not(.is-active) {
  border-color: transparent;
  color: var(--tag-fg);
  background: var(--tag-bg);
  font-weight: 700;
}

.chip.chip-cat.is-active {
  border-color: var(--tag-fg);
  color: #fff;
  background: var(--tag-fg);
  box-shadow: 0 6px 14px rgba(10, 34, 96, 0.16);
}

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 2px 10px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.list-meta strong {
  color: var(--ink-2);
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.category-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 3px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink-2);
  font-size: 10px;
  transition: all 0.16s ease;
}

.category-tile .tile-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--tone);
  background: var(--tone-soft);
  font-size: 13px;
  font-weight: 800;
}

.category-tile.is-active {
  border-color: var(--blue-500);
  color: var(--blue-800);
  background: var(--blue-50);
  box-shadow: 0 6px 16px rgba(30, 77, 216, 0.1);
}

.category-tile.is-active .tile-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
}

.list-body {
  padding: 4px 16px calc(96px + env(safe-area-inset-bottom));
}

.listing-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.listing-card:active {
  border-color: #d3dcef;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-top-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.card-time {
  color: var(--muted-2);
  font-size: 9.5px;
  white-space: nowrap;
}

.card-body {
  display: block;
  margin-top: 9px;
}

.card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0.005em;
}

.card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-meta .icon {
  width: 12px;
  height: 12px;
  color: var(--muted-2);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed #edf0f6;
}

.price {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.price small {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
}

.card-foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 29px;
  padding: 0 10px;
  border: 1px solid #d8e1fa;
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--blue-50);
  font-size: 10.5px;
  font-weight: 700;
}

.btn-sm .icon {
  width: 12px;
  height: 12px;
}

.load-more {
  display: flex;
  justify-content: center;
  padding: 18px 0 4px;
}

.load-more .btn-ghost {
  min-height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
}

.list-end {
  padding: 18px 0 4px;
  color: var(--muted-2);
  font-size: 10px;
  text-align: center;
}

/* ---------- 详情页 ---------- */
.subhead {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(9px + env(safe-area-inset-top)) 14px 9px;
  border-bottom: 1px solid rgba(230, 234, 243, 0.7);
  background: rgba(244, 246, 251, 0.92);
  backdrop-filter: blur(14px);
}

.subhead h1 {
  flex: 1;
  overflow: hidden;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subhead .subhead-side {
  width: 38px;
  height: 38px;
  flex: none;
}

.subhead .icon-btn {
  width: 35px;
  height: 35px;
}

.detail-main {
  padding: 14px 16px calc(108px + env(safe-area-inset-bottom));
}

.detail-hero {
  padding: 18px 17px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(340px 130px at 100% -20%, rgba(51, 102, 238, 0.09), transparent 65%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.detail-hero h1 {
  margin-top: 12px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10.5px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.detail-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--muted-2);
}

.detail-card {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.detail-card h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.detail-card h2::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 999px;
  background: var(--blue-600);
}

.long-text {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.9;
  word-break: break-word;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f3f8;
  font-size: 12px;
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 1px;
}

.info-row span {
  color: var(--muted);
  white-space: nowrap;
}

.info-row strong {
  color: var(--ink-2);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.publisher-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-900));
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.publisher-info {
  min-width: 0;
  flex: 1;
}

.publisher-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.publisher-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publisher-sub {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.owner-chip {
  flex: none;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 9.5px;
  font-weight: 700;
}

.detail-note {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid #f5e6c8;
  border-radius: 13px;
  color: #8a6b2e;
  background: #fffaf0;
  font-size: 10.5px;
  line-height: 1.7;
}

.detail-note .icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}

.action-bar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--app-width);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 232, 242, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(16, 35, 90, 0.07);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.fav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 55px;
  flex: none;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 9.5px;
}

.fav-btn .icon {
  width: 22px;
  height: 22px;
}

.fav-btn em {
  color: var(--muted-2);
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.fav-btn.is-active {
  color: var(--red);
}

.fav-btn.is-active .icon {
  fill: currentColor;
}

.action-bar .btn-primary {
  flex: 1;
  min-height: 45px;
}

.action-bar .btn-soft {
  flex: 1;
  min-height: 45px;
}

/* ---------- 表单 ---------- */
.form-hero {
  padding: 22px 20px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(148deg, #0a2366, #173da7 62%, #2b55d0);
}

.form-hero .form-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  color: #ffe1a4;
  background: rgba(255, 255, 255, 0.1);
}

.form-hero .form-icon .icon {
  width: 22px;
  height: 22px;
}

.form-hero h1 {
  margin-top: 13px;
  font-size: 21px;
  font-weight: 800;
}

.form-hero p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  line-height: 1.7;
}

.form-body {
  padding: 16px 16px calc(30px + env(safe-area-inset-bottom));
}

.form-card {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.field {
  margin-top: 16px;
}

.field:first-child {
  margin-top: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.field-label .req {
  color: var(--red);
}

.field-label small {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dce3ef;
  border-radius: 11px;
  outline: 0;
  background: #f9faff;
  font-size: 13.5px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input,
.field select {
  height: 46px;
  padding: 0 13px;
}

.field textarea {
  min-height: 132px;
  padding: 12px 13px;
  line-height: 1.7;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aab3c4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(51, 102, 238, 0.1);
}

.category-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}

.category-choice {
  position: relative;
  display: inline-flex;
}

.category-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.category-choice .tag {
  height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}

.category-choice input:checked + .tag {
  border-color: var(--tag-fg);
  box-shadow: inset 0 0 0 1px var(--tag-fg), 0 4px 10px rgba(16, 35, 90, 0.1);
}

.category-choice input:focus-visible + .tag {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.field-help {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.6;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.form-submit {
  width: 100%;
  margin-top: 18px;
}

.form-error {
  display: none;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  color: #b13737;
  background: var(--red-soft);
  font-size: 11px;
  line-height: 1.6;
}

.form-error.is-visible {
  display: block;
}

.form-note {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- 登录 ---------- */
.auth-view {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: calc(12px + env(safe-area-inset-top)) 22px 66px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 3%, rgba(255, 255, 255, 0.22), transparent 32%),
    radial-gradient(circle at 2% 100%, rgba(91, 147, 255, 0.5), transparent 48%),
    linear-gradient(152deg, #071b4f, #1237a4 58%, #2b5ae0);
}

.auth-hero::after {
  content: "";
  position: absolute;
  right: -84px;
  top: 84px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.auth-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-top .icon-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.auth-brand .brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 16px;
}

.auth-copy {
  position: relative;
  z-index: 1;
  margin-top: 38px;
}

.auth-copy .eyebrow {
  color: #ffdd9d;
}

.auth-copy h1 {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.auth-copy p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11.5px;
  line-height: 1.7;
}

.auth-features {
  display: flex;
  gap: 7px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.auth-features span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-size: 9.5px;
}

.auth-features .icon {
  width: 11px;
  height: 11px;
  color: #ffdc95;
}

.auth-panel {
  position: relative;
  z-index: 2;
  margin: -40px 14px 0;
  padding: 22px 18px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 28, 82, 0.16);
}

.auth-panel h2 {
  font-size: 19px;
  font-weight: 800;
}

.auth-panel .auth-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.auth-form {
  margin-top: 18px;
}

.code-row {
  display: flex;
  gap: 9px;
}

.code-row input {
  flex: 1;
  min-width: 0;
}

.code-btn {
  width: 112px;
  flex: none;
  height: 46px;
  padding: 0 8px;
  border: 1px solid #d8e1fa;
  border-radius: 11px;
  color: var(--blue-700);
  background: var(--blue-50);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.code-btn:disabled {
  color: var(--muted-2);
  border-color: var(--line);
  background: #f4f6fa;
}

.demo-hint {
  display: none;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px dashed #e7cd93;
  border-radius: 9px;
  color: #8a6a26;
  background: #fffaf0;
  font-size: 10px;
  line-height: 1.6;
}

.demo-hint.is-visible {
  display: block;
}

.auth-submit {
  width: 100%;
  margin-top: 18px;
}

.auth-legal {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.7;
  text-align: center;
}

.auth-legal a {
  color: var(--blue-700);
}

.auth-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.65;
}

.auth-tip .icon {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
  color: var(--green);
}

.auth-footer {
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}

/* ---------- 我的 ---------- */
.me-hero {
  position: relative;
  overflow: hidden;
  padding: calc(17px + env(safe-area-inset-top)) 20px 52px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.2), transparent 36%),
    radial-gradient(circle at 4% 100%, rgba(78, 137, 255, 0.52), transparent 46%),
    linear-gradient(150deg, #081d55, #1237a6 55%, #2b5ae0);
}

.me-hero::after {
  content: "";
  position: absolute;
  right: -58px;
  top: 46px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.me-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.me-top h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.me-top p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.me-avatar-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.me-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: none;
  border: 2px solid rgba(255, 221, 148, 0.8);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #3e72ee, #0c256b);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.me-id {
  min-width: 0;
  flex: 1;
}

.me-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  font-weight: 800;
}

.me-name .verified {
  color: #ffe1a0;
}

.me-phone {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.me-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.me-tag {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  font-size: 8.5px;
}

.me-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 21px;
  padding: 12px 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.me-stat {
  position: relative;
  text-align: center;
}

.me-stat + .me-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.me-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.me-stat span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9.5px;
}

.me-body {
  position: relative;
  z-index: 2;
  margin-top: -33px;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
}

.member-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 15px 16px;
  border: 1px solid rgba(255, 219, 143, 0.34);
  border-radius: 17px;
  color: #f8e4b0;
  background:
    radial-gradient(circle at 92% -20%, rgba(255, 227, 158, 0.2), transparent 44%),
    linear-gradient(120deg, #2d2415, #4b3817 56%, #6a4c1d);
  box-shadow: 0 12px 28px rgba(44, 32, 13, 0.24);
}

.member-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 223, 145, 0.14);
  border-radius: 50%;
}

.member-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 222, 145, 0.24);
  border-radius: 12px;
  color: #ffe1a2;
  background: rgba(255, 220, 138, 0.1);
}

.member-icon .icon {
  width: 20px;
  height: 20px;
}

.member-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.member-copy strong {
  display: block;
  color: #ffe8b8;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.member-copy span {
  display: block;
  margin-top: 3px;
  color: rgba(248, 228, 176, 0.58);
  font-size: 9.5px;
}

.member-btn {
  position: relative;
  z-index: 1;
  flex: none;
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 224, 150, 0.36);
  border-radius: 999px;
  color: #ffe2a3;
  background: rgba(255, 218, 132, 0.08);
  font-size: 9.5px;
  font-weight: 700;
}

.menu-group {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 55px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f3f8;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  color: var(--tone);
  background: var(--tone-soft);
}

.menu-icon .icon {
  width: 17px;
  height: 17px;
}

.menu-label {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
}

.menu-value {
  color: var(--muted-2);
  font-size: 10.5px;
}

.menu-row > .icon {
  width: 15px;
  height: 15px;
  color: #b3bccb;
}

.menu-badge {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 9px;
  font-weight: 700;
}

.me-section-label {
  margin: 20px 3px 8px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logout-btn {
  width: 100%;
  margin-top: 18px;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.me-version {
  margin-top: 20px;
  color: #aab3c2;
  font-size: 9px;
  text-align: center;
  line-height: 1.8;
}

/* 未登录「我的」 */
.guest-hero {
  position: relative;
  overflow: hidden;
  padding: calc(24px + env(safe-area-inset-top)) 22px 78px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 2% 100%, rgba(83, 142, 255, 0.5), transparent 48%),
    linear-gradient(152deg, #071b4f, #1237a4 58%, #2b5ae0);
}

.guest-hero::after {
  content: "";
  position: absolute;
  right: -76px;
  top: 70px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.guest-hero .eyebrow {
  color: #ffdd9d;
}

.guest-hero h1 {
  margin-top: 11px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0.025em;
}

.guest-hero p {
  margin-top: 9px;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11.5px;
  line-height: 1.75;
}

.guest-login {
  width: 100%;
  margin-top: 20px;
  color: var(--blue-800);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.guest-body {
  margin-top: -48px;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
}

.guest-card {
  position: relative;
  z-index: 2;
  padding: 18px 17px;
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.guest-card h2 {
  font-size: 15px;
  font-weight: 800;
}

.guest-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.guest-value {
  padding: 11px 8px;
  border-radius: 12px;
  background: var(--blue-50);
  text-align: center;
}

.guest-value .icon {
  width: 19px;
  height: 19px;
  margin: 0 auto 6px;
  color: var(--blue-600);
}

.guest-value strong {
  display: block;
  font-size: 10.5px;
}

.guest-value span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.guest-links {
  margin-top: 13px;
  padding: 0 16px;
}

/* ---------- 我的发布 / 收藏 / 咨询 ---------- */
.tabbar {
  display: flex;
  gap: 6px;
  margin: 14px 0 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eceff6;
}

.tab {
  flex: 1;
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.tab em {
  font-style: normal;
  font-size: 9px;
  opacity: 0.7;
}

.tab.is-active {
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 35, 90, 0.08);
}

.subpage-body {
  padding: 4px 16px calc(96px + env(safe-area-inset-bottom));
}

.manage-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.manage-card h3 {
  margin-top: 9px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
}

.manage-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.manage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 10px;
}

.manage-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.manage-meta .icon {
  width: 11.5px;
  height: 11.5px;
}

.manage-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed #edf0f6;
}

.mini-btn {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  color: var(--ink-2);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
}

.mini-btn.primary {
  color: var(--blue-700);
  border-color: #d8e1fa;
  background: var(--blue-50);
}

.mini-btn.danger {
  color: #b13737;
  border-color: #f3d6d6;
  background: #fff7f7;
}

.saved-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.saved-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.saved-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #edf0f6;
}

.saved-highlight {
  overflow: hidden;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-btn {
  flex: none;
  border: 0;
  padding: 3px 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.link-btn.danger {
  color: #b13737;
}

.inquiry-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.inquiry-target {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

.inquiry-message {
  margin-top: 9px;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--ink-2);
  background: #f7f9fd;
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.inquiry-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid #e3ebfb;
  border-radius: 10px;
  color: var(--blue-800);
  background: var(--blue-50);
  font-size: 11.5px;
  font-weight: 600;
}

.inquiry-contact .icon {
  width: 14px;
  height: 14px;
  color: var(--blue-600);
}

.inquiry-contact a {
  color: var(--blue-700);
}

.inquiry-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.inquiry-foot > span {
  color: var(--muted-2);
  font-size: 9.5px;
}

.inquiry-actions {
  display: flex;
  gap: 6px;
}

.status-new { color: var(--red); background: var(--red-soft); }
.status-handled { color: var(--green); background: var(--green-soft); }
.status-closed { color: var(--muted); background: #eef1f6; }

/* ---------- 企业资料 ---------- */
.verify-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 0;
  padding: 11px 12px;
  border: 1px solid #e4e9f5;
  border-radius: 12px;
  color: var(--muted);
  background: #f8faff;
  font-size: 10px;
  line-height: 1.65;
}

.verify-banner .icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--blue-600);
  margin-top: 1px;
}

.verify-banner.is-verified {
  border-color: #cfeee1;
  color: #087a55;
  background: #f1fbf7;
}

.verify-banner.is-verified .icon {
  color: var(--green);
}

.verify-banner.is-pending {
  border-color: #f0dfbe;
  color: #8a6a26;
  background: #fffbf2;
}

.verify-banner.is-pending .icon {
  color: #b8842a;
}

/* ---------- 协议 ---------- */
.prose {
  padding: 18px 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.prose h2 {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 8px;
}

.prose ul {
  margin: 0 0 8px;
  padding-left: 17px;
}

.prose li {
  margin-bottom: 3px;
}

.prose .prose-note {
  margin-top: 16px;
  padding: 10px 11px;
  border-radius: 9px;
  color: #8a6a26;
  background: #fffaf0;
  font-size: 10px;
}

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--app-width);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(228, 233, 243, 0.85);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 28px rgba(16, 35, 90, 0.05);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  color: #8c97aa;
  font-size: 9.5px;
  transition: color 0.16s ease;
}

.nav-item .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}

.nav-item.is-active {
  color: var(--blue-700);
  font-weight: 700;
}

.nav-item.is-active::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 16px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--blue-600);
}

/* ---------- 弹层与提示 ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(6, 15, 38, 0.58);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease both;
}

.modal-sheet {
  width: 100%;
  max-width: var(--app-width);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 23px 23px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.24);
  animation: sheet-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.modal-head .icon-btn {
  flex: none;
}

.modal-sheet .field:first-of-type {
  margin-top: 0;
}

.modal-sheet .form-submit {
  margin-top: 16px;
}

body.modal-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  max-width: 82vw;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: #fff;
  background: rgba(13, 26, 54, 0.94);
  box-shadow: 0 12px 30px rgba(5, 15, 40, 0.28);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--ink);
  background: #fff;
  text-align: center;
}

/* ---------- P3 合同助手 ---------- */
.contract-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 94% 0%, rgba(115, 158, 255, 0.42), transparent 38%),
    linear-gradient(135deg, #0a1d4f, #1b3c99 58%, #2c58c9);
  box-shadow: 0 12px 28px rgba(10, 29, 79, 0.2);
}

.contract-hero::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -50px;
  width: 136px;
  height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.contract-hero-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  color: #ffe0a0;
  background: rgba(255, 255, 255, 0.1);
}

.contract-hero-icon .icon {
  width: 22px;
  height: 22px;
}

.contract-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.contract-hero-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contract-hero-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}

.contract-hero-copy p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.65;
}

.contract-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
  padding: 13px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.contract-stat {
  position: relative;
  text-align: center;
}

.contract-stat + .contract-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  background: #eef1f7;
  transform: translateY(-50%);
}

.contract-stat strong {
  display: block;
  color: var(--blue-800);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.contract-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.contract-stat.is-warn strong {
  color: var(--red);
}

.contract-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 8px;
}

.contract-quick {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.contract-quick.is-primary {
  border-color: #dfe7fd;
  background: linear-gradient(160deg, #f5f8ff, #fff);
}

.contract-quick-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 11px;
  color: var(--blue-700);
  background: var(--blue-100);
}

.contract-quick.is-primary .contract-quick-icon {
  color: #ffe0a0;
  background: linear-gradient(135deg, #0f2c76, #2450c0);
}

.contract-quick-icon .icon {
  width: 18px;
  height: 18px;
}

.contract-quick strong {
  font-size: 12.5px;
}

.contract-quick > span:not(.contract-quick-icon) {
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.contract-quick em {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
  color: var(--blue-700);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
}

.contract-quick em .icon {
  width: 11px;
  height: 11px;
}

.contract-templates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 8px;
}

.contract-templates-head span {
  font-size: 11.5px;
  font-weight: 700;
}

.contract-templates-head small {
  color: var(--muted-2);
  font-size: 9px;
}

.contract-template-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.contract-template-row::-webkit-scrollbar {
  display: none;
}

.contract-template-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: #fff;
  font-size: 10.5px;
}

.contract-template-chip .icon {
  width: 13px;
  height: 13px;
  color: var(--blue-600);
}

.contract-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.contract-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  color: var(--tone);
  background: var(--tone-soft);
}

.contract-card-icon .icon {
  width: 20px;
  height: 20px;
}

.contract-card-body {
  min-width: 0;
  flex: 1;
}

.contract-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contract-status {
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
}

.contract-status.is-warn {
  color: var(--orange);
}

.contract-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.contract-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
}

.contract-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.contract-card-meta .icon {
  width: 10px;
  height: 10px;
}

.contract-no {
  color: var(--muted-2);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.contract-card-side {
  width: 62px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.risk-score {
  color: var(--risk-ink, var(--muted));
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.risk-label {
  color: var(--risk-ink, var(--muted-2));
  font-size: 9px;
  font-weight: 700;
}

.contract-side-hint {
  color: var(--muted-2);
  font-size: 9px;
}

.risk-high { --risk: #d84f4f; --risk-soft: #fdecec; --risk-ink: #a82f2f; }
.risk-medium { --risk: #e8851c; --risk-soft: #fff2e2; --risk-ink: #a35d09; }
.risk-low { --risk: #0f9d6e; --risk-soft: #e5f7f0; --risk-ink: #087a55; }
.risk-none { --risk: #8c97ab; --risk-soft: #eef1f6; --risk-ink: #5f6b80; }

.risk-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--risk-ink);
  background: var(--risk-soft);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}

.contract-head-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(340px 130px at 100% -20%, rgba(51, 102, 238, 0.09), transparent 65%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.contract-head-card h1 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}

.contract-head-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #edf0f6;
  color: var(--muted-2);
  font-size: 9.5px;
}

.contract-head-foot span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.contract-head-foot .icon {
  width: 11px;
  height: 11px;
}

.risk-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--risk-soft);
  border-left: 3px solid var(--risk);
  border-radius: 17px;
  background: linear-gradient(160deg, var(--risk-soft), #fff 78%);
}

.score-ring {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--risk) calc(var(--score, 0) * 1%), #e8edf7 0);
}

.score-ring-inner {
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.score-ring-inner strong {
  color: var(--risk-ink);
  font-size: 23px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-ring-inner small {
  color: var(--muted-2);
  font-size: 8px;
}

.score-ring.is-empty {
  background: #eef2f9;
}

.score-ring.is-empty .score-ring-inner {
  width: 66px;
  height: 66px;
  color: var(--muted-2);
}

.score-ring.is-empty .icon {
  width: 25px;
  height: 25px;
}

.risk-copy {
  min-width: 0;
  flex: 1;
}

.risk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--risk-ink);
  background: var(--risk-soft);
  font-size: 9px;
  font-weight: 800;
}

.risk-banner .risk-pill {
  border: 1px solid var(--risk-soft);
  background: #fff;
}

.risk-banner h2 {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.risk-banner p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.risk-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
}

.risk-counts span {
  padding-left: 7px;
  border-left: 2px solid var(--risk-soft);
}

.stale-pill {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  color: #a85a08;
  background: #fff2e2;
  font-size: 9px;
  font-weight: 800;
}

.stale-note {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #8a5a09;
  background: #fff8e9;
  font-size: 9.5px;
  line-height: 1.6;
}

.contract-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.count-pill {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted-2);
  background: #f4f6fb;
  font-size: 9px;
  font-weight: 600;
}

.ai-mode-badge {
  flex: none;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contract-ai-card {
  border-color: #dfe7fb;
  background: linear-gradient(160deg, #f5f8ff, #fff 72%);
}

.contract-ai-text {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.85;
  word-break: break-word;
}

.report-disclaimer {
  margin-top: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #8a6a26;
  background: #fffaf0;
  font-size: 9px;
  line-height: 1.65;
}

.contract-empty-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  padding: 11px;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  line-height: 1.65;
}

.contract-empty-inline .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}

.finding-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}

.finding-card {
  padding: 12px;
  border: 1px solid #edf0f6;
  border-left: 3px solid var(--risk);
  border-radius: 12px;
  background: #fff;
}

.finding-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.finding-level {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  color: var(--risk-ink);
  background: var(--risk-soft);
  font-size: 8.5px;
  font-weight: 800;
}

.finding-category {
  color: var(--muted-2);
  font-size: 9px;
}

.finding-points {
  margin-left: auto;
  color: var(--risk-ink);
  font-size: 9px;
  font-weight: 700;
}

.finding-card h3 {
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
}

.finding-card > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.finding-suggestion {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--ink-2);
  background: #f7f9fd;
  font-size: 10px;
  line-height: 1.65;
}

.finding-suggestion strong {
  flex: none;
  color: var(--blue-700);
}

.finding-card blockquote {
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: 9.5px;
  line-height: 1.65;
}

.finding-card blockquote small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.contract-content {
  max-height: 380px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid #edf1f8;
  border-radius: 11px;
  color: var(--ink-2);
  background: #f9fbff;
  font-family: var(--font);
  font-size: 11.5px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}

.report-meta {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed #edf0f6;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.6;
}

.info-row strong.is-warn {
  color: #b13737;
}

.review-history {
  margin-top: 4px;
}

.review-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px dashed #edf0f6;
}

.review-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.review-score {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--risk-ink);
  background: var(--risk-soft);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.review-copy {
  min-width: 0;
  flex: 1;
}

.review-copy strong {
  display: block;
  color: var(--ink-2);
  font-size: 10.5px;
}

.review-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.review-engine {
  flex: none;
  color: var(--muted-2);
  font-size: 8px;
}

.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.template-option {
  position: relative;
  display: block;
}

.template-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.template-option-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid #e1e7f2;
  border-radius: 12px;
  background: #fbfcff;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.template-option input:checked + .template-option-body {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: 0 0 0 2px rgba(51, 102, 238, 0.1);
}

.template-option-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-bottom: 1px;
  border-radius: 9px;
  color: var(--tone);
  background: var(--tone-soft);
}

.template-option-icon .icon {
  width: 15px;
  height: 15px;
}

.template-option-body strong {
  font-size: 11px;
}

.template-option-body small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.5;
}

.file-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #cfd9ea;
  border-radius: 12px;
  background: #f9fbff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.file-pick:active {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.file-pick input {
  display: none;
}

.file-pick-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  color: var(--blue-700);
  background: var(--blue-100);
}

.file-pick-icon .icon {
  width: 18px;
  height: 18px;
}

.file-pick-copy {
  min-width: 0;
  flex: 1;
}

.file-pick-copy strong {
  display: block;
  font-size: 11.5px;
}

.file-pick-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.file-name {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 11px;
  border: 1px solid #e1e7f2;
  border-radius: 11px;
  background: #f9fbff;
}

.check-row input {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--blue-600);
}

.check-row strong {
  display: block;
  font-size: 11px;
}

.check-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.5;
}

.contract-editor {
  min-height: 360px !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
}

.contract-action-bar {
  gap: 8px;
}

.contract-action-bar .btn-soft {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 0 12px;
  font-size: 12px;
}

.contract-action-bar .btn-primary {
  font-size: 13px;
}

.contract-icon-action {
  flex: none !important;
  width: 45px;
  min-height: 45px;
  padding: 0 !important;
}

.contract-icon-action .icon {
  width: 19px;
  height: 19px;
}

.tool-card.is-link {
  border-style: solid;
  color: var(--ink);
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  body {
    padding: 18px 0;
  }

  .app-shell {
    min-height: calc(100vh - 36px);
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.55),
      0 40px 90px rgba(12, 30, 80, 0.24);
  }

  .view {
    min-height: calc(100vh - 36px);
  }

  .bottom-nav,
  .action-bar {
    bottom: 18px;
    border-radius: 0 0 26px 26px;
  }

  .bottom-nav {
    padding-bottom: 13px;
  }

  .action-bar {
    padding-bottom: 13px;
  }

  .hero {
    padding-top: 26px;
  }

  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }

  .modal-sheet {
    border-radius: 23px;
    padding-bottom: 22px;
  }

  .toast {
    bottom: 106px;
  }

  .subhead {
    padding-top: 11px;
  }
}

@media (max-width: 370px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .quick-card {
    padding: 10px 8px;
  }

  .quick-card strong {
    font-size: 11px;
  }

  .page,
  .list-body,
  .subpage-body {
    padding-left: 13px;
    padding-right: 13px;
  }

  .stats-card {
    margin-left: 12px;
    margin-right: 12px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ---------- P4：会员标识、订单、消息与会员中心 ---------- */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid #f3e2b8;
  border-radius: 5px;
  color: #8c6211;
  background: #fdf3db;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.member-badge .icon {
  width: 10px;
  height: 10px;
}

.me-name .member-badge {
  border-color: rgba(255, 224, 150, 0.28);
  color: #ffe4a6;
  background: rgba(255, 215, 120, 0.14);
}

.bell-count {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 1px solid #14328c;
  border-radius: 999px;
  color: #3b2a07;
  background: #ffd36e;
  font-size: 8px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.me-top .bell-count {
  border-color: #1237a6;
}

/* 首页服务入口 */
.home-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.home-service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.home-service-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 9px;
  color: var(--tone);
  background: var(--tone-soft);
}

.home-service-icon .icon {
  width: 15px;
  height: 15px;
}

.home-service strong {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
}

.home-service small {
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.4;
}

.home-service em {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

/* 订单状态 */
.status-pill.is-paid {
  color: #1d4ed8;
  background: #eaf0ff;
}

.status-pill.is-done {
  color: var(--green);
  background: var(--green-soft);
}

/* 订单列表 */
.order-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  padding: 13px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.order-stat {
  position: relative;
  text-align: center;
}

.order-stat + .order-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  background: #eef1f7;
  transform: translateY(-50%);
}

.order-stat strong {
  display: block;
  color: var(--blue-800);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.order-stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.order-stat.is-done strong {
  color: var(--green);
}

.order-chip-row {
  margin-top: 4px;
}

.order-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.order-title {
  display: block;
  margin-top: 9px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
}

.order-party {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f7f9fe;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
}

.order-party-info {
  min-width: 0;
  flex: 1;
}

.order-party-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.order-party-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-party-info > small,
.order-checkout-seller small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
}

.order-figures {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.order-figure {
  min-width: 0;
}

.order-figure.is-right {
  text-align: right;
}

.order-figure span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
}

.order-figure strong {
  display: block;
  margin-top: 2px;
  color: var(--blue-800);
  font-size: 12.5px;
  font-weight: 800;
}

.order-figure strong.mono {
  max-width: 190px;
  overflow: hidden;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #edf0f6;
}

/* 下单确认 */
.order-form-hero {
  padding-bottom: 24px;
}

.order-checkout-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    radial-gradient(300px 120px at 100% -30%, rgba(51, 102, 238, 0.1), transparent 70%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.order-checkout-card h1 {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.48;
}

.order-checkout-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--blue-800);
  background: var(--blue-50);
}

.order-checkout-price span {
  color: var(--muted);
  font-size: 10px;
}

.order-checkout-price strong {
  font-size: 16px;
  font-weight: 800;
}

.order-checkout-seller {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed #edf0f6;
}

.order-checkout-seller > div {
  min-width: 0;
}

.order-form {
  margin-top: 12px;
}

.order-pay-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 11px;
  border: 1px solid #e3ebfb;
  border-radius: 11px;
  color: var(--blue-800);
  background: var(--blue-50);
  font-size: 10px;
  line-height: 1.65;
}

.order-pay-hint .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
}

/* 订单详情 */
.order-detail-hero {
  padding: 18px 17px 17px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(105, 150, 255, 0.42), transparent 42%),
    linear-gradient(145deg, #081d55, #153ba6 62%, #2b5ae0);
  box-shadow: 0 14px 34px rgba(10, 29, 79, 0.2);
}

.order-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-detail-top .status-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffe1a3;
}

.order-detail-top .status-pill::before {
  background: currentColor;
}

.order-role-pill {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
}

.order-detail-hero h1 {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
}

.order-detail-amount {
  margin-top: 10px;
  color: #ffe0a0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.order-detail-no {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9.5px;
}

.order-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.64);
  font-size: 9.5px;
}

.order-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.order-detail-meta .icon {
  width: 12px;
  height: 12px;
}

.order-timeline {
  margin-top: 12px;
  padding-left: 4px;
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 17px 0;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: #e9edf5;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 4px;
  border: 2px solid #cfd8e9;
  border-radius: 50%;
  background: #fff;
}

.timeline-step.is-done .timeline-dot {
  border-color: var(--blue-600);
  background: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.timeline-step.is-danger .timeline-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.timeline-step strong {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.timeline-step.is-done strong,
.timeline-step.is-danger strong {
  color: var(--ink);
  font-weight: 700;
}

.timeline-step small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.text-link {
  color: var(--blue-700);
}

.action-link-chip {
  flex: none;
  color: var(--blue-700);
}

.order-resource-snapshot {
  display: block;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f7f9fe;
}

.order-resource-snapshot strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.order-resource-snapshot span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
}

/* 消息中心 */
.messages-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid #dce8ff;
  border-radius: 17px;
  background:
    radial-gradient(220px 100px at 100% -20%, rgba(51, 102, 238, 0.14), transparent 70%),
    #f4f8ff;
}

.messages-hero-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  color: var(--blue-700);
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 60, 191, 0.1);
}

.messages-hero-icon .icon {
  width: 19px;
  height: 19px;
}

.messages-hero strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.messages-hero span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.conversation-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.conversation-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  font-size: 16px;
}

.conversation-main {
  min-width: 0;
  flex: 1;
}

.conversation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversation-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
}

.conversation-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-top time {
  flex: none;
  color: var(--muted-2);
  font-size: 8.5px;
}

.conversation-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  word-break: break-all;
}

.conversation-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--muted-2);
}

.conversation-side .icon {
  width: 13px;
  height: 13px;
}

.unread-badge {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
}

/* 聊天页 */
.chat-view {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-view .subhead {
  position: relative;
  flex: none;
}

.chat-peer-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.chat-peer-info {
  min-width: 0;
  flex: 1;
}

.chat-peer-info small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.chat-stream {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 12px;
  background:
    radial-gradient(400px 240px at 100% 0%, rgba(30, 77, 216, 0.05), transparent 70%),
    var(--bg);
  overscroll-behavior: contain;
}

.chat-history-note {
  margin: 0 auto 12px;
  padding: 5px 10px;
  width: fit-content;
  border-radius: 999px;
  color: var(--muted-2);
  background: #e9edf5;
  font-size: 8.5px;
}

.chat-system {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.chat-system span {
  max-width: 86%;
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--muted);
  background: #e8edf6;
  font-size: 9.5px;
  line-height: 1.6;
  text-align: center;
  word-break: break-word;
}

.chat-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
}

.chat-row.is-mine {
  align-items: flex-end;
}

.chat-bubble {
  max-width: 78%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  color: var(--ink-2);
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 35, 90, 0.04);
  font-size: 12.5px;
  line-height: 1.65;
  word-break: break-word;
}

.chat-row.is-mine .chat-bubble {
  border-color: transparent;
  border-radius: 14px 4px 14px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 8px 18px rgba(23, 63, 190, 0.22);
}

.chat-row time {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8px;
}

.chat-empty {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.chat-empty .icon {
  width: 34px;
  height: 34px;
  color: #c4cde0;
}

.chat-composer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 28px rgba(16, 35, 90, 0.06);
}

.chat-composer input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: #f5f7fb;
  font-size: 12.5px;
}

.chat-composer input:focus {
  border-color: var(--blue-500);
  background: #fff;
}

.chat-composer button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  box-shadow: 0 6px 14px rgba(23, 63, 190, 0.24);
}

.chat-composer button .icon {
  width: 19px;
  height: 19px;
}

.chat-composer button.is-busy .icon {
  display: none;
}

.chat-composer button.is-busy::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* 会员中心 */
.membership-body {
  padding: 14px 16px calc(96px + env(safe-area-inset-bottom));
}

.membership-hero {
  position: relative;
  overflow: hidden;
  padding: 17px 17px 15px;
  border: 1px solid rgba(255, 219, 143, 0.3);
  border-radius: 19px;
  color: #f8e4b0;
  background:
    radial-gradient(circle at 92% -20%, rgba(255, 227, 158, 0.22), transparent 44%),
    linear-gradient(120deg, #2d2415, #4b3817 56%, #6a4c1d);
  box-shadow: 0 14px 32px rgba(44, 32, 13, 0.24);
}

.membership-hero::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -66px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 223, 145, 0.13);
  border-radius: 50%;
}

.membership-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.membership-crown {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 222, 145, 0.24);
  border-radius: 13px;
  color: #ffe1a2;
  background: rgba(255, 220, 138, 0.1);
}

.membership-crown .icon {
  width: 22px;
  height: 22px;
}

.membership-hero-copy {
  min-width: 0;
  flex: 1;
}

.membership-hero-copy small {
  display: block;
  color: rgba(248, 228, 176, 0.5);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.membership-hero-copy h1 {
  margin-top: 3px;
  color: #ffe8b8;
  font-size: 19px;
  font-weight: 800;
}

.membership-hero-copy p {
  margin-top: 3px;
  color: rgba(248, 228, 176, 0.62);
  font-size: 9.5px;
  line-height: 1.55;
}

.membership-state {
  flex: none;
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 224, 150, 0.28);
  border-radius: 999px;
  color: #ffe2a3;
  background: rgba(255, 218, 132, 0.08);
  font-size: 8.5px;
}

.membership-quota {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 224, 150, 0.14);
}

.membership-quota strong {
  display: block;
  color: #ffe4a6;
  font-size: 25px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.membership-quota span {
  display: block;
  margin-top: 2px;
  color: rgba(248, 228, 176, 0.5);
  font-size: 8.5px;
}

.membership-quota-note {
  flex: 1;
  color: rgba(248, 228, 176, 0.56);
  font-size: 9px;
  line-height: 1.6;
  text-align: right;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 2px;
}

.plan-card {
  position: relative;
  padding: 15px 15px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.plan-card.is-current {
  border-color: #d8e1fa;
  box-shadow: 0 0 0 2px rgba(30, 77, 216, 0.06), var(--shadow-soft);
}

.plan-card.is-flagship {
  border-color: #f0e3c5;
  background:
    radial-gradient(280px 120px at 100% -25%, rgba(232, 182, 83, 0.12), transparent 70%),
    #fff;
}

.plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plan-code {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.plan-card-head h2 {
  margin-top: 1px;
  font-size: 16px;
  font-weight: 800;
}

.plan-current,
.plan-popular {
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 700;
}

.plan-current {
  color: var(--blue-700);
  background: var(--blue-50);
}

.plan-popular {
  color: #8c6211;
  background: #fdf3db;
}

.plan-desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.plan-price {
  margin-top: 9px;
  color: var(--blue-800);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.plan-card.is-flagship .plan-price {
  color: #8c6211;
}

.plan-benefits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.plan-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.5;
  list-style: none;
}

.plan-benefits .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
  color: var(--green);
}

.plan-action {
  width: 100%;
  min-height: 40px;
  margin-top: 13px;
  font-size: 12.5px;
}

.plan-static {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 13px;
  border: 1px dashed #dfe5ef;
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 10px;
}

.membership-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #f0e3c5;
  border-radius: 12px;
  color: #8a6b2e;
  background: #fffaf0;
  font-size: 9.5px;
  line-height: 1.7;
}

.membership-note .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
}

.member-order-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.member-order-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.member-order-main {
  min-width: 0;
  flex: 1;
}

.member-order-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.member-order-title strong {
  font-size: 12px;
  font-weight: 700;
}

.member-order-no {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
}

.member-order-main > small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.member-order-side {
  flex: none;
  text-align: right;
}

.member-order-side > strong {
  display: block;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 800;
}

.member-order-side > span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.member-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 6px;
}

.member-order-empty {
  padding: 16px;
  border: 1px dashed #dfe5ef;
  border-radius: 13px;
  color: var(--muted-2);
  font-size: 10px;
  text-align: center;
}

.membership-pay-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #f0e3c5;
  border-radius: 14px;
  background: #fffaf0;
}

.membership-pay-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  color: #8c6211;
  background: #fdf3db;
}

.membership-pay-icon .icon {
  width: 19px;
  height: 19px;
}

.membership-pay-card strong {
  display: block;
  color: #5c4310;
  font-size: 13px;
  font-weight: 800;
}

.membership-pay-card span {
  display: block;
  margin-top: 2px;
  color: #9a7a3e;
  font-size: 9.5px;
}

.modal-benefits {
  margin-top: 12px;
}

.member-card.is-active {
  border-color: rgba(255, 219, 143, 0.52);
}

.member-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 380px) {
  .home-services {
    grid-template-columns: 1fr 1fr;
  }

  .order-figure strong.mono {
    max-width: 140px;
  }

  .membership-state {
    display: none;
  }
}

/* ---------- P5：举报、推广与邀请 ---------- */
.clipboard-helper {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-panel .invite-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 15px;
  padding: 11px 12px;
  border: 1px solid #f3dfb8;
  border-radius: 13px;
  color: #7d5b19;
  background: linear-gradient(135deg, #fffbf1, #fff6e2);
  font-size: 10.5px;
  line-height: 1.7;
}

.auth-panel .invite-notice .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  color: #b98523;
}

.field-label small {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 500;
}

.review-note {
  margin: 12px 0 2px;
  padding: 13px 14px;
  border: 1px solid #f2c9c9;
  border-radius: 14px;
  color: #8c3434;
  background: #fff8f8;
}

.review-note-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.review-note-head .icon {
  width: 15px;
  height: 15px;
  flex: none;
}

.review-note-head strong {
  flex: 1;
  font-weight: 800;
}

.review-note-head span {
  color: #b77b7b;
  font-size: 9px;
}

.review-note p {
  margin-top: 7px;
  color: #7a3d3d;
  font-size: 11px;
  line-height: 1.75;
  word-break: break-word;
}

.report-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding: 4px 0;
  color: var(--muted-2);
  font-size: 10px;
}

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid #eadfe1;
  border-radius: 999px;
  color: #9a5f5f;
  background: #fffafa;
  font-size: 10px;
  font-weight: 600;
}

.report-link .icon {
  width: 13px;
  height: 13px;
}

.modal-subtitle {
  margin-top: 5px;
  max-width: 290px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
  word-break: break-word;
}

.report-intro {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 10px 0 14px;
  padding: 14px 15px;
  border: 1px solid #e7dfef;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbf9ff, #f6f8ff);
}

.report-intro > .icon {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  color: var(--indigo);
}

.report-intro strong {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
}

.report-intro span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

.report-stack {
  margin-top: 10px;
}

.report-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-target {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

.report-target .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted-2);
}

.report-reason {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 10px;
}

.report-reason strong {
  color: #a85a08;
  font-weight: 700;
}

.report-detail {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.7;
  word-break: break-word;
}

.report-resolution {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #d8eee5;
  border-radius: 11px;
  color: #287a5d;
  background: #f5fcf9;
  font-size: 10px;
  line-height: 1.7;
}

.report-resolution .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
}

.report-foot {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f1f4f8;
  color: var(--muted-2);
  font-size: 9px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 18px 0 4px;
}

.pager-btn {
  min-width: 72px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
}

.pager-btn.is-disabled {
  color: #c3cad6;
  background: #f8f9fc;
}

.pager-info {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

/* 推广中心 */
.referral-main {
  padding: 12px 16px calc(100px + env(safe-area-inset-bottom));
}

.referral-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 76px;
  border-radius: 23px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 221, 151, 0.28), transparent 32%),
    radial-gradient(circle at 2% 100%, rgba(84, 134, 255, 0.5), transparent 46%),
    linear-gradient(148deg, #071b4f 0%, #1239a6 56%, #2c5fe6 100%);
  box-shadow: 0 18px 40px rgba(9, 28, 83, 0.24);
}

.referral-glow {
  position: absolute;
  right: -48px;
  top: 24px;
  width: 166px;
  height: 166px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.referral-hero .eyebrow {
  position: relative;
  color: #ffe1a4;
}

.referral-hero h1 {
  position: relative;
  margin-top: 9px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: 0.02em;
}

.referral-hero p {
  position: relative;
  max-width: 275px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10.5px;
  line-height: 1.75;
}

.referral-hero p strong {
  color: #ffe0a0;
}

.referral-rate {
  position: absolute;
  right: 17px;
  bottom: 21px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.referral-rate strong {
  color: #ffe3a6;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.referral-rate span {
  color: rgba(255, 233, 186, 0.72);
  font-size: 9px;
  line-height: 1.55;
}

.invite-card {
  position: relative;
  z-index: 2;
  margin: -49px 10px 0;
  padding: 16px;
  border: 1px solid rgba(227, 233, 247, 0.9);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(15, 38, 94, 0.13);
}

.invite-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--blue-50);
  font-size: 9.5px;
  font-weight: 700;
}

.copy-btn .icon {
  width: 13px;
  height: 13px;
}

.invite-code {
  margin-top: 9px;
  color: var(--blue-800);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
}

.invite-link {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

.invite-actions .btn-soft,
.invite-actions .btn-primary {
  flex: 1;
  min-height: 38px;
  font-size: 10.5px;
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.referral-stat {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.referral-stat strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.referral-stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.referral-steps {
  margin-top: 21px;
  padding: 16px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.referral-steps h2 {
  font-size: 13px;
  font-weight: 800;
}

.referral-step-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 13px;
}

.referral-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.referral-step em {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  color: var(--blue-700);
  background: var(--blue-50);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
}

.referral-step strong {
  display: block;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.referral-step span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

.commission-section {
  margin-top: 23px;
}

.commission-section .section-head {
  align-items: flex-end;
}

.commission-section .section-head h2 {
  font-size: 15px;
  font-weight: 800;
}

.commission-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 11px;
}

.commission-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.commission-main {
  min-width: 0;
  flex: 1;
}

.commission-name {
  display: flex;
  align-items: center;
  gap: 7px;
}

.commission-name strong {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commission-name .status-pill {
  flex: none;
  font-size: 8.5px;
}

.commission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.commission-meta span + span::before {
  content: "·";
  margin-right: 6px;
  color: #c3cad6;
}

.commission-amount {
  flex: none;
  text-align: right;
}

.commission-amount strong {
  display: block;
  color: #a85a08;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.commission-amount span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 8px;
}

.commission-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 11px;
  padding: 26px 16px;
  border: 1px dashed #dfe5ef;
  border-radius: 16px;
  color: var(--muted-2);
  background: #fbfcfe;
  text-align: center;
}

.commission-empty .icon {
  width: 25px;
  height: 25px;
  color: #b5bfd0;
}

.commission-empty strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.commission-empty span {
  font-size: 9px;
}

.referral-rule {
  margin-top: 16px;
  color: #a3adbc;
  font-size: 8.5px;
  line-height: 1.7;
}

@media (max-width: 370px) {
  .invite-code {
    font-size: 26px;
  }

  .referral-hero h1 {
    font-size: 22px;
  }

  .referral-rate strong {
    font-size: 33px;
  }

  .commission-item {
    gap: 8px;
    padding: 12px;
  }
}
