/* =========================================================================
   发财优选 · 品牌视觉系统
   轻奢科技电商风 —— 珍珠白 / 深海蓝黑 / 活力橙 / 香槟金
   ========================================================================= */

:root {
  /* 品牌色板 */
  --c-bg: #F7F8FA;              /* 主背景 珍珠白 */
  --c-surface: #FFFFFF;          /* 卡片背景 纯白 */
  --c-ink: #151D32;              /* 主文字 深海蓝黑 */
  --c-ink-2: #3A4663;            /* 次级文字 */
  --c-muted: #7A869E;            /* 辅助文字 灰蓝 */
  --c-brand: #F36B32;            /* 品牌强调 活力橙 */
  --c-brand-dark: #E1571E;       /* 橙色深 */
  --c-gold: #D9A64A;             /* 辅助金 香槟金 */
  --c-line: #ECEFF5;             /* 分隔线 */
  --c-line-2: #E2E7F0;
  --c-nav: #10182A;              /* 导航深海蓝 */

  --c-ok: #12B76A;
  --c-ok-bg: #ECFDF3;
  --c-warn: #B54708;
  --c-warn-bg: #FFFAEB;
  --c-err: #B42318;
  --c-err-bg: #FEF3F2;

  /* 圆角 / 阴影 */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 42, .04), 0 1px 3px rgba(16, 24, 42, .05);
  --shadow-md: 0 10px 30px rgba(16, 24, 42, .08);
  --shadow-lg: 0 22px 48px rgba(16, 24, 42, .12);

  --font: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Hiragino Sans GB", "Noto Sans SC", sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-brand-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.25; margin: 0; font-weight: 800; letter-spacing: -.01em; }

/* =========================================================================
   顶部导航
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 21px;
  color: var(--c-ink);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--c-ink); }
.brand-logo {
  width: 34px; height: 34px; flex: 0 0 auto;
  object-fit: contain;
}
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #F36B32, #E1571E);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px;
  box-shadow: 0 4px 12px rgba(243, 107, 50, .28);
}
.brand .brand-sub {
  font-size: 11px; font-weight: 600; color: var(--c-muted);
  letter-spacing: .04em; margin-top: 2px;
}

.topnav { display: flex; gap: 2px; flex: 1; }
.topnav a {
  color: var(--c-ink-2);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background .15s, color .15s;
}
.topnav a:hover { color: var(--c-ink); background: #F1F3F8; }
.topnav a.active { color: var(--c-brand); }

.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search-box { position: relative; }
.search-box input {
  height: 40px; width: 200px;
  padding: 0 16px 0 38px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  background: #F1F3F8;
  font-size: 14px; color: var(--c-ink);
  transition: width .2s, background .2s, border-color .2s;
}
.search-box input:focus {
  outline: none; background: #fff; border-color: var(--c-brand);
  width: 240px;
}
.search-box .s-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--c-muted); pointer-events: none;
}

.btn-order-lookup {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  color: var(--c-ink-2); font-weight: 650; font-size: 14px;
  background: #fff;
  transition: border-color .15s, color .15s;
}
.btn-order-lookup:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--c-line-2); border-radius: 10px;
  background: #fff; color: var(--c-ink);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--c-line);
  background: #fff;
  padding: 8px 20px 18px;
}
.mobile-menu a {
  display: block; padding: 12px 4px;
  color: var(--c-ink-2); font-weight: 600;
  border-bottom: 1px solid var(--c-line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .search-box input { width: 100%; }

@media (max-width: 960px) {
  .topnav { display: none; }
  .topbar-actions .search-box { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open { display: block; }
  .topbar-actions { margin-left: auto; }
  .brand .brand-sub { display: none; }
  .brand { font-size: 18px; }
  .topbar-inner { gap: 12px; padding: 0 16px; }
  .btn-order-lookup { padding: 0 14px; font-size: 13px; }
}
@media (max-width: 420px) {
  .btn-order-lookup { padding: 0 11px; }
  .btn-order-lookup .ol-text { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .brand { font-size: 16px; gap: 8px; }
}

/* =========================================================================
   布局容器 / 区块
   ========================================================================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 26px; gap: 16px;
}
.section-head h2 { font-size: 26px; }
.section-head .sub { color: var(--c-muted); font-size: 14px; margin-top: 4px; }
.section-head .more { font-weight: 650; font-size: 14px; white-space: nowrap; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  color: var(--c-brand); text-transform: uppercase;
}

/* =========================================================================
   首页 Hero
   ========================================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(243, 107, 50, .16), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(217, 166, 74, .14), transparent 55%),
    linear-gradient(180deg, #0E1526 0%, #10182A 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  padding: 38px 24px 42px;
  text-align: center;
}
.hero .eyebrow { color: var(--c-gold); }
.hero h1 {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 850;
  letter-spacing: -.03em;
  margin: 10px 0 8px;
}
.hero h1 em { font-style: normal; color: var(--c-brand); }
.hero .lead {
  font-size: 16px; color: rgba(255,255,255,.72);
  margin: 0 auto 10px; max-width: 560px;
}
.hero .desc {
  font-size: 15px; color: rgba(255,255,255,.55);
  max-width: 620px; margin: 0 auto 30px;
}
.hero-search {
  max-width: 520px; margin: 0 auto 0;
  display: flex; gap: 10px;
  background: #fff; padding: 6px; border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}
.hero-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none;
  padding: 0 16px; font-size: 15px; color: var(--c-ink);
  background: transparent;
}
.hero-search button {
  height: 46px; padding: 0 24px; flex: 0 0 auto;
  border: 0; border-radius: 999px;
  background: var(--c-brand); color: #fff;
  font-weight: 750; font-size: 15px; cursor: pointer;
  transition: background .15s;
}
.hero-search button:hover { background: var(--c-brand-dark); }

.hero-quick { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-quick a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: 14px; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.hero-quick a:hover { background: rgba(243,107,50,.22); border-color: rgba(243,107,50,.5); color: #fff; }
.hero-quick a svg { width: 16px; height: 16px; }

@media (max-width: 520px) {
  .hero-inner { padding: 56px 20px 64px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; }
  .hero .desc { font-size: 14px; }
  .hero-search { padding: 5px; }
  .hero-search button { padding: 0 18px; height: 44px; }
}

/* 品牌信任条 */
.trustbar {
  border-bottom: 1px solid var(--c-line);
  background: #fff;
}
.trustbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 20px;
}
.trust-item {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 0; color: var(--c-ink-2);
}
.trust-item .t-ico {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 9px; background: #FFF4EE; color: var(--c-brand);
  display: flex; align-items: center; justify-content: center;
}
.trust-item .t-ico svg { width: 18px; height: 18px; }
.trust-item strong { display: block; color: var(--c-ink); font-size: 14px; }
.trust-item span { font-size: 12.5px; color: var(--c-muted); }
@media (max-width: 860px) {
  .trustbar-inner { flex-wrap: wrap; }
  .trust-item { flex: 1 1 45%; min-width: 0; }
}
@media (max-width: 520px) {
  .trust-item { flex: 1 1 100%; }
}

