/* ============================================================
   SEAMARK 海觅 · Platform UI
   VI tokens: 深海蓝 deep-sea / 航标金 gold / 雾白 / 墨黑
   ============================================================ */
:root {
  --deep-sea: #0B2F6B;
  --navy: #071F4A;
  --gold: #E8A33D;
  --gold-deep: #D98E24;
  --gold-soft: #F5E9D3;
  --ink: #12233F;
  --muted: #5C6B84;
  --line: #E2E8F2;
  --bg: #F6F8FC;
  --card: #FFFFFF;
  --mist: #EAF1FB;
  --success: #1F9D6E;
  --danger: #D64545;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(11,47,107,.10);
  --shadow-lg: 0 16px 48px rgba(11,47,107,.16);
  --font-en: 'Poppins','Inter','Segoe UI',system-ui,-apple-system,sans-serif;
  --font-zh: 'Inter','Segoe UI','PingFang SC','Microsoft YaHei','Noto Sans SC',system-ui,sans-serif;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-zh);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-en); font-size: 20px; letter-spacing: .5px;
  color: var(--navy); font-weight: 800;
}
.brand-text em { font-style: normal; font-size: 11px; color: var(--gold-deep); font-weight: 600; }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--muted); transition: all .16s;
}
.mainnav a:hover { color: var(--deep-sea); background: var(--mist); }
.mainnav a.active { color: var(--deep-sea); font-weight: 700; background: var(--gold-soft); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  border: 1px solid var(--line); background: #fff; color: var(--deep-sea);
  font-weight: 700; font-family: var(--font-en); font-size: 12px;
  padding: 6px 12px; border-radius: 8px; transition: all .16s;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold-deep); }
.currency-pick select {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 12px; padding: 6px 8px; border-radius: 8px; outline: none;
}
.userbox { display: flex; align-items: center; }
.userbox .btn-ghost, .userbox .btn-primary {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.userbox .btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--deep-sea); }
.userbox .btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.userbox .btn-primary { background: var(--deep-sea); color: #fff; border: 1px solid var(--deep-sea); }
.userbox .btn-primary:hover { background: var(--navy); }
.userchip { display: flex; align-items: center; gap: 8px; }
.userchip .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--deep-sea); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.userchip .chip-name { font-size: 13px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userchip .chip-sub { font-size: 11px; color: var(--gold-deep); }
.userchip a.chip-link { margin-left: 8px; font-size: 12px; color: var(--muted); }
.userchip a.chip-link:hover { color: var(--danger); }
.menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  flex-shrink: 0; transition: all .16s;
}
.menu-toggle:hover { border-color: var(--gold); }
.menu-toggle span { width: 17px; height: 2px; border-radius: 2px; background: var(--deep-sea); transition: all .2s; }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 通用容器 ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.view { animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 10px; font-weight: 600; font-size: 14px; padding: 11px 22px; transition: all .16s; }
.btn-primary { background: var(--deep-sea); color: #fff; }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; border: 1.5px solid var(--deep-sea); color: var(--deep-sea); }
.btn-outline:hover { background: var(--mist); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- 首屏 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0A2A63 0%, #0D3E8E 55%, #1258B8 100%);
  color: #fff; padding: 64px 0 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
  border-radius: 50%; background: radial-gradient(circle, rgba(232,163,61,.28), transparent 65%);
}
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
}
.hero h1 { font-size: 44px; line-height: 1.2; font-weight: 800; margin: 20px 0 14px; letter-spacing: .3px; }
.hero h1 .hl { color: var(--gold); }
.hero .sub { font-size: 16.5px; color: rgba(255,255,255,.85); max-width: 640px; }
.hero-search { margin-top: 30px; max-width: 720px; }
.hero-search .searchbar {
  display: flex; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.hero-search input {
  flex: 1; border: none; outline: none; padding: 12px 18px; font-size: 15px;
  font-family: inherit; border-radius: 10px; color: var(--ink);
}
.hero-search .btn { border-radius: 10px; padding: 12px 30px; font-size: 15px; }
.hero-trust {
  margin-top: 30px; display: flex; gap: 34px; flex-wrap: wrap; color: rgba(255,255,255,.92);
}
.hero-trust .item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.hero-trust .item strong { font-family: var(--font-en); font-size: 20px; display: block; line-height: 1.1; }
.hero-trust .item span { opacity: .82; }
.hero-trust .svc { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }

/* ---------- 区块标题 ---------- */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--navy); }
.section-head h2 .en { display: block; font-size: 12px; font-weight: 600; color: var(--gold-deep); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 4px; }
.section-head p { color: var(--muted); font-size: 13.5px; }
.section-head .more { color: var(--deep-sea); font-weight: 600; font-size: 13.5px; }
.section-head .more:hover { color: var(--gold-deep); }

