/* ============================================================
   digitmart · 样式表
   ============================================================ */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --line: #e3e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-ink: #ffffff;
  --brand-soft: #e8f0ff;
  --accent: #0ea5e9;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .35);
  --max: 1180px;
}
html[data-theme='dark'] {
  --bg: #0b1020;
  --surface: #111827;
  --surface-2: #172033;
  --line: #26324a;
  --text: #e8eefc;
  --muted: #93a3bd;
  --brand: #4f8cff;
  --brand-soft: #16233d;
  --accent: #38bdf8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.right { text-align: right; }
.danger { color: var(--danger); }
.warn { color: var(--warn); }

/* ---------------- 布局壳 ---------------- */
.announce {
  background: linear-gradient(90deg, #1e3a8a, #2563eb 45%, #0ea5e9);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .01em;
}
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 16px -8px var(--brand);
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); font-weight: 500;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { color: var(--text); background: var(--surface-2); }
.nav-drop { position: relative; }
.nav-drop .menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 50;
}
.nav-drop:hover .menu, .nav-drop:focus-within .menu { display: block; }
.nav-drop .menu-right { left: auto; right: 0; min-width: 220px; }
.menu-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px;
  font-size: 14px; color: var(--text); width: 100%; background: none; border: 0; text-align: left;
}
.menu-item:hover { background: var(--surface-2); }
.menu-head { padding: 8px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-btn { cursor: pointer; }
.mi-ico { width: 20px; text-align: center; }
.search { flex: 1; max-width: 420px; display: flex; background: var(--surface-2); border-radius: 10px; border: 1px solid transparent; }
.search:focus-within { border-color: var(--brand); background: var(--surface); }
.search input { flex: 1; border: 0; background: none; padding: 9px 12px; font: inherit; color: var(--text); outline: none; }
.search button { border: 0; background: none; padding: 0 12px; color: var(--muted); font-size: 17px; }
.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mini-select {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 8px; padding: 6px 4px; font-size: 12px; max-width: 92px;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; position: relative; font-size: 14px;
}
.icon-btn:hover { background: var(--surface-2); }
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--brand); color: #fff; border-radius: 9px; font-size: 11px; line-height: 17px;
  text-align: center; font-weight: 700;
}
.main { min-height: 62vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; border: 1px solid transparent; padding: 10px 16px;
  font-size: 14px; font-weight: 600; transition: transform .12s ease, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px -12px var(--brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-mini { padding: 5px 10px; font-size: 12px; border-radius: 8px; background: var(--surface-2); border-color: var(--line); }
.btn-block { width: 100%; }
.link { color: var(--brand); font-size: 14px; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; }

/* ---------------- 首页 ---------------- */
.hero { background: radial-gradient(1200px 400px at 20% -10%, #1d4ed8 0%, transparent 60%), linear-gradient(160deg, #0b1226, #152b57 60%, #0b1226); color: #eaf1ff; }
.hero-in { max-width: 760px; margin: 0 auto; padding: 64px 20px 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  margin-bottom: 18px; color: #cfe0ff;
}
.hero h1 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 12px; }
.hero p { color: #b9c9e6; max-width: 580px; margin: 0 auto 26px; }
.hero-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.hero-search input {
  flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1); color: #fff; font: inherit; outline: none;
}
.hero-search input::placeholder { color: #9fb3d4; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 24px; }
.hero-stats span { font-size: 12px; color: #9fb3d4; letter-spacing: .03em; }

.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 26px 0 8px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; text-align: center; display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.cat-ico { font-size: 24px; }
.cat-tile b { font-size: 13.5px; font-weight: 600; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 16px; }
.sec-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; }
.product-card { min-width: 0; transition: transform .16s, box-shadow .16s, border-color .16s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.thumb {
  height: 128px; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--accent) 18%, var(--surface)));
}
.thumb-ico, .pdp-ico { font-size: 40px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .18)); }
/* 分类色板 */
.thumb.software, .pdp-media.software { background: linear-gradient(135deg, #e8f0ff, #dbe6ff); }
.thumb.game, .pdp-media.game { background: linear-gradient(135deg, #e7f8ee, #d3f0e0); }
.thumb.design, .pdp-media.design { background: linear-gradient(135deg, #fdeef6, #fbdcec); }
.thumb.course, .pdp-media.course { background: linear-gradient(135deg, #fff4e3, #ffe8c9); }
.thumb.ai, .pdp-media.ai { background: linear-gradient(135deg, #eef0ff, #e0e4ff); }
.thumb.giftcard, .pdp-media.giftcard { background: linear-gradient(135deg, #f0f0f4, #e6e6ee); }
html[data-theme='dark'] .thumb.software, html[data-theme='dark'] .pdp-media.software { background: linear-gradient(135deg, #16233d, #1b2c4d); }
html[data-theme='dark'] .thumb.game, html[data-theme='dark'] .pdp-media.game { background: linear-gradient(135deg, #14291f, #1a3630); }
html[data-theme='dark'] .thumb.design, html[data-theme='dark'] .pdp-media.design { background: linear-gradient(135deg, #2a1a24, #3a2030); }
html[data-theme='dark'] .thumb.course, html[data-theme='dark'] .pdp-media.course { background: linear-gradient(135deg, #2b2116, #3a2b1a); }
html[data-theme='dark'] .thumb.ai, html[data-theme='dark'] .pdp-media.ai { background: linear-gradient(135deg, #1c1e33, #262a4a); }
html[data-theme='dark'] .thumb.giftcard, html[data-theme='dark'] .pdp-media.giftcard { background: linear-gradient(135deg, #22242c, #2c2f3a); }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font-size: 14.5px; margin-bottom: 6px; overflow-wrap: anywhere; }
.card-body .muted { font-size: 12.5px; min-height: 38px; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.price { font-weight: 800; font-size: 17px; color: var(--brand); letter-spacing: -.02em; }
.price.lg { font-size: 30px; }
.price s { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.stock { font-size: 11.5px; color: var(--muted); }
.stock.is-out { color: var(--danger); }

.trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin: 46px 0 60px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.trust div { text-align: center; }
.trust span { font-size: 20px; }
.trust b { display: block; margin: 6px 0 2px; font-size: 14px; }
.trust p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------------- 列表页 ---------------- */
.page { padding-top: 26px; padding-bottom: 60px; }
.page.narrow { max-width: 900px; }
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 4px; }
.chips { display: flex; gap: 8px; }
.chip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; color: var(--muted);
}
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-sm { color: var(--muted); font-size: 13.5px; padding: 8px 0; }

/* ---------------- 商品详情 ---------------- */
.pdp { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: start; }
.pdp-media {
  aspect-ratio: 1 / .82; border-radius: 18px; display: grid; place-items: center; position: relative;
  background: linear-gradient(140deg, var(--brand-soft), color-mix(in srgb, var(--accent) 22%, var(--surface)));
  border: 1px solid var(--line);
}
.pdp-ico { font-size: 88px; }
.pdp-flag {
  position: absolute; bottom: 14px; left: 14px; background: rgba(15, 23, 42, .72); color: #fff;
  font-size: 12px; padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(6px);
}
.pdp-info h1 { font-size: 27px; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 18px; flex-wrap: wrap; }
.stock-pill {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 600;
}
.opt { margin-bottom: 14px; }
.opt-label { font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.opt-values { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-btn {
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13.5px;
}
.opt-btn.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.opt-btn.is-disabled { opacity: .4; text-decoration: line-through; }
.buy-row { display: flex; gap: 10px; margin: 20px 0 10px; flex-wrap: wrap; }
.stepper { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 38px; border: 0; background: none; font-size: 16px; }
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 48px; border: 0; text-align: center; background: none; color: var(--text); font: inherit; outline: none; }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.perks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pdp-detail { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.pdp-detail p { color: var(--muted); max-width: 780px; }
.pdp-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 6px; }
.spec { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec span { color: var(--muted); }
@media (max-width: 1024px) { .pdp-cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------- 购物车 / 结算 ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.cart-list { display: grid; gap: 10px; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 26px; background: var(--brand-soft); }
.cart-item h4 { margin: 0 0 4px; font-size: 14px; }
.cart-item .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cart-item .amt { font-weight: 700; }
.qty-mini { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-mini button { border: 0; background: none; width: 26px; }
.qty-mini span { padding: 2px 8px; font-size: 13px; }
.cart-aside {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: sticky; top: 90px;
}
.cart-aside h3 { margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.row:last-of-type { border-bottom: 0; }
.row.total { font-size: 15px; border-bottom: 0; padding-top: 12px; }
.row.total b { font-size: 21px; color: var(--brand); }
.cart-aside .btn { margin-top: 10px; }
.pay-opt { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; font-size: 13.5px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel h3 { margin-bottom: 14px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.inline-form { display: flex; gap: 8px; margin-top: 14px; }
.inline-form input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 140px; font: inherit; }
.wallet-balance { font-size: 38px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }

.alert { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
.auth { max-width: 420px; margin: 40px auto; }
.auth label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.auth input { width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.auth input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.auth .btn { margin-top: 6px; }
.switch { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.switch a { color: var(--brand); font-weight: 600; }

/* ---------------- 订单 ---------------- */
.orders { display: grid; gap: 10px; }
.order-row {
  display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.order-row:hover { border-color: var(--brand); }
.order-row b { font-size: 14px; }
.order-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; color: var(--muted); }
.order-amt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.status { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.status.paid { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.status.pending { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.status.refunded { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.order-head h1 { font-size: 22px; }
.oit { border-top: 1px solid var(--line); padding: 16px 0; }
.oit-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.codes { display: grid; gap: 6px; }
.code-row { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }
.code-row code { flex: 1; font-size: 13px; letter-spacing: .04em; overflow-wrap: anywhere; }
.totals { border-top: 1px solid var(--line); padding-top: 12px; }

.prose { max-width: 720px; }
.prose p { color: var(--muted); }

/* ---------------- 页脚 ---------------- */
.ftr { border-top: 1px solid var(--line); background: var(--surface); margin-top: 50px; }
.ftr-in { max-width: var(--max); margin: 0 auto; padding: 36px 20px 24px; display: flex; gap: 60px; flex-wrap: wrap; }
.ftr-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 320px; }
.ftr-brand p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.ftr-cols { display: flex; gap: 60px; flex: 1; }
.ftr-cols div { display: flex; flex-direction: column; gap: 9px; font-size: 13px; line-height: 1.4; }
.ftr-cols b { font-size: 13px; margin-bottom: 2px; }
.ftr-cols a { color: var(--muted); }
.ftr-cols a:hover { color: var(--brand); }
.ftr-btm { border-top: 1px solid var(--line); padding: 14px 20px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------------- 后台 ---------------- */
.admin-body { background: var(--bg); }
.admin-body.center { display: grid; place-items: center; min-height: 100vh; }
.adm-side {
  position: fixed; inset: 0 auto 0 0; width: 216px; background: var(--surface);
  border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 3px;
}
.adm-brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 18px; font-size: 15px; }
.adm-nav { padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--muted); }
.adm-nav:hover { background: var(--surface-2); color: var(--text); }
.adm-nav.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.adm-side-foot { margin-top: auto; padding: 10px; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.adm-main { margin-left: 216px; padding: 26px 30px 60px; max-width: 1180px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.adm-head h1 { font-size: 23px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 25px; margin: 4px 0 2px; letter-spacing: -.02em; }
.stat small { font-size: 11.5px; color: var(--muted); }
.adm-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl code { font-size: 12px; }
.lowlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lowlist li { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.lowlist b, .lowlist span { font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid label { font-size: 12.5px; color: var(--muted); display: block; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; margin-top: 5px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 13.5px;
}
.form-grid .col2 { grid-column: 1 / -1; }
.checkbox-row { display: flex; gap: 22px; align-items: center; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.check input { width: auto; margin: 0; }
.form-actions { display: flex; gap: 10px; }
.form-inline { display: flex; gap: 10px; align-items: center; }
.form-inline select { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 13.5px; }
.stack { display: grid; gap: 12px; margin-top: 18px; }
.stack label { font-size: 12.5px; color: var(--muted); }
.stack select, .stack textarea { width: 100%; margin-top: 5px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13.5px; }
.stack .btn { justify-self: start; }
form.inline { display: flex; gap: 6px; justify-content: flex-end; }
form.inline input { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 12px; width: 130px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-aside { position: static; }
  .nav { display: none; }
  .stats, .trust { grid-template-columns: repeat(2, 1fr); }
  .adm-cols { grid-template-columns: 1fr; }
  .adm-side { width: 64px; padding: 14px 6px; }
  .adm-brand b, .adm-nav { font-size: 0; }
  .adm-nav { text-align: center; padding: 10px 0; }
  .adm-nav::first-letter { font-size: 14px; }
  .adm-main { margin-left: 64px; padding: 20px; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .search { display: none; }
  .mini-select { display: none; }
  .hdr-in { gap: 10px; padding: 10px 14px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
  .hero-stats { gap: 22px; }
  .hero-in { padding: 40px 16px 36px; }
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 13.5px; }
  .hero-search { gap: 6px; }
  .hero-search input { padding: 11px 13px; font-size: 14px; }
  .cat-tile { padding: 14px 8px; }
  .cat-tile b { font-size: 12.5px; }
  .ftr-in { gap: 28px; }
  .ftr-cols { gap: 28px; flex-wrap: wrap; }
  .order-row { grid-template-columns: 1fr; }
  .order-amt { align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .pdp-info h1 { font-size: 21px; }
  .cart-item { grid-template-columns: 52px 1fr; }
  .cart-item .amt { grid-column: 2; }
  .buy-row .btn { flex: 1; }
  .card-foot { flex-wrap: wrap; row-gap: 2px; }
  .card-foot .stock { flex-basis: 100%; }
  .card-body .muted { min-height: 0; }
  .page { padding-top: 16px; }
}

/* ============================================================
   2.0 新增：优惠码 / 支付 / 结果页 / 后台设置
   ============================================================ */
.ok { color: var(--ok); }
.ok-banner {
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok); padding: 10px 14px; border-radius: 10px;
  font-size: 13.5px; margin-bottom: 14px; font-weight: 600;
}
.alert-soft {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px;
}
.coupon-box { margin: 14px 0 16px; }
.coupon-row { display: flex; gap: 6px; margin-top: 6px; }
.coupon-row input {
  flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; letter-spacing: .03em;
}
.coupon-row .btn { flex: 0 0 auto; }

.pay-panel { max-width: 580px; margin: 0 auto; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pay-head h1 { margin-bottom: 4px; }
.pay-amount { font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); margin: 14px 0 2px; }
.pay-opt span { flex: 1; }
.pay-opt small { color: var(--muted); font-size: 12px; }

.result { text-align: center; max-width: 580px; margin: 24px auto; padding: 34px 24px; }
.result-ico {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; margin: 0 auto 14px;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok);
}
.result.is-wait .result-ico { background: var(--surface-2); color: var(--muted); }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.result-actions form { display: inline-flex; }

.adm-sep {
  margin: 16px 10px 6px; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.status.awaiting_payment { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.status.cancelled { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
/* 后台设置：让勾选项独占一行，避免和输入框挤在一起 */
.form-grid .check {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  padding: 2px 0; font-size: 13.5px; color: var(--text);
}
.form-grid .check input { width: auto; margin: 0; }
.form-grid .checkbox-row { grid-column: 1 / -1; }
/* 表格操作列不换行 */
.tbl td.right { white-space: nowrap; }
.tbl td.right form.inline { display: inline-flex; margin-left: 4px; vertical-align: middle; }
.tbl td.right .btn-mini { vertical-align: middle; }
/* ============================================================
   3.0 登录 / 注册 / 账户中心 / 发货详情
   ============================================================ */
/* ---- 认证页 ---- */
.auth-body { background: var(--bg); }
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.02fr .98fr;
}
.auth-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -8%, #2563eb 0%, transparent 58%),
    radial-gradient(700px 400px at 92% 108%, #0ea5e9 0%, transparent 55%),
    linear-gradient(160deg, #0b1226 0%, #131f3d 55%, #0b1226 100%);
  color: #eaf1ff; padding: 34px 44px 30px; display: flex; flex-direction: column;
}
.auth-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.auth-hero-top, .auth-hero-mid, .auth-hero-foot { position: relative; z-index: 1; }
.brand-light .brand-txt { color: #fff; }
.auth-hero-mid { margin: auto 0; padding: 34px 0; max-width: 520px; }
.auth-hero-mid h1 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.25; margin: 14px 0 12px; }
.auth-hero-mid > p { color: #a9bcdd; font-size: 14.5px; max-width: 460px; }
.auth-feats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.auth-feats li { display: flex; gap: 12px; align-items: flex-start; }
.auth-feats .ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 15px;
}
.auth-feats b { display: block; font-size: 14px; margin-bottom: 2px; }
.auth-feats p { margin: 0; font-size: 12.5px; color: #9db1d4; }
.auth-hero-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.auth-stats { display: flex; gap: 34px; }
.auth-stats div { display: flex; flex-direction: column; }
.auth-stats b { font-size: 20px; }
.auth-stats span { font-size: 11.5px; color: #9db1d4; letter-spacing: .04em; }
.auth-copy { margin: 12px 0 0; font-size: 11.5px; color: #7f93b8; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 46px 28px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-back { font-size: 12.5px; color: var(--muted); }
.auth-back:hover { color: var(--brand); }
.auth-card h2 { font-size: 26px; margin: 16px 0 6px; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.auth-form { display: grid; gap: 14px; }
.fld { display: block; }
.fld-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--muted); margin-bottom: 6px;
}
.fld-link { color: var(--brand); font-size: 12px; }
.fld input, .fld textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
}
.fld input:focus, .fld textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--brand) 18%, transparent); border-color: var(--brand);
}
.fld-pw { position: relative; display: block; }
.fld-pw input { padding-right: 62px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--muted); font-size: 12px; padding: 6px 8px; border-radius: 6px;
}
.pw-toggle:hover { background: var(--surface-2); color: var(--text); }
.fld-cap { display: grid; grid-template-columns: 1fr 132px auto; gap: 8px; align-items: center; }
.fld-cap input { min-width: 0; }
.cap-img { width: 132px; height: 44px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); }
.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); transition: background .2s; }
.fld-hint { display: block; font-size: 11.5px; margin-top: 4px; color: var(--muted); }
.chk { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.chk input { margin-top: 3px; accent-color: var(--brand); }
.chk a { color: var(--brand); }
.auth-alt {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  text-align: center; font-size: 13px; color: var(--muted);
}
.auth-alt a { color: var(--brand); font-weight: 600; margin-left: 4px; }
.dev-tip {
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px;
  padding: 12px 14px; margin: 14px 0; font-size: 12.5px; word-break: break-all;
}
.dev-tip b { display: block; margin-bottom: 4px; }
.dev-tip a { color: var(--brand); }

/* ---- 账户中心 ---- */
.acct-head { display: flex; align-items: center; gap: 16px; padding: 26px 0 18px; border-bottom: 1px solid var(--line); }
.acct-avatar {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--accent)); color: #fff; font-size: 24px; font-weight: 800;
  box-shadow: 0 10px 24px -14px var(--brand);
}
.acct-id h1 { font-size: 22px; margin: 0 0 2px; }
.acct-id p { margin: 0; font-size: 13px; }
.acct-quick { margin-left: auto; display: flex; gap: 8px; }
.acct-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0;
}
.acct-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.acct-stats span { font-size: 12px; color: var(--muted); }
.acct-stats b { display: block; font-size: 20px; margin-top: 2px; }
.acct-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.acct-side { display: grid; gap: 16px; }
.acct-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acct-orders a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px;
}
.acct-orders a:hover { border-color: var(--brand); }
.acct-orders b { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 14px; }
.sub-h { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 8px; }

/* ---- 订单：联系方式 / 发货说明 ---- */
.contact-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0; font-size: 13px;
}
.contact-strip div { display: flex; flex-direction: column; }
.contact-strip .wide { grid-column: 1 / -1; }
.contact-strip span { color: var(--muted); font-size: 11.5px; }
.delivery-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); font-size: 13px;
}
.delivery-note p { margin: 4px 0 0; color: var(--muted); }

/* ---- 后台：订单详情 ---- */
.adm-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-head-actions form { display: inline-flex; }
.adm-cols.detail { grid-template-columns: 1.55fr 1fr; }
.adm-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.adm-item:last-child { border-bottom: 0; }
.adm-item-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13.5px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv.col { flex-direction: column; gap: 4px; }
.kv.col p { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); display: grid; gap: 12px; }
.timeline li { position: relative; font-size: 12.5px; display: flex; flex-direction: column; }
.timeline li::before {
  content: ''; position: absolute; left: -19px; top: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface);
}
.timeline b { font-size: 12px; color: var(--muted); font-weight: 600; }

@media (max-width: 1080px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 26px 24px; }
  .auth-hero-mid { padding: 22px 0; }
  .auth-feats { display: none; }
  .auth-panel { padding: 28px 20px 50px; }
  .acct-grid, .adm-cols.detail { grid-template-columns: 1fr; }
  .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .auth-hero-mid h1 { font-size: 24px; }
  .fld-cap { grid-template-columns: 1fr 120px; }
  .cap-img { width: 120px; }
  .acct-head { flex-wrap: wrap; }
  .acct-quick { margin-left: 0; width: 100%; }
  .contact-strip { grid-template-columns: 1fr; }
}
/* hidden 行不要被 .row 的 display:flex 覆盖 */
.row[hidden], .cart-aside .row[hidden] { display: none !important; }
.disc-row[hidden] { display: none !important; }
/* ============================================================
   4.0 代理 IP
   ============================================================ */
.px-hero {
  background:
    radial-gradient(900px 380px at 15% -20%, #2563eb 0%, transparent 60%),
    linear-gradient(160deg, #0b1226, #16264a 60%, #0b1226);
  color: #eaf1ff; padding: 52px 20px 46px;
}
.px-hero-in { max-width: 900px; margin: 0 auto; text-align: center; }
.px-hero h1 { font-size: clamp(24px, 3.4vw, 38px); margin: 12px 0 10px; }
.px-hero p { color: #a9bcdd; max-width: 640px; margin: 0 auto 18px; font-size: 14.5px; }
.px-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.px-badges span {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #d6e4ff;
}

.px-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0 18px; flex-wrap: wrap; }
.px-terms { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.px-term {
  border: 0; background: none; padding: 8px 18px; border-radius: 9px; font-size: 13.5px;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.2;
}
.px-term small { font-size: 10.5px; opacity: .7; }
.px-term.is-active { background: var(--brand); color: #fff; }
.px-term.is-active small { opacity: .85; }

.px-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.px-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.px-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.px-card.is-out { opacity: .62; }
.px-flag { font-size: 26px; line-height: 1; }
.px-name { display: flex; flex-direction: column; }
.px-name b { font-size: 15px; }
.px-name span { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.px-price { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.px-price small { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.px-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ok-dot, .out-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ok-dot { background: var(--ok); }
.out-dot { background: var(--danger); }
.px-card .btn { margin-top: 4px; }

.px-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 10px; }
.px-info .panel, .px-info > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.px-info h3 { font-size: 15px; margin-bottom: 8px; }
.px-info ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 6px; }

/* 代理凭证 */
.px-cred {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: var(--surface-2); margin-top: 10px;
}
.px-cred.is-pending { background: var(--surface); border-style: dashed; }
.px-cred-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.px-cred-head b { font-size: 13.5px; }
.px-exp { font-size: 12px; color: var(--ok); font-weight: 600; }
.px-exp.is-warn { color: var(--warn); }
.px-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.px-row span { color: var(--muted); min-width: 64px; }
.px-row code { flex: 1; overflow-wrap: anywhere; }
.px-cred-list { display: grid; gap: 12px; }
.px-cred-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.px-cred-card .px-row { border-top: 1px dashed var(--line); }
.stock-pill.is-out { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.proxy-fields { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.proxy-fields b { font-size: 13.5px; }

@media (max-width: 1024px) {
  .px-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-info { grid-template-columns: 1fr; }
  .px-card { padding: 14px 12px; }
  .px-price { font-size: 19px; }
}
/* 国家代码徽标（Windows 不渲染国旗 emoji，用代码更稳） */
.px-flag {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-soft), color-mix(in srgb, var(--accent) 18%, var(--surface)));
  color: var(--brand); font-weight: 800; font-size: 15px; letter-spacing: .05em;
}
/* ============================================================
   6.0 客户 / 代理明细 / 续费
   ============================================================ */
.px-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tbl form.inline input[type="date"] {
  padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 12px;
}
.tbl form.inline { gap: 4px; }
.btn-mini.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-mini.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
/* 页脚设置：文本域可读性 */
textarea[name="columns"] {
  width: 100%; line-height: 1.9; font-size: 13px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); min-height: 360px;
}
/* ============================================================
   7.0 客服悬浮框
   ============================================================ */
.sup-float {
  position: fixed; right: 24px; bottom: 26px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.sup-float.sup-left { left: 24px; right: auto; align-items: flex-start; }
.sup-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border: 0; border-radius: 999px; color: #fff; font-weight: 600; font-size: 13.5px;
  background: linear-gradient(140deg, var(--brand), var(--accent));
  box-shadow: 0 14px 30px -14px var(--brand);
}
.sup-toggle:hover { filter: brightness(1.05); }
.sup-toggle .sup-ico { font-size: 16px; }
.sup-panel {
  width: 300px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; box-shadow: var(--shadow-lg);
}
.sup-head { display: flex; align-items: center; justify-content: space-between; }
.sup-head b { font-size: 14.5px; }
.sup-close { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.sup-close:hover { color: var(--text); }
.sup-sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 12px; }
.sup-list { display: grid; gap: 8px; }
.sup-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); text-decoration: none; cursor: pointer;
}
.sup-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.sup-item .sup-ico { font-size: 17px; }
.sup-txt { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.sup-txt b { font-size: 13.5px; }
.sup-txt small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-copy { font-size: 11.5px; color: var(--brand); font-weight: 600; }
@media (max-width: 720px) {
  .sup-float { right: 14px; bottom: 16px; }
  .sup-panel { width: calc(100vw - 32px); }
  .sup-toggle-label { display: none; }
  .sup-toggle { padding: 12px; border-radius: 50%; }
}
/* 关闭悬浮按钮时，面板仍可通过页脚「联系客服」打开 */
.sup-float.sup-nofloat .sup-toggle { display: none; }
/* 客服渠道弹窗（QQ / 链接被拦截时的兜底） */
.sup-dialog {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  background: rgba(15, 23, 42, .45); padding: 20px;
}
.sup-dialog[hidden] { display: none; }
.sup-dialog-card {
  width: min(380px, 100%); background: var(--surface); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--shadow-lg);
}
.sup-dialog-head { display: flex; align-items: center; justify-content: space-between; }
.sup-dialog-head b { font-size: 15px; }
.sup-dialog-value {
  font-size: 17px; font-weight: 800; letter-spacing: .02em; margin: 10px 0 6px;
  word-break: break-all; color: var(--brand);
}
.sup-dialog-hint { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; }
.sup-dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sup-dialog { z-index: 999; background: rgba(15, 23, 42, .5); }
/* ============================================================
   8.0 首页（博客 + 导航站 + 新闻侧栏）
   ============================================================ */
.blog-hero {
  background: radial-gradient(1200px 500px at 20% -10%, rgba(59,130,246,.28), transparent 60%),
              radial-gradient(900px 400px at 90% 0%, rgba(168,85,247,.22), transparent 55%),
              #0b1220;
  color: #fff; padding: 54px 0 44px; margin-bottom: 28px;
}
.blog-hero-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.blog-hero h1 { font-size: 38px; line-height: 1.2; margin: 10px 0 12px; letter-spacing: -.02em; }
.blog-hero p { color: rgba(255,255,255,.72); font-size: 15px; max-width: 560px; }
.blog-hero .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #93c5fd; border: 1px solid rgba(147,197,253,.35); border-radius: 999px; padding: 5px 12px;
}
.hero-links { display: flex; gap: 10px; margin-top: 20px; }
.blog-hero-stats { display: flex; gap: 26px; }
.blog-hero-stats div { text-align: center; }
.blog-hero-stats b { display: block; font-size: 26px; }
.blog-hero-stats span { font-size: 12px; color: rgba(255,255,255,.6); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: 60px; }
.home-main { min-width: 0; }
.home-side { display: grid; gap: 16px; position: sticky; top: 88px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 14px; }
.sec-head h2 { font-size: 20px; letter-spacing: -.01em; }
.sec-head .link { font-size: 13px; color: var(--brand); }

.post-list { display: grid; gap: 14px; }
.post-card {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 14px; text-decoration: none; color: inherit; transition: .18s;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card.is-big { grid-template-columns: 260px minmax(0, 1fr); }
.post-cover { border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; min-height: 120px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-ph { font-size: 30px; font-weight: 800; color: var(--brand); opacity: .5; }
.post-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 2px 2px 2px 0; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.post-body h3 { font-size: 17px; line-height: 1.4; }
.post-card.is-big .post-body h3 { font-size: 21px; }
.post-body p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { margin-top: auto; font-size: 12.5px; color: var(--brand); font-weight: 600; }

.side-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.side-head b { font-size: 14.5px; }
.side-links { display: grid; gap: 8px; }
.side-links a { font-size: 13.5px; color: var(--text); text-decoration: none; padding: 7px 10px; border-radius: 9px; background: var(--surface-2); }
.side-links a:hover { color: var(--brand); }

.news-card { position: relative; }
.news-refresh {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; line-height: 1;
}
.news-refresh:hover { color: var(--brand); border-color: var(--brand); }
.news-refresh.is-busy { opacity: .5; pointer-events: none; }
.news-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.news-list li { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-list a { font-size: 13.5px; line-height: 1.5; color: var(--text); text-decoration: none; font-weight: 600; }
.news-list a:hover { color: var(--brand); }
.news-list p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 4px 0; }
.news-region {
  display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; font-weight: 600;
}
.news-meta { font-size: 11px; color: var(--muted); }
.news-empty { font-size: 13px; color: var(--muted); }
.news-foot { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.news-foot .danger { color: #ef4444; }

.nav-groups { display: grid; gap: 18px; }
.nav-group h3 { font-size: 15px; margin-bottom: 10px; }
.nav-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.nav-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: .16s;
}
.nav-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.nav-ico {
  width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--surface-2); font-size: 16px; flex: none; overflow: hidden;
}
.nav-ico img { width: 100%; height: 100%; object-fit: cover; }
.nav-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.nav-txt b { font-size: 13.5px; }
.nav-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-host { margin-left: auto; font-size: 10.5px; color: var(--muted); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.post-page { padding-top: 26px; }
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.post-page h1 { font-size: 30px; line-height: 1.3; margin-bottom: 10px; }
.post-cover-img { width: 100%; border-radius: 16px; margin: 16px 0 22px; display: block; }
.post-content { margin: 18px 0 26px; }
.post-content h2 { margin: 26px 0 10px; font-size: 20px; }
.post-content h3 { margin: 20px 0 8px; font-size: 17px; }
.post-content p { margin: 10px 0; line-height: 1.85; color: var(--text); }
.post-content ul { margin: 10px 0 10px 20px; }
.post-content li { line-height: 1.8; }
.post-content blockquote {
  margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--brand);
  background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--muted);
}
.post-content img { max-width: 100%; border-radius: 12px; }
.post-content code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.post-page .post-meta { margin-bottom: 6px; }

@media (max-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { position: static; }
}
@media (max-width: 640px) {
  .blog-hero h1 { font-size: 27px; }
  .post-card, .post-card.is-big { grid-template-columns: 1fr; }
  .post-cover { min-height: 160px; }
}

/* 后台：新闻列表 */
.news-admin-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.news-admin-list li { font-size: 13.5px; }
.news-admin-list a { font-weight: 600; color: var(--text); text-decoration: none; }
.news-admin-list a:hover { color: var(--brand); }
.news-admin-list .muted { font-size: 12.5px; margin: 3px 0; }
.news-admin-list small { color: var(--muted); }
.nav-cards { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
/* 首页搜索框（可切引擎） */
.hero-search {
  display: flex; gap: 8px; margin: 20px 0 16px; max-width: 560px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 6px;
}
.hero-search select {
  border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 10px;
  padding: 0 10px; font-size: 13px; outline: none; cursor: pointer;
}
.hero-search select option { color: #111; }
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #fff;
  padding: 11px 8px; font-size: 14px; outline: none;
}
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search .btn { white-space: nowrap; }

/* 导航分类 chips */
.nav-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-n {
  display: inline-block; margin-left: 6px; font-size: 10.5px; padding: 0 5px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.chip.is-active .chip-n { background: var(--brand-soft); color: var(--brand); }
.nav-go { margin-left: auto; color: var(--muted); font-size: 14px; }
.nav-card:hover .nav-go { color: var(--brand); }

/* 站点介绍页 */
.nav-detail-card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  padding: 24px; margin-bottom: 26px;
}
.nav-detail-head { display: flex; gap: 14px; align-items: center; }
.nav-ico-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 28px; }
.nav-detail-title h1 { font-size: 26px; margin: 0 0 4px; }
.nav-detail-desc { color: var(--muted); margin: 14px 0 6px; font-size: 14px; }
.nav-detail-body { margin: 10px 0 4px; }
.nav-detail-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.home-section { margin-bottom: 30px; }
/* 分类管理列表 */
.cat-list { display: grid; gap: 8px; }
.cat-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2);
}
.cat-form { display: flex; align-items: center; gap: 8px; }
.cat-name { width: 180px; }
.cat-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cat-sort input { width: 74px; }
.cat-count { font-size: 12.5px; color: var(--muted); }
.cat-act { margin-left: auto; }
/* ============================================================
   9.0 门户导航风格首页
   ============================================================ */
.portal-hero {
  position: relative; overflow: hidden; padding: 34px 0 86px;
  background:
    radial-gradient(900px 420px at 15% 0%, #a855f7 0%, transparent 60%),
    radial-gradient(900px 460px at 85% 10%, #6366f1 0%, transparent 62%),
    linear-gradient(135deg, #7c3aed 0%, #c026d3 45%, #4f46e5 100%);
}
.portal-glow {
  position: absolute; inset: -40% -10% auto -10%; height: 520px;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent 70%);
  filter: blur(30px); opacity: .5; pointer-events: none;
}
.portal-hero-in { position: relative; z-index: 1; text-align: center; color: #fff; }
.portal-tabs { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.portal-tab {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: 14.5px; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.portal-tab:hover, .portal-tab.is-active { color: #fff; border-bottom-color: #fff; font-weight: 600; }

.portal-search {
  display: flex; align-items: center; gap: 8px; margin: 0 auto; max-width: 760px;
  background: #fff; border-radius: 14px; padding: 8px 8px 8px 14px;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .55);
}
.portal-search select {
  border: 0; background: #f1f5f9; color: #334155; border-radius: 9px;
  padding: 10px 8px; font-size: 13px; outline: none; cursor: pointer;
}
.portal-search input {
  flex: 1; min-width: 0; border: 0; outline: none; font-size: 15px; color: #0f172a;
  padding: 12px 6px; background: transparent;
}
.portal-search input::placeholder { color: #94a3b8; }
.portal-search-btn {
  width: 46px; height: 44px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; font-size: 17px;
}
.portal-search-btn:hover { filter: brightness(1.06); }
.portal-quick { display: flex; gap: 18px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.portal-quick a { color: rgba(255,255,255,.85); font-size: 13px; text-decoration: none; }
.portal-quick a:hover { color: #fff; text-decoration: underline; }

.portal-hot {
  position: relative; z-index: 2; margin-top: -48px; margin-bottom: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 50px -34px rgba(15, 23, 42, .45);
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap;
}
.hot-label { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.hot-list { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.hot-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; background: var(--surface-2); color: var(--text);
  font-size: 12.5px; text-decoration: none; border: 1px solid transparent;
}
.hot-chip:hover { border-color: var(--brand); color: var(--brand); }
.hot-ico { font-size: 14px; }
.hot-join { font-size: 12.5px; color: var(--brand); text-decoration: none; white-space: nowrap; }

.portal-layout {
  display: grid; grid-template-columns: 204px minmax(0, 1fr) 316px;
  gap: 26px; align-items: start; padding-bottom: 56px;
}
.portal-side { position: sticky; top: 84px; }
.portal-side-title { font-size: 12px; color: var(--muted); letter-spacing: .08em; margin: 0 0 10px 4px; }
.portal-side-nav { display: grid; gap: 2px; }
.portal-side-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 13.5px;
}
.portal-side-item em { font-style: normal; font-size: 11px; color: var(--muted); }
.portal-side-item:hover { background: var(--surface-2); color: var(--brand); }
.portal-side-item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.portal-side-stats {
  margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--surface-2);
  display: grid; gap: 8px;
}
.portal-side-stats div { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.portal-side-stats b { color: var(--text); font-size: 13px; }

.portal-main { min-width: 0; }
.portal-main-head { margin-bottom: 18px; }
.portal-main-head h1 { font-size: 24px; letter-spacing: -.01em; margin-bottom: 6px; }
.portal-main-head p { color: var(--muted); font-size: 13.5px; }
.portal-section { margin-bottom: 26px; }
.portal-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.portal-section-head h2 { font-size: 17px; }
.portal-section-head .muted { font-size: 12px; }
.portal-section-head .more { margin-left: auto; font-size: 12px; color: var(--muted); text-decoration: none; }
.portal-section-head .more:hover { color: var(--brand); }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 10px; }
.site-card {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px;
  text-decoration: none; color: inherit; transition: .16s; min-width: 0;
}
.site-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.site-ico {
  width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); font-size: 19px; overflow: hidden;
}
.site-ico img { width: 100%; height: 100%; object-fit: cover; }
.site-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.site-body b { font-size: 13.5px; }
.site-body small {
  font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-tags { display: flex; gap: 5px; margin-top: 3px; }
.site-tags i { font-style: normal; font-size: 10px; color: var(--brand); background: var(--brand-soft); padding: 1px 6px; border-radius: 999px; }
.site-arrow { color: var(--muted); font-size: 13px; }
.site-card:hover .site-arrow { color: var(--brand); }
.portal-more { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--brand); text-decoration: none; }

.portal-rail { display: grid; gap: 14px; position: sticky; top: 84px; }
.rail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.rail-head b { font-size: 13.5px; }
.rail-head .muted, .rail-note { font-size: 11px; color: var(--muted); }
.rail-big { font-size: 30px; font-weight: 800; line-height: 1; color: var(--brand); }
.rail-big span { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.rail-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: center; }
.rail-mini div { background: var(--surface-2); border-radius: 9px; padding: 8px 4px; display: grid; gap: 2px; }
.rail-mini b { font-size: 14px; }
.rail-mini span { font-size: 10.5px; color: var(--muted); }
.rail-rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rail-rates li { display: flex; justify-content: space-between; font-size: 12.5px; }
.rail-rates b { font-variant-numeric: tabular-nums; }
.rail-note { margin: 10px 0 0; }
.rail-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rail-links-grid a {
  font-size: 12.5px; color: var(--text); text-decoration: none; padding: 8px 10px;
  background: var(--surface-2); border-radius: 8px; text-align: center;
}
.rail-links-grid a:hover { color: var(--brand); }

@media (max-width: 1200px) {
  .portal-layout { grid-template-columns: 180px minmax(0, 1fr); }
  .portal-rail { grid-column: 1 / -1; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .portal-layout { grid-template-columns: minmax(0, 1fr); }
  .portal-side { position: static; }
  .portal-side-nav { grid-template-columns: repeat(2, 1fr); }
  .portal-rail { grid-template-columns: 1fr; }
  .portal-hero { padding-bottom: 70px; }
  .portal-search { flex-wrap: wrap; }
  .portal-search input { width: 100%; }
}
/* 首页隐藏头部重复的商城搜索框，避免两个搜索框 */
.home-portal .hdr .search { display: none !important; }
.portal-grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); }
.portal-more { margin: 4px 0 22px; }
.portal-hero {
  background:
    radial-gradient(900px 420px at 12% 0%, #e879f9 0%, transparent 58%),
    radial-gradient(760px 380px at 88% 6%, #818cf8 0%, transparent 60%),
    linear-gradient(135deg, #a21caf 0%, #c026d3 42%, #4f46e5 100%);
}
/* ============================================================
   9.1 首页加宽 / 更大气
   ============================================================ */
.home-portal .wrap { max-width: 1420px; padding: 0 30px; }
.home-portal .hdr-in { max-width: 1420px; padding: 14px 30px; }
.home-portal .ftr-in { max-width: 1420px; }

.home-portal .portal-hero { padding: 46px 0 104px; }
.home-portal .portal-tabs { gap: 34px; margin-bottom: 30px; }
.home-portal .portal-tab { font-size: 15.5px; }
.home-portal .portal-search { max-width: 880px; padding: 10px 10px 10px 18px; border-radius: 16px; }
.home-portal .portal-search input { font-size: 16px; padding: 14px 10px; }
.home-portal .portal-search select { padding: 12px 10px; font-size: 13.5px; }
.home-portal .portal-search-btn { width: 52px; height: 50px; font-size: 18px; border-radius: 12px; }
.home-portal .portal-quick { margin-top: 20px; gap: 24px; }
.home-portal .portal-quick a { font-size: 13.5px; }

.home-portal .portal-hot { margin-top: -56px; padding: 18px 22px; gap: 18px; border-radius: 18px; }
.home-portal .hot-chip { padding: 8px 14px; font-size: 13px; }
.home-portal .hot-label { font-size: 14px; }
.home-portal .hot-join { font-size: 13px; }

.home-portal .portal-layout { grid-template-columns: 218px minmax(0, 1fr) 344px; gap: 34px; padding-bottom: 72px; }
.home-portal .portal-side-item { padding: 11px 14px; font-size: 14px; }
.home-portal .portal-side-stats { padding: 14px; }

.home-portal .portal-main-head { margin-bottom: 24px; }
.home-portal .portal-main-head h1 { font-size: 30px; margin-bottom: 8px; }
.home-portal .portal-main-head p { font-size: 14.5px; }

.home-portal .portal-section { margin-bottom: 34px; }
.home-portal .portal-section-head { margin-bottom: 14px; }
.home-portal .portal-section-head h2 { font-size: 19px; }

.home-portal .portal-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.home-portal .site-card { padding: 16px; border-radius: 15px; gap: 13px; }
.home-portal .site-ico { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.home-portal .site-body b { font-size: 14.5px; }
.home-portal .site-body small { font-size: 12px; }

.home-portal .rail-card { padding: 18px; border-radius: 16px; }
.home-portal .rail-head b { font-size: 14.5px; }

@media (max-width: 1280px) {
  .home-portal .portal-layout { grid-template-columns: 200px minmax(0, 1fr) 310px; gap: 26px; }
}
@media (max-width: 1120px) {
  .home-portal .portal-layout { grid-template-columns: 196px minmax(0, 1fr); }
  .home-portal .portal-rail { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
}
@media (max-width: 860px) {
  .home-portal .wrap { padding: 0 18px; }
  .home-portal .portal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-portal .portal-rail { grid-template-columns: 1fr; }
  .home-portal .portal-main-head h1 { font-size: 24px; }
}
/* 站点网格三列 + 分区标题装饰 */
.home-portal .portal-grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
.home-portal .portal-section-head h2 {
  position: relative; padding-left: 12px;
}
.home-portal .portal-section-head h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), #a855f7);
}
.home-portal .portal-main-head h1 { position: relative; padding-left: 14px; }
.home-portal .portal-main-head h1::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 6px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, #a855f7, var(--brand));
}
.home-portal .portal-main-head { padding-left: 0; }
@media (max-width: 860px) {
  .home-portal .portal-grid { grid-template-columns: 1fr; }
}
.home-portal .portal-grid { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
/* 大屏再宽一点 */
.home-portal .wrap, .home-portal .hdr-in, .home-portal .ftr-in { max-width: 1500px; }
.home-portal .portal-layout { grid-template-columns: 224px minmax(0, 1fr) 352px; gap: 36px; }
/* 卡片按主内容宽度自适应，避免右侧留空 */
.home-portal .portal-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
/* 站点卡片信息更丰富 */
.home-portal .site-body b { display: flex; align-items: center; gap: 7px; }
.home-portal .site-tag {
  font-style: normal; font-size: 10px; font-weight: 500; padding: 1px 7px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.home-portal .site-side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.home-portal .site-side em { font-style: normal; font-size: 11px; color: var(--muted); }
.home-portal .site-card { padding: 15px 16px; }
/* 响应式收尾（必须放在所有 .home-portal 布局规则之后） */
@media (max-width: 1280px) {
  .home-portal .portal-layout { grid-template-columns: 200px minmax(0, 1fr) 310px; gap: 26px; }
}
@media (max-width: 1120px) {
  .home-portal .portal-layout { grid-template-columns: 196px minmax(0, 1fr); }
  .home-portal .portal-rail { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
}
@media (max-width: 860px) {
  .home-portal .wrap { padding: 0 18px; }
  .home-portal .portal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-portal .portal-side, .home-portal .portal-rail { position: static; }
  .home-portal .portal-side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-portal .portal-rail { grid-template-columns: 1fr; }
  .home-portal .portal-grid { grid-template-columns: 1fr; }
  .home-portal .portal-main-head h1 { font-size: 24px; }
  .home-portal .site-side em { display: none; }
}
/* ============================================================
   9.2 搜索框引擎选择器 + 文章卡片统一
   ============================================================ */
.engine-pick { position: relative; flex: none; }
.engine-select {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0;
}
.engine-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid #e2e8f0; background: #f8fafc; color: #334155;
  border-radius: 10px; padding: 11px 13px; font-size: 13.5px; font-weight: 600;
  transition: .16s; min-width: 108px; justify-content: space-between;
}
.engine-btn:hover { border-color: #cbd5e1; background: #fff; }
.engine-pick.is-open .engine-btn { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .16); background: #fff; }
.engine-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #64748b; transition: transform .16s;
}
.engine-pick.is-open .engine-caret { transform: rotate(180deg); }
.engine-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 168px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px;
  box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .45);
  display: grid; gap: 2px;
}
.engine-menu[hidden] { display: none; }
.engine-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 0; background: transparent; color: #334155; font-size: 13.5px;
  padding: 9px 11px; border-radius: 8px; cursor: pointer; text-align: left; width: 100%;
}
.engine-item:hover { background: #f1f5f9; color: #0f172a; }
.engine-item.is-active { background: #eef2ff; color: #4f46e5; font-weight: 600; }
.engine-tick { opacity: 0; font-style: normal; font-size: 12px; }
.engine-item.is-active .engine-tick { opacity: 1; }

/* 文章卡片统一尺寸 */
.home-portal .post-list, .page .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.post-cover { width: 150px; height: 104px; min-height: 0; align-self: center; }
.post-body { justify-content: center; gap: 6px; }
.post-body h3 { font-size: 16px; }
.post-card.is-big { grid-template-columns: 150px minmax(0, 1fr); }
.post-card.is-big .post-body h3 { font-size: 16px; }
@media (max-width: 1024px) {
  .home-portal .post-list, .page .post-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .post-card, .post-card.is-big { grid-template-columns: 112px minmax(0, 1fr); }
  .post-cover { width: 112px; height: 84px; }
}
/* 文章卡片改为竖向统一卡片 */
.home-portal .post-list, .page .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.post-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  grid-template-columns: none; height: 100%;
}
.post-card .post-cover {
  width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; min-height: 0;
  display: grid; place-items: center; background: var(--surface-2);
}
.post-card .post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-ph { font-size: 34px; }
.post-card .post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.post-card .post-body h3 {
  font-size: 16px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .post-more { margin-top: auto; }
.post-card.is-big { grid-template-columns: none; display: flex; }

/* 首页商品网格 3 列，避免过窄 */
.home-portal .grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }

@media (max-width: 1024px) {
  .home-portal .post-list, .page .post-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .post-card { grid-template-columns: none; }
  .post-card .post-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
/* 列表页封面别太高 */
.post-card .post-cover { max-height: 210px; }
.post-card .post-cover img { height: 100%; object-fit: cover; }
/* 页脚底部自定义版权行 */
.ftr-btm { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ftr-icp { font-size: 11.5px; color: var(--muted); }
.ftr-icp::before { content: '·'; margin-right: 10px; color: var(--line); }
/* 导航分组展开 */
.site-card.is-extra { display: none; }
.portal-section.is-expanded .site-card.is-extra { display: flex; }
.portal-more-row { display: flex; align-items: center; gap: 16px; margin: 6px 0 24px; flex-wrap: wrap; }
button.portal-more, button.nav-expand {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--brand); font-size: 13px; font-family: inherit;
}
button.portal-more:hover, button.nav-expand:hover { text-decoration: underline; }
button.nav-expand.is-open { color: var(--muted); }
/* 站点卡片：不显示网址，一行三个 */
.home-portal .portal-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.home-portal .site-side em { display: none; }
.home-portal .site-body b { font-size: 14px; }
.home-portal .site-body small { font-size: 11.5px; }
.home-portal .site-card { padding: 14px; }

/* 介绍页：更详细的排版 */
.nav-detail-tags { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.nav-detail-tags .tag {
  font-size: 11px; padding: 2px 9px; border-radius: 999px; text-decoration: none;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.nav-detail-body h2 { margin: 22px 0 8px; font-size: 18px; }
.nav-detail-body h2:first-child { margin-top: 4px; }
.nav-detail-body p { color: var(--text); line-height: 1.85; }
.nav-detail-info {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 22px 0 6px; padding-top: 18px; border-top: 1px dashed var(--line);
}
.nav-detail-info div { display: flex; flex-direction: column; gap: 3px; }
.nav-detail-info span { font-size: 11.5px; color: var(--muted); }
.nav-detail-info b { font-size: 13px; word-break: break-all; }
@media (max-width: 640px) {
  .nav-detail-info { grid-template-columns: 1fr; }
}
/* 分类原地切换 */
.portal-section.is-hidden, .nav-group.is-hidden { display: none; }
.portal-section { animation: navFade .18s ease; }
@keyframes navFade { from { opacity: .35; } to { opacity: 1; } }
/* ============================================================
   10.0 首页：浅蓝官方 · 居中版
   ============================================================ */
.home-portal { background: #fff; }
.home-portal .wrap { max-width: 1200px; padding: 0 30px; }
.home-portal .hdr-in, .home-portal .ftr-in { max-width: 1200px; }

.m-hero {
  position: relative; text-align: center; padding: 76px 0 64px;
  background:
    radial-gradient(900px 420px at 50% -20%, #e6efff 0%, transparent 62%),
    radial-gradient(600px 320px at 88% 10%, #f1e9ff 0%, transparent 60%),
    linear-gradient(180deg, #f7faff, #fff);
}
.m-eyebrow { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: #8ea0bb; }
.m-hero h1 { font-size: 54px; line-height: 1.2; letter-spacing: -.04em; margin: 20px auto 18px; font-weight: 700; max-width: 860px; }
.m-hero h1 span { color: #1d4ed8; }
.m-hero p { color: #6b7688; font-size: 15.5px; line-height: 1.75; max-width: 620px; margin: 0 auto 34px; }

.m-sf {
  display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto;
  background: #fff; border: 1px solid #dfe6f2; border-radius: 999px; padding: 7px 7px 7px 18px;
  box-shadow: 0 24px 50px -34px rgba(29, 78, 216, .45); text-align: left;
}
.m-sf .engine-pick { flex: none; }
.m-engine {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 0; background: transparent;
  font-size: 12.5px; color: #55627a; font-weight: 600; padding: 6px 2px;
}
.m-sep { width: 1px; height: 22px; background: #eaeff7; flex: none; }
.m-sf input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; padding: 9px 2px; color: #0d1526; }
.m-sf input::placeholder { color: #9aa6b8; }
.m-go { border: 0; border-radius: 999px; background: #1d4ed8; color: #fff; padding: 11px 22px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.m-go:hover { background: #1740b6; }

.m-stats { display: flex; justify-content: center; gap: 64px; margin-top: 42px; flex-wrap: wrap; }
.m-stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.m-stats span { font-size: 11.5px; color: #8ea0bb; }

.m-tabs {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  border-bottom: 1px solid #e8ecf4; padding-top: 6px;
}
.m-tab { padding: 18px 0 13px; font-size: 13px; color: #6b7688; border-bottom: 2px solid transparent; text-decoration: none; }
.m-tab:hover { color: #0d1526; }
.m-tab.is-active { color: #0d1526; font-weight: 600; border-bottom-color: #1d4ed8; }

.m-sec { padding: 46px 0 0; }
.m-sec-head { text-align: center; margin-bottom: 26px; }
.m-sec-head h2 { font-size: 27px; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.m-sec-head p { color: #8ea0bb; font-size: 12.5px; margin: 7px 0 0; }
.m-sec-head .m-more { color: #1d4ed8; text-decoration: none; }
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1060px; margin: 0 auto; }

.hn-portal .site-card, .home-portal .site-card {
  display: flex; align-items: center; gap: 12px; border: 1px solid #e8ecf4; border-radius: 14px;
  padding: 15px 16px; background: #fff; text-decoration: none; color: inherit; transition: .16s; min-width: 0;
}
.home-portal .site-card:hover { border-color: #bfd0f5; box-shadow: 0 22px 44px -34px rgba(29, 78, 216, .5); transform: translateY(-2px); }
.home-portal .site-ico { width: 38px; height: 38px; border-radius: 11px; background: #f4f7fd; display: grid; place-items: center; font-size: 18px; flex: none; }
.home-portal .site-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.home-portal .site-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.home-portal .site-body b { font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.home-portal .site-tag { font-style: normal; font-size: 10px; color: #5f6d85; background: #f3f5fa; border-radius: 999px; padding: 2px 8px; font-weight: 500; }
.home-portal .site-body small { color: #8b96a8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-portal .site-arrow { color: #c6cfdd; font-size: 12px; }

.m-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }

.m-band { background: #f7f9fd; border-top: 1px solid #e8ecf4; margin-top: 56px; padding: 48px 0 58px; }
.m-band-in { display: flex; justify-content: center; gap: 90px; flex-wrap: wrap; }
.m-band-col { max-width: 360px; }
.m-band-col h3 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8ea0bb; margin: 0 0 16px; }
.m-news { display: grid; gap: 3px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #e6ebf5; }
.m-news span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #1d4ed8; }
.m-news b { font-size: 13px; font-weight: 600; line-height: 1.5; }
.m-news small { font-size: 10.5px; color: #8ea0bb; }
.m-band-more { display: inline-block; margin-top: 10px; font-size: 12.5px; color: #1d4ed8; text-decoration: none; }
.m-rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 12.5px; color: #6b7688; }
.m-rates li { display: flex; justify-content: space-between; gap: 30px; }
.m-rates b { color: #0d1526; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .m-hero h1 { font-size: 36px; }
  .m-hero { padding: 52px 0 44px; }
  .m-stats { gap: 32px; }
  .m-grid { grid-template-columns: 1fr; }
  .m-posts { grid-template-columns: 1fr; }
  .m-band-in { gap: 36px; }
  .m-sf { flex-wrap: wrap; border-radius: 16px; padding: 10px; }
  .m-sf input { width: 100%; flex: 1 1 100%; }
}
.m-sec.is-hidden { display: none; }
.m-news-refresh {
  border: 1px solid #e2e8f4; background: #fff; color: #8ea0bb; cursor: pointer;
  width: 22px; height: 22px; border-radius: 6px; line-height: 1; font-size: 12px; margin-left: 6px;
}
.m-news-refresh:hover { color: #1d4ed8; border-color: #bfd0f5; }
/* 首页文章卡片收敛尺寸 */
.m-posts .post-card .post-cover { max-height: 150px; aspect-ratio: auto; height: 150px; }
.m-posts .post-card .post-body { padding: 12px 14px 14px; }
.m-posts .post-card .post-body h3 { font-size: 15px; }
.m-tabs { margin-top: 4px; }
/* 移动端搜索与分类条修正 */
@media (max-width: 900px) {
  .m-sf { flex-wrap: nowrap; border-radius: 14px; padding: 8px 8px 8px 14px; gap: 8px; }
  .m-sf .m-sep { display: none; }
  .m-sf input { flex: 1 1 auto; width: auto; font-size: 14px; padding: 6px 2px; }
  .m-go { padding: 10px 16px; font-size: 13px; flex: none; }
  .m-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 20px; padding: 0 2px; -webkit-overflow-scrolling: touch; }
  .m-tabs::-webkit-scrollbar { display: none; }
  .m-tab { flex: none; padding: 14px 0 11px; }
}
/* 首页：居中容器 + 主区热门 + 右侧新闻 */
.m-layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 34px; align-items: start; padding-top: 8px; padding-bottom: 60px; }
.m-main { min-width: 0; }
.m-rail { position: sticky; top: 84px; display: grid; gap: 14px; }
.rail-card { border: 1px solid #e8ecf4; border-radius: 16px; padding: 18px; background: #fff; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.rail-head b { font-size: 13.5px; }
.rail-head span { font-size: 10.5px; color: #8ea0bb; }
.rail-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rail-news li { display: grid; gap: 2px; padding-bottom: 11px; border-bottom: 1px solid #eef1f7; }
.rail-news li:last-child { border-bottom: 0; padding-bottom: 0; }
.rail-news span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #1d4ed8; }
.rail-news b { font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.rail-news b a { color: inherit; text-decoration: none; }
.rail-news b a:hover { color: #1d4ed8; }
.rail-news small { font-size: 10.5px; color: #8ea0bb; }
.rail-err { margin: 10px 0 0; font-size: 11px; color: #ef4444; }
.rail-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rail-links a { font-size: 12.5px; color: #334155; text-decoration: none; background: #f6f8fc; border-radius: 9px; padding: 8px 10px; text-align: center; }
.rail-links a:hover { color: #1d4ed8; background: #eef3ff; }
.m-layout .m-tabs { justify-content: center; }
.m-layout .m-sec { padding-top: 30px; }
.m-layout .m-grid { max-width: none; }

@media (max-width: 1020px) {
  .m-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .m-rail { position: static; }
}
.m-tabs { border-bottom: 1px solid #e8ecf4; }
.m-layout .m-tabs { display: none; }
/* ============================================================
   11.0 P1 官方蓝：按定稿收紧
   ============================================================ */
.home-portal .m-hero { padding: 52px 0 30px; background: linear-gradient(180deg, #f6f9ff, #fff); }
.home-portal .m-eyebrow { font-size: 11px; letter-spacing: .22em; color: #8b9ab3; }
.home-portal .m-hero h1 { font-size: 40px; line-height: 1.25; letter-spacing: -.03em; margin: 14px auto 12px; font-weight: 700; }
.home-portal .m-hero p { font-size: 14.5px; margin: 0 auto 24px; max-width: 560px; }
.home-portal .m-sf { max-width: 600px; border-radius: 12px; padding: 6px; border-color: #dde5f2; box-shadow: 0 16px 36px -30px rgba(16, 40, 90, .6); }
.home-portal .m-sf input { font-size: 14px; padding: 9px 8px; }
.home-portal .m-go { border-radius: 8px; padding: 9px 18px; font-size: 12.5px; }
.home-portal .m-engine { font-size: 12px; padding: 4px 2px; }

.home-portal .m-stats { display: flex; justify-content: center; gap: 56px; margin-top: 26px; font-size: 12px; color: #8b9ab3; }
.home-portal .m-stats div { display: flex; align-items: baseline; gap: 6px; }
.home-portal .m-stats b { font-size: 19px; color: #0c1322; font-weight: 700; display: inline; letter-spacing: -.02em; }
.home-portal .m-stats span { font-size: 12px; color: #8b9ab3; }

.home-portal .m-tabs { margin-top: 14px; gap: 22px; font-size: 13px; }
.home-portal .m-tab { padding: 15px 0 12px; }
.home-portal .m-tab.is-active { border-bottom-color: #1d4ed8; font-weight: 600; }

.m-layout { grid-template-columns: minmax(0, 1fr) 318px; gap: 30px; padding-top: 26px; }
.m-layout .m-sec { padding-top: 0; }
.m-layout .m-sec-head { text-align: left; display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.m-layout .m-sec-head h2 { font-size: 19px; letter-spacing: -.02em; }
.m-layout .m-sec-head p { margin: 0; font-size: 12px; color: #69748a; }
.m-layout .m-sec-head p:last-child { margin-left: auto; }
.m-layout .m-sec-head p a { color: #1d4ed8; }

.home-portal .m-grid { gap: 12px; }
.home-portal .site-card { padding: 13px; border-radius: 12px; gap: 11px; border-color: #e7ebf3; }
.home-portal .site-ico { width: 36px; height: 36px; border-radius: 9px; font-size: 17px; }
.home-portal .site-body b { font-size: 13px; }
.home-portal .site-tag { font-size: 9.5px; padding: 1px 7px; }
.home-portal .site-body small { font-size: 11.5px; }
.home-portal .site-arrow { font-size: 12px; color: #c9d2e0; }

.m-rail .rail-card { padding: 16px; border-radius: 14px; }
.m-rail .rail-head b { font-size: 13px; }
.m-rail .rail-head span { font-size: 10.5px; }
.m-layout { padding-bottom: 54px; }
.m-layout .m-sec-head { display: flex; align-items: baseline; gap: 9px; text-align: left; margin-bottom: 14px; }
.m-layout .m-sec-head h2 { font-size: 19px; letter-spacing: -.02em; }
.m-layout .m-sec-head .m-n { font-size: 12px; color: #69748a; }
.m-layout .m-sec-head .m-more { margin-left: auto; font-size: 12px; color: #1d4ed8; text-decoration: none; }
.m-layout { margin-top: 30px; }
.m-layout #latest { margin-top: 34px; }
/* 移动端：单列（必须放在所有 .m-layout 定义之后） */
@media (max-width: 1020px) {
  .m-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .m-rail { position: static; }
}
@media (max-width: 640px) {
  .home-portal .m-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; justify-items: center; }
  .m-layout { margin-top: 20px; }
}
/* ============================================================
   12.0 后台概览：访问分析
   ============================================================ */
.stats-traffic .stat b { font-size: 24px; }
.dash-cols { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.dash-chart { width: 100%; height: auto; display: block; }
.dash-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #7b8496; }
.dash-legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.dash-legend i.pv { background: #2563eb; }
.dash-legend i.uv { background: #a855f7; margin-left: 8px; }
.dash-bars { display: grid; gap: 10px; }
.dash-bar { display: grid; grid-template-columns: minmax(0, 1fr) 92px 34px; gap: 8px; align-items: center; font-size: 12px; }
.dash-bar .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #475569; }
.dash-bar .track { height: 6px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.dash-bar .track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #a855f7); }
.dash-bar .v { text-align: right; color: #0f172a; font-variant-numeric: tabular-nums; }
.dash-tbl td, .dash-tbl th { font-size: 12.5px; }
@media (max-width: 1100px) {
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
}
/* 客户数据迷你卡 */
.dash-mini { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dash-mini div { background: #f7f9fc; border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.dash-mini span { font-size: 11.5px; color: #7b8496; }
.dash-mini b { font-size: 19px; letter-spacing: -.02em; }
@media (max-width: 1100px) { .dash-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ============================================================
   13.0 后台看板：方案 A
   ============================================================ */
.dash-range { display: inline-flex; gap: 4px; background: #fff; border: 1px solid #e6eaf2; border-radius: 9px; padding: 3px; }
.dash-range a { font-size: 12px; padding: 5px 12px; border-radius: 7px; color: #64748b; text-decoration: none; }
.dash-range a.is-on { background: #111827; color: #fff; font-weight: 600; }

.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 12px; }
.dash-kpi { position: relative; background: #fff; border: 1px solid #e9edf5; border-radius: 14px; padding: 15px 16px 12px; overflow: hidden; }
.dash-kpi-label { font-size: 11.5px; color: #8a94a6; }
.dash-kpi-value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.dash-kpi-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dash-delta { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: #eef7ee; color: #15803d; font-weight: 600; }
.dash-delta.down { background: #fef2f2; color: #b91c1c; }
.dash-spark { position: absolute; right: 12px; bottom: 10px; width: 110px; height: 32px; opacity: .9; }

.dash-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; align-items: stretch; }
.dash-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }

.dash-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #7b8496; }
.dash-legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.dash-legend i.pv { background: #2563eb; }
.dash-legend i.uv { background: #a855f7; margin-left: 8px; }

.dash-donut { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.dash-donut svg { width: 138px; height: 138px; flex: none; }
.dash-legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.dash-legend-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 12px; }
.dash-legend-list i { width: 8px; height: 8px; border-radius: 3px; }
.dash-legend-list span { color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-legend-list b { font-variant-numeric: tabular-nums; }
.dash-legend-list em { font-style: normal; font-size: 11px; color: #94a3b8; }

@media (max-width: 1180px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row { grid-template-columns: minmax(0, 1fr); }
  .dash-row-3 { grid-template-columns: minmax(0, 1fr); }
}
.dash-kpi { padding-bottom: 16px; }
.dash-kpi-value { padding-right: 104px; }
.dash-kpi-foot { padding-right: 104px; flex-wrap: wrap; }
.dash-spark { top: 46px; right: 12px; bottom: auto; width: 96px; height: 30px; }
.dash-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-mini div { min-width: 0; }
.dash-mini span { white-space: nowrap; }
@media (max-width: 1180px) { .dash-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rail-src { margin-left: 8px; font-size: 10.5px; color: #1d4ed8; text-decoration: none; white-space: nowrap; }
.rail-src:hover { text-decoration: underline; }
.rail-news b a { border-bottom: 1px solid transparent; }
.rail-news b a:hover { border-bottom-color: #c7d2fe; }
/* 文件库存 */
.stock-file-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.stock-file-pick input { display: block; margin-top: 6px; }
.stock-file-status { font-size: 12px; color: #7b8496; padding-bottom: 4px; }
.dl-list { display: grid; gap: 8px; margin-top: 10px; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; background: var(--surface); }
.dl-row:hover { border-color: var(--brand); }
.dl-ico { font-size: 16px; }
.dl-name { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-size { font-size: 11px; color: #94a3b8; }
.dl-go { font-size: 12px; color: var(--brand); font-weight: 600; white-space: nowrap; }
/* 文件库存表单排整齐 */
.stock-file-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #6b7280; }
.stock-file-form > .stock-file-status { align-self: center; }
.stock-file-form .sff { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #6b7280; }
.stock-file-form .sff select { min-width: 160px; }

/* 库存明细 */
.stock-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stock-filter select,
.stock-filter input[type='search'] { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; font-size: 12.5px; color: var(--ink); }
.stock-filter input[type='search'] { width: 220px; }
.stock-tbl td { font-size: 12.5px; }
.stock-content code { font-size: 12px; background: #f6f8fc; padding: 2px 6px; border-radius: 5px; }
.stock-ops { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.stock-ops form { display: inline; }
.btn.danger { color: #b91c1c; border-color: #fecaca; background: #fff; }
.btn.danger:hover { background: #fef2f2; }
.stock-pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding-top: 14px; }
.status.warn { background: #fffbeb; color: #b45309; }
/* 库存多选 */
.stock-tbl th.pick,
.stock-tbl td.pick { width: 34px; text-align: center; padding-right: 0; }
.stock-tbl input[type='checkbox'] { width: 15px; height: 15px; accent-color: #2563eb; cursor: pointer; }
.stock-tbl input[type='checkbox'][disabled] { opacity: .35; cursor: not-allowed; }
.stock-bulk { display: flex; align-items: center; gap: 10px; padding: 10px 0 4px; font-size: 12.5px; color: #475569; }
.stock-bulk b { color: #0f172a; }
.stock-bulk[hidden] { display: none; }
.btn.btn-danger { color: #b91c1c; border-color: #fecaca; background: #fff; }
.btn.btn-danger:hover { background: #fef2f2; }
/* 汇率 */
.m-rates-note { margin: 8px 0 0; font-size: 10.5px; color: #9aa4b8; line-height: 1.5; }
.rate-live { display: grid; gap: 10px; }
.rate-status { display: flex; flex-direction: column; gap: 2px; }
.rate-status b { font-size: 13px; }
.rate-status .muted { font-size: 12px; }
/* ============================================================
   14.0 首页商品区（热门网址下方、文章上方）
   ============================================================ */
.m-products { margin-top: 34px; }
.m-prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.m-prod { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit;
  transition: border-color .16s, box-shadow .16s, transform .16s; }
.m-prod:hover { border-color: #c7d2fe; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); transform: translateY(-1px); }
.m-prod-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 20px; background: #f2f5fb; border-radius: 12px; }
.m-prod-main { min-width: 0; display: grid; gap: 5px; }
.m-prod-main b { font-size: 14px; line-height: 1.35; }
.m-prod-main small { font-size: 12px; color: #7b8496; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-prod-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.m-prod-foot em { font-style: normal; font-weight: 700; color: #1d4ed8; font-size: 15px; }
.m-prod-foot s { color: #9aa4b8; font-size: 11px; }
.m-prod-foot i { margin-left: auto; font-style: normal; font-size: 10.5px; color: #15803d; background: #eef7ee; padding: 2px 7px; border-radius: 999px; }
.m-prod-foot i.out { color: #b91c1c; background: #fef2f2; }
.m-prod-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; background: #eef2ff; color: #3730a3; padding: 2px 7px; border-radius: 999px; }
@media (max-width: 1100px) { .m-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .m-prod-grid { grid-template-columns: minmax(0, 1fr); } }
.m-prod-main b { padding-right: 46px; }
.m-prod { min-height: 128px; }
.m-prod-badge { top: 12px; right: 12px; }
.m-full { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.m-full .m-products { margin-top: 34px; }
.m-full .m-sec-head { text-align: left; display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.m-full .m-sec-head h2 { font-size: 22px; letter-spacing: -.02em; }
.m-full .m-sec-head p { margin: 0; }
.m-full .m-sec-head .m-more { margin-left: auto; }
.m-full #latest { margin-top: 44px; }
.m-full .m-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .m-full .m-posts { grid-template-columns: minmax(0, 1fr); } }
/* 站点图标（真实 favicon，失败回退 emoji） */
.site-ico { position: relative; display: inline-grid; place-items: center; }
.site-ico img { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: #fff; }
.site-ico i { font-style: normal; font-size: 20px; line-height: 1; }
.nav-ico img { width: 32px; height: 32px; border-radius: 8px; }
/* 分类条：18 个分类时两行紧凑排列 */
.m-tabs { gap: 4px 20px; padding: 4px 0 8px; }
.m-tab { padding: 9px 0 9px; font-size: 12.5px; }
@media (max-width: 900px) {
  .m-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 10px; }
  .m-tabs::-webkit-scrollbar { display: none; }
  .m-tab { white-space: nowrap; padding: 10px 0; }
}
.m-tabs { gap: 2px 12px; padding: 4px 0 6px; }
.m-tab { font-size: 12px; padding: 9px 0; letter-spacing: -.01em; }
/* 分类条：18 个分类按 9 列排两行，避免尾部只挂一两项 */
.m-tabs { display: grid; grid-template-columns: repeat(9, max-content); justify-content: center; gap: 2px 26px; }
.m-tab { text-align: center; }
@media (max-width: 1180px) { .m-tabs { grid-template-columns: repeat(6, max-content); } }
@media (max-width: 820px) {
  .m-tabs { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 0 20px; }
  .m-tabs::-webkit-scrollbar { display: none; }
}
/* 分类条：强制单行（放不下时横向滑动） */
.m-tabs { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 4px 0 6px; }
.m-tabs::-webkit-scrollbar { display: none; }
.m-tab { white-space: nowrap; font-size: 12px; padding: 10px 0 9px; letter-spacing: -.01em; }
@media (max-width: 1180px) {
  .m-tabs { justify-content: flex-start; }
}
.m-tabs { gap: 0 9px; }
.m-tab { font-size: 11.5px; padding: 10px 3px 9px; }
/* 覆盖 .home-portal .m-tabs 的 22px 间距，单行放得下 */
.home-portal .m-tabs { gap: 0 10px; }
/* 站点卡：长站名截断，分类标签不换行 */
.site-card b { display: flex; align-items: center; gap: 8px; min-width: 0; }
.site-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.site-card .site-tag { flex: none; white-space: nowrap; }
/* 商品卡：等高、价格行对齐 */
.m-prod-grid { grid-auto-rows: 1fr; }
.m-prod { align-items: stretch; height: 100%; }
.m-prod-ico { align-self: flex-start; }
.m-prod-main { display: flex; flex-direction: column; gap: 5px; height: 100%; min-width: 0; }
.m-prod-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-prod-main small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-prod-foot { margin-top: auto; padding-top: 4px; }
/* ============================================================
   15.0 手机版：简化布局
   ============================================================ */
@media (max-width: 640px) {
  /* Hero 收紧 */
  .m-hero { padding: 22px 0 16px; }
  .m-eyebrow { font-size: 10.5px; letter-spacing: .1em; }
  .m-hero h1 { font-size: 27px; line-height: 1.32; margin: 8px auto 10px; }
  .m-hero p {
    font-size: 12.5px; line-height: 1.6; margin: 0 auto 14px; max-width: 92%;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .home-portal .m-stats { display: flex; justify-content: space-between; gap: 4px; margin: 12px auto 0; }
  .home-portal .m-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .home-portal .m-stats b { font-size: 15px; }
  .home-portal .m-stats span { font-size: 10.5px; }

  /* 分类条 */
  .home-portal .m-tabs { gap: 0 14px; }

  /* 热门网址：两列紧凑，只展示 9 个 */
  .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .m-grid .site-card:nth-child(n + 10) { display: none; }
  .site-card { padding: 10px; gap: 8px; border-radius: 12px; }
  .site-card .site-body small,
  .site-card .site-tag,
  .site-card .site-arrow { display: none; }
  .site-card b { font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-ico { width: 30px; height: 30px; flex: none; }
  .site-ico img { width: 26px; height: 26px; }

  /* 右栏：只保留 3 条新闻，隐藏汇率 */
  .m-rail .rail-card:nth-child(2) { display: none; }
  .rail-news li:nth-child(n + 4) { display: none; }
  .rail-card { padding: 12px 14px; }
  .rail-news b { font-size: 13px; }

  /* 商品：两列，隐藏描述与划线价 */
  .m-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .m-prod { padding: 12px; min-height: 0; gap: 9px; }
  .m-prod-ico { width: 32px; height: 32px; font-size: 17px; border-radius: 10px; }
  .m-prod-main small { display: none; }
  .m-prod-main b { font-size: 12.5px; padding-right: 0; -webkit-line-clamp: 2; }
  .m-prod-foot s { display: none; }
  .m-prod-badge { display: none; }
  .m-products .m-sec-head h2 { font-size: 18px; }

  /* 文章：去掉封面，紧凑 */
  .post-card .post-cover { display: none; }
  .post-card { padding: 14px; }
  .post-card h3 { font-size: 15px; }
  .m-full .m-posts { gap: 10px; }
}
/* ============================================================
   16.0 手机版重排：目录式首页
   ============================================================ */
@media (max-width: 640px) {
  .announce { font-size: 11px; padding: 6px 12px; }

  /* Hero：标题 + 搜索，去掉说明与指标 */
  .m-hero { padding: 16px 0 10px; background: none; }
  .m-eyebrow { display: none; }
  .m-hero h1 { font-size: 23px; line-height: 1.35; margin: 0 auto 14px; max-width: 94%; }
  .m-hero h1 span { display: block; }
  .m-hero p, .home-portal .m-stats { display: none; }
  .m-hero .m-sf { margin: 0 16px; max-width: none; }

  /* 分类：横向滚动胶囊 */
  .home-portal .m-tabs { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 8px 16px 14px; border-bottom: 0; overflow-x: auto; }
  .home-portal .m-tabs::-webkit-scrollbar { display: none; }
  .m-tab { flex: none; padding: 7px 13px; border-radius: 999px; background: #f1f4fa; border-bottom: 0; font-size: 12px; color: #4b5563; }
  .m-tab.is-active { background: #1d4ed8; color: #fff; font-weight: 600; }

  /* 主体内边距 */
  .wrap.m-layout { padding: 0 12px; }
  .m-sec { padding-top: 22px; }
  .m-sec-head { margin-bottom: 10px; padding: 0 4px; }
  .m-sec-head h2 { font-size: 17px; }

  /* 站点：三列图标网格 */
  .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; max-width: none; }
  .m-grid .site-card:nth-child(n + 10):nth-child(-n + 12) { display: flex; }
  .m-grid .site-card:nth-child(n + 13) { display: none; }
  .site-card { flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 12px 4px; border: 0; background: transparent; border-radius: 12px; }
  .site-card:active { background: #f6f8fc; }
  .site-card .site-body small, .site-card .site-tag, .site-card .site-arrow { display: none; }
  .site-card b { font-size: 11.5px; font-weight: 500; color: #374151; }
  .site-card .site-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
  .site-ico { width: 44px; height: 44px; }
  .site-ico img { width: 42px; height: 42px; border-radius: 12px; }

  /* 新闻：横向滑动卡片 */
  .m-rail { margin-top: 6px; }
  #newsCard .rail-head { margin-bottom: 8px; }
  #newsCard .rail-news { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  #newsCard .rail-news::-webkit-scrollbar { display: none; }
  #newsCard .rail-news li { flex: 0 0 76%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
  #newsCard .rail-news li:nth-child(n + 4) { display: block; }
  #newsCard .rail-news b { font-size: 13px; }

  /* 商品：横向滑动卡片 */
  .m-products { margin-top: 26px; }
  .m-products .m-sec-head h2 { font-size: 17px; }
  .m-prod-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .m-prod-grid::-webkit-scrollbar { display: none; }
  .m-prod { flex: 0 0 62%; scroll-snap-align: start; min-height: 0; padding: 13px; }
  .m-prod-main small { display: none; }
  .m-prod-main b { font-size: 12.5px; padding-right: 0; }
  .m-prod-foot s, .m-prod-badge { display: none; }

  /* 文章：纯标题列表 */
  .m-full { padding: 0 16px; }
  .m-full #latest { margin-top: 26px; }
  .post-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
  .post-card .post-cover { display: none; }
  .post-card .clamp2, .post-card .post-more { display: none; }
  .post-card h3 { font-size: 14.5px; }
  .post-card .post-meta { font-size: 10.5px; }

  /* 页脚：只保留品牌与版权 */
  .ftr-cols { display: none; }
  .ftr-in { padding: 20px 16px 8px; display: block; }
  .ftr-btm { padding: 8px 16px 24px; text-align: center; font-size: 11px; }
}
/* 手机版：更高优先级覆盖桌面定稿样式 */
@media (max-width: 640px) {
  .home-portal .m-hero { padding: 18px 0 12px; }
  .home-portal .m-hero h1 { font-size: 22px; line-height: 1.4; margin: 0 auto 14px; max-width: 94%; }
  .home-portal .m-tabs { padding: 8px 16px 14px; gap: 8px; border-bottom: 0; }
  .home-portal .m-tab { padding: 7px 13px; font-size: 12px; border-radius: 999px; background: #f1f4fa; border-bottom: 0; color: #4b5563; }
  .home-portal .m-tab.is-active { background: #1d4ed8; color: #fff; border-bottom: 0; font-weight: 600; }
}
/* ============================================================
   17.0 网站入驻
   ============================================================ */
.m-promo { max-width: 720px; margin: 26px auto 0; border: 1px solid #e6ebf4; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.m-promo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.m-promo-head b { font-size: 13px; color: #0f172a; }
.m-promo-cta { font-size: 12px; color: #fff; background: #f97316; border-radius: 999px; padding: 6px 12px; text-decoration: none; font-weight: 600; }
.m-promo-cta:hover { background: #ea580c; }
.m-promo-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.m-promo-item { display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid #eef1f7; border-radius: 10px; text-decoration: none; color: #334155; font-size: 11.5px; min-width: 0; background: #fbfcfe; }
.m-promo-item img { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.m-promo-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-promo-item.is-empty { color: #b6bfd0; justify-content: center; border-style: dashed; background: #fafbfd; }
@media (max-width: 900px) { .m-promo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .m-promo { max-width: none; } }
@media (max-width: 640px) { .m-promo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .m-promo { margin: 14px 16px 0; padding: 12px; } }

/* 入驻页 */
.lp-hero { padding: 46px 0 30px; text-align: center; background: radial-gradient(800px 320px at 50% -30%, #e6efff 0%, transparent 65%); }
.lp-eyebrow { font-size: 12px; letter-spacing: .14em; color: #8a94a6; margin: 0 0 10px; }
.lp-hero h1 { font-size: 36px; line-height: 1.25; letter-spacing: -.03em; margin: 0 auto 12px; }
.lp-hero h1 span { color: #1d4ed8; }
.lp-sub { max-width: 640px; margin: 0 auto; color: #6b7688; font-size: 14px; line-height: 1.75; }
.lp-body { padding-bottom: 60px; }
.lp-ok, .lp-err { border-radius: 12px; padding: 12px 14px; font-size: 13px; margin: 0 0 16px; }
.lp-ok { background: #eef7ee; color: #15803d; }
.lp-err { background: #fef2f2; color: #b91c1c; }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.lp-plan { position: relative; border: 1px solid #e6ebf4; border-radius: 14px; padding: 18px; display: grid; gap: 6px; background: #fff; cursor: pointer; }
.lp-plan input { position: absolute; top: 14px; right: 14px; accent-color: #1d4ed8; }
.lp-plan b { font-size: 14px; }
.lp-plan em { font-style: normal; font-size: 24px; font-weight: 700; color: #1d4ed8; letter-spacing: -.02em; }
.lp-plan small { color: #8a94a6; font-size: 12px; }
.lp-plan.is-hot { border-color: #1d4ed8; box-shadow: 0 12px 30px rgba(29,78,216,.12); }
.lp-form { border: 1px solid #e6ebf4; border-radius: 16px; padding: 20px; display: grid; gap: 14px; background: #fff; }
.lp-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.lp-form label { display: grid; gap: 6px; font-size: 12.5px; color: #4b5563; }
.lp-form input, .lp-form select, .lp-form textarea { border: 1px solid #e3e8f2; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: inherit; background: #fff; }
.lp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-paynote { font-size: 12px; color: #8a94a6; }
@media (max-width: 760px) {
  .lp-hero { padding: 28px 0 18px; }
  .lp-hero h1 { font-size: 26px; }
  .lp-plans { grid-template-columns: minmax(0,1fr); }
  .lp-grid { grid-template-columns: minmax(0,1fr); }
}
/* 入驻管理 */
.listing-tbl td { font-size: 12.5px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 2px 4px; }
.inline-form select { height: 28px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; padding: 0 6px; }
/* 顶部导航防换行 */
.brand-txt { white-space: nowrap; }
.nav-link { white-space: nowrap; }
/* 文章内表格 */
.md-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.md-table th, .md-table td { border: 1px solid #e6ebf4; padding: 9px 12px; text-align: left; }
.md-table th { background: #f6f8fc; font-weight: 600; }
.md-table tr:nth-child(even) td { background: #fbfcfe; }
.tbl-wrap { overflow-x: auto; }
.post-cover.is-ph { height: 150px; }
.post-cover.is-ph .post-ph { font-size: 40px; }

/* ============================================================
   18.0 首页加宽 + 今日头条热点
   ============================================================ */
.home-portal .wrap { max-width: 1320px; }
.home-portal .m-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
@media (max-width: 1020px) {
  .home-portal .m-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

#headlineCard .rail-head span { font-size: 11px; color: #8a94a6; }
.rail-headlines { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 11px; }
.rail-headlines li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.rail-headlines .rank { flex: none; width: 18px; height: 18px; border-radius: 5px; background: #eef1f7; color: #64748b; font-size: 11px; font-style: normal; display: grid; place-items: center; margin-top: 1px; }
.rail-headlines .rank.hot { background: #fef2f2; color: #dc2626; }
.rail-headlines a { color: #1f2937; text-decoration: none; flex: 1; }
.rail-headlines a:hover { color: #1d4ed8; }
.rail-headlines small { display: block; font-size: 10.5px; color: #9aa4b8; margin-top: 2px; }
/* 代理凭据编辑 */
.px-edit { margin-top: 6px; }
.px-edit summary { font-size: 11px; color: #1d4ed8; cursor: pointer; list-style: none; }
.px-edit summary::-webkit-details-marker { display: none; }
.px-edit summary::after { content: ' ▾'; }
.px-form { display: grid; gap: 6px; margin-top: 8px; min-width: 220px; }
.px-form label { display: grid; gap: 3px; font-size: 11px; color: #64748b; }
.px-form input { height: 28px; border: 1px solid #e3e8f2; border-radius: 6px; padding: 0 8px; font-size: 12px; }
.px-raw input { border-color: #bfdbfe; background: #f8fbff; }

.px-block { border-top: 1px dashed #e8ecf4; padding-top: 10px; margin-top: 10px; }
.px-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.px-idx { font-size: 11px; color: #1d4ed8; font-weight: 600; margin-bottom: 6px; }

.px-preview { margin-top: 8px; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px 10px; background: #fff; }
.px-preview-head { font-size: 11.5px; color: #64748b; margin-bottom: 6px; }
.px-preview-row { display: grid; grid-template-columns: 20px 1fr 1fr 40px; gap: 8px; font-size: 12px; padding: 3px 0; align-items: center; }
.px-preview-row i { color: #94a3b8; font-style: normal; }
.px-preview-row code { font-family: ui-monospace, Menlo, Consolas, monospace; color: #0f172a; }
.px-preview-row span { color: #64748b; }
.px-preview-row.is-extra { opacity: .55; }
.px-preview-row.is-extra::after { content: '超出'; font-size: 10px; color: #dc2626; }

.px-hint { font-size: 12.5px; color: #94a3b8; margin: 0 0 14px; }
.px-card-terms { display: inline-flex; gap: 4px; padding: 3px; background: #f1f5f9; border-radius: 9px; margin: 8px 0 2px; }
.px-card-term { border: 0; background: transparent; color: #64748b; font-size: 12px; padding: 5px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.px-card-term:hover { color: #1d4ed8; }
.px-card-term.is-active { background: #1d4ed8; color: #fff; font-weight: 600; }

.px-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.px-cat { padding: 9px 16px; border-radius: 10px; border: 1px solid #e3e8f2; background: #fff; color: #475569; font-size: 13.5px; text-decoration: none; }
.px-cat:hover { border-color: #bfdbfe; color: #1d4ed8; }
.px-cat.is-active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; font-weight: 600; }

.px-empty { padding: 56px 20px; text-align: center; background: #fff; border: 1px dashed #dbe3f0; border-radius: 14px; color: #94a3b8; font-size: 14px; }

/* 代理购买：左国家 + 右配置 */
.px-buyer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.px-panel { background: #fff; border: 1px solid #e6ebf3; border-radius: 14px; padding: 18px; }
.px-countries { min-height: 420px; }
.px-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.px-panel-head h3 { margin: 0; font-size: 16px; }
.px-search { height: 34px; width: 180px; border: 1px solid #e3e8f2; border-radius: 8px; padding: 0 10px; font-size: 13px; background: #f8fafc; }
.px-country-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 520px; overflow: auto; padding-right: 4px; }
.px-country { display: flex; align-items: center; gap: 6px; border: 1px solid #e3e8f2; background: #fff; border-radius: 9px; padding: 8px 10px; font-size: 12.5px; color: #334155; cursor: pointer; text-align: left; }
.px-country em { font-style: normal; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-country:hover { border-color: #bfdbfe; }
.px-country.is-active { border-color: #1d4ed8; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.px-country.is-active em { color: #1d4ed8; }
.px-flag-emoji { font-size: 15px; line-height: 1; }
.px-config h3 { margin: 0 0 12px; font-size: 16px; }
.px-modes { display: inline-flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 10px; margin-bottom: 16px; }
.px-mode { border: 0; background: transparent; color: #64748b; font-size: 13px; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.px-mode.is-active { background: #1d4ed8; color: #fff; font-weight: 600; }
.px-field-label { display: block; font-size: 12.5px; color: #64748b; margin: 14px 0 6px; }
.px-qty { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border: 1px solid #e3e8f2; border-radius: 9px; overflow: hidden; height: 42px; }
.px-qty button { border: 0; background: #f8fafc; color: #475569; font-size: 18px; height: 100%; cursor: pointer; }
.px-qty button:hover { background: #eef2f7; }
.px-qty input { border: 0; text-align: center; font-size: 15px; font-weight: 600; color: #0f172a; height: 100%; width: 100%; }
.px-duration { display: flex; flex-wrap: wrap; gap: 8px; }
.px-dur { border: 1px solid #e3e8f2; background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; color: #475569; cursor: pointer; }
.px-dur.is-active { border-color: #1d4ed8; background: #1d4ed8; color: #fff; font-weight: 600; }
.px-custom-note textarea { width: 100%; border: 1px solid #e3e8f2; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.px-summary { border: 1px solid #eef2f7; border-radius: 10px; padding: 12px 14px; margin-top: 18px; background: #fbfcfe; }
.px-summary > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #64748b; }
.px-summary b { color: #0f172a; font-weight: 600; }
.px-summary .px-total { border-top: 1px dashed #e3e8f2; margin-top: 4px; padding-top: 10px; }
.px-summary .px-total b { color: #1d4ed8; font-size: 20px; }
.px-buy { margin-top: 16px; height: 46px; font-size: 15px; }
.px-buy:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 900px) {
  .px-buyer { grid-template-columns: 1fr; }
  .px-country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 320px; }
}

.px-flag-img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; background: #eef2f7; }

.px-flag-code { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #1d4ed8; background: #e8effd; border-radius: 4px; padding: 2px 5px; flex: 0 0 auto; }

/* ========== 修复：用户下拉菜单在鼠标移入时消失 ==========
   菜单是 position:absolute 且 top: calc(100% + 8px)，与头像按钮之间有 8px 空隙。
   鼠标经过这段空隙时 .nav-drop 不再 :hover，菜单瞬间隐藏，导致点不到菜单项。
   用一个透明的伪元素把这段空隙 "连" 起来（伪元素属于菜单，悬停它等同于悬停菜单）。 */
.nav-drop .menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

/* 顺带把空隙收窄一点，手感更连贯 */
.nav-drop .menu { top: calc(100% + 6px); }

/* ========== 用户菜单改为「点击展开」 ==========
   原来靠 :hover 打开，鼠标经过头像与菜单之间的空隙就会消失（触屏更难点）。
   现在：点头像切换 .is-open，点页面其它地方或按 Esc 关闭。
   其它 .nav-drop（顶部分类菜单）保持 hover 行为不变。 */
.user-drop:hover .menu,
.user-drop:focus-within .menu { display: none; }
.user-drop.is-open .menu { display: block; }
button.icon-btn { padding: 0; font: inherit; color: inherit; cursor: pointer; }
.user-drop.is-open > .icon-btn { border-color: var(--brand); background: var(--brand-soft); }

/* ========== 商品封面图（替换原来的 emoji 占位） ========== */
.thumb-img {
  width: 76px; height: 76px; object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .10));
}
.pdp-img {
  width: 132px; height: 132px; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .12));
}
.m-prod-ico .thumb-img { width: 40px; height: 40px; }
@media (max-width: 640px) {
  .thumb-img { width: 64px; height: 64px; }
}

/* ========== 后台商品列表：发货方式标记与筛选 ========== */
.adm-filters { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.adm-filters a {
  font-size: 13px; padding: 7px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.adm-filters a:hover { border-color: var(--brand); color: var(--brand); }
.adm-filters a.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tag-manual, .tag-auto {
  display: inline-block; font-size: 10.5px; font-weight: 600; line-height: 1.6;
  padding: 0 7px; border-radius: 6px; margin-left: 8px; vertical-align: middle;
  font-style: normal;
}
.tag-manual { background: #fff4e5; color: #b45309; border: 1px solid #fcd9a4; }
.tag-auto { background: #eef2ff; color: #4f46e5; border: 1px solid #d5dcff; }

/* ========== 免费工具页 ========== */
.tools-hero { padding: 26px 0 6px; }
.tools-hero h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.02em; }
.tools-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 18px; }
.tool-card { padding: 18px; }
.tool-card h2 { font-size: 15.5px; margin: 0 0 12px; }
.tool-fields { display: grid; gap: 10px 12px; grid-template-columns: 1fr 1fr; }
.tool-field { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.tool-field i { font-style: normal; }
.tool-field input, .tool-field select {
  height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
  width: 100%; box-sizing: border-box; min-width: 0;
}
.tool-field input:focus, .tool-field select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.tool-out { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tool-big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tool-big i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 8px; font-weight: 500; }
.tool-big.good { color: #15803d; }
.tool-big.warn { color: #b45309; }
.tool-big.bad { color: #b91c1c; }
.tool-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.tool-list li { display: flex; justify-content: space-between; gap: 12px; }
.tool-list li span { color: var(--muted); }
.tool-tip { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.tools-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 18px; }
.tools-cta b { font-size: 14px; }
@media (max-width: 640px) {
  .tools-hero h1 { font-size: 22px; }
  .tool-fields { grid-template-columns: 1fr 1fr; }
  .tool-card { padding: 14px; }
}

/* ========== 新手路线图 ========== */
.road-hero { padding: 30px 0 10px; text-align: center; }
.road-eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.road-hero h1 { font-size: 32px; margin: 10px 0 10px; letter-spacing: -.03em; }
.road-hero p { max-width: 520px; margin: 0 auto 18px; }
.road-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.road { display: grid; gap: 14px; margin: 26px 0; }
.road-step { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.road-num {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 16px;
}
.road-body { min-width: 0; }
.road-body h2 { font-size: 18px; margin: 2px 0 6px; }
.road-goal { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.road-list { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.6; }
.road-pit { font-size: 12.5px; color: #b45309; background: #fff8ed; border-radius: 9px; padding: 8px 11px; margin: 0 0 12px; }
.road-pit b { margin-right: 8px; }
.road-links { display: flex; gap: 8px; flex-wrap: wrap; }
.road-links a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; color: var(--text);
}
.road-links a:hover { border-color: var(--brand); color: var(--brand); }
.road-links a i { font-style: normal; color: var(--brand); font-weight: 600; }
.road-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px; margin-bottom: 40px; }
@media (max-width: 640px) {
  .road-hero h1 { font-size: 24px; }
  .road-step { padding: 16px; gap: 12px; }
  .road-num { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
  .road-body h2 { font-size: 16px; }
}

/* ========== 订阅弹窗 ========== */
.sub-modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(15, 23, 42, .5); padding: 20px; backdrop-filter: blur(2px);
}
.sub-modal[hidden] { display: none; }
.sub-card {
  position: relative; width: 100%; max-width: 420px; background: var(--surface);
  border-radius: 18px; padding: 26px 24px 18px; box-shadow: 0 30px 80px -30px rgba(15,23,42,.6);
  text-align: center;
}
.sub-card .sub-x {
  position: absolute; top: 10px; right: 12px; border: 0; background: none;
  font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
}
.sub-eyebrow { font-size: 10.5px; letter-spacing: .18em; color: var(--brand); font-weight: 700; }
.sub-card b { display: block; font-size: 18px; margin: 8px 0 8px; line-height: 1.4; }
.sub-card p { font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.sub-card form { display: flex; gap: 8px; }
.sub-card input {
  flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text);
}
.sub-card input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.sub-card .btn { height: 42px; white-space: nowrap; }
.sub-msg { font-size: 12.5px; margin: 10px 0 0 !important; color: #15803d; }
.sub-msg.err { color: #b91c1c; }
.sub-skip {
  margin-top: 12px; border: 0; background: none; color: var(--muted);
  font-size: 12px; cursor: pointer; text-decoration: underline;
}
@media (max-width: 480px) {
  .sub-card form { flex-direction: column; }
  .sub-card .btn { width: 100%; }
}
/* 首页快捷入口 */
.m-roads { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.m-roads a {
  font-size: 12.5px; color: var(--brand); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.m-roads a:hover { border-color: var(--brand); }

/* ========== 商品页：适合谁 / 不适合谁 ========== */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 18px; }
.fit-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #f6fbf7; }
.fit-box.is-no { background: #fff8f7; }
.fit-box b { font-size: 12.5px; display: block; margin-bottom: 5px; color: #15803d; }
.fit-box.is-no b { color: #b45309; }
.fit-box p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--text); }
@media (max-width: 640px) { .fit-grid { grid-template-columns: 1fr; } }

/* 后台：关键事件列表 */
.evt-list { display: grid; gap: 2px; margin-top: 6px; }
.evt-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.evt-row:last-child { border-bottom: 0; }
.evt-row span { color: var(--muted); }
.evt-row b { font-variant-numeric: tabular-nums; }

/* ========== 首页新版 Hero：左文右墙 + 任务卡 ========== */
.hero2 {
  background:
    radial-gradient(900px 420px at 12% -10%, #e6efff 0%, transparent 60%),
    radial-gradient(700px 380px at 88% 6%, #f3e8ff 0%, transparent 62%),
    linear-gradient(180deg, #f8faff, #fff);
  padding: 52px 0 34px;
}
.hero2-in { display: block; text-align: center; }
.hero2-copy { max-width: 760px; margin: 0 auto; }
.hero2-copy h1 { font-size: 46px; line-height: 1.16; letter-spacing: -.035em; margin: 12px 0 14px; }
.hero2-copy h1 span { color: var(--brand); }
.hero2-copy > p { color: #6b7688; font-size: 15px; line-height: 1.75; max-width: 600px; margin: 0 auto 24px; text-wrap: balance; }
.hero2-copy .m-roads { justify-content: center; margin-top: 16px; }
.hero2-stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.hero2-stats div { text-align: center; }
.hero2-stats div { display: grid; gap: 2px; }
.hero2-stats b { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.hero2-stats span { font-size: 11.5px; color: var(--muted); }

.hero2-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wall-tile {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  background: #fff; border: 1px solid #e9eef7; border-radius: 14px; padding: 12px 13px;
  box-shadow: 0 12px 28px -20px rgba(24, 45, 90, .55);
  text-decoration: none; color: inherit; font-size: 12.5px; transition: .18s;
}
.wall-tile img { width: 20px; height: 20px; border-radius: 6px; object-fit: contain; flex: none; }
.wall-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-tile:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 20px 38px -22px rgba(37, 99, 235, .6); }

.task-row { padding: 6px 0 0; }
.task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.task-card {
  display: grid; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; text-decoration: none; color: inherit; transition: .18s;
}
.task-card i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.task-card b { font-size: 15px; margin-top: 2px; }
.task-card span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.task-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 18px 32px -24px rgba(37, 99, 235, .55); }

@media (max-width: 1080px) {
  .hero2-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero2-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); transform: none; }
  .wall-tile:nth-child(n) { transform: none; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero2 { padding: 28px 0 20px; }
  .hero2-copy h1 { font-size: 27px; }
  .hero2-copy > p { font-size: 13px; }
  .hero2-stats { gap: 18px; margin-top: 18px; }
  .hero2-stats b { font-size: 19px; }
  .hero2-wall { display: none; }
  .task-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .task-card { padding: 13px 14px; }
  .task-card b { font-size: 13.5px; }
  .task-card span { display: none; }
}

/* Hero 内的 grid 子项默认 min-width:auto 会被内容撑破，导致移动端横向溢出 */
.hero2-in > * { min-width: 0; }
.hero2-copy, .hero2-copy .m-sf, .hero2-copy .m-sf input { min-width: 0; }
.hero2-copy .m-sf { width: 100%; }
.task-grid { min-width: 0; }
.task-card { min-width: 0; }
@media (max-width: 640px) {
  .hero2-copy .m-sf { margin: 0; }
  .hero2-stats { gap: 20px; }
}

/* 搜索框下方的工具 logo 滚动条 */
.hero2-marquee {
  max-width: 780px; margin: 20px auto 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-track { display: flex; gap: 10px; width: max-content; animation: mq 46s linear infinite; }
.hero2-marquee:hover .mq-track { animation-play-state: paused; }
.mq-item {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 12.5px; color: #475569; text-decoration: none;
}
.mq-item img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.mq-item:hover { border-color: var(--brand); color: var(--brand); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* 数据条：617 放大 */
.hero2-stats { align-items: flex-end; }
.hero2-stats .is-big { margin-right: 6px; }
.hero2-stats .is-big b {
  font-size: 58px; line-height: .95;
  background: linear-gradient(180deg, #1d4ed8 0%, #60a5fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 任务卡：四色渐变 */
.task-card.t1 { background: linear-gradient(135deg, #eef4ff, #e0eaff); border-color: #dbe6fb; }
.task-card.t2 { background: linear-gradient(135deg, #e9fbf5, #d7f4ea); border-color: #cdeee1; }
.task-card.t3 { background: linear-gradient(135deg, #fff4ea, #ffe7d7); border-color: #fbe0cc; }
.task-card.t4 { background: linear-gradient(135deg, #eafafd, #ddf3f8); border-color: #cfeaf2; }
.task-card.t1 i { background: #dfe9ff; color: #1d4ed8; }
.task-card.t2 i { background: #d4f2e6; color: #0f766e; }
.task-card.t3 i { background: #ffe3cd; color: #c2410c; }
.task-card.t4 i { background: #d3eff6; color: #0e7490; }
@media (max-width: 640px) {
  .hero2-stats .is-big b { font-size: 38px; }
  .hero2-marquee { margin-top: 16px; }
}

/* ========== 列表页 / 导航页 头部（与首页统一） ========== */
.page-hero {
  text-align: center; padding: 30px 0 18px; margin: 6px 0 6px;
  background:
    radial-gradient(760px 320px at 50% -34%, #eaf2ff 0%, transparent 66%),
    radial-gradient(520px 260px at 82% 0%, #f3ecff 0%, transparent 62%);
  border-radius: 0 0 26px 26px;
}
.ph-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #8ea0bb; }
.page-hero h1 { font-size: 34px; letter-spacing: -.03em; margin: 8px 0 8px; }
.ph-sub { color: var(--muted); font-size: 13.5px; max-width: 620px; margin: 0 auto 4px; text-wrap: balance; }
.ph-stats { display: flex; justify-content: center; gap: 34px; margin: 16px 0 16px; flex-wrap: wrap; }
.ph-stats div { display: grid; gap: 1px; text-align: center; }
.ph-stats b { font-size: 20px; letter-spacing: -.02em; color: #0f172a; }
.ph-stats span { font-size: 11px; color: var(--muted); }
.page-hero .chips { justify-content: center; }
.page-hero .nav-chips { justify-content: center; }
@media (max-width: 640px) {
  .page-hero { padding: 22px 0 12px; border-radius: 0 0 18px 18px; }
  .page-hero h1 { font-size: 24px; }
  .ph-stats { gap: 20px; margin: 12px 0 12px; }
  .ph-stats b { font-size: 16px; }
}

/* 首页主栏补充：分类总览 + 最新文章 */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat-cell {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px; text-decoration: none; color: var(--text); font-size: 13px;
  transition: .16s; min-width: 0;
}
.cat-cell b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-cell span { font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; flex: none; }
.cat-cell:hover { border-color: var(--brand); color: var(--brand); }
.cat-cell:hover span { background: var(--brand-soft); color: var(--brand); }
.m-catblock { margin-top: 26px; }
.post-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pm-item {
  display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; text-decoration: none; color: inherit; transition: .16s; min-width: 0;
}
.pm-item b { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-item span { font-size: 11.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pm-item:hover { border-color: var(--brand); }
.pm-item:hover b { color: var(--brand); }
.m-postblock { margin-top: 24px; }
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-mini { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .cat-cell { padding: 9px 11px; font-size: 12.5px; }
}

/* 首页右栏：跟随滚动，两栏高度更接近 */
.home-portal .m-rail { align-self: start; position: sticky; top: 84px; }

/* 首页「最新文章」：一行四个、两行 */
.home-portal #latest .m-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-portal #latest .post-card .post-cover { height: 118px; max-height: 118px; aspect-ratio: auto; }
.home-portal #latest .post-card .post-cover img { height: 100%; object-fit: cover; }
.home-portal #latest .post-card .post-body { padding: 11px 12px 12px; gap: 5px; }
.home-portal #latest .post-card .post-meta { font-size: 10.5px; gap: 6px; }
.home-portal #latest .post-card .post-body h3 { font-size: 13.5px; line-height: 1.45; -webkit-line-clamp: 2; }
.home-portal #latest .post-card .clamp2 { display: none; }
.home-portal #latest .post-card .post-more { font-size: 11.5px; margin-top: 2px; }
@media (max-width: 1180px) {
  .home-portal #latest .m-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-portal #latest .post-card .post-cover { height: 140px; max-height: 140px; }
  .home-portal #latest .post-card .post-body h3 { font-size: 14.5px; }
}
@media (max-width: 640px) {
  .home-portal #latest .m-posts { grid-template-columns: minmax(0, 1fr); }
}

/* 最新文章：与上方商品区同宽 */
.home-portal #latest .m-posts { max-width: none; margin: 0; width: 100%; }

/* 文章正文图片：占满内容宽度，细节更清楚 */
.post-content img { width: 100%; height: auto; display: block; margin: 16px 0 20px; border: 1px solid var(--line); }

/* 文章页：正文与正文图片同宽，截图更清楚 */
.post-page .prose { max-width: 100%; }
.post-page .prose p, .post-page .prose li { font-size: 15.5px; line-height: 1.85; }

/* 后台「首页推荐位」表单 */
.adm-form .adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.adm-form input, .adm-form select {
  height: 38px; width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 9px; padding: 0 12px;
  font: inherit; font-size: 14px; color: var(--text); background: #fff;
}
.adm-form input:focus, .adm-form select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
@media (max-width: 720px) { .adm-form .adm-grid2 { grid-template-columns: 1fr; } }

/* ========== 后台侧边栏 ========== */
.adm-side {
  width: 232px; padding: 16px 12px 14px; gap: 2px;
  background: linear-gradient(180deg, #fbfdff, #fff);
  overflow-y: auto; overflow-x: hidden;
}
.adm-brand { padding: 2px 8px 14px; gap: 10px; align-items: center; }
.adm-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.adm-brand-txt { display: grid; gap: 1px; line-height: 1.25; min-width: 0; }
.adm-brand-txt b { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-brand-txt small { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }

.adm-sep {
  margin: 14px 10px 6px; font-size: 10.5px; letter-spacing: .12em; font-weight: 600;
  color: #9aa8bd; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
}
.adm-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.adm-nav {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 10px; font-size: 13.5px; color: #56637a; text-decoration: none;
  position: relative; transition: background .15s, color .15s;
}
.adm-nav:hover { background: #f1f5fb; color: var(--text); }
.adm-nav.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.adm-nav.is-active::before {
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.adm-ico { width: 18px; height: 18px; flex: none; display: grid; place-items: center; opacity: .85; }
.adm-ico svg { width: 17px; height: 17px; }
.adm-nav.is-active .adm-ico, .adm-nav:hover .adm-ico { opacity: 1; }

.adm-side-foot { border-top: 1px solid var(--line); padding: 12px 4px 0; margin-top: auto; }
.adm-side-foot a, .adm-side-foot .linkbtn { font-size: 12.5px; color: var(--muted); }
.adm-main { margin-left: 232px; }

@media (max-width: 900px) {
  .adm-side { width: 68px; padding: 14px 8px; }
  .adm-brand { padding: 2px 0 14px; justify-content: center; }
  .adm-brand-txt, .adm-nav span, .adm-sep span { display: none; }
  .adm-sep { margin: 10px 0 8px; justify-content: center; font-size: 0; letter-spacing: 0; height: 0; }
  .adm-sep::after { display: block; flex: none; width: 22px; height: 1px; background: var(--line); }
  .adm-nav { justify-content: center; padding: 10px 0; font-size: 0; }
  .adm-nav::before { display: none !important; }
  .adm-main { margin-left: 68px; padding: 20px; }
}

/* ================= 后台概览面板 ================= */
.db-head { align-items: flex-end; }
.db-range { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.db-range a { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.db-range a:hover { color: var(--text); background: #f4f7fc; }
.db-range a.is-on { background: #0f172a; color: #fff; }

.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.db-kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px 10px; overflow: hidden; transition: .16s; }
.db-kpi:hover { border-color: #d7e3f7; box-shadow: 0 10px 28px -22px rgba(29, 78, 216, .55); }
.db-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.db-kpi-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.db-kpi-ico svg { width: 15px; height: 15px; }
.db-kpi-val { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.025em; margin: 8px 0 2px; color: #0f172a; line-height: 1.15; }
.db-kpi-foot { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.db-sub { font-size: 11.5px; color: var(--muted); }
.db-delta { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.db-delta.is-up { color: #0f766e; background: #e6f7f3; }
.db-delta.is-down { color: #b91c1c; background: #fdecec; }
.db-spark { display: block; width: 100%; height: 42px; margin-top: 8px; }

.db-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.db-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }

.db-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; min-width: 0; }
.db-card-flat { margin-bottom: 14px; }
.db-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.db-card-head h3 { font-size: 14.5px; margin: 0; letter-spacing: -.01em; }
.db-hint { font-size: 11.5px; color: var(--muted); }
.db-link { font-size: 12.5px; color: var(--brand); text-decoration: none; }

.db-legend-inline { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.db-legend-inline i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.db-legend-inline i.pv { background: #2563eb; }
.db-legend-inline i.uv { background: #a855f7; }

.db-donut-wrap { display: grid; gap: 12px; }
.db-donut { width: 132px; height: 132px; margin: 0 auto; }
.db-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.db-legend li { display: grid; grid-template-columns: 9px 1fr auto auto; align-items: center; gap: 8px; font-size: 12px; color: #475569; }
.db-legend li i { width: 9px; height: 9px; border-radius: 3px; }
.db-legend li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-legend li b { font-weight: 600; color: #0f172a; }
.db-legend li em { font-style: normal; font-size: 11px; color: var(--muted); min-width: 32px; text-align: right; }

.db-bars { display: grid; gap: 9px; }
.db-bar { display: grid; grid-template-columns: minmax(0, 1fr) 92px 34px; align-items: center; gap: 10px; font-size: 12px; }
.db-bar .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.db-bar .track { height: 6px; background: #f1f5fb; border-radius: 999px; overflow: hidden; }
.db-bar .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #6366f1); }
.db-bar .v { text-align: right; font-weight: 600; color: #0f172a; }

.db-events { display: grid; gap: 2px; }
.db-event { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #eef2f8; font-size: 12.5px; color: #475569; }
.db-event:last-child { border-bottom: 0; }
.db-event .dot { width: 8px; height: 8px; border-radius: 50%; }
.db-event b { color: #0f172a; }
.db-empty { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

.db-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.db-stats > div { background: #f8fafd; border: 1px solid #eef2f8; border-radius: 11px; padding: 11px 12px; display: grid; gap: 3px; }
.db-stats span { font-size: 11.5px; color: var(--muted); }
.db-stats b { font-size: 18px; letter-spacing: -.02em; color: #0f172a; }
.db-tbl { margin-top: 4px; }

@media (max-width: 1180px) {
  .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-grid { grid-template-columns: minmax(0, 1fr); }
  .db-grid3 { grid-template-columns: minmax(0, 1fr); }
  .db-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .db-kpis { grid-template-columns: minmax(0, 1fr); }
  .db-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-bar { grid-template-columns: minmax(0, 1fr) 60px 30px; }
}

/* 后台「导航站点」筛选区 */
.nf-panel { padding: 14px 16px; margin-bottom: 12px; }
.nf-search { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.nf-search input {
  flex: 1; min-width: 220px; height: 38px; border: 1px solid var(--line);
  border-radius: 10px; padding: 0 14px; font: inherit; font-size: 13.5px; background: #fff;
}
.nf-search input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.nf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px;
  color: #475569; text-decoration: none; background: #fff; transition: .15s;
}
.nf-chip span { font-size: 11px; color: var(--muted); }
.nf-chip:hover { border-color: #c7d6ef; color: var(--brand); }
.nf-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.nf-chip.is-on span { color: rgba(255, 255, 255, .78); }
.nf-count { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.nf-tbl td { vertical-align: middle; }
.nf-tbl .btn-mini { margin-left: 4px; }
.nf-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 0 4px; font-size: 12.5px; }

.nf-star { color: #64748b; border: 1px solid var(--line); background: #fff; }
.nf-star:hover { color: var(--brand); border-color: #c7d6ef; background: #f6f9ff; }
.nf-star.is-on { color: #b45309; border-color: #fde6c4; background: #fff8ec; }
.nf-star.is-on:hover { color: #92400e; border-color: #fbd39a; }

/* 首页：客户当地时间 */
.tz-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tz-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px 4px 9px; font-size: 11.5px; color: #64748b;
}
.tz-item i { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; flex: none; transition: background .3s; }
.tz-item.is-day i { background: #f59e0b; }
.tz-item.is-night i { background: #6366f1; }
.tz-item b { font-weight: 600; color: #0f172a; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 640px) {
  .tz-row { gap: 6px; }
  .tz-item { padding: 3px 8px; font-size: 11px; }
}

.otp-bar { height: 4px; border-radius: 999px; background: #eef2f8; overflow: hidden; margin-top: 8px; }
.otp-bar i { display: block; height: 100%; background: var(--brand); transition: width .9s linear; }

/* ================= 工单 ================= */
.sup-ticket {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 10px; padding: 11px 14px; margin-bottom: 8px; font-size: 13.5px;
}
.sup-ticket:hover { background: #1a43bd; }
.sup-or { font-size: 11.5px; color: var(--muted); margin: 2px 0 8px; }

.tk-hero h1 { font-size: 26px; margin: 6px 0 6px; }
.tk-form { padding: 18px 18px 16px; }
.tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-grid label, .tk-full { display: grid; gap: 6px; font-size: 12.5px; color: #64748b; }
.tk-full { margin-top: 12px; }
.tk-grid input, .tk-grid select, .tk-full textarea {
  height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px;
  font: inherit; font-size: 14px; background: #fff; box-sizing: border-box; width: 100%;
}
.tk-full textarea { height: auto; padding: 10px 12px; resize: vertical; }
.tk-grid input:focus, .tk-grid select:focus, .tk-full textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.tk-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tk-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tk-head h2 { font-size: 15.5px; margin: 0; }
.tk-list { display: grid; gap: 8px; }
.tk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; text-decoration: none; color: inherit; }
.tk-row:hover { border-color: var(--brand); }
.tk-row-main { display: grid; gap: 3px; min-width: 0; }
.tk-row-main b { font-size: 13.5px; }
.tk-row-main small { font-size: 11.5px; color: var(--muted); }
.tk-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; flex: none; }
.tk-warn { background: #fff7e6; color: #b45309; }
.tk-ok { background: #e8f7f1; color: #0f766e; }
.tk-muted { background: #f1f5f9; color: #64748b; }
.tk-thread { padding: 16px 18px; display: grid; gap: 12px; }
.tk-msg { background: #f8fafd; border: 1px solid #eef2f8; border-radius: 12px; padding: 12px 14px; }
.tk-msg.is-admin { background: #f2f7ff; border-color: #dbe8fb; }
.tk-msg-head { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.tk-msg p { margin: 0; font-size: 13.5px; line-height: 1.75; color: #374151; }
@media (max-width: 640px) { .tk-grid { grid-template-columns: 1fr; } }

.tk-upload { gap: 8px; }
.tk-file-btn { display: inline-block; cursor: pointer; border: 1px dashed var(--line); border-radius: 9px;
  padding: 8px 14px; font-size: 13px; color: var(--brand); background: #f8faff; }
.tk-file-btn:hover { border-color: var(--brand); }
.tk-file-hint { font-size: 11.5px; color: var(--muted); }
.tk-files { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-file { display: inline-flex; align-items: center; gap: 6px; background: #f1f5fb; border-radius: 8px;
  padding: 4px 8px; font-size: 12px; color: #475569; }
.tk-file i { font-style: normal; cursor: pointer; color: #94a3b8; }
.tk-file i:hover { color: #dc2626; }
.tk-attach-box { padding: 12px 16px; margin-bottom: 12px; }
.tk-attach-box b { font-size: 13px; }
.tk-attach-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; display: grid; gap: 5px; }
.tk-attach-list a { color: var(--brand); text-decoration: none; }
.tk-attach-list a:hover { text-decoration: underline; }

/* 商品卡封面：3:2 满铺 */
.product-card .thumb {
  height: 168px !important; aspect-ratio: auto !important; padding: 0 !important;
  overflow: hidden !important; display: block !important; position: relative;
}
.product-card .thumb .thumb-img {
  width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover !important; border-radius: 0 !important; filter: none !important; display: block !important;
}
.product-card .thumb .badge { position: absolute; left: 10px; top: 10px; z-index: 2; }
.m-prod-ico .thumb-img { object-fit: cover; border-radius: 9px; }
.pdp-img { border-radius: 14px; }
@media (max-width: 640px) {
  .product-card .thumb { aspect-ratio: 16 / 10; }
}


/* 商品详情大图：满铺 */
.pdp-media { aspect-ratio: 3 / 2; padding: 0; overflow: hidden; display: block; }
.pdp-media .pdp-img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; border-radius: 18px !important; filter: none !important;
}
.home-portal .m-prod-ico .thumb-img { object-fit: cover; }

.m-prod-ico { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: transparent; }
.m-prod-ico .thumb-img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; }

.hero-proof { font-size: 12.5px; color: var(--muted); margin-left: 6px; display: inline-flex; align-items: center; }
.hero-proof::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; margin-right: 8px; }
@media (max-width: 720px) {
  .hero-proof { flex-basis: 100%; justify-content: center; margin: 6px 0 0; }
  .hero-proof::before { display: none; }
}

.pin-tag { display:inline-block; font-size:10.5px; color:#b45309; background:#fff7e6; border-radius:999px; padding:1px 7px; margin-left:4px; vertical-align:middle; }
.btn-mini.is-pin { color:#b45309; border-color:#fde6c4; background:#fff8ec; }

.post-pin { display:inline-block; align-self:flex-start; font-size:10.5px; font-weight:600;
  color:#b45309; background:#fff7e6; border:1px solid #fde6c4; border-radius:999px; padding:1px 8px; margin-bottom:2px; }

.btn-mini.is-draft { color:#b45309; border-color:#fde6c4; background:#fff8ec; }
.btn-mini.is-live { color:#0f766e; border-color:#cdeee1; background:#f2fbf7; }

/* ================= 账户中心：侧栏导航（方案 C） ================= */
.acct-shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 20px; align-items: start; }
.acct-nav {
  position: sticky; top: 84px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; display: grid; gap: 2px;
}
.acct-nav-g { font-size: 11px; color: #94a3b8; letter-spacing: .06em; padding: 8px 10px 4px; }
.acct-nav a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
  font-size: 13.5px; color: #475569; text-decoration: none; transition: .15s;
}
.acct-nav a span { font-size: 14px; width: 18px; text-align: center; }
.acct-nav a:hover { background: #f4f7fc; color: var(--text); }
.acct-nav a.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.acct-main { min-width: 0; }
.acct-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.acct-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.acct-tabs .chip i { font-style: normal; font-size: 11px; margin-left: 5px; opacity: .75; }
.acct-tbl td { font-size: 13px; }
.ost { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; }
.ost.ok { background: #e8f7f1; color: #0f766e; }
.ost.wait { background: #fff7e6; color: #b45309; }
.ost.warn { background: #fdecec; color: #b91c1c; }
.ost.muted { background: #f1f5f9; color: #64748b; }
.acct-empty { text-align: center; padding: 34px 0 26px; }
.acct-empty p { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }

@media (max-width: 900px) {
  .acct-shell { grid-template-columns: minmax(0, 1fr); }
  .acct-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .acct-nav-g { display: none; }
  .acct-nav a { padding: 7px 12px; background: #f8fafd; font-size: 12.5px; }
  .acct-stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- 专题页 ---------- */
.series-group { margin-bottom: 30px; }
.series-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.series-head h2 { font-size: 18px; margin: 0; }
.series-head span { font-size: 12.5px; color: var(--muted); }
.series-group .post-list { margin-bottom: 0; }
.ph-stats { display: flex; gap: 26px; margin-top: 18px; }
.ph-stats > div { text-align: left; }
.ph-stats b { display: block; font-size: 24px; line-height: 1.2; }
.ph-stats span { font-size: 12px; color: var(--muted); }
.post-page .sec-head h2 { font-size: 18px; }

.draft-wrap { position: relative; }
.draft-tag { position: absolute; top: 8px; right: 8px; z-index: 3; font-size: 10.5px;
  color: #b45309; background: #fff7e6; border: 1px solid #fde6c4; border-radius: 999px; padding: 1px 8px; }

/* ---------- 专题入口 ---------- */
.series-link { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 22px 0 14px; padding: 14px 18px; border-radius: 12px;
  background: linear-gradient(120deg, #eef4ff, #f7f9ff); border: 1px solid #dbe6ff;
  text-decoration: none; color: var(--text); font-size: 13.5px; }
.series-link b { color: var(--brand); font-weight: 600; white-space: nowrap; }
.series-link:hover { border-color: #b9cdfa; }

.series-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding: 14px 18px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(120deg, #eef4ff, #fbfcff); border: 1px solid #dbe6ff; }
.series-banner .sb-ico { font-size: 22px; }
.series-banner .sb-txt { display: grid; gap: 2px; }
.series-banner .sb-txt b { font-size: 14.5px; }
.series-banner .sb-txt small { font-size: 12px; color: var(--muted); }
.series-banner .sb-go { margin-left: auto; font-size: 13px; color: var(--brand); font-weight: 600; }
@media (max-width: 640px) { .series-link { flex-direction: column; align-items: flex-start; gap: 6px; } }

.adm-preview { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 10px 14px; border-radius: 10px;
  background: #fff8ec; border: 1px solid #fde6c4; font-size: 13px; color: #92400e; }
.adm-preview b { font-size: 13px; }
.adm-preview span { color: #a16207; }

/* ---------- 阅读进度 + 目录 ---------- */
.read-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.read-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #7c3aed); transition: width .08s linear; }

.post-shell { display: block; }
.post-shell.with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 34px; align-items: start; }
.post-main { min-width: 0; }

.post-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto;
  padding-left: 16px; border-left: 1px solid var(--line); font-size: 13px; }
.post-toc .toc-title { font-size: 11.5px; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.post-toc nav { display: grid; gap: 2px; }
.post-toc a { display: block; padding: 5px 0 5px 10px; margin-left: -11px; color: #64748b;
  text-decoration: none; line-height: 1.5; border-left: 2px solid transparent; }
.post-toc a:hover { color: var(--text); }
.post-toc a.toc-l3 { padding-left: 22px; font-size: 12.5px; color: #94a3b8; }
.post-toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.post-toc a.toc-l3.is-active { color: var(--brand); }

.post-content h2, .post-content h3 { scroll-margin-top: 90px; }

@media (max-width: 1000px) {
  .post-shell.with-toc { grid-template-columns: minmax(0, 1fr); }
  .post-toc { display: none; }
}

/* ---------- 搜索结果页 ---------- */
.search-head { max-width: 720px; margin: 8px auto 26px; text-align: center; }
.search-head .m-sf { margin-bottom: 10px; }
.search-block { margin-bottom: 32px; }
.search-block > h2 { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.search-block > h2 span { font-size: 12px; color: var(--muted); background: #f1f5f9; border-radius: 999px; padding: 1px 8px; }
.search-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ss-item { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; text-decoration: none; color: var(--text); }
.ss-item:hover { border-color: #c7d7fb; background: #fbfdff; }
.ss-item b { font-size: 13.5px; }
.ss-item small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty { text-align: center; padding: 30px 0; }
.search-empty p { color: var(--muted); margin-bottom: 12px; }
.search-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.search-ext { margin-top: 26px; font-size: 13px; }
.search-ext a { color: var(--brand); }

/* ---------- 招商页 ---------- */
.adv-page { padding-top: 8px; }
.adv-hero { text-align: center; max-width: 820px; margin: 0 auto 34px; }
.adv-eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.adv-hero h1 { font-size: 38px; line-height: 1.25; margin: 0 0 14px; }
.adv-hero h1 span { color: var(--brand); }
.adv-hero p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin: 0 auto; max-width: 640px; }
.adv-numbers { display: flex; justify-content: center; gap: 42px; margin-top: 26px; flex-wrap: wrap; }
.adv-numbers b { display: block; font-size: 26px; }
.adv-numbers span { font-size: 12px; color: var(--muted); }

.adv-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.adv-slot { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px; }
.as-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.as-top b { font-size: 15.5px; }
.as-tag { font-size: 10.5px; color: #b45309; background: #fff7e6; border-radius: 999px; padding: 2px 8px; }
.as-price { font-size: 30px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.as-price i { font-size: 13px; font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
.as-pos { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.as-desc { font-size: 13px; color: #475569; margin: 0; line-height: 1.7; }

.adv-block { margin-bottom: 38px; }
.adv-block h2 { font-size: 19px; margin: 0 0 16px; }
.adv-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.aa { background: #f8fbff; border: 1px solid #e6eefc; border-radius: 14px; padding: 16px 18px; }
.aa b { font-size: 14px; display: block; margin-bottom: 6px; }
.aa p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.adv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.adv-steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 12px; }
.adv-steps li span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.adv-steps b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.adv-steps small { font-size: 12px; color: var(--muted); line-height: 1.6; }

.adv-policy { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adv-policy > div { border-radius: 14px; padding: 16px 18px; }
.ap-ok { background: #f3fbf6; border: 1px solid #d6f0e0; }
.ap-no { background: #fdf6f6; border: 1px solid #f6dede; }
.adv-policy b { font-size: 13.5px; display: block; margin-bottom: 8px; }
.adv-policy ul { margin: 0; padding-left: 18px; }
.adv-policy li { font-size: 12.5px; color: #475569; line-height: 1.9; }

.adv-cta { text-align: center; background: linear-gradient(140deg, #eef4ff, #f8fbff); border: 1px solid #dbe6ff;
  border-radius: 18px; padding: 34px 24px; }
.adv-cta h2 { font-size: 22px; margin: 0 0 8px; }
.adv-cta p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.adv-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.adv-note { margin-top: 16px !important; font-size: 11.5px !important; }

@media (max-width: 900px) {
  .adv-slots, .adv-audience, .adv-steps, .adv-policy { grid-template-columns: 1fr; }
  .adv-hero h1 { font-size: 28px; }
}

.as-img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line);
  margin-bottom: 14px; background: #f8fafc; }

/* 文章底部投放入口 */
.post-adv { display: flex; align-items: center; gap: 14px; margin: 26px 0 10px; padding: 16px 18px;
  border: 1px solid #dbe6ff; border-radius: 14px; text-decoration: none; color: var(--text);
  background: linear-gradient(120deg, #f2f7ff, #fbfdff); transition: .15s; }
.post-adv:hover { border-color: #b9cdfa; background: linear-gradient(120deg, #eaf2ff, #f7fbff); }
.pa-ico { font-size: 22px; }
.pa-txt { display: grid; gap: 3px; min-width: 0; }
.pa-txt b { font-size: 14px; }
.pa-txt small { font-size: 12.5px; color: var(--muted); }
.pa-go { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
@media (max-width: 640px) { .post-adv { flex-wrap: wrap; } .pa-go { margin-left: 0; } }

.home-adv { margin-top: 20px; }
.nav-adv { margin: 22px 0 4px; }

/* 招商页 · 套餐 */
.adv-pkg { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; margin-bottom: 26px;
  border-radius: 18px; overflow: hidden; border: 1px solid #d9e4ff;
  background: linear-gradient(135deg, #eef4ff, #fbfdff); }
.ap-left { padding: 26px 28px; }
.ap-badge { display: inline-block; font-size: 11px; font-weight: 600; color: #b45309;
  background: #fff3e0; border: 1px solid #fde6c4; border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.ap-left h2 { font-size: 24px; margin: 0 0 8px; }
.ap-sub { font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.7; }
.ap-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.ap-price b { font-size: 40px; color: var(--brand); line-height: 1; }
.ap-price i { font-style: normal; font-size: 13px; color: var(--muted); }
.ap-price s { font-size: 14px; color: #94a3b8; margin-left: 8px; }
.ap-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-note { font-size: 12px; color: var(--muted); }
.ap-right { background: #fff; border-left: 1px solid #e2ebff; padding: 22px 26px; }
.ap-right ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ap-right li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.ap-right li::before { content: "✓"; color: #0f766e; font-weight: 700; font-size: 13px; line-height: 1.6; }
.ap-right b { font-size: 13.5px; display: block; }
.ap-right span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.6; }
.ap-right li > * { grid-column: 2; }
.ap-right li::before { grid-column: 1; grid-row: 1 / span 2; }

.adv-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.adv-divider::before, .adv-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.adv-divider span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

@media (max-width: 900px) {
  .adv-pkg { grid-template-columns: 1fr; }
  .ap-right { border-left: 0; border-top: 1px solid #e2ebff; }
}

.as-ask { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600;
  color: var(--brand); text-decoration: none; }
.as-ask:hover { text-decoration: underline; }

/* 后台导航列表：站点图标 */
.nf-tbl .nav-ico { width: 26px; height: 26px; display: inline-grid; place-items: center;
  vertical-align: middle; margin-right: 8px; background: #f5f8fd; border-radius: 7px; overflow: hidden; }
.nf-tbl .nav-ico img { width: 18px; height: 18px; object-fit: contain; }
.nf-tbl .nav-ico .nav-fb { display: none; font-size: 14px; font-style: normal; }

/* 虚拟商品说明 */
.virt-box { margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px;
  background: #fff8ec; border: 1px solid #fde6c4; }
.virt-box b { display: block; font-size: 12.5px; color: #92400e; margin-bottom: 4px; }
.virt-box p { margin: 0; font-size: 12.5px; color: #a16207; line-height: 1.7; }
.virt-box-co { margin: 12px 0 10px; }

/* 国内备案站：隐藏交易入口 */
body.is-cn .cart-btn,
body.is-cn .user-drop,
body.is-cn .cart-aside,
body.is-cn [href="/shop"],
body.is-cn [href="/orders"],
body.is-cn [href="/listing"] { display: none !important; }

/* 建站需求表 */
.bf-head { text-align: center; margin: 6px 0 26px; }
.bf-eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.bf-head h1 { font-size: 26px; margin: 0 0 10px; }
.bf-form { display: grid; gap: 18px; }
.bf-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.bf-block h2 { font-size: 15px; margin: 0 0 14px; padding-left: 10px; border-left: 3px solid var(--brand); }
.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-field { display: grid; gap: 6px; font-size: 12.5px; color: #64748b; }
.bf-field.is-full { grid-column: 1 / -1; }
.bf-field input, .bf-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; font: inherit; font-size: 13.5px; background: #f8fafd; }
.bf-line { margin-top: 12px; }
.bf-line > span { display: block; font-size: 12.5px; color: #64748b; margin-bottom: 8px; }
.bf-chks { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #334155;
  background: #f6f9fd; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.bf-chk input { margin: 0; }
.bf-chk:has(input:checked) { background: #eef4ff; border-color: #c7d7fb; color: var(--brand); font-weight: 600; }
.bf-submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bf-done { text-align: center; padding: 40px 0; }
.bf-ok { width: 64px; height: 64px; border-radius: 50%; background: #e8f7f1; color: #0f766e;
  display: grid; place-items: center; font-size: 30px; margin: 0 auto 18px; }
.bf-done h1 { font-size: 26px; margin: 0 0 12px; }
.bf-done-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
@media (max-width: 640px) { .bf-grid { grid-template-columns: 1fr; } }

.brief-cta { display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin: 4px 0 16px; padding: 14px 16px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(120deg,#eef4ff,#fbfdff); border:1px solid #d5e3ff; color: var(--text); }
.brief-cta b { display:block; font-size:14px; margin-bottom:3px; }
.brief-cta small { font-size:12.5px; color: var(--muted); }
.brief-cta i { font-style: normal; font-weight: 600; font-size: 13px; color: var(--brand); white-space: nowrap; }

/* 广告落地页 /ads */
.lp-hero { text-align: center; max-width: 820px; margin: 6px auto 34px; }
.lp-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.lp-hero h1 { font-size: 40px; line-height: 1.22; margin: 0 0 14px; }
.lp-hero h1 em { font-style: normal; color: var(--brand); }
.lp-hero p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 640px; margin: 0 auto; }
.lp-cta-row { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.lp-stats { display: flex; justify-content: center; gap: 44px; margin-top: 26px; }
.lp-stats > div { display: block; text-align: center; }
.lp-stats b { display: block; font-size: 26px; line-height: 1.2; }
.lp-stats span { font-size: 12px; color: #94a3b8; }
.lp-sec { margin-bottom: 34px; }
.lp-sec h2 { font-size: 20px; margin: 0 0 6px; }
.lp-sub { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.pain b { display: block; margin: 0 0 6px; font-size: 15px; }
.pain p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: .15s; }
.svc:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 18px 32px -24px rgba(37,99,235,.5); }
.svc .tag { align-self: flex-start; font-size: 10.5px; color: #b45309; background: #fff7e6; border-radius: 999px; padding: 2px 8px; margin-bottom: 10px; }
.svc b { font-size: 15.5px; margin-bottom: 6px; }
.svc p { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.svc .price { font-size: 19px; font-weight: 700; color: var(--brand); }
.svc .price s { font-size: 12px; color: #94a3b8; font-weight: 400; margin-left: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.step b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.step small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.lp-band { background: linear-gradient(135deg, #eef4ff, #f8fbff); border: 1px solid #d9e4ff;
  border-radius: 18px; padding: 30px 26px; text-align: center; }
.lp-band h2 { margin: 0 0 8px; font-size: 22px; }
.lp-band p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
@media (max-width: 900px) {
  .pain-grid, .svc-grid, .steps { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 28px; }
  .lp-stats { gap: 24px; }
}

/* 收藏 / 积分 / 邀请 / 优惠券 */
.fav-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; transition: .15s; }
.fav-btn:hover { border-color: #f5b301; color: #b45309; }
.fav-btn.is-on { background: #fff8e6; border-color: #f7d174; color: #b45309; font-weight: 600; }
.fav-btn.is-on svg { fill: #f5b301; stroke: #f5b301; }
.p-fav { margin: 2px 0 12px; }
.fav-list { display: grid; gap: 8px; }
.fav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; color: var(--text); background: #fff; }
.fav-item:hover { border-color: var(--brand); }
.fav-item i { font-style: normal; font-size: 16px; }
.fav-item b { display: block; font-size: 13.5px; }
.fav-item small { font-size: 12px; color: var(--muted); }
.fav-item em { margin-left: auto; font-style: normal; color: var(--muted); }
.pt-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-log li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pt-log li b { margin-left: auto; }
.pt-log b.up { color: #0f766e; }
.pt-log b.down { color: #b91c1c; }
.pt-log em { font-style: normal; color: var(--muted); font-size: 12px; }
.inv-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.inv-box code { flex: 1; min-width: 240px; background: #f4f7fc; border: 1px dashed var(--line);
  border-radius: 8px; padding: 9px 12px; font-size: 12.5px; overflow-x: auto; }
.cp-list { display: grid; gap: 8px; }
.cp-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; }
.cp-item.is-off { opacity: .55; }
.cp-val { min-width: 62px; text-align: center; font-weight: 800; color: var(--brand); font-size: 18px; }
.cp-meta b { display: block; font-size: 13.5px; font-family: ui-monospace, monospace; }
.cp-meta small { font-size: 12px; color: var(--muted); }
.cp-st { margin-left: auto; font-size: 12px; color: var(--muted); }
.cp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cp-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px; display: grid; gap: 8px; }
.cp-card-top { display: flex; align-items: baseline; gap: 8px; }
.cp-card-top b { font-size: 22px; color: var(--brand); }
.cp-card-top span { font-size: 12px; color: var(--muted); }
.cp-card code { font-size: 13px; background: #f4f7fc; border-radius: 6px; padding: 5px 8px; }
.cp-card small { font-size: 12px; color: var(--muted); }
.cp-card .btn { justify-self: start; }
@media (max-width: 780px) { .cp-grid { grid-template-columns: 1fr; } }

.tk-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; }
.tk-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted);
  background: #f6f9fd; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.tk-steps i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #e6edf8; color: #64748b; font-style: normal; font-size: 11px; font-weight: 700; }
.tk-steps li.is-done { background: #edf7f3; border-color: #cdeee1; color: #0f766e; }
.tk-steps li.is-done i { background: #0f766e; color: #fff; }
.tk-steps li.is-now { background: #eef4ff; border-color: #d5e3ff; color: var(--brand); font-weight: 600; }
.tk-steps li.is-now i { background: var(--brand); color: #fff; }
@media (max-width: 700px) { .tk-steps { flex-wrap: wrap; } .tk-steps li { flex: 1 1 45%; } }
.dm-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); opacity: 0;
  background: #0f172a; color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px -12px rgba(15,23,42,.6); pointer-events: none; transition: .22s; z-index: 9999; }
.dm-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.acct-pane { display: none; }
.acct-pane.is-on { display: block; }
.acct-nav a { cursor: pointer; }
.mem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mem-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.mem-item b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.mem-item small { font-size: 12px; color: var(--muted); }
.wal-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; display: grid; gap: 6px; }
.wal-card b { font-size: 26px; }
@media (max-width: 700px) { .mem-grid { grid-template-columns: 1fr; } }
/* 工具测评专题 */
.ws-eyebrow { font-size: 12px; letter-spacing: .14em; color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.ws-head { text-align: center; margin: 10px 0 22px; }
.ws-head h1 { font-size: 32px; margin: 0 0 10px; }
.ws-head p { color: var(--muted); font-size: 14.5px; line-height: 1.8; max-width: 620px; margin: 0 auto; }
.ws-note { background: #fff8ec; border: 1px solid #fde6c4; color: #92400e; border-radius: 12px;
  padding: 13px 16px; font-size: 13px; line-height: 1.75; margin-bottom: 22px; }
.ws-list { display: grid; gap: 12px; }
.ws-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: .15s; }
.ws-item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 20px 36px -28px rgba(37,99,235,.6); }
.ws-idx { font-size: 20px; font-weight: 800; color: #c7d2e4; min-width: 34px; }
.ws-body b { display: block; font-size: 16px; margin-bottom: 6px; line-height: 1.5; }
.ws-body p { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.ws-meta { font-size: 12px; color: #94a3b8; }
.ws-item em { margin-left: auto; align-self: center; font-style: normal; color: var(--muted); }
.ws-cta { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg,#eef4ff,#f8fbff); border: 1px solid #d9e4ff; border-radius: 16px; padding: 20px 22px; }
.ws-cta b { display: block; font-size: 15px; margin-bottom: 3px; }
.ws-cta small { font-size: 12.5px; color: var(--muted); }
.ws-cta .btn { margin-left: auto; }