/* =========================================================================
   分类入口
   ========================================================================= */
.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 26px 16px; min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-align: center;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #FAD5C4;
  color: var(--c-ink);
}
.cat-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF4EE, #FFE7DB);
  color: var(--c-brand);
  display: flex; align-items: center; justify-content: center;
}
.cat-ico svg { width: 26px; height: 26px; }
.cat-card strong { font-size: 16px; }
.cat-card .cnt { font-size: 12.5px; color: var(--c-muted); }
.cat-card .cnt b { color: var(--c-brand); font-weight: 700; }
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   商品卡片
   ========================================================================= */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 22px; min-width: 0;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #FAD5C4;
  color: inherit;
}
.product-thumb {
  height: 128px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, #F2F5FA, #E8EDF6);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted);
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-thumb svg { width: 44px; height: 44px; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.tag-cat { background: #FFF4EE; color: var(--c-brand); }
.tag-stock { background: var(--c-ok-bg); color: var(--c-ok); }
.tag-out { background: #F2F4F7; color: var(--c-muted); }
.tag-hot { background: #FFF7E8; color: var(--c-gold); }
.product-card h3 { font-size: 17px; margin-bottom: 6px; }
.product-card .p-desc {
  color: var(--c-muted); font-size: 13.5px;
  min-height: 42px; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .p-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--c-line);
}
.price { color: var(--c-brand); font-weight: 850; font-size: 22px; letter-spacing: -.02em; }
.price .cur { font-size: 14px; font-weight: 750; margin-right: 1px; }
.p-buy {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--c-brand); color: #fff;
  font-size: 13.5px; font-weight: 700;
  transition: background .15s;
}
.p-buy:hover { background: var(--c-brand-dark); color: #fff; }
.p-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--c-muted); }

/* =========================================================================
   按钮 / 表单 / 提示
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px;
  border: 0; border-radius: 12px;
  background: var(--c-brand); color: #fff;
  font-weight: 750; font-size: 15px; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--c-brand-dark); }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-secondary {
  background: #fff; color: var(--c-ink-2);
  border: 1px solid var(--c-line-2);
}
.btn-secondary:hover { background: #F7F9FC; color: var(--c-ink); }
.btn-ghost { background: transparent; color: var(--c-brand); }

input, select, textarea {
  font-family: var(--font); font-size: 15px;
  color: var(--c-ink);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(243, 107, 50, .12);
}
label.field-label { display: block; font-weight: 650; font-size: 13.5px; margin-bottom: 7px; color: var(--c-ink-2); }

.alert {
  padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--c-err-bg); color: var(--c-err);
  font-size: 14px; margin: 12px 0;
}
.alert.ok { background: var(--c-ok-bg); color: var(--c-ok); }
.alert.warn { background: var(--c-warn-bg); color: var(--c-warn); }

.muted { color: var(--c-muted); font-size: 13.5px; }
.strong { font-weight: 750; color: var(--c-ink); }
.red { color: var(--c-err); }

/* 表单分隔线（"或"） */
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-muted); font-size: 13px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--c-line-2);
}