/* ---------- 类目宫格 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; cursor: pointer; transition: all .18s;
}
.cat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card .ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--mist); color: var(--deep-sea); display: flex; align-items: center; justify-content: center; }
.cat-card:hover .ico { background: var(--gold-soft); color: var(--gold-deep); }
.cat-card .cn { font-weight: 700; font-size: 14px; }
.cat-card .en { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- 商品卡 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all .18s; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.product-card .thumb { position: relative; aspect-ratio: 1/1; background: var(--mist); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .tag {
  position: absolute; top: 10px; left: 10px; background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: .3px;
}
.product-card .tag.stock { background: var(--success); }
.product-card .tag.aa { background: var(--navy); }
.product-card .score {
  position: absolute; top: 10px; right: 10px;
  background: rgba(7,31,74,.86); color: var(--gold);
  font-size: 11px; font-weight: 700; font-family: var(--font-en);
  padding: 3px 9px; border-radius: 100px; letter-spacing: .4px;
}
.product-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .pname { font-weight: 700; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.product-card .pdesc { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.product-card .certs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.product-card .cert {
  font-size: 10.5px; font-weight: 700; font-family: var(--font-en); padding: 2px 7px;
  border-radius: 5px; background: var(--mist); color: var(--deep-sea);
}
.product-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.product-card .price { color: var(--gold-deep); font-weight: 800; font-size: 17px; font-family: var(--font-en); }
.product-card .price small { font-size: 11px; font-weight: 600; color: var(--muted); }
.product-card .moq { font-size: 11.5px; color: var(--muted); }

/* ---------- 筛选侧栏 ---------- */
.filter-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.filter-group h4 .count { font-size: 11px; color: var(--muted); font-weight: 500; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); transition: all .14s; cursor: pointer;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.on { background: var(--deep-sea); border-color: var(--deep-sea); color: #fff; font-weight: 600; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; outline: none; }
.price-row input:focus { border-color: var(--gold); }
.price-row span { color: var(--muted); }
.filter-reset { width: 100%; margin-top: 4px; }

/* ---------- 结果工具条 ------------- */
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.result-count { font-size: 13.5px; color: var(--muted); }
.result-count strong { color: var(--deep-sea); font-size: 16px; font-family: var(--font-en); }
.sort-ctrl { display: flex; align-items: center; gap: 8px; }
.sort-ctrl label { font-size: 12.5px; color: var(--muted); }
.sort-ctrl select { border: 1px solid var(--line); background: #fff; padding: 7px 10px; border-radius: 8px; font-size: 13px; outline: none; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.pager button {
  min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13px; padding: 0 6px; transition: all .14s;
}
.pager button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-deep); }
.pager button.on { background: var(--deep-sea); color: #fff; border-color: var(--deep-sea); font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .ellipsis { color: var(--muted); padding: 0 4px; }

/* ---------- 商品详情 ---------- */
.detail-wrap { display: grid; grid-template-columns: 460px 1fr; gap: 36px; padding: 34px 0 10px; }
.detail-gallery .gal-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 1/1; }
.detail-gallery .gal-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.35; }
.detail-info .d-en { font-family: var(--font-en); color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.d-certs { display: flex; gap: 6px; margin-top: 12px; }
.price-box { margin: 20px 0; padding: 18px 20px; background: var(--mist); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.price-box .pb-price { font-size: 30px; font-weight: 800; color: var(--gold-deep); font-family: var(--font-en); }
.price-box .pb-price small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.price-box .pb-moq { font-size: 13px; color: var(--muted); }
.price-box .pb-moq strong { color: var(--deep-sea); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec-table td:first-child { color: var(--muted); width: 130px; }
.spec-table td:last-child { font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.qty-row .qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-row .qty-stepper button { width: 36px; height: 40px; border: none; background: #fff; font-size: 17px; color: var(--deep-sea); }
.qty-row .qty-stepper input { width: 56px; height: 40px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 14.5px; font-weight: 700; outline: none; }
.detail-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.detail-actions .btn { padding: 13px 26px; font-size: 15px; }
.supplier-card { margin-top: 26px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 14px; align-items: center; }
.supplier-card .s-logo { width: 54px; height: 54px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; font-family: var(--font-en); flex-shrink: 0; }
.supplier-card .s-name { font-weight: 700; }
.supplier-card .s-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.supplier-card .s-badge { margin-left: auto; background: var(--success); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }

/* ---------- 商品详情 · 多图画廊 ---------- */
.detail-gallery .gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.detail-gallery .gal-thumb {
  padding: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; aspect-ratio: 1/1; transition: border-color .16s, transform .16s;
}
.detail-gallery .gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-gallery .gal-thumb:hover { border-color: var(--gold); transform: translateY(-2px); }
.detail-gallery .gal-thumb.on { border-color: var(--deep-sea); box-shadow: 0 0 0 2px rgba(11,47,107,.14); }
.detail-gallery .gal-hint { font-size: 11.5px; color: var(--muted); margin-top: 9px; font-family: var(--font-en); letter-spacing: .3px; }
.d-certs .cert { font-size: 11px; font-weight: 700; font-family: var(--font-en); padding: 3px 10px; border-radius: 100px; background: var(--mist); color: var(--deep-sea); display: inline-block; }
.d-certs .cert.cert-off { background: var(--gold-soft); color: var(--gold-deep); }

/* ---------- 商品详情 · 卖点 / 参数 / DDP / 库存 / 图文详情 ---------- */
.detail-extra { padding: 10px 0 30px; }
.dx-sec { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.dx-sec h3 { font-size: 19px; font-weight: 800; color: var(--navy); }
.dx-en { font-family: var(--font-en); font-size: 11.5px; font-weight: 600; color: var(--gold-deep); letter-spacing: 1.4px; text-transform: uppercase; margin-top: 3px; }
.dx-body { margin-top: 18px; }
.dx-desc { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feat-item { display: flex; gap: 12px; align-items: flex-start; background: var(--mist); border-radius: 10px; padding: 14px 16px; }
.feat-item b { font-family: var(--font-en); font-size: 15px; font-weight: 800; color: var(--gold-deep); line-height: 1.2; flex-shrink: 0; }
.feat-item span { font-size: 13.5px; color: var(--ink); line-height: 1.6; }

.dx-specs { width: 100%; border-collapse: collapse; }
.dx-specs td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.dx-specs td:first-child { color: var(--muted); width: 230px; font-weight: 600; }
.dx-specs td:last-child { font-weight: 600; color: var(--ink); }
.dx-specs tr:last-child td { border-bottom: none; }

.ddp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ddp-table th, .ddp-table td { padding: 11px 14px; border: 1px solid var(--line); font-size: 13px; text-align: center; white-space: nowrap; }
.ddp-table thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 12.5px; }
.ddp-table thead th:first-child { text-align: left; }
.ddp-table tbody td:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.ddp-table td.val { font-family: var(--font-en); font-weight: 800; color: var(--gold-deep); }
.ddp-table td.ban { color: var(--danger); font-weight: 700; font-size: 12px; }

.stock-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.stock-card { flex: 1; min-width: 160px; background: var(--mist); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stock-card .sc-k { font-size: 12.5px; color: var(--deep-sea); font-weight: 700; }
.stock-card .sc-v { font-family: var(--font-en); font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 6px; }
.stock-card .sc-v small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stock-card.out { background: #fff; border-style: dashed; }
.stock-card.out .sc-v { font-size: 15px; color: var(--muted); }

.dtl-blocks { display: flex; flex-direction: column; gap: 22px; }
.dtl-block { margin: 0; background: var(--mist); border-radius: 12px; overflow: hidden; display: flex; align-items: stretch; }
.dtl-block img { width: 300px; flex-shrink: 0; object-fit: cover; display: block; }
.dtl-cap { padding: 18px 22px; flex: 1; font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.65; align-self: center; }
.dtl-cap small { display: block; font-family: var(--font-en); font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }

.remark-line { margin-top: 16px; font-size: 12.5px; color: var(--muted); background: var(--mist); border-radius: 8px; padding: 10px 14px; line-height: 1.6; }
.remark-line .warn { color: var(--danger); font-weight: 700; }

@media (max-width: 900px) {
  .dx-sec { padding: 22px 20px; }
  .dx-specs td:first-child { width: 150px; }
  .dtl-block { flex-direction: column; }
  .dtl-block img { width: 100%; max-height: 320px; }
  .dtl-cap { align-self: flex-start; }
}
@media (max-width: 720px) {
  .feat-grid { grid-template-columns: 1fr; }
  .detail-extra { padding: 6px 0 22px; }
}
@media (max-width: 480px) {
  .dx-sec { padding: 18px 16px; border-radius: 10px; }
  .dx-sec h3 { font-size: 17px; }
  .dx-specs td:first-child { width: 120px; }
  .stock-card { min-width: 100%; }
}

/* ---------- 模态 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(7,17,46,.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(3px); animation: fadeIn .18s ease;
}
.modal-mask[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff; border-radius: 18px; width: 100%; max-width: 620px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 30px 90px rgba(7,17,46,.35); animation: popIn .22s ease;
}
.modal-card-sm { max-width: 460px; }
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px 0; }
.modal-head h3 { font-size: 19px; font-weight: 800; color: var(--navy); }
.modal-close { border: none; background: var(--mist); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 16px; }
.modal-close:hover { background: var(--gold-soft); color: var(--gold-deep); }
.modal-body { padding: 18px 26px 26px; }

/* ---------- 注册向导 ---------- */
.steps { display: flex; gap: 6px; margin: 16px 26px 4px; }
.steps .step { flex: 1; height: 5px; border-radius: 100px; background: var(--line); }
.steps .step.on { background: var(--gold); }
.steps .step.done { background: var(--success); }
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-item label .req { color: var(--danger); }
.form-item input, .form-item select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; outline: none; font-family: inherit; background: #fff; transition: border-color .14s;
}
.form-item input:focus, .form-item select:focus { border-color: var(--gold); }
.form-item .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-tip { background: var(--mist); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--deep-sea); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--deep-sea); font-weight: 700; cursor: pointer; }
.invite-preview { font-size: 12px; background: var(--gold-soft); color: var(--gold-deep); border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.success-hero { text-align: center; padding: 26px 10px; }
.success-hero .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--success); color: #fff; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.success-hero h3 { font-size: 22px; font-weight: 800; color: var(--navy); }
.success-hero p { color: var(--muted); margin-top: 8px; }

/* ---------- 买家中心 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi-card .k-label { font-size: 12.5px; color: var(--muted); }
.kpi-card .k-value { font-size: 26px; font-weight: 800; color: var(--navy); font-family: var(--font-en); margin-top: 6px; }
.kpi-card .k-foot { font-size: 11.5px; color: var(--success); margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.panel-body { padding: 8px 20px 18px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .p-cell { display: flex; align-items: center; gap: 10px; }
.tbl .p-cell img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.badge.pending { background: var(--gold-soft); color: var(--gold-deep); }
.badge.replied { background: var(--mist); color: var(--deep-sea); }
.badge.closed { background: #EDF3EC; color: var(--success); }
.badge.st { background: #FBEAEA; color: var(--danger); }

/* ---------- 渠道伙伴中心 ---------- */
.ch-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--deep-sea) 70%);
  color: #fff; border-radius: 18px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap;
}
.ch-banner h2 { font-size: 24px; font-weight: 800; }
.ch-banner p { color: rgba(255,255,255,.8); margin-top: 6px; }
.ch-banner .commission { font-size: 40px; font-weight: 800; font-family: var(--font-en); color: var(--gold); }
.ch-banner .commission small { font-size: 15px; color: rgba(255,255,255,.75); font-weight: 600; }
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.tier-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; transition: all .18s; }
.tier-card.featured { border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(232,163,61,.18); }
.tier-card .t-name { font-weight: 800; font-size: 15px; color: var(--navy); }
.tier-card .t-rate { font-size: 34px; font-weight: 800; color: var(--gold-deep); font-family: var(--font-en); margin: 8px 0 4px; }
.tier-card .t-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.bd-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }

