/* ===================================================================
   律舟 · 设计系统
   Primary:   #1E3A8A (Authority Navy)
   Secondary: #1E40AF
   CTA:       #B45309 (Trust Gold)
   BG:        #F8FAFC
   Text:      #0F172A
   =================================================================== */

:root{
  --primary: #1E3A8A;
  --primary-2: #1E40AF;
  --primary-3: #3B5BDB;
  --gold: #B45309;
  --gold-2: #D97706;
  --gold-3: #FBBF24;
  --bg: #F8FAFC;
  --bg-2: #F1F5F9;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --green: #047857;
  --green-2: #D1FAE5;
  --red: #B91C1C;
  --red-2: #FEE2E2;
  --blue: #1D4ED8;
  --blue-2: #DBEAFE;
  --amber: #B45309;
  --amber-2: #FEF3C7;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 8px 24px -8px rgba(15,23,42,.12);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.25);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --font-zh: "Noto Serif SC", "EB Garamond", "Songti SC", serif;
  --font-zh-sans: "Noto Sans SC", "Lato", "PingFang SC", system-ui, sans-serif;
  --font-en: "EB Garamond", "Lato", Georgia, serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-zh-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4{ font-family: var(--font-zh); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1{ font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3{ font-size: 1.15rem; }
p{ margin: 0 0 1em; color: var(--ink-2); }
a{ color: inherit; text-decoration: none; cursor: pointer; }
button{ font: inherit; cursor: pointer; }
.muted{ color: var(--muted); }
.strong{ color: var(--primary); font-weight: 600; }
.title-accent{ color: var(--gold); }
.container{ max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============== NAVBAR ============== */
.navbar{
  position: fixed; top: 16px; left: 16px; right: 16px;
  z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border: 1px solid rgba(226,232,240,.7);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, top .2s;
}
.navbar.scrolled{ box-shadow: var(--shadow); }
.nav-inner{ display: flex; align-items: center; gap: 24px; height: 64px; max-width: 1200px; }
.brand{ display: flex; align-items: center; gap: 10px; color: var(--primary); flex: 0 0 auto; }
.brand-mark{ width: 30px; height: 30px; color: var(--primary); }
.brand-text{ display: flex; flex-direction: column; line-height: 1; }
.brand-zh{ font-family: var(--font-zh); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; color: var(--ink); }
.brand-en{ font-family: var(--font-en); font-size: .68rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.nav-links{ display: flex; gap: 6px; margin-left: auto; }
.nav-links a{ padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: .95rem; transition: all .2s; }
.nav-links a:hover{ background: var(--bg-2); color: var(--primary); }
.nav-actions{ display: flex; gap: 8px; }
.nav-toggle{ display: none; background: none; border: 0; width: 40px; height: 40px; padding: 0; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span{ width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============== BUTTONS ============== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 500; font-size: .95rem;
  border: 1px solid transparent; transition: all .2s; white-space: nowrap;
  text-decoration: none;
}
.btn-primary{ background: var(--primary); color: #fff; }
.btn-primary:hover{ background: var(--primary-2); box-shadow: 0 8px 20px -6px rgba(30,58,138,.45); transform: translateY(-1px); }
.btn-primary:disabled{ background: var(--line-2); color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold{ background: var(--gold); color: #fff; }
.btn-gold:hover{ background: var(--gold-2); box-shadow: 0 8px 20px -6px rgba(180,83,9,.45); transform: translateY(-1px); }
.btn-outline{ background: transparent; color: var(--primary); border-color: var(--line-2); }
.btn-outline:hover{ border-color: var(--primary); background: rgba(30,58,138,.04); }
.btn-ghost{ background: transparent; color: var(--ink); }
.btn-ghost:hover{ background: var(--bg-2); }
.btn-lg{ padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-sm{ padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-block{ width: 100%; }

/* ============== HERO ============== */
.hero{
  position: relative; padding: 160px 0 100px; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,58,138,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,138,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.hero-glow{ position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; }
.hero-glow-1{ width: 480px; height: 480px; background: radial-gradient(circle, rgba(30,64,175,.25), transparent 70%); top: -120px; right: -80px; }
.hero-glow-2{ width: 360px; height: 360px; background: radial-gradient(circle, rgba(180,83,9,.18), transparent 70%); bottom: -100px; left: 20%; }

.hero-inner{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(30,58,138,.08); color: var(--primary);
  font-size: .85rem; font-weight: 500; margin-bottom: 24px;
}
.eyebrow-dot{ width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ opacity: 1; transform: scale(1); } 50%{ opacity: .5; transform: scale(1.3); } }
.hero-title{ margin: 0 0 20px; }
.hero-sub{ font-size: 1.1rem; max-width: 560px; color: var(--ink-2); margin-bottom: 32px; }
.hero-search{
  display: flex; gap: 8px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); max-width: 560px; margin-bottom: 20px;
}
.search-field{ flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.search-field svg{ width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.search-field input{ flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 1rem; color: var(--ink); }
.search-field input::placeholder{ color: var(--muted); }
.hero-tags{ display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 36px; font-size: .9rem; color: var(--muted); }
.chip{
  padding: 5px 12px; border-radius: 999px;
  background: rgba(30,58,138,.06); color: var(--primary-2);
  font-size: .85rem; transition: all .2s;
}
.chip:hover{ background: rgba(30,58,138,.12); }
.hero-stats{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 24px 0 0; border-top: 1px solid var(--line); max-width: 560px;
}
.hero-stats > div{ display: flex; flex-direction: column; }
.hero-stats b{ font-family: var(--font-en); font-size: 1.6rem; color: var(--primary); font-weight: 700; }
.hero-stats span{ font-size: .8rem; color: var(--muted); }

/* Hero Card */
.hero-card{
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
  transform: rotate(0.5deg);
}
.card-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card-title{ display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.dot{ width: 8px; height: 8px; border-radius: 50%; }
.dot-live{ background: var(--green); box-shadow: 0 0 0 4px rgba(4,120,87,.15); animation: pulse 2s infinite; }
.card-id{ font-family: var(--font-en); font-size: .8rem; color: var(--muted); }
.timeline{ list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 14px; }
.timeline li{ display: flex; gap: 14px; align-items: flex-start; position: relative; }
.timeline li::after{
  content: ''; position: absolute; left: 5px; top: 18px; bottom: -14px; width: 2px; background: var(--line);
}
.timeline li:last-child::after{ display: none; }
.t-dot{ width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: 0 0 12px; margin-top: 5px; position: relative; z-index: 1; }
.timeline li.done .t-dot{ background: var(--green); }
.timeline li.active .t-dot{ background: var(--primary); box-shadow: 0 0 0 4px rgba(30,58,138,.2); animation: pulse 1.5s infinite; }
.timeline li div b{ display: block; color: var(--ink); font-size: .95rem; font-weight: 500; }
.timeline li div i{ display: block; color: var(--muted); font-size: .8rem; font-style: normal; margin-top: 2px; }
.timeline li.active b{ color: var(--primary); }
.card-foot{ display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.lawyer{ display: flex; gap: 10px; align-items: center; }
.avatar{ width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-3)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.lawyer b{ display: block; font-size: .9rem; color: var(--ink); }
.lawyer i{ display: block; font-size: .8rem; color: var(--muted); font-style: normal; }

.badge{ display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 500; margin-left: 6px; vertical-align: middle; }
.badge-blue{ background: var(--blue-2); color: var(--blue); }
.badge-amber{ background: var(--amber-2); color: var(--amber); }
.badge-red{ background: var(--red-2); color: var(--red); }
.badge-green{ background: var(--green-2); color: var(--green); }

/* ============== SECTIONS ============== */
.section{ padding: 100px 0; }
.section-alt{ background: var(--bg-2); }
.section-dark{ background: linear-gradient(160deg, var(--primary) 0%, #0F1E4D 100%); color: #fff; }
.section-dark h2, .section-dark h3{ color: #fff; }
.section-head{ display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.section-head.center{ flex-direction: column; align-items: center; text-align: center; }
.section-head.center.light{ color: #fff; }
.kicker{ display: inline-block; color: var(--gold); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }

/* ============== FILTER BAR ============== */
.filter-bar{ display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.filter{ background: transparent; border: 0; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); font-size: .9rem; transition: all .2s; }
.filter:hover{ color: var(--primary); }
.filter.active{ background: var(--primary); color: #fff; }

/* ============== PRODUCT GRID ============== */
.product-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; transition: all .25s; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card::before{
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.product-card:hover{ border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card:hover::before{ transform: scaleX(1); }
.product-tag{
  display: inline-block; padding: 4px 10px; background: rgba(30,58,138,.08);
  color: var(--primary); font-size: .75rem; border-radius: 6px; font-weight: 500;
  margin-bottom: 14px; align-self: flex-start;
}
.product-name{ font-family: var(--font-zh); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.product-desc{ color: var(--ink-2); font-size: .9rem; line-height: 1.6; flex: 1; margin-bottom: 16px; }
.product-foot{ display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line); }
.product-price{ display: flex; flex-direction: column; }
.product-price b{ font-family: var(--font-en); font-size: 1.4rem; color: var(--primary); font-weight: 700; line-height: 1; }
.product-price i{ font-size: .75rem; color: var(--muted); font-style: normal; margin-top: 2px; }

/* ============== STEPS ============== */
.steps{
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.steps li{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: all .25s; position: relative;
}
.steps li:hover{ border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.step-num{
  font-family: var(--font-en); font-size: 1.4rem; font-weight: 700; color: var(--gold);
  margin-bottom: 12px; letter-spacing: .04em;
}
.steps li h3{ color: var(--ink); margin-bottom: 8px; }
.steps li p{ color: var(--ink-2); font-size: .92rem; margin: 0; }

/* ============== PRICING TABLE ============== */
.pricing-wrap{ max-width: 900px; margin: 0 auto; }
.pricing-table{
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; border-collapse: separate; border-spacing: 0;
}
.pricing-table th, .pricing-table td{ padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.pricing-table th{ background: var(--bg-2); font-weight: 600; color: var(--ink); font-size: .9rem; }
.pricing-table td{ color: var(--ink-2); font-size: .95rem; }
.pricing-table tr:last-child td{ border-bottom: 0; }
.pricing-table tr:hover td{ background: var(--bg); }
.pricing-table .price{ font-family: var(--font-en); font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.pricing-note{
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px;
  padding: 16px 20px; background: rgba(30,58,138,.04); border-radius: var(--radius);
  color: var(--ink-2); font-size: .9rem;
}
.pricing-note svg{ width: 22px; height: 22px; color: var(--primary); flex: 0 0 22px; margin-top: 2px; }
.pricing-note p{ margin: 0; }

/* ============== TRUST GRID (DARK) ============== */
.trust-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-card{
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 28px; transition: all .25s; backdrop-filter: blur(10px);
}
.trust-card:hover{ background: rgba(255,255,255,.1); transform: translateY(-3px); }
.trust-icon{
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(180,83,9,.18); color: var(--gold-3);
  display: grid; place-items: center; margin-bottom: 18px;
}
.trust-icon svg{ width: 26px; height: 26px; }
.trust-card h3{ color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.trust-card p{ color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }

/* ============== CHECKOUT ============== */
.checkout{
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: flex-start;
}
.checkout-main{ display: flex; flex-direction: column; gap: 20px; }
.checkout-block{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.block-title{ font-size: 1.05rem; color: var(--ink); margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.cart{ display: flex; flex-direction: column; gap: 12px; }
.cart-empty{ padding: 24px; text-align: center; color: var(--muted); background: var(--bg-2); border-radius: var(--radius); }
.cart-empty a{ color: var(--primary); font-weight: 500; }
.cart-item{
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  background: var(--bg); border-radius: var(--radius);
}
.cart-item-info{ flex: 1; }
.cart-item-info b{ display: block; color: var(--ink); font-size: .95rem; }
.cart-item-info i{ color: var(--muted); font-size: .82rem; font-style: normal; }
.cart-item-price{ font-family: var(--font-en); font-weight: 700; color: var(--primary); font-size: 1.05rem; }
.cart-remove{ background: transparent; border: 0; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.cart-remove:hover{ color: var(--red); background: var(--red-2); }

.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label{ display: flex; flex-direction: column; gap: 6px; }
.form-grid label.full{ grid-column: 1 / -1; }
.form-grid span{ font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.form-grid input, .form-grid select, .form-grid textarea{
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff; transition: all .2s;
  font-family: var(--font-zh-sans);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus{
  outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
.form-grid textarea{ resize: vertical; min-height: 80px; }

.pay-methods{ display: flex; flex-direction: column; gap: 12px; }
.pay-item{ cursor: pointer; }
.pay-item input{ position: absolute; opacity: 0; pointer-events: none; }
.pay-card{
  padding: 18px 20px; border: 2px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: all .2s; position: relative;
}
.pay-item input:checked + .pay-card{ border-color: var(--primary); background: rgba(30,58,138,.03); }
.pay-name{ display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pay-name b{ color: var(--ink); font-size: 1rem; }
.pay-name span{
  background: var(--gold-2); color: var(--amber); font-size: .7rem;
  padding: 2px 8px; border-radius: 4px; font-weight: 500;
}
.pay-card i{ display: block; color: var(--muted); font-size: .85rem; font-style: normal; margin-bottom: 8px; }
.pay-status{
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: var(--amber-2); color: var(--amber); font-size: .72rem; font-weight: 500;
}
.pay-tip{
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px;
  padding: 14px 16px; background: var(--blue-2); border-radius: var(--radius);
  color: var(--blue); font-size: .88rem;
}
.pay-tip svg{ width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; }
.pay-tip p{ margin: 0; color: var(--blue); }

.checkout-side{ position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.summary{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
}
.summary h3{ font-size: 1.05rem; margin: 0 0 16px; }
.summary h4{ font-size: .95rem; margin: 0 0 12px; }
.sum-row{ display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-2); font-size: .92rem; }
.sum-row b{ color: var(--ink); font-weight: 500; }
.sum-discount b{ color: var(--red); }
.sum-divider{ height: 1px; background: var(--line); margin: 8px 0; }
.sum-total{ font-size: 1.05rem; padding: 12px 0; }
.sum-total span{ color: var(--ink); font-weight: 600; }
.sum-total b{ color: var(--primary); font-family: var(--font-en); font-size: 1.4rem; font-weight: 700; }
.sum-tip{ font-size: .78rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.trust-mini ul{ list-style: none; padding: 0; margin: 0; }
.trust-mini li{
  display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink-2); font-size: .88rem;
}
.trust-mini li::before{
  content: ''; width: 16px; height: 16px; flex: 0 0 16px;
  background: var(--green-2); border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* ============== BREADCRUMB ============== */
.breadcrumb{
  padding: 24px 24px 0; font-size: .88rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 96px;
}
.breadcrumb a{ color: var(--muted); transition: color .2s; }
.breadcrumb a:hover{ color: var(--primary); }
.breadcrumb b{ color: var(--ink); font-weight: 500; }
.breadcrumb span{ color: var(--line-2); }

/* ============== PAGE HERO ============== */
.page-hero{
  padding: 32px 0 16px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.page-hero h1{ margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page-hero p{ color: var(--muted); margin: 0; }

/* ============== CHECKOUT PAGE ============== */
.checkout-section{ padding: 24px 0 80px; }
.checkout-steps{
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; gap: 0; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 24px; flex-wrap: wrap;
}
.checkout-steps li{
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: .9rem; flex: 1; min-width: 0;
}
.checkout-steps li span{
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-2); color: var(--muted);
  display: grid; place-items: center; font-size: .82rem; font-weight: 600;
  flex: 0 0 26px;
}
.checkout-steps li.active{ color: var(--primary); font-weight: 500; }
.checkout-steps li.active span{ background: var(--primary); color: #fff; }
.checkout-steps li.done{ color: var(--green); }
.checkout-steps li.done span{ background: var(--green); color: #fff; }
.checkout-steps li::after{
  content: ''; flex: 1; height: 2px; background: var(--line);
  margin: 0 12px; min-width: 20px;
}
.checkout-steps li:last-child::after{ display: none; }

.co-item-tag{
  display: inline-block; align-self: flex-start;
  padding: 2px 8px; background: rgba(30,58,138,.08); color: var(--primary);
  font-size: .72rem; border-radius: 4px;
}

.req{ color: var(--red); font-style: normal; }
.agree-row{
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 12px 16px; background: var(--bg); border-radius: var(--radius);
  font-size: .88rem; color: var(--ink-2);
}
.agree-row input{ width: 16px; height: 16px; cursor: pointer; }
.agree-row a{ color: var(--primary); }
.sum-discount-b{ color: var(--red) !important; }

.items-list{ display: flex; flex-direction: column; }

.co-picked{
  padding: 20px; background: linear-gradient(135deg, rgba(30,58,138,.04), rgba(180,83,9,.04));
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 12px;
}
.co-picked .co-item-tag{ align-self: flex-start; }
.co-picked-name{ margin: 0; font-size: 1.15rem; color: var(--ink); }
.co-picked-desc{ margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.co-picked-foot{
  display: flex; justify-content: flex-end; align-items: center;
  padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap; gap: 16px;
}
.co-picked-qty{ display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.co-picked-price{ text-align: right; white-space: nowrap; }
.co-picked-price b{ display: block; font-family: var(--font-en); color: var(--primary); font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.co-picked-price i{ display: block; color: var(--muted); font-size: .82rem; font-style: normal; margin-top: 2px; white-space: nowrap; }
.co-picked-change{ font-size: .88rem; color: var(--primary); align-self: flex-start; }
.co-picked-change:hover{ text-decoration: underline; }

.qty-control{
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.qty-control button{
  background: transparent; border: 0; width: 28px; height: 28px; color: var(--ink-2);
  display: grid; place-items: center; font-size: 1rem; cursor: pointer;
}
.qty-control button:hover{ background: var(--bg-2); color: var(--primary); }
.qty-control span{ padding: 0 10px; min-width: 24px; text-align: center; font-size: .9rem; font-weight: 500; }

/* ============== EMPTY STATE ============== */
.empty-state{
  text-align: center; padding: 80px 20px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.empty-state[hidden]{ display: none; }
.empty-state svg{ color: var(--line-2); }
.empty-state h3{ color: var(--ink); margin: 0; }
.empty-state p{ color: var(--muted); margin: 0 0 12px; }

/* ============== ORDERS LIST ============== */
.orders-section{ padding: 32px 0 80px; }
.orders-filter{
  display: flex; gap: 4px; padding: 4px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.of-tab{
  background: transparent; border: 0; padding: 8px 18px;
  border-radius: 999px; color: var(--ink-2); font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.of-tab:hover{ color: var(--primary); }
.of-tab.active{ background: var(--primary); color: #fff; }
.of-count{
  background: rgba(255,255,255,.2); padding: 1px 6px;
  border-radius: 999px; font-size: .72rem; font-weight: 500;
}
.of-tab:not(.active) .of-count{ background: var(--bg-2); color: var(--muted); }

.orders-list{ display: flex; flex-direction: column; gap: 16px; }
.orders-more{
  display: flex; justify-content: center; padding: 20px 0 0;
}
.orders-more[hidden]{ display: none; }
.orders-loading{
  text-align: center; padding: 16px 0; color: var(--muted); font-size: .9rem;
}
.orders-loading[hidden]{ display: none; }
.orders-list[hidden]{ display: none; }

.order-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .2s;
}
.order-card:hover{ box-shadow: var(--shadow); }
.order-head{
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.order-id{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
.order-id span:first-child{ color: var(--muted); }
.order-id b{ color: var(--ink); font-family: var(--font-en); font-weight: 600; }
.order-time{ color: var(--muted); font-size: .8rem; }

.status-pill{
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 500;
}
.st-pending{ background: var(--amber-2); color: var(--amber); }
.st-ongoing{ background: var(--blue-2); color: var(--blue); }
.st-done{ background: var(--green-2); color: var(--green); }
.st-cancel{ background: var(--bg-2); color: var(--muted); }

.order-body{ display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding: 20px; }
.order-items{ display: flex; flex-direction: column; gap: 8px; }
.order-item-row{
  display: flex; align-items: center; gap: 10px; font-size: .9rem;
  padding: 6px 0;
}
.order-item-tag{
  display: inline-block; padding: 2px 8px;
  background: rgba(30,58,138,.08); color: var(--primary);
  font-size: .72rem; border-radius: 4px; flex: 0 0 auto;
}
.order-item-row b{ color: var(--ink); font-weight: 500; }
.order-item-row i{ color: var(--muted); font-style: normal; }
.order-item-row .order-item-price{ margin-left: auto; font-family: var(--font-en); font-weight: 600; color: var(--primary); }

.order-side{
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  border-left: 1px dashed var(--line); padding-left: 24px;
}
.order-amount{ display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.order-amount span{ color: var(--muted); }
.order-amount b{ font-family: var(--font-en); color: var(--primary); font-size: 1.3rem; font-weight: 700; }
.order-progress{ display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 100%; }
.progress-bar{
  width: 100%; height: 6px; background: var(--bg-2);
  border-radius: 999px; overflow: hidden;
}
.progress-fill{
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--gold-3));
  border-radius: 999px; transition: width .3s;
}
.order-progress span{ font-size: .78rem; color: var(--muted); }
.order-actions{ display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ============== ORDER DETAIL ============== */
.detail-section{ padding: 24px 0 80px; }
.status-banner{
  background: linear-gradient(135deg, #fff 0%, var(--bg) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 32px; display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; gap: 24px; flex-wrap: wrap;
}
.status-banner-left{ display: flex; flex-direction: column; gap: 8px; }
.status-banner-left h2{ margin: 4px 0 0; font-size: 1.4rem; }
.status-banner-left p{ color: var(--muted); margin: 0; font-size: .9rem; }

.detail-grid{ display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: flex-start; }
.detail-main{ display: flex; flex-direction: column; gap: 16px; }
.detail-side{ position: sticky; top: 100px; }
.detail-actions{ display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.detail-items{ display: flex; flex-direction: column; gap: 8px; }
.item-desc{ margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: .88rem; line-height: 1.6; }

.detail-timeline{ display: flex; flex-direction: column; gap: 0; }
.tl-row{
  display: flex; gap: 16px; padding: 12px 0;
  position: relative;
}
.tl-row::after{
  content: ''; position: absolute; left: 7px; top: 28px; bottom: -4px;
  width: 2px; background: var(--line);
}
.tl-row:last-child::after{ display: none; }
.tl-dot{
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--line); flex: 0 0 16px; margin-top: 6px;
  position: relative; z-index: 1;
}
.tl-row.done .tl-dot{ background: var(--green); }
.tl-row.active .tl-dot{
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,58,138,.2);
  animation: pulse 1.5s infinite;
}
.tl-row.done::after{ background: var(--green); }
.tl-content{ flex: 1; padding-bottom: 4px; }
.tl-head{ display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-head b{ color: var(--ink); font-size: .95rem; font-weight: 500; }
.tl-head i{ color: var(--muted); font-size: .82rem; font-style: normal; }
.tl-meta{ display: flex; gap: 12px; align-items: center; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.tl-row.active .tl-head b{ color: var(--primary); }
.tl-status{ padding: 2px 8px; background: var(--bg-2); border-radius: 4px; font-size: .72rem; }
.tl-row.active .tl-status{ background: var(--blue-2); color: var(--blue); }
.tl-row.done .tl-status{ background: var(--green-2); color: var(--green); }

.log-list{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.log-list li{
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem;
}
.log-list li:last-child{ border-bottom: 0; }
.log-time{ color: var(--muted); font-size: .82rem; font-family: var(--font-en); }
.log-list b{ color: var(--ink); font-weight: 500; }
.log-list i{ color: var(--ink-2); font-style: normal; }

.info-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0;
}
.info-item{ display: flex; flex-direction: column; gap: 4px; }
.info-item dt{ color: var(--muted); font-size: .82rem; }
.info-item dd{ color: var(--ink); margin: 0; font-size: .92rem; word-break: break-word; }
.info-item:nth-child(5){ grid-column: 1 / -1; }

.mono{ font-family: var(--font-en); font-size: .88rem; }

/* ============== MODAL (PAY) ============== */
.modal-mask{
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  z-index: 300; display: grid; place-items: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal{
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; max-height: 90vh; overflow: hidden;
  animation: modalIn .25s ease;
}
@keyframes modalIn{ from{ opacity: 0; transform: scale(.95) translateY(10px); } to{ opacity: 1; transform: scale(1) translateY(0); } }
.modal-head{
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.modal-head h3{ margin: 0; font-size: 1.1rem; }
.modal-close{ background: transparent; border: 0; padding: 4px; color: var(--muted); border-radius: 4px; }
.modal-close:hover{ background: var(--bg-2); color: var(--ink); }
.modal-body{ padding: 24px; overflow-y: auto; }
.modal-foot{
  padding: 16px 24px; border-top: 1px solid var(--line);
  display: flex; gap: 8px; justify-content: flex-end;
  background: var(--bg);
}

.pay-modal-amount{
  text-align: center; padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border-radius: var(--radius); margin-bottom: 16px;
}
.pay-modal-amount span{ display: block; font-size: .85rem; opacity: .85; margin-bottom: 4px; }
.pay-modal-amount b{ font-family: var(--font-en); font-size: 2rem; font-weight: 700; }
.pay-modal-method{
  display: flex; justify-content: space-between; padding: 10px 16px;
  background: var(--bg); border-radius: var(--radius); margin-bottom: 16px;
  font-size: .9rem;
}
.pay-modal-method span{ color: var(--muted); }
.pay-modal-method b{ color: var(--ink); font-weight: 500; }

.pay-modal-qr{ text-align: center; padding: 20px 0; }
.qr-placeholder{
  display: inline-block; padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink);
}
.qr-hint{ margin: 16px 0 4px; color: var(--ink); font-size: .9rem; }
.qr-soon{
  display: inline-block; margin: 8px 0 0;
  padding: 4px 12px; background: var(--amber-2); color: var(--amber);
  border-radius: 999px; font-size: .78rem;
}
.pay-modal-tips{
  margin-top: 16px; padding: 12px 16px; background: var(--bg-2);
  border-radius: var(--radius); font-size: .82rem; color: var(--ink-2);
}
.pay-modal-tips p{ margin: 4px 0; }

/* ============== PRODUCT DETAIL ============== */
.product-section{ padding: 24px 0 80px; }
.market-section{ padding: 32px 0 80px; }
.product-detail{
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 32px; align-items: flex-start;
}
.product-detail-main{ display: flex; flex-direction: column; gap: 20px; }
.product-detail-head{
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
}
.product-detail-head .product-tag{ margin-bottom: 16px; }
.product-detail-head h1{ margin: 0 0 12px; font-size: 1.8rem; }
.product-detail-head p{ color: var(--ink-2); margin: 0; font-size: 1rem; line-height: 1.7; }

.product-detail-body{
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
}
.product-detail-body h3{
  font-size: 1.1rem; color: var(--ink); margin: 0 0 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.product-detail-body h3:not(:first-child){ margin-top: 32px; }
.detail-prose p{ color: var(--ink-2); line-height: 1.8; margin: 0 0 12px; }
.detail-prose p:last-child{ margin-bottom: 0; }

.product-flow{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.product-flow li{
  display: flex; gap: 16px; padding: 16px;
  background: var(--bg); border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.flow-num{
  font-family: var(--font-en); font-weight: 700; color: var(--gold);
  font-size: 1.1rem; flex: 0 0 32px; line-height: 1.4;
}
.product-flow li b{ display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.product-flow li i{ display: block; color: var(--ink-2); font-size: .88rem; font-style: normal; }

.detail-guarantee{ display: flex; flex-direction: column; gap: 12px; }
.dg-item{
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; background: var(--bg); border-radius: var(--radius);
}
.dg-item svg{ color: var(--primary); flex: 0 0 20px; margin-top: 2px; }
.dg-item b{ display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.dg-item i{ display: block; color: var(--muted); font-size: .82rem; font-style: normal; }

.product-detail-side{ position: sticky; top: 100px; }
.product-detail-side .summary{ padding: 24px; }
.product-detail-side h3{ margin: 0 0 12px; }
.pds-price{ display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.pds-price b{ font-family: var(--font-en); font-size: 2rem; font-weight: 700; color: var(--primary); }
.pds-price i{ color: var(--muted); font-size: .88rem; font-style: normal; }
.pds-meta{ display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.pds-meta > div{ display: flex; justify-content: space-between; font-size: .88rem; }
.pds-meta > div span{ color: var(--muted); }
.pds-meta > div b{ color: var(--ink); font-weight: 500; }
.pds-tip{ font-size: .78rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* 卡片链接包装 */
.product-card-link{ display: block; color: inherit; }
.product-cta{
  color: var(--primary); font-size: .88rem; font-weight: 500;
  display: inline-flex; align-items: center; transition: transform .2s;
}
.product-card-link:hover .product-cta{ transform: translateX(3px); }
.product-grid-featured .product-card-link{ height: 100%; }

/* ============== MARKET SEARCH ============== */
.market-search{
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 6px 6px 16px; margin: 20px 0 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: border-color .2s, box-shadow .2s;
}
.market-search:focus-within{ border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,64,121,.08); }
.market-search > svg{ width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.market-search input{
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--ink); padding: 10px 4px;
}
.market-search input::placeholder{ color: var(--muted); }
.market-search .btn{ padding: 9px 20px; }

.market-result-hint{
  font-size: .9rem; color: var(--muted); margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.market-result-hint b{ color: var(--ink); font-weight: 600; }
.link-btn{
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--primary); font: inherit; text-decoration: underline;
}
.link-btn:hover{ color: var(--gold-3); }

.market-empty{
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg);
  color: var(--muted);
}
.market-empty p{ margin: 0 0 16px; }

@media (max-width: 720px){
  .market-search{ flex-wrap: wrap; padding: 8px; }
  .market-search > svg{ margin-left: 8px; }
  .market-search input{ width: 100%; padding: 8px 8px; }
  .market-search .btn{ width: 100%; }
}

/* ============== FOOTER ============== */
.footer{ background: #0F172A; color: rgba(255,255,255,.7); padding: 60px 0 30px; margin-top: 0; }
.footer-inner{ display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p{ color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 16px; max-width: 280px; }
.footer .brand{ color: #fff; }
.footer .brand-zh{ color: #fff; }
.footer .brand-en{ color: rgba(255,255,255,.5); }
.footer-col h5{ color: #fff; font-size: .9rem; margin: 0 0 14px; font-family: var(--font-zh-sans); font-weight: 600; }
.footer-col a{ display: block; color: rgba(255,255,255,.65); font-size: .88rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover{ color: var(--gold-3); }
.footer-bottom{
  display: flex; justify-content: space-between; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}

/* ============== TOAST ============== */
.toast{
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 10px;
  font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 1000;
  transition: transform .3s ease; opacity: 0; pointer-events: none;
}
.toast.show{ transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-card{ transform: none; max-width: 480px; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .checkout{ grid-template-columns: 1fr; }
  .checkout-side{ position: static; }
  .detail-grid{ grid-template-columns: 1fr; }
  .detail-side{ position: static; }
  .product-detail{ grid-template-columns: 1fr; }
  .product-detail-side{ position: static; }
  .order-body{ grid-template-columns: 1fr; }
  .order-side{ border-left: 0; border-top: 1px dashed var(--line); padding-left: 0; padding-top: 16px; align-items: flex-start; }
  .order-progress{ align-items: flex-start; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .navbar{ top: 8px; left: 8px; right: 8px; border-radius: 12px; }
  .nav-links, .nav-actions{ display: none; }
  .nav-toggle{ display: flex; }
  .hero{ padding: 120px 0 60px; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); }
  .section{ padding: 60px 0; }
  .section-head{ flex-direction: column; align-items: flex-start; }
  .product-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .trust-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr; }
  .checkout-steps{ padding: 12px 16px; }
  .checkout-steps li{ font-size: .82rem; }
  .checkout-steps li::after{ margin: 0 6px; }
  .co-picked-foot{ flex-direction: column; align-items: stretch; }
  .co-picked-price{ text-align: left; }
  .order-actions{ justify-content: flex-start; }
  .footer-inner{ grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .pricing-table th, .pricing-table td{ padding: 12px 14px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============== AUTH (登录 / 注册) ============== */
.auth-page{
  min-height: calc(100vh - 32px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  padding: 96px 24px 48px;
  background:
    radial-gradient(circle at 20% 10%, rgba(30,64,175,.10), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(180,83,9,.08), transparent 50%),
    var(--bg);
}
.auth-aside{
  position: relative;
  border-radius: 24px;
  background:
    linear-gradient(160deg, var(--primary) 0%, #0F1E4D 100%);
  color: #fff;
  padding: 56px 48px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 600px;
  box-shadow: var(--shadow-lg);
}
.auth-aside::before{
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.auth-aside > *{ position: relative; z-index: 1; }
.auth-aside .aside-brand{
  display: inline-flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--font-zh); font-weight: 700; font-size: 1.3rem; letter-spacing: .04em;
}
.auth-aside .aside-brand .brand-mark{ color: var(--gold-3); }
.auth-aside h2{
  color: #fff; font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 28px 0 16px;
}
.auth-aside p{ color: rgba(255,255,255,.75); font-size: 1rem; max-width: 420px; }
.aside-features{ display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.aside-feature{ display: flex; gap: 14px; align-items: flex-start; }
.aside-feature .af-icon{
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(251,191,36,.15); color: var(--gold-3);
  display: grid; place-items: center;
}
.aside-feature b{ display: block; color: #fff; font-size: .95rem; margin-bottom: 2px; }
.aside-feature i{ display: block; color: rgba(255,255,255,.65); font-size: .85rem; font-style: normal; line-height: 1.5; }
.aside-foot{ display: flex; align-items: center; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.55); }
.aside-foot .af-dot{ width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(4,120,87,.25); }

/* Auth Card */
.auth-main{
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card{
  width: 100%; max-width: 440px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.auth-head{ margin-bottom: 28px; }
.auth-eyebrow{
  display: inline-block; color: var(--gold); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px;
}
.auth-title{
  font-family: var(--font-zh); font-size: 1.8rem; font-weight: 600;
  color: var(--ink); margin: 0 0 6px;
}
.auth-sub{ color: var(--muted); font-size: .92rem; margin: 0; }

/* Form */
.auth-form{ display: flex; flex-direction: column; gap: 16px; }
.field{ display: flex; flex-direction: column; gap: 6px; }
.field-label{
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center;
}
.field-label .field-hint{ color: var(--muted); font-weight: 400; font-size: .8rem; }
.field-input{
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field-input:focus-within{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,58,138,.10);
}
.field-input.is-error{ border-color: var(--red); box-shadow: 0 0 0 4px rgba(185,28,28,.08); }
.field-input .fi-prefix{ color: var(--muted); flex: 0 0 auto; display: inline-flex; }
.field-input .fi-prefix svg{ width: 18px; height: 18px; }
.field-input input{
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: .98rem; color: var(--ink); font-family: inherit;
  padding: 0; height: 100%;
}
.field-input input::placeholder{ color: var(--muted); }
.field-input .fi-suffix{
  background: none; border: 0; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px; border-radius: 6px; cursor: pointer;
}
.field-input .fi-suffix:hover{ color: var(--primary); background: var(--bg-2); }
.field-input .fi-suffix svg{ width: 18px; height: 18px; }
.field-input .fi-code{
  background: none; border: 0; color: var(--primary);
  font-size: .88rem; font-weight: 500; padding: 4px 8px;
  border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.field-input .fi-code:disabled{ color: var(--muted); cursor: not-allowed; }
.field-error{ color: var(--red); font-size: .8rem; min-height: 1em; }

.checkbox-row{ display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.checkbox-row input{ width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.checkbox-row a{ color: var(--primary); }
.checkbox-row a:hover{ text-decoration: underline; }

.auth-actions{ margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.auth-actions .btn{ height: 48px; font-size: 1rem; border-radius: 10px; }
.auth-actions .btn-primary{ position: relative; }
.btn-spinner{
  display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-loading .btn-spinner{ display: inline-block; }
.btn.is-loading .btn-text{ opacity: .7; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.auth-divider{
  display: flex; align-items: center; gap: 12px; color: var(--muted);
  font-size: .82rem; margin: 6px 0;
}
.auth-divider::before, .auth-divider::after{
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.auth-foot{
  text-align: center; font-size: .9rem; color: var(--muted); margin-top: 20px;
}
.auth-foot a{ color: var(--primary); font-weight: 500; }
.auth-foot a:hover{ text-decoration: underline; }

/* Auth responsive */
@media (max-width: 960px){
  .auth-page{ grid-template-columns: 1fr; padding: 88px 16px 32px; }
  .auth-aside{ min-height: auto; padding: 32px 28px; }
  .auth-aside h2{ font-size: 1.5rem; margin-top: 16px; }
  .aside-features{ display: none; }
  .auth-card{ padding: 32px 24px; }
}
@media (max-width: 480px){
  .auth-card{ padding: 28px 20px; border-radius: 16px; }
  .auth-title{ font-size: 1.5rem; }
  .field-input{ height: 44px; }
}

/* ============== NAVBAR USER PILL ============== */
.nav-user{ position: relative; }
.nav-user-trigger{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: .9rem; color: var(--ink); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.nav-user-trigger:hover{ background: #fff; border-color: var(--primary); }
.nav-user-trigger .nu-avatar,
.nav-user-trigger .nu-avatar-img{
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: #fff; display: grid; place-items: center;
  font-size: .82rem; font-weight: 600; overflow: hidden;
  flex: 0 0 28px;
}
.nav-user-trigger .nu-avatar-img{ object-fit: cover; }
.nav-user-trigger .nu-name{ font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-trigger .nu-caret{ width: 14px; height: 14px; color: var(--muted); }
.nav-user-menu{
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 200;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.nav-user-menu.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-user-menu a, .nav-user-menu button{
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border-radius: 8px; background: none; border: 0;
  color: var(--ink-2); font-size: .9rem; text-align: left; cursor: pointer;
  text-decoration: none;
}
.nav-user-menu a:hover, .nav-user-menu button:hover{ background: var(--bg-2); color: var(--primary); }
.nav-user-menu svg{ width: 16px; height: 16px; }
.nav-user-menu .num-divider{ height: 1px; background: var(--line); margin: 4px 0; }
.nav-user-meta{ padding: 8px 12px; font-size: .78rem; color: var(--muted); }
.nav-user-meta b{ color: var(--ink); }
.nav-auth-slot{ display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 720px){
  .nav-auth-slot{ width: 100%; padding-top: 8px; border-top: 1px dashed var(--line); }
  .nav-auth-slot:empty{ display: none; }
}