.empty {
  text-align: center; padding: 60px 24px;
  background: var(--c-surface); border: 1px dashed var(--c-line-2);
  border-radius: var(--radius-lg); color: var(--c-muted);
}
.empty svg { width: 44px; height: 44px; margin-bottom: 12px; color: #C8D0DE; }

/* =========================================================================
   页脚
   ========================================================================= */
.footer { background: #0E1526; color: rgba(255,255,255,.66); margin-top: 20px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 56px 24px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px;
}
.footer .f-brand { font-size: 20px; font-weight: 850; color: #fff; display: flex; align-items: center; gap: 9px; }
.footer .f-slogan { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 12px; max-width: 260px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,.66); font-size: 13.5px; }
.footer ul a:hover { color: var(--c-brand); }
.qq-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 9px 14px; border-radius: 10px;
  color: #fff; font-weight: 650; font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.qq-chip:hover { background: rgba(243,107,50,.24); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center; color: rgba(255,255,255,.42); font-size: 12.5px;
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================================
   客服浮层
   ========================================================================= */
.cs-float {
  position: fixed; right: 22px; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 20px;
  background: var(--c-ink); color: #fff;
  border-radius: 999px; font-weight: 650; font-size: 14px;
  box-shadow: 0 12px 30px rgba(16,24,42,.28);
  cursor: pointer;
  transition: background .15s;
}
.cs-float:hover { background: #1B2740; color: #fff; }
.cs-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); }

/* 复制 toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--c-ink); color: #fff;
  padding: 12px 22px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================================
   面包屑 / 返回
   ========================================================================= */
.crumbs { font-size: 13.5px; color: var(--c-muted); margin: 22px 0 18px; }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-brand); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); font-weight: 600; }

/* =========================================================================
   结算 / 支付 / 订单 / 查单
   ========================================================================= */
.page-title h1 { font-size: 32px; margin: 8px 0; }
.page-title .sub { color: var(--c-muted); }