/* ---------- 服务 / 出海 / 工厂宫格 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: all .18s; }
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.svc-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--deep-sea); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.svc-card h3 { font-size: 15.5px; font-weight: 700; }
.svc-card .en-label { font-size: 11px; color: var(--gold-deep); font-weight: 700; font-family: var(--font-en); letter-spacing: .8px; text-transform: uppercase; }
.svc-card p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* ---------- 表格页（供应商/全球货盘） ---------- */
.sup-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section-sm { padding: 34px 0; }
.page-head { padding: 34px 0 4px; }
.page-head h1 { font-size: 28px; font-weight: 800; color: var(--navy); }
.page-head .crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.page-head .crumb a { color: var(--deep-sea); font-weight: 600; }
.page-head p { color: var(--muted); margin-top: 6px; }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .e-ico { font-size: 42px; margin-bottom: 12px; }
.empty h3 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.empty p { font-size: 13px; }

/* ---------- 404 ---------- */
.nf-page { padding: 90px 24px 70px; display: flex; justify-content: center; }
.nf-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 520px; width: 100%; text-align: center; padding: 46px 34px; }
.nf-ico { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; background: var(--mist); display: flex; align-items: center; justify-content: center; font-size: 38px; }
.nf-card h3 { font-size: 22px; font-weight: 800; color: var(--navy); }
.nf-card .nf-en { font-family: var(--font-en); color: var(--gold-deep); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.nf-card p { color: var(--muted); margin: 12px 0 24px; font-size: 13.5px; line-height: 1.7; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nf-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nf-links .chip { cursor: pointer; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 26px; border-radius: 100px;
  font-size: 14px; z-index: 400; box-shadow: var(--shadow-lg); animation: fadeUp .25s ease;
  max-width: 80vw; text-align: center;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.78); margin-top: 60px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 24px 26px; }
.footer-top { display: flex; gap: 60px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-logo { margin-bottom: 12px; }
.footer-slogan { font-family: var(--font-en); font-size: 17px; font-weight: 700; color: var(--gold); letter-spacing: .3px; }
.footer-tag { font-size: 12.5px; margin-top: 8px; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-cols { display: flex; gap: 56px; }
.footer-col h4 { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; letter-spacing: .5px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.66); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-orgs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 22px 0; }
.footer-orgs span { font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-orgs strong { font-size: 13px; color: rgba(255,255,255,.82); font-weight: 600; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 12px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--gold); }
.footer-disclaimer { color: rgba(255,255,255,.38); }

/* ---------- 详情页 AI 评分说明 ---------- */
.score-note { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 3px; line-height: 1.5; }

/* ---------- 关于我们 ---------- */
.about-hero { background: linear-gradient(130deg, var(--navy), var(--deep-sea)); color: #fff; border-radius: 18px; padding: 34px 38px; margin-top: 26px; }
.about-hero h2 { font-size: 25px; font-weight: 800; }
.about-hero p { color: rgba(255,255,255,.82); margin-top: 8px; max-width: 680px; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: all .18s; }
.about-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.about-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--deep-sea); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 21px; }
.about-card h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.about-card p { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.about-orgs { margin-top: 24px; background: var(--mist); border-radius: var(--radius); padding: 20px 24px; }
.about-orgs h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.about-orgs .org-row { display: flex; flex-wrap: wrap; gap: 8px; }
.about-orgs .org-chip { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; color: var(--deep-sea); }
.about-contact { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.contact-card .c-ico { font-size: 24px; }
.contact-card h4 { font-weight: 800; color: var(--navy); font-size: 14px; margin-top: 10px; }
.contact-card p { font-size: 13px; color: var(--muted); margin-top: 6px; font-family: var(--font-en); }
.about-note { margin-top: 22px; background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 12px; padding: 14px 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-contact { grid-template-columns: 1fr; }
}

/* ---------- 双角色登录（买家 / 供应商） ---------- */
.role-tabs { display: flex; gap: 6px; background: var(--mist); border-radius: 12px; padding: 5px; margin-bottom: 18px; }
.role-tab { flex: 1; padding: 10px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .18s; font-family: inherit; }
.role-tab:hover { background: rgba(255,255,255,.7); }
.role-tab.on { background: var(--deep-sea); color: #fff; box-shadow: 0 3px 10px rgba(11,47,107,.22); }

/* ---------- 供应商演示账号 ---------- */
.demo-suppliers { background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.demo-label { font-size: 12px; font-weight: 700; color: var(--gold-deep); margin-bottom: 8px; }
.demo-list { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-chip { border: 1px solid rgba(217,142,36,.45); background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: all .15s; font-family: inherit; }
.demo-chip:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- 供应商工作台 ---------- */
.buyer-cell { display: flex; align-items: center; gap: 10px; }
.b-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--deep-sea); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: var(--font-en); flex-shrink: 0; }
.quote-line { color: var(--gold-deep); font-weight: 800; font-family: var(--font-en); white-space: nowrap; }
.note-cell { max-width: 180px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.muted-sm { color: var(--muted); font-size: 12px; }
.quote-btn { white-space: nowrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .detail-wrap { grid-template-columns: 1fr; }
  .income-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .topbar-inner { gap: 14px; }
  .brand { margin-right: auto; }
  .topbar-actions { gap: 8px; }
  .lang-switch, .userbox .btn-ghost, .userbox .btn-primary { white-space: nowrap; }
  .menu-toggle { display: inline-flex; }
  .mainnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 98;
    flex-direction: column; gap: 3px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 44px rgba(7,17,46,.16);
    padding: 10px 16px 16px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .2s ease;
  }
  body.nav-open .mainnav { transform: none; opacity: 1; pointer-events: auto; }
  .mainnav a { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
  .mainnav a + a { border-top: 1px solid var(--line); border-radius: 0; }
  .mainnav a.active { border-radius: 10px; }
}
@media (max-width: 720px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-cards { grid-template-columns: 1fr; }
  .bd-panel { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .footer-cols { gap: 30px; flex-wrap: wrap; }
  .footer-orgs { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 25px; }
  .hero-trust { gap: 14px; }
  .hero-trust .item { font-size: 12.5px; }
  .brand-text em { display: none; }
  .topbar-inner { padding: 0 14px; gap: 10px; }
  .topbar-actions { gap: 6px; }
  .lang-switch { padding: 6px 8px; }
  .currency-pick select { padding: 5px 6px; }
  .userbox .btn-ghost, .userbox .btn-primary { padding: 7px 10px; font-size: 12px; }
  .menu-toggle { width: 36px; height: 36px; }
  .container { padding: 0 14px; }
  .prod-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .income-grid { grid-template-columns: 1fr; }
}

/* ---------- 采购偏好（买家中心 L1.6） ---------- */
.pref-row { display: flex; align-items: baseline; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.pref-row .pref-k { color: var(--muted); font-weight: 600; min-width: 76px; font-size: 12.5px; }
.pref-row .pref-v { display: flex; flex-wrap: wrap; gap: 6px; }
.pref-row .pref-v .chip { cursor: default; }
.pref-meta { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.pref-edit .form-item select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; outline: none; font-family: inherit; background: #fff; }
.pref-edit .form-item select:focus { border-color: var(--gold); }
.pref-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.pref-chips .chip.on { background: var(--deep-sea); border-color: var(--deep-sea); color: #fff; font-weight: 600; }
.pref-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* ---------- 个性化推荐（首页 / 买家中心 L1.6） ---------- */
.rec-cta { background: linear-gradient(120deg, var(--mist), #fff); border: 1px dashed var(--deep-sea); border-radius: var(--radius); padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rec-cta h4 { font-size: 17px; font-weight: 800; color: var(--navy); }
.rec-cta p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- 渠道拉新趋势（L1.6） ---------- */
.trend-tabs { display: inline-flex; gap: 4px; background: var(--mist); border-radius: 10px; padding: 4px; }
.trend-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; transition: all .15s; }
.trend-tabs button.on { background: var(--deep-sea); color: #fff; }
.trend-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 14px; }
.trend-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend .lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.trend-chart { display: flex; gap: 8px; height: 220px; align-items: flex-end; overflow-x: auto; padding: 10px 2px 0; }
.trend-col { flex: 1; min-width: 42px; display: flex; flex-direction: column; height: 100%; justify-content: flex-end; }
.trend-bars { display: flex; gap: 4px; align-items: flex-end; height: 190px; }
.trend-bars .bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; position: relative; transition: opacity .15s; }
.trend-bars .bar.reg { background: var(--deep-sea); }
.trend-bars .bar.enq { background: var(--gold); }
.trend-bars .bar.deal { background: var(--success); }
.trend-bars .bar:hover { opacity: .82; }
.trend-col .trend-num { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100%; font-size: 10px; font-weight: 700; color: var(--ink); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.trend-col:hover .trend-num { opacity: 1; }
.trend-label { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; }

/* ---------- 收入结构与模式（L1.7） ---------- */
.income-label { font-size: 13px; font-weight: 800; color: var(--navy); margin: 2px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.income-label em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--gold-deep); font-family: var(--font-en); letter-spacing: .6px; text-transform: uppercase; }
.income-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.inc-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; background: var(--card); transition: all .16s; }
.inc-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.inc-card .inc-ico { font-size: 22px; }
.inc-card .inc-name { font-weight: 800; color: var(--navy); margin-top: 8px; font-size: 14.5px; }
.inc-card .inc-rate { color: var(--gold-deep); font-weight: 800; font-family: var(--font-en); margin-top: 3px; font-size: 13px; }
.inc-card .inc-desc { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--mist); border-radius: 14px; padding: 20px; }
.calc-field label { font-size: 12.5px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 8px; }
.calc-gmv { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 17px; font-weight: 800; font-family: var(--font-en); outline: none; background: #fff; transition: border-color .15s; }
.calc-gmv:focus { border-color: var(--gold); }
.calc-tiers { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-tiers button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; font-family: inherit; transition: all .15s; }
.calc-tiers button em { font-style: normal; font-family: var(--font-en); color: var(--gold-deep); margin-left: 4px; }
.calc-tiers button:hover { border-color: var(--gold); }
.calc-tiers button.on { background: var(--deep-sea); border-color: var(--deep-sea); color: #fff; }
.calc-tiers button.on em { color: var(--gold); }
.calc-hint { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.calc-right { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.calc-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 12px 16px; }
.calc-row span { font-size: 13px; color: var(--muted); }
.calc-row b { font-family: var(--font-en); font-size: 16px; color: var(--navy); }
.calc-total { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(120deg, var(--navy), var(--deep-sea)); color: #fff; border-radius: 12px; padding: 15px 16px; }
.calc-total span { font-size: 13px; color: rgba(255,255,255,.82); }
.calc-total b { font-family: var(--font-en); font-size: 23px; color: var(--gold); }
.calc-year { font-size: 12.5px; color: var(--muted); text-align: right; }
.calc-year b { color: var(--gold-deep); font-family: var(--font-en); font-size: 14px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.flow-step .fs-no { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; font-family: var(--font-en); }
.flow-step .fs-t { font-weight: 800; color: var(--navy); margin-top: 10px; font-size: 14px; }
.flow-step .fs-d { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.income-example { margin-top: 20px; background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 12px; padding: 16px 18px; }
.income-example .ex-head { font-weight: 800; color: var(--navy); font-size: 14px; display: flex; align-items: baseline; gap: 8px; }
.income-example .ex-head em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--gold-deep); font-family: var(--font-en); letter-spacing: .6px; text-transform: uppercase; }
.income-example .ex-desc { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.ex-rows { display: flex; flex-direction: column; gap: 8px; }
.ex-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 8px; padding: 9px 14px; font-size: 12.5px; color: var(--muted); }
.ex-row b { font-family: var(--font-en); color: var(--deep-sea); font-size: 14px; }
.ex-row.ex-total { background: var(--navy); color: rgba(255,255,255,.85); }
.ex-row.ex-total b { color: var(--gold); font-size: 16px; }
/* 个人收入看板（L1.8） */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.dash-id { display: flex; align-items: center; gap: 12px; }
.dash-avatar { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--deep-sea)); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; font-family: var(--font-en); flex-shrink: 0; }
.dash-owner { font-size: 16px; font-weight: 800; color: var(--navy); }
.dash-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.dash-tier { text-align: center; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 10px 20px; }
.dash-tier-name { font-weight: 800; color: var(--navy); font-size: 15px; }
.dash-tier-rate { font-family: var(--font-en); color: var(--gold-deep); font-weight: 800; font-size: 16px; margin-top: 2px; }
.dash-progress { margin: 16px 0 20px; }
.dash-progress-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.dash-progress-lab em { font-style: normal; font-family: var(--font-en); font-weight: 700; color: var(--deep-sea); }
.dash-progress-bar { margin-top: 6px; height: 8px; border-radius: 100px; background: var(--line); overflow: hidden; }
.dash-progress-bar div { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.dash-empty { text-align: center; padding: 30px 20px 18px; }
.dash-empty-ico { font-size: 34px; }
.dash-empty-t { font-size: 16px; font-weight: 800; color: var(--navy); margin-top: 12px; }
.dash-empty-d { font-size: 12.5px; color: var(--muted); margin-top: 6px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.badge.paid { background: rgba(31,157,110,.14); color: var(--success); }
.badge.review { background: rgba(232,163,61,.2); color: var(--gold-deep); }
.dash-note { margin-top: 14px; font-size: 12px; color: var(--muted); background: var(--mist); border-radius: 10px; padding: 10px 14px; line-height: 1.6; }

/* ---------- 转化漏斗（L1.6） ---------- */
.funnel { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.funnel-stage { display: flex; align-items: center; gap: 16px; }
.funnel-bar-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.funnel-bar { height: 44px; border-radius: 8px; display: flex; align-items: center; padding: 0 18px; color: #fff; font-weight: 700; font-size: 14.5px; font-family: var(--font-en); white-space: nowrap; min-width: 96px; }
.funnel-bar.reg { background: linear-gradient(90deg, var(--deep-sea), #2D5FBF); width: 100%; }
.funnel-bar.enq { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); width: 62%; color: var(--navy); }
.funnel-bar.deal { background: linear-gradient(90deg, #1B8B62, var(--success)); width: 24%; }
.funnel-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.funnel-meta strong { color: var(--ink); font-size: 13px; }

@media (max-width: 900px) {
  .income-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .trend-chart { height: 190px; }
  .trend-bars { height: 165px; }
  .funnel-bar { font-size: 12.5px; padding: 0 10px; min-width: 72px; }
  .funnel-stage { gap: 10px; }
  .income-grid { grid-template-columns: 1fr 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
}