.checkout-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; padding-top: 8px; }
@media (max-width: 900px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .checkout-wrap aside, .checkout-wrap .card[style*="sticky"] { position: static !important; }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.summary-row.total { font-size: 20px; border-bottom: 0; padding-top: 18px; }
.summary-row.total strong { color: var(--c-brand); font-size: 26px; }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-options label {
  border: 1.5px solid var(--c-line-2); border-radius: var(--radius-sm);
  padding: 13px 14px; cursor: pointer; display: flex; align-items: center; gap: 9px;
  font-weight: 650; transition: border-color .15s, background .15s;
}
.pay-options label:hover { border-color: #FAD5C4; }
.pay-options label:has(input:checked) { border-color: var(--c-brand); background: #FFF6F0; }
.pay-options input { accent-color: var(--c-brand); }

.notice-box {
  background: #FFFBF7; border: 1px solid #F6E3D2;
  border-radius: var(--radius-lg); padding: 24px; margin-top: 24px;
}
.notice-box h2 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.notice-box ul { margin: 0; padding-left: 20px; color: var(--c-ink-2); line-height: 1.9; }

/* 支付卡片 */
.payment-card, .order-card, .lookup-card {
  max-width: 560px; margin: 30px auto;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 34px;
  text-align: center;
}
.pay-amount { font-size: 38px; font-weight: 850; color: var(--c-ink); margin: 12px 0; }
.pay-amount .cur { font-size: 22px; color: var(--c-brand); margin-right: 2px; }
.qr {
  width: 232px; height: 232px; margin: 18px auto;
  border: 1px solid var(--c-line); border-radius: 16px;
  padding: 10px; background: #fff;
}
.pending { margin: 18px 0; padding: 13px; background: var(--c-warn-bg); color: var(--c-warn); border-radius: var(--radius-sm); font-weight: 600; }
.mock-link { display: inline-block; margin: 12px auto; color: var(--c-brand); font-weight: 650; }

/* 订单卡片 */
.order-card { max-width: 780px; text-align: left; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge.delivered { background: var(--c-ok-bg); color: var(--c-ok); }
.badge.pending { background: var(--c-warn-bg); color: var(--c-warn); }
.badge.failed { background: var(--c-err-bg); color: var(--c-err); }
.badge.paid { background: #EEF4FF; color: #175CD3; }
.delivery-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 26px 0 12px; }
.delivery-head .actions { display: flex; gap: 8px; }
.delivery-head a, .delivery-head button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--c-line-2); background: #fff;
  padding: 8px 14px; border-radius: 9px; color: var(--c-ink-2);
  font-weight: 650; font-size: 13.5px; cursor: pointer;
}
.delivery-head a:hover, .delivery-head button:hover { border-color: var(--c-brand); color: var(--c-brand); }
.order-card pre {
  white-space: pre-wrap; word-break: break-all;
  background: #0E1526; color: #C7D0E0; padding: 18px;
  border-radius: 14px; line-height: 1.7; font-size: 14px;
}

/* 订单列表 */
.order-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 20px auto; }
.order-list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: 14px; padding: 18px 20px;
  color: inherit; transition: box-shadow .15s, border-color .15s;
}
.order-list-item:hover { box-shadow: var(--shadow-sm); border-color: #FAD5C4; color: inherit; }
.order-list-item .o-main strong { font-size: 15.5px; }
.order-list-item .o-main small { display: block; color: var(--c-muted); margin-top: 4px; font-size: 12.5px; }
.order-list-right { display: flex; align-items: center; gap: 14px; }
.amount { font-weight: 800; font-size: 17px; color: var(--c-ink); }

/* 验证码输入 */
.code-input {
  width: 100%; text-align: center;
  font-size: 26px; letter-spacing: 12px; font-weight: 800;
  padding: 14px; border-radius: 12px;
}

/* =========================================================================
   商品列表页（筛选 / 排序 / 分页）
   ========================================================================= */
.listing-head { margin: 8px 0 22px; }
.listing-head h1 { font-size: 30px; margin: 8px 0; }
.listing-head .sub { color: var(--c-muted); }

.filterbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--c-line-2); background: #fff;
  color: var(--c-ink-2); font-weight: 650; font-size: 14px;
  transition: all .15s;
}
.filter-chip:hover { border-color: #FAD5C4; color: var(--c-brand); }
.filter-chip.active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.filter-chip .n { font-size: 12px; color: var(--c-muted); }
.filter-chip.active .n { color: rgba(255,255,255,.6); }

.sortbar { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sortbar select {
  padding: 8px 14px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--c-line-2); background: #fff;
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--c-line-2); border-radius: 10px;
  color: var(--c-ink-2); font-weight: 650; font-size: 14px;
  background: #fff;
}
.pagination a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.pagination .cur { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ═══ 单页版（2026-11-03）：紧凑 hero + 分类胶囊 ═══ */
.hero-slim .hero-inner { padding: 13px 24px 15px; }
.hero-slim h1 {
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 850; letter-spacing: -.02em;
  margin: 0 0 10px; color: #fff;
}
.hero-slim h1 em { font-style: normal; color: var(--c-brand); }
.hero-slim .hero-search { max-width: 460px; margin: 0 auto; }

.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 22px;
}
.cat-tab {
  display: inline-block;
  padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--c-line);
  font-size: 14px; color: var(--c-ink); text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.cat-tab:hover { border-color: var(--c-brand); color: var(--c-brand); }
.cat-tab.active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* 封面再压一档：让第一屏直接进商品区 */
.hero-slim .hero-inner { padding: 12px 24px 14px; }
.hero-slim h1 { margin-bottom: 9px; }

/* ---------- 商品页单栏购买卡 ---------- */
.buy-single {
  display: flex;
  justify-content: center;
  padding: 26px 0 40px;
}
.buy-card {
  width: 100%;
  max-width: 520px;
  padding: 26px 28px 24px;
}
.buy-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.45;
  padding-bottom: 2px;
}
@media (max-width: 560px) {
  .buy-single { padding: 14px 0 24px; }
  .buy-card { padding: 20px 18px; }
  .buy-title { font-size: 16px; }
}


/* ---------- 首页：按分类分块 ---------- */
.cat-block { margin: 0 0 30px; }
.cat-block:first-of-type { margin-top: 26px; }
.cat-block:last-child { margin-bottom: 8px; }
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--c-line-2, #EEF0F4);
  margin-bottom: 16px;
}
.cat-head h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--c-ink, #1F2330);
  letter-spacing: .2px;
}
.cat-count {
  font-size: 12.5px;
  color: var(--c-muted, #8A93A6);
}
@media (max-width: 560px) {
  .cat-block { margin-bottom: 22px; }
  .cat-head h2 { font-size: 15.5px; }
}

/* ---- 商品长详情（卖源码 / 卖服务这类需要讲清楚的商品） ---- */
.detail-wrap { max-width: 820px; margin: 0 auto 34px; }
.detail-card { padding: 30px 32px 34px; font-size: 14px; line-height: 1.9; color: var(--c-ink-2); }
.detail-card h3 { font-size: 17px; font-weight: 700; color: var(--c-ink); margin: 26px 0 10px; }
.detail-card h3:first-child { margin-top: 0; }
.detail-card h4 { font-size: 14.5px; font-weight: 700; color: var(--c-ink); margin: 18px 0 8px; }
.detail-card p { margin: 0 0 12px; }
.detail-card ul, .detail-card ol { margin: 0 0 14px; padding-left: 22px; }
.detail-card li { margin: 0 0 7px; }
.detail-card strong { color: var(--c-ink); font-weight: 700; }
.detail-card code { background: #F3F4F7; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; color: var(--c-brand); }
.detail-card table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13.5px; }
.detail-card th, .detail-card td { border: 1px solid var(--c-line-2,#EEF0F4); padding: 9px 12px; text-align: left; }
.detail-card th { background: #FAFBFC; font-weight: 700; color: var(--c-ink); }
.detail-card tr:nth-child(even) td { background: #FCFCFD; }
/* 第一列是字段名，nowrap 防止「TK用户名」被拆成两行 */
.detail-card th:first-child, .detail-card td:first-child { white-space: nowrap; width: 1%; }
.detail-card td:nth-child(3) { min-width: 200px; }
.detail-card img { max-width: 100%; border-radius: 10px; margin: 8px 0 14px; border: 1px solid var(--c-line-2,#EEF0F4); }
.detail-card hr { border: 0; border-top: 1px solid var(--c-line-2,#EEF0F4); margin: 26px 0; }
.detail-card .tip { background: #FFF7E8; border-radius: 10px; padding: 14px 16px; margin: 14px 0; color: var(--c-gold); font-size: 13px; }
@media (max-width: 560px) {
  .detail-card { padding: 22px 18px 26px; font-size: 13.5px; }
  .detail-card table { font-size: 12.5px; }
  .detail-card th, .detail-card td { padding: 7px 8px; }
}

/* ---- 首页：商品横排，按分类顺序排列（分类名做成卡片上的标签） ---- */
.home-grid { margin-top: 26px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (max-width: 620px)  { .home-grid { grid-template-columns: 1fr; } }
.home-grid .product-card { min-height: 100%; }

/* 首页 SEO 主标题：视觉上是副标题，语义上是页面唯一的 h1 */
.home-h1 { font-size: 14px; font-weight: 600; color: #6b7280; margin: 22px 0 -10px; letter-spacing: .2px; }
@media (max-width: 560px) { .home-h1 { font-size: 12.5px; margin: 16px 0 -8px; } }

/* 首页 h1 下方的实时库存说明 */
.home-sub { font-size: 12.5px; color: #9aa3b2; margin: 8px 0 0; letter-spacing: .2px; }
@media (max-width: 560px) { .home-sub { font-size: 11.5px; margin-top: 6px; } }

/* 首页常见问题：默认折叠，主要给搜索引擎与 AI 抓取，视觉上不抢商品 */
.home-faq { max-width: 820px; margin: 34px auto 10px; border-top: 1px solid #EEF0F4; padding-top: 16px; }
.home-faq > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #8a93a6; list-style: none; padding: 6px 0; }
.home-faq > summary::-webkit-details-marker { display: none; }
.home-faq > summary::before { content: '▸ '; }
.home-faq[open] > summary::before { content: '▾ '; }
.home-faq dl { margin: 10px 0 0; }
.home-faq dt { font-size: 13.5px; font-weight: 600; color: #374151; margin: 16px 0 5px; }
.home-faq dd { font-size: 13px; line-height: 1.85; color: #6b7280; margin: 0; }
@media (max-width: 560px) { .home-faq dt, .home-faq dd { font-size: 12.5px; } }
