/* ============================================================
   LinkHub 链汇 · 设计系统 v2
   「电子票据」视觉语言：暖纸白 · 墨黑 · 信号绿
   细线描边图标 / 等宽卡密 / 票据虚线细节
   ============================================================ */

:root {
  /* 墨色 */
  --ink-900: #16181d;
  --ink-700: #3f444d;
  --ink-500: #6f7580;
  --ink-400: #9aa0ab;

  /* 纸面 */
  --bg: #fafaf7;
  --card: #ffffff;
  --line: #e8e6e0;
  --line-dark: #d8d5cd;

  /* 信号绿（唯一强调色） */
  --acc: #0da45f;
  --acc-deep: #0a8a50;
  --acc-soft: #e7f6ee;
  --acc-mark: #c9f0db;

  /* 功能色 */
  --warning: #b45309;
  --warning-soft: #fdf4e3;
  --danger: #dc2626;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .05);
  --shadow-md: 0 10px 28px -12px rgba(22, 24, 29, .14);

  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
code { font-family: var(--mono); }

/* 描边图标 */
.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 247, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 28px);
}

.site-header .header-inner {
  max-width: none;
  width: 100%;
  padding-left: clamp(18px, 3vw, 48px);
  padding-right: clamp(18px, 3vw, 48px);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.site-header .logo {
  width: 90px;
  height: var(--header-h);
  overflow: hidden;
}

.brand-logo-img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header .logo img.mark,
.site-header .logo .brand-logo-img {
  width: 82px !important;
  height: 44px !important;
  max-width: 82px !important;
  max-height: 44px !important;
  object-position: left center;
}

.logo .logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-900);
}

.logo .logo-cn {
  font-size: 12px;
  color: var(--ink-400);
  font-weight: 500;
  padding-top: 5px;
  margin-left: -3px;
}

.main-nav {
  display: flex;
  gap: clamp(12px, 1.25vw, 20px);
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.main-nav a {
  flex-shrink: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-500);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s;
}

.main-nav a:hover { color: var(--ink-900); }
.main-nav a.active { color: var(--ink-900); font-weight: 600; border-bottom-color: var(--acc); }

.main-nav a.nav-rank {
  color: var(--acc-deep);
  font-weight: 700;
  background: var(--acc-soft);
  padding: 7px 15px;
  border-radius: 20px;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
}
.main-nav a.nav-rank:hover { color: var(--acc-deep); background: var(--acc-mark); }
.main-nav a.nav-rank.active { color: var(--acc-deep); border-bottom: none; box-shadow: inset 0 0 0 1.5px var(--acc); }

.header-search {
  flex: 1 1 320px;
  min-width: 240px;
  max-width: 520px;
  margin-left: auto;
  position: relative;
}

.header-search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 66px 0 38px;
  font-size: 13.5px;
  background: var(--card);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.header-search .search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  padding: 0 4px 0 12px;
  border: none;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--acc-deep);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s;
}
.header-search .search-btn:hover { color: var(--acc); }

.header-search input:focus {
  border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(22, 24, 29, .07);
}

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
  display: flex;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.header-actions.merchant-logged-in { gap: 10px; }
.header-actions .merchant-session-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 188px;
  min-width: 0;
  padding: 6px 12px 6px 7px;
}
.merchant-session-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--acc-soft);
  color: var(--acc-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.merchant-session-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.merchant-session-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-login {
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all .15s;
}
.btn-login:hover { border-color: var(--ink-900); color: var(--ink-900); }

.header-actions .btn-primary {
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 13px;
}

.btn-ghost {
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  border: 1px solid var(--line-dark);
  background: var(--card);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-ghost:hover { border-color: var(--ink-700); color: var(--ink-900); }

.btn-primary {
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--ink-900);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-accent {
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--acc);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-accent:hover { background: var(--acc-deep); }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  background: var(--card);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(22, 24, 29, .18);
  padding: 10px 16px 16px;
  z-index: 99;
  animation: slideDown .22s ease;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 13px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
}

.mobile-menu a.active, .mobile-menu a:hover { color: var(--ink-900); background: var(--bg); font-weight: 600; }
.mobile-menu a.nav-rank { color: var(--acc-deep); font-weight: 700; background: var(--acc-soft); }
.mobile-menu a.nav-rank.active, .mobile-menu a.nav-rank:hover { color: var(--acc-deep); background: var(--acc-mark); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--acc-deep);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.section-sub { font-size: 14px; color: var(--ink-500); margin-top: 8px; }

.link-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
  transition: all .15s;
}

.link-more:hover { color: var(--ink-900); border-bottom-color: var(--ink-900); }

/* ---------------- Platform announcements & banners ---------------- */
.platform-ann-bar {
  background: linear-gradient(90deg, #fff9eb, #fff);
  border-bottom: 1px solid #f0e6cc;
  font-size: 13px;
}

.platform-ann-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 0;
}

.platform-ann-label {
  flex-shrink: 0;
  font-weight: 700;
  color: #b45309;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.platform-ann-scroll {
  flex: 1;
  overflow: hidden;
  height: 24px;
}

.platform-ann-list {
  transition: transform .35s ease;
}

.platform-ann-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  height: 24px;
  line-height: 24px;
  color: var(--ink-700);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: inherit;
}

.platform-ann-login {
  max-width: 420px;
  margin: 16px auto 0;
  border-radius: 10px;
  overflow: hidden;
}

.platform-ann-login .platform-ann-inner {
  padding: 8px 14px;
}
.platform-ann-item.pinned::before { content: "置顶 · "; color: #b45309; font-weight: 600; }

.platform-banners-wrap {
  padding: 20px 0 0;
  background: var(--bg);
}

.platform-banners-mid {
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}

.platform-banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  background: #111;
}

.platform-banner-track {
  display: flex;
  transition: transform .45s ease;
}

.platform-banner-slide {
  flex: 0 0 100%;
  display: block;
  min-height: 160px;
  text-decoration: none;
  color: #fff;
}

.platform-banner-slide.has-image {
  min-height: auto;
  background: #111;
}

.platform-banner-slide img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.platform-banner-fallback {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px;
  background: linear-gradient(120deg, #0a8a50, #0da45f);
  text-align: center;
}

.platform-banner-fallback b { font-size: 22px; font-weight: 800; }
.platform-banner-fallback span { font-size: 14px; opacity: .9; }

.platform-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.platform-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  padding: 0;
}

.platform-banner-dot.active { background: #fff; width: 22px; }

.platform-ann-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 17, 21, .45);
}

.platform-ann-modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.platform-ann-modal-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.platform-ann-modal-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-600);
  white-space: pre-wrap;
}

.platform-ann-modal-actions {
  margin-top: 20px;
  text-align: right;
}

.platform-ann-modal-actions button {
  border: none;
  background: var(--acc-deep);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.platform-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 17, 21, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.platform-popup-card {
  position: relative;
  width: min(480px, 100%);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.platform-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.platform-popup-card img {
  width: 100%;
  display: block;
}

.platform-popup-body {
  padding: 20px 22px 22px;
}

.platform-popup-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.platform-popup-body p {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.6;
}

.platform-popup-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--acc-deep);
  font-weight: 600;
  text-decoration: none;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--card);
  border: 1px solid var(--line-dark);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero-tag .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 0 rgba(13, 164, 95, .4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 164, 95, .4); }
  70% { box-shadow: 0 0 0 7px rgba(13, 164, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 164, 95, 0); }
}

.hero h1 {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.22;
}

.hero h1 .grad {
  background: linear-gradient(180deg, transparent 64%, var(--acc-mark) 64%);
  padding: 0 2px;
}

.hero .lead {
  font-size: 16px;
  color: var(--ink-500);
  margin: 20px auto 32px;
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  padding: 20px 56px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: var(--ink-900);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px -8px rgba(22, 24, 29, .35);
  transition: all .2s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(22, 24, 29, .45);
  background: #000;
}

.hero-cta:active { transform: translateY(-1px); }

.hero-stats { display: flex; justify-content: center; margin-top: 44px; }

.hero-stats .stat { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--line-dark); }
.hero-stats .stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }

.hero-stats .num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.035em;
  color: var(--ink-900);
}

.hero-stats .num span { font-weight: 900; }

.hero-stats .num em {
  font-style: normal;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.035em;
  color: var(--ink-900);
}
.hero-stats .label { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }

/* ----- 发货小票（Hero 右侧） ----- */
.hero-ticket {
  background: var(--card);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 0;
  max-width: 380px;
  margin-left: auto;
  transform: rotate(1.2deg);
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.ticket-head .t-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.ticket-head .t-brand svg { width: 20px; height: 20px; }

.ticket-head .t-time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-400); }

.ticket-body { padding: 18px 24px; }

.t-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 5px 0;
}

.t-row .t-label { color: var(--ink-400); flex-shrink: 0; }
.t-row .t-val { font-weight: 600; text-align: right; }
.t-row .t-val.mono { font-family: var(--mono); font-weight: 500; }

.ticket-perfo {
  position: relative;
  border-top: 2px dashed var(--line-dark);
  margin: 0 -1px;
}

.ticket-perfo::before, .ticket-perfo::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-dark);
}

.ticket-perfo::before { left: -10px; clip-path: inset(0 0 0 50%); }
.ticket-perfo::after { right: -10px; clip-path: inset(0 50% 0 0); }

.ticket-key { padding: 18px 24px 22px; position: relative; }

.ticket-key .t-label { font-size: 12px; color: var(--ink-400); display: block; margin-bottom: 8px; }

.ticket-key code {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--bg);
  border: 1px dashed var(--line-dark);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}

.t-stamp {
  position: absolute;
  right: 18px;
  top: -16px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--acc-deep);
  border: 2px solid var(--acc);
  border-radius: 6px;
  padding: 3px 10px;
  background: rgba(231, 246, 238, .8);
  transform: rotate(-5deg);
  letter-spacing: .04em;
}

/* ---------------- 信任特性 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
}

.feature-card { padding: 26px 26px 28px; border-right: 1px solid var(--line); }
.feature-card:last-child { border-right: none; }

.feature-card .icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  color: var(--ink-900);
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--ink-500); line-height: 1.7; }

/* ---------------- 分类 chips ---------------- */
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }

.cat-chips button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-500);
  background: var(--card);
  border: 1px solid var(--line-dark);
  transition: all .15s;
}

.cat-chips button:hover { color: var(--ink-900); border-color: var(--ink-700); }

.cat-chips button.active {
  color: #fff;
  background: var(--ink-900);
  border-color: var(--ink-900);
  font-weight: 600;
}

/* ---------------- 商品卡片 ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-dark);
}

.product-cover {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
}

.product-cover.has-image {
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}

.product-cover.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-cover .ic { width: 40px; height: 40px; stroke-width: 1.5; opacity: .85; }

.product-cover .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--ink-900);
  color: #fff;
  letter-spacing: .02em;
}

.product-body { padding: 14px 16px 15px; flex: 1; display: flex; flex-direction: column; }

.product-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--ink-400);
}

.product-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-dark); }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.price { display: flex; align-items: baseline; gap: 2px; color: var(--ink-900); font-family: var(--mono); }
.price .symbol { font-size: 12px; font-weight: 700; }
.price .num { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }

.stock-tag {
  font-size: 12px;
  color: var(--acc-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stock-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.stock-tag.low { color: var(--warning); }
.stock-tag.low::before { background: var(--warning); }

/* ---------------- 店铺卡片 ---------------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.shop-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all .2s;
}

.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-dark); }

a.shop-card { text-decoration: none; color: inherit; cursor: pointer; }

.shop-avatar {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line-dark);
  flex-shrink: 0;
  overflow: hidden;
}

.shop-avatar.has-image {
  background: #fff;
}

.shop-avatar img,
.podium-avatar img,
.rank-row .ravatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }

.verified {
  font-size: 11px;
  font-weight: 600;
  color: var(--acc-deep);
  background: var(--acc-soft);
  padding: 2px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.verified.unverified {
  color: #8a5b00;
  background: #fff3d6;
}

.shop-card .desc {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card .meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-400); margin-top: 10px; flex-wrap: wrap; }
.shop-card .meta b { color: var(--ink-900); font-weight: 600; font-family: var(--mono); }
.shop-card .cat { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--acc-deep); background: var(--acc-soft); padding: 2px 9px; border-radius: 6px; margin-top: 8px; }

/* ---------------- 店铺成长榜 ---------------- */
.rank-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.rank-title { font-size: 27px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.rank-title .ic { color: var(--acc-deep); }
.rank-sub { font-size: 14px; color: var(--ink-500); margin-top: 8px; }
.rank-updated { font-size: 12.5px; color: var(--ink-400); font-family: var(--mono); white-space: nowrap; }

.rank-tabs { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.rank-tabs button { font-size: 14.5px; font-weight: 600; padding: 11px 24px; border-radius: 24px; border: 1.5px solid var(--line-dark); background: var(--card); color: var(--ink-700); cursor: pointer; transition: all .15s; }
.rank-tabs button:hover { color: var(--ink-900); border-color: var(--ink-900); background: var(--bg); }
.rank-tabs button.active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); box-shadow: 0 6px 16px -6px rgba(22, 24, 29, .35); }

/* 领奖台（前三名） */
.podium { display: flex; gap: 18px; align-items: flex-end; margin: 34px 0 22px; }
.podium-card { flex: 1; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 20px 24px; text-align: center; transition: all .2s; text-decoration: none; color: inherit; display: block; }
.podium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.podium-card.p1 { order: 2; padding-top: 42px; border-color: #e6cd86; box-shadow: 0 16px 46px -20px rgba(199, 154, 59, .55); }
.podium-card.p2 { order: 1; }
.podium-card.p3 { order: 3; }

.podium-card .crown { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); color: #c79a3b; }
.podium-card .rank-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 14px; border: 3px solid var(--card); }
.rank-badge.g1 { background: #f3d79b; color: #8a6414; }
.rank-badge.g2 { background: #e2e5ea; color: #5f6a79; }
.rank-badge.g3 { background: #eccdb3; color: #8f5326; }

.podium-avatar { width: 64px; height: 64px; border-radius: 18px; margin: 8px auto 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--ink-900); border: 1px solid var(--line-dark); overflow: hidden; }
.podium-card.p1 .podium-avatar { width: 76px; height: 76px; font-size: 31px; }
.podium-card h3 { font-size: 16px; font-weight: 700; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.title-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 20px; margin-top: 9px; }
.title-badge.g1 { background: #f7eccb; color: #8a6414; }
.title-badge.g2 { background: #eceef2; color: #5f6a79; }
.title-badge.g3 { background: #f3e3d6; color: #8f5326; }

.podium-sales { margin-top: 16px; }
.podium-sales .label { font-size: 11.5px; color: var(--ink-400); }
.podium-sales .amt { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; }
.podium-card.p1 .podium-sales .amt { font-size: 25px; color: var(--acc-deep); }
.podium-meta { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--ink-500); }
.podium-meta b { color: var(--ink-900); font-family: var(--mono); font-weight: 600; }

.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-family: var(--mono); }
.trend.up { color: var(--acc-deep); }
.trend.down { color: var(--warning); }
.trend.flat { color: var(--ink-400); }
.podium-trend { margin-top: 13px; font-size: 12.5px; }

.podium-enter { display: block; margin-top: 16px; padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--line-dark); font-size: 13px; font-weight: 600; color: var(--ink-900); transition: all .15s; }
.podium-card:hover .podium-enter { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* 榜单 4-10 名 */
.rank-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.rank-row { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px dashed var(--line); transition: background .15s; text-decoration: none; color: inherit; }
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: var(--bg); }
.rank-row .no { width: 26px; flex-shrink: 0; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--ink-400); }
.rank-row .ravatar { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: var(--ink-900); border: 1px solid var(--line-dark); overflow: hidden; }
.rank-row .rinfo { flex: 1; min-width: 0; }
.rank-row .rinfo h4 { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rank-row .rinfo p { font-size: 12px; color: var(--ink-400); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .rsales { text-align: right; flex-shrink: 0; }
.rank-row .rsales .amt { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink-900); }
.rank-row .rsales .label { font-size: 11px; color: var(--ink-400); margin-top: 1px; }
.rank-row .rtrend { width: 56px; flex-shrink: 0; justify-content: flex-end; font-size: 12.5px; }
.rank-row .rchev { color: var(--line-dark); flex-shrink: 0; }
.rank-row:hover .rchev { color: var(--ink-500); }

/* 开店激励 */
.rank-cta { margin-top: 40px; background: var(--ink-900); color: #fff; border-radius: var(--r-lg); padding: 38px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.rank-cta::after { content: ""; position: absolute; right: -50px; top: -50px; width: 230px; height: 230px; background: radial-gradient(circle, rgba(13, 164, 95, .4), transparent 70%); pointer-events: none; }
.rank-cta .cta-text { position: relative; z-index: 1; }
.rank-cta h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.rank-cta .cta-text > p { font-size: 14px; opacity: .72; margin-top: 8px; max-width: 540px; line-height: 1.6; }
.rank-cta .cta-stats { display: flex; gap: 34px; margin-top: 20px; }
.rank-cta .cta-stats .num { display: flex; align-items: baseline; gap: 6px; min-height: 34px; color: #3ddc8c; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.rank-cta .cta-stats .figure { font-size: 28px; line-height: 1; }
.rank-cta .cta-stats .unit { font-size: 18px; line-height: 1; font-weight: 700; }
.rank-cta .cta-stats .lbl { font-size: 12px; opacity: .6; margin-top: 3px; }
.rank-cta .cta-btn { position: relative; z-index: 1; background: var(--acc); color: #fff; padding: 15px 30px; border-radius: var(--r-md); font-size: 15.5px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background .15s; }
.rank-cta .cta-btn:hover { background: #12c06f; }

/* ---------------- 禁售说明 ---------------- */
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.about-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rule-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.rule-card .ric {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fdecec;
  color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.rule-card h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-card p { font-size: 13px; color: var(--ink-500); margin-top: 6px; line-height: 1.8; }

.rule-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; }
.rule-tag.ban { background: #fdecec; color: var(--danger); }
.rule-tag.warn { background: var(--warning-soft); color: var(--warning); }

.rule-notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warning-soft);
  border: 1px solid #f0e1c2;
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--warning);
  line-height: 1.8;
  margin-top: 28px;
}
.rule-notice .ic { flex-shrink: 0; margin-top: 4px; }

@media (max-width: 768px) {
  .about-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-channel-grid { grid-template-columns: 1fr; }
  .rule-grid { grid-template-columns: 1fr; }
}

/* ---------------- 入驻向导 ---------------- */
.stepper { display: flex; align-items: flex-start; margin: 32px 0 28px; }
.stp { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.stp::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--line-dark); }
.stp:first-child::before { display: none; }
.stp .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-dark); color: var(--ink-400); font-family: var(--mono); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: all .2s; }
.stp .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-400); }
.stp.active .dot { background: var(--ink-900); border-color: var(--ink-900); color: #3ddc8c; }
.stp.active .lbl { color: var(--ink-900); }
.stp.done .dot { background: var(--acc); border-color: var(--acc); font-size: 0; }
.stp.done .dot::after { content: "✓"; color: #fff; font-size: 15px; font-weight: 700; }
.stp.done .lbl { color: var(--acc-deep); }
.stp.done::before, .stp.active::before { background: var(--acc); }

.wiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.wiz-actions .btn-primary { padding: 13px 34px; font-size: 14.5px; border-radius: var(--r-md); }
.wiz-actions .spacer { flex: 1; }

.verify-row { display: flex; gap: 10px; }
.verify-row input { flex: 1; }
.verify-row .send-code { flex-shrink: 0; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line-dark); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink-700); cursor: pointer; transition: all .15s; }
.verify-row .send-code:hover { border-color: var(--ink-900); color: var(--ink-900); }

.id-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }

.opt-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 11px; font-weight: 600; color: var(--acc-deep); background: var(--acc-soft); border-radius: 10px; vertical-align: middle; }

.chip-multi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip-opt {
  position: relative;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--card);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.chip-opt:hover { border-color: var(--ink-700); color: var(--ink-900); }
.chip-opt.active {
  color: var(--acc-deep);
  font-weight: 600;
  background: var(--acc-soft);
  border-color: var(--acc);
  box-shadow: inset 0 0 0 1px var(--acc);
}
.chip-opt.active::before { content: "✓ "; font-weight: 700; }
.chip-opt.is-custom { padding-right: 28px; }
.chip-opt .chip-remove {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-400);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.chip-opt .chip-remove:hover { color: #b91c1c; background: #fee2e2; }
.chip-add-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.chip-add-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  font-size: 13px;
  background: var(--card);
  color: var(--ink-900);
}
.chip-add-row input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
.chip-add-row .a-btn { height: 38px; flex-shrink: 0; }

.done-panel { text-align: center; padding: 46px 28px 40px; }
.done-panel .done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.done-panel h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.done-panel > p { font-size: 14px; color: var(--ink-500); margin-top: 10px; line-height: 1.8; }
.done-panel .mk-line { max-width: 420px; margin: 22px auto 0; text-align: left; }
.done-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .stp .lbl { font-size: 11px; }
  .wiz-actions { flex-direction: column-reverse; align-items: stretch; }
  .wiz-actions .btn-primary, .wiz-actions .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .done-actions { flex-direction: column; }
}

/* ---------------- 帮助文档 ---------------- */
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 34px; }
.doc-layout > * { min-width: 0; }

.doc-toc { position: sticky; top: 84px; min-width: 0; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; }
.doc-toc .toc-title { font-size: 11px; font-weight: 700; color: var(--ink-400); letter-spacing: .1em; padding: 6px 12px 8px; }
.doc-toc a { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-500); padding: 8px 12px; border-radius: 8px; }
.doc-toc a .no { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-400); width: 18px; flex-shrink: 0; }
.doc-toc a:hover { background: var(--bg); color: var(--ink-900); }

.doc-section { scroll-margin-top: 86px; }
.doc-section + .doc-section { margin-top: 56px; padding-top: 36px; border-top: 1px dashed var(--line-dark); }
.doc-section > h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.doc-section > h2 .badge-no { width: 30px; height: 30px; border-radius: 9px; background: var(--ink-900); color: #3ddc8c; font-family: var(--mono); font-size: 13.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-section > .lead { font-size: 14px; color: var(--ink-500); margin-top: 10px; line-height: 1.9; }

.doc-steps { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; counter-reset: dstep; padding: 0; }
.doc-steps li { list-style: none; position: relative; padding-left: 34px; font-size: 13.5px; color: var(--ink-700); line-height: 1.8; counter-increment: dstep; }
.doc-steps li::before { content: counter(dstep); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-deep); font-family: var(--mono); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.doc-steps li b { color: var(--ink-900); }

.doc-tip { display: flex; gap: 9px; align-items: flex-start; margin-top: 18px; padding: 13px 16px; border-radius: var(--r-sm); background: var(--acc-soft); color: var(--acc-deep); font-size: 13px; line-height: 1.7; }
.doc-tip.warn { background: var(--warning-soft); color: var(--warning); }
.doc-tip .ic { flex-shrink: 0; margin-top: 2px; }
.doc-tip a { text-decoration: underline; font-weight: 600; color: inherit; }

/* 模拟界面插图 */
.mock { margin-top: 20px; border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); background: var(--card); max-width: 560px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-dark); }
.mock-bar i:nth-child(1) { background: #f1a5a5; }
.mock-bar i:nth-child(2) { background: #f3d79b; }
.mock-bar i:nth-child(3) { background: #a8dcc0; }
.mock-bar span { margin-left: 6px; font-size: 11.5px; color: var(--ink-400); font-family: var(--mono); }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }

.mk-field label { font-size: 11.5px; font-weight: 600; color: var(--ink-500); display: block; margin-bottom: 5px; }
.mk-input { border: 1px solid var(--line-dark); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; color: var(--ink-400); background: var(--card); }
.mk-input.filled { color: var(--ink-900); font-weight: 500; }
.mk-input.mono { font-family: var(--mono); }
.mk-row { display: flex; gap: 10px; }
.mk-row > * { flex: 1; }
.mk-row > .mk-btn { flex: 0 0 auto; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink-900); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 10px 18px; }
.mk-btn.green { background: var(--acc); }
.mk-note { font-size: 11.5px; color: var(--ink-400); }
.mk-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-dark); border-radius: 8px; font-size: 12.5px; color: var(--ink-500); }
.mk-line code { font-family: var(--mono); color: var(--ink-900); font-size: 12px; }
.mk-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--acc-soft); color: var(--acc-deep); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; font-family: var(--mono); white-space: nowrap; }
.mk-opt { flex: 1; border: 1.5px solid var(--line-dark); border-radius: 8px; padding: 11px 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-700); }
.mk-opt.sel { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-deep); }
.mk-keys { font-family: var(--mono); font-size: 11.5px; line-height: 2; color: var(--ink-700); border: 1px solid var(--line-dark); border-radius: 8px; padding: 10px 13px; background: var(--bg); }
.mk-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mk-tr { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 13px; font-size: 12px; color: var(--ink-700); border-bottom: 1px dashed var(--line); }
.mk-tr:last-child { border-bottom: none; }
.mk-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--acc-soft); color: var(--acc-deep); white-space: nowrap; }
.mk-status.pend { background: var(--warning-soft); color: var(--warning); }
.mk-amt { font-family: var(--mono); font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.mk-amt.in { color: var(--acc-deep); }
.mk-stats { display: flex; gap: 10px; }
.mk-stat { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.mk-stat .lbl { font-size: 11px; color: var(--ink-400); }
.mk-stat .num { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--ink-900); margin-top: 3px; }
.mk-stat .num.green { color: var(--acc-deep); }

@media (max-width: 768px) {
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .doc-toc { position: static; display: flex; overflow-x: auto; padding: 8px; gap: 2px; }
  .doc-toc .toc-title { display: none; }
  .doc-toc a { white-space: nowrap; padding: 8px 10px; }
  .mk-stats { flex-direction: column; }
}

/* ---------------- 流程步骤 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 22px 24px;
  position: relative;
}

.step-card .step-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--acc-deep);
  letter-spacing: .08em;
  display: block;
  margin-bottom: 14px;
}

.step-card .step-ic { color: var(--ink-900); margin-bottom: 12px; display: block; }

.step-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--ink-500); line-height: 1.7; }

/* ---------------- 为什么选择我们 ---------------- */
.section-head-center { justify-content: center; text-align: center; }

.why-section { padding-top: 48px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
  margin-bottom: 18px;
}

.why-card > h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-dark);
}

.why-points { display: flex; flex-direction: column; gap: 18px; flex: 1; }

.why-point h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 6px;
  line-height: 1.45;
}

.why-point p {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.75;
}

/* ---------------- 商户 CTA ---------------- */
.merchant-cta {
  background: var(--ink-900);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.merchant-cta h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.merchant-cta h2 .acc { color: #3ddc8c; }
.merchant-cta p { font-size: 14.5px; opacity: .72; margin-top: 12px; max-width: 520px; }
.merchant-cta p.no-wrap { max-width: none; white-space: nowrap; }

.merchant-cta .btn-white {
  flex-shrink: 0;
  padding: 14px 30px;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-900);
  font-size: 14.5px;
  font-weight: 700;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.merchant-cta .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }

/* ---------------- FAQ ---------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  text-align: left;
}

.faq-q .chev { transition: transform .25s; color: var(--ink-400); flex-shrink: 0; display: flex; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); color: var(--ink-900); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; font-size: 13.5px; color: var(--ink-500); line-height: 1.9; max-width: 640px; }
.faq-item.open .faq-a { max-height: 220px; }

/* ---------------- 店铺页 ---------------- */
.shop-hero {
  width: 100%;
  background-color: var(--ink-900);
  color: #fff;
  padding: 0 0 44px;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.shop-hero.has-hero-image {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.shop-hero.has-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  pointer-events: none;
}

.shop-hero.has-hero-image > .container {
  position: relative;
  z-index: 1;
}

.shop-hero-inner { display: flex; gap: 22px; align-items: center; }

.shop-hero .shop-avatar {
  width: 72px; height: 72px;
  font-size: 30px;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink-900);
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.shop-hero h1 { font-size: 25px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; letter-spacing: -.02em; }

.shop-hero .verified { background: rgba(61, 220, 140, .15); color: #3ddc8c; }
.shop-hero .verified.unverified { background: rgba(255, 243, 214, .14); color: #f3c76b; }

.shop-hero .shop-desc { font-size: 13.5px; opacity: .65; margin-top: 6px; }

.shop-hero .shop-stats { display: flex; gap: 24px; margin-top: 12px; font-size: 12.5px; opacity: .85; flex-wrap: wrap; }

.store-banners {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.store-banner {
  flex: 0 0 100%;
  width: 100%;
  min-height: 96px;
  border-radius: 5px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
}

.store-banner.has-image {
  padding: 0;
  min-height: auto;
  background: transparent;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 5px;
}

.store-banner.has-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}
.shop-hero .shop-stats b { font-weight: 700; font-family: var(--mono); color: #3ddc8c; }

.shop-notice {
  background: var(--warning-soft);
  border: 1px solid #ecd9b0;
  color: var(--warning);
  font-size: 13px;
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin: 24px 0 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.7;
}

.shop-notice .ic { margin-top: 3px; }

.shop-layout {
  display: grid;
  grid-template-columns: 196px 1fr;
  gap: 26px;
  align-items: start;
  padding: 26px 0 56px;
}

.shop-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.shop-side button {
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .15s;
}

.shop-side button:hover { background: var(--bg); color: var(--ink-900); }
.shop-side button.active { background: var(--ink-900); color: #fff; font-weight: 600; }
.shop-side button .count { font-size: 11.5px; font-family: var(--mono); opacity: .55; }

/* ---------------- 商品详情页 ---------------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  padding: 28px 0 0;
  align-items: start;
}

.pd-gallery {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  color: var(--ink-700);
}

.pd-gallery.has-image {
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}

.pd-gallery.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-gallery .ic { width: 72px; height: 72px; stroke-width: 1.2; }

.pd-gallery .pd-code-chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-400);
  border: 1px dashed var(--line-dark);
  background: rgba(255, 255, 255, .7);
  border-radius: 6px;
  padding: 5px 14px;
}

.pd-info h1 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }

.pd-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.pd-tags .tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 5px;
  background: var(--card);
  border: 1px solid var(--line-dark);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pd-tags .tag.green { background: var(--acc-soft); color: var(--acc-deep); border-color: transparent; }

.pd-price-box {
  background: var(--card);
  border: 1px dashed var(--line-dark);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pd-price-box .price .num { font-size: 32px; }
.pd-price-box .orig { font-size: 13px; color: var(--ink-400); text-decoration: line-through; font-family: var(--mono); }
.pd-price-box .sold { font-size: 12.5px; color: var(--ink-500); margin-left: auto; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
}

.qty-stepper button {
  width: 42px; height: 44px;
  font-size: 17px;
  color: var(--ink-500);
  transition: all .15s;
}

.qty-stepper button:hover { background: var(--bg); color: var(--ink-900); }

.qty-stepper input {
  width: 56px; height: 44px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--mono);
  outline: none;
  background: var(--card);
}

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 12px; color: var(--ink-400); margin-top: 7px; }

.field input, .field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: 0 14px;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: var(--card);
}

.field textarea {
  width: 100%;
  min-height: 124px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  line-height: 1.65;
  outline: none;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
  background: var(--card);
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(22, 24, 29, .07);
}

/* 步进器内的输入框不受通用表单宽度影响 */
.field .qty-stepper input {
  width: 56px;
  height: 44px;
  padding: 0;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  box-shadow: none;
}

/* ---------------- 支付方式 ---------------- */
.pay-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 420px; }

.pay-option {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--card);
  transition: all .15s;
  position: relative;
}

.pay-option:hover { border-color: var(--ink-700); }

.pay-option.active { border-color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--ink-900); color: var(--ink-900); }

.pay-option.active::after {
  content: "✓";
  position: absolute;
  top: -7px; right: -7px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--ink-900);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-ic {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.pay-ic.wx { background: transparent; }
.pay-ic.wx img { width: 22px; height: 22px; display: block; object-fit: contain; border-radius: 4px; }
.pay-ic.zfb { background: transparent; }
.pay-ic.zfb img { width: 22px; height: 22px; display: block; object-fit: contain; border-radius: 4px; }
.pay-ic.bal { background: var(--ink-900); }

.pd-buy-bar { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pd-buy-bar .btn-primary { flex: 1; padding: 15px; font-size: 15.5px; border-radius: var(--r-md); min-width: 220px; }
.pd-buy-bar .btn-ghost { padding: 15px 18px; font-size: 14.5px; border-radius: var(--r-md); white-space: nowrap; }

.pd-trust {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-400);
  flex-wrap: wrap;
}

.pd-trust span { display: inline-flex; align-items: center; gap: 6px; }

.pd-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin-top: 26px;
}

.pd-section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-section h2::before { content: ""; width: 4px; height: 17px; background: var(--acc); border-radius: 2px; }

.pd-section .rich { font-size: 14px; color: var(--ink-700); line-height: 2; }
.pd-section .rich li { margin-left: 20px; }

/* ---------------- 结算页 / 面板 ---------------- */
.page-narrow { max-width: 860px; margin: 0 auto; padding: 32px 24px 64px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 28px;
  margin-bottom: 18px;
}

.panel > h2 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel > h2 .step-badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--acc-deep);
  background: var(--acc-soft);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: .05em;
}

.order-item { display: flex; gap: 16px; align-items: center; }

.order-item .thumb {
  width: 68px; height: 68px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  flex-shrink: 0;
}

.order-item .info { flex: 1; min-width: 0; }
.order-item .name { font-size: 14.5px; font-weight: 600; }
.order-item .shop { font-size: 12px; color: var(--ink-400); margin-top: 4px; }
.order-item .right { text-align: right; }
.order-item .qty { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; font-family: var(--mono); }

.amount-rows { border-top: 1px dashed var(--line-dark); margin-top: 20px; padding-top: 16px; }

.amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-500);
  padding: 5px 0;
}

.amount-row.total { font-size: 14.5px; color: var(--ink-900); font-weight: 600; margin-top: 6px; }
.amount-row.total .price .num { font-size: 25px; }

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-500);
  margin: 4px 0 20px;
  cursor: pointer;
}

.agree-row input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink-900); cursor: pointer; }
.agree-row a { color: var(--ink-900); font-weight: 600; border-bottom: 1px solid var(--line-dark); }

.submit-bar { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.submit-bar .btn-primary { padding: 14px 40px; font-size: 15px; border-radius: var(--r-md); }

/* ---------------- 支付成功页 ---------------- */
.success-hero { text-align: center; padding: 44px 0 8px; }

.success-hero .ok-icon {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--acc-soft);
  color: var(--acc-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.success-hero .ok-icon::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px dashed var(--acc);
  opacity: .5;
  animation: spin 16s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.success-hero h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.success-hero p { font-size: 14px; color: var(--ink-500); margin-top: 8px; }
.success-hero p b { color: var(--ink-900); font-family: var(--mono); font-weight: 600; }
.success-hero p b.acc { color: var(--acc-deep); }

.key-list { display: flex; flex-direction: column; gap: 10px; }

.key-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px dashed var(--line-dark);
  border-radius: var(--r-sm);
  padding: 13px 16px;
}

.key-row .idx {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-400);
  flex-shrink: 0;
}

.key-row code {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-900);
  word-break: break-all;
}

.btn-copy {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  border: 1px solid var(--line-dark);
  background: var(--card);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-copy:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.success-actions { display: flex; justify-content: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* ---------------- 订单查询页 ---------------- */
.lookup-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.lookup-tabs button {
  flex: 1;
  padding: 9px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
  transition: all .15s;
}

.lookup-tabs button.active { background: var(--ink-900); color: #fff; }

.order-result { margin-top: 8px; }

.order-card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-dark);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.order-card-h .no { font-size: 13px; color: var(--ink-500); }
.order-card-h .no b { color: var(--ink-900); font-weight: 600; font-family: var(--mono); }

.status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-pill.done { background: var(--acc-soft); color: var(--acc-deep); }
.status-pill.pending { background: var(--warning-soft); color: var(--warning); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--ink-900);
  color: #9aa0ab;
  padding: 0 0 28px;
  margin-top: 72px;
}

.site-footer > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  background: #fff;
  color: #444;
  margin: 0;
  padding: 56px max(24px, calc((100% - 1180px) / 2 + 24px)) 40px;
  border-bottom: 1px solid #e6e4dc;
}

.footer-brand .brand-logo-img {
  width: 104px;
  height: 56px;
  max-width: 104px;
  max-height: 56px;
  filter: none;
}
.footer-brand .logo-text { font-size: 20px; font-weight: 800; color: #141814; }
.footer-brand p { font-size: 13px; margin-top: 14px; max-width: 300px; line-height: 1.9; color: #555; }

.footer-col h4 { color: #141814; font-size: 13.5px; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 13px; padding: 5px 0; color: #555; transition: color .15s; }
.footer-col a:hover { color: #0a8a50; }

.footer-bottom {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 24px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------- Toast / 面包屑 / 空状态 ---------------- */
.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: var(--ink-900);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px rgba(22, 24, 29, .3);
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 10020;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #b91c1c; box-shadow: 0 14px 34px rgba(185, 28, 28, .26); }

/* ---------------- 骨架屏 ---------------- */
@keyframes sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sk-block,
.sk-line {
  background: linear-gradient(90deg, #eceae4 25%, #f5f4f0 50%, #eceae4 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-card { pointer-events: none; cursor: default; }
.skeleton-card .product-cover.sk-block { min-height: 132px; border-radius: var(--r-md) var(--r-md) 0 0; }
.skeleton-card .product-body { padding: 12px 14px 14px; }
.sk-line { display: block; height: 12px; margin-top: 10px; }
.sk-line-lg { width: 85%; height: 14px; margin-top: 0; }
.sk-line-sm { width: 58%; }
.sk-line-xs { width: 38%; }
.sk-line-title { width: 180px; height: 26px; margin-top: 0; }
.shop-avatar.is-skeleton { color: transparent; }
.shop-avatar.is-skeleton.sk-block { border-radius: 14px; }
.shop-side .sk-side-btn { height: 38px; margin-bottom: 8px; border-radius: 10px; }
.skeleton-chip { pointer-events: none; min-width: 200px; }
.skeleton-chip .sk-line { margin-top: 6px; }
.shop-hero .shop-stats .sk-line { display: inline-block; width: 72px; margin-right: 16px; vertical-align: middle; }

/* ---------------- 页面 Loading 蒙层 ---------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  transition: opacity .3s ease;
}
.page-loader.hide { opacity: 0; pointer-events: none; }
.page-loader .pl-spin {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line-dark);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: pl-spin .8s linear infinite;
}
.page-loader .pl-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-400);
  font-weight: 600;
  letter-spacing: .02em;
}
.page-loader .pl-logo img { display: block; width: 72px; height: 39px; max-width: 72px; max-height: 39px; object-fit: contain; }
@keyframes pl-spin { to { transform: rotate(360deg); } }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-400);
  padding: 20px 0 0;
}

.breadcrumb a:hover { color: var(--ink-900); }
.breadcrumb .sep { color: var(--line-dark); }
.breadcrumb .current { color: var(--ink-700); font-weight: 500; }

.breadcrumb--on-dark {
  padding: 16px 0 20px;
  color: rgba(255, 255, 255, .55);
}

.breadcrumb--on-dark a { color: rgba(255, 255, 255, .72); }
.breadcrumb--on-dark a:hover { color: #fff; }
.breadcrumb--on-dark .sep { color: rgba(255, 255, 255, .28); }
.breadcrumb--on-dark .current { color: rgba(255, 255, 255, .92); font-weight: 500; }

.empty-state {
  text-align: center;
  padding: 58px 24px 62px;
  color: var(--ink-400);
}
.empty-state::before {
  content: "";
  display: block;
  width: 108px;
  height: 108px;
  margin: 0 auto 13px;
  background: url("/logoc.png") center / contain no-repeat;
  opacity: 1;
}
.empty-state.compact {
  padding: 40px 18px;
}
.empty-state.compact::before {
  width: 84px;
  height: 84px;
  margin-bottom: 10px;
}
.empty-state.no-empty-logo::before { display: none; }
.empty-state .icon { display: none; }
.empty-state p {
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.coupon-grid > .empty-state { grid-column: 1 / -1; }

.a-table td[colspan][style*="var(--ink-400)"] {
  padding-top: 22px !important;
  padding-bottom: 24px !important;
  color: var(--ink-400) !important;
}
.a-table td[colspan][style*="var(--ink-400)"]::before {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 7px;
  background: url("/logoc.png") center / contain no-repeat;
  opacity: 1;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .site-header .header-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 13.5px;
  }

  .main-nav a.nav-rank {
    padding-left: 11px;
    padding-right: 11px;
  }

  .header-actions .btn-primary {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .header-search {
    max-width: none;
  }

  .menu-toggle {
    display: flex;
  }

  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(2n) { border-right: none; }
  .feature-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .pd-gallery { position: static; aspect-ratio: 16 / 8; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 21px; }

  .main-nav, .header-search { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { gap: 12px; justify-content: space-between; }
  .header-actions .btn-ghost span.txt { display: none; }
  .header-actions .btn-ghost { padding: 9px 11px; }
  .header-actions .btn-login { display: none; }
  .header-actions.merchant-logged-in .btn-login { display: inline-flex; max-width: 156px; }

  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-cover .ic { width: 32px; height: 32px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 13px; }
  .price .num { font-size: 16.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* 首页 */
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 14.5px; }
  .hero-cta { width: 100%; max-width: 340px; padding: 18px 40px; font-size: 17px; }
  .hero-stats { margin-top: 36px; flex-wrap: wrap; gap: 20px 0; }
  .hero-stats .stat { padding-right: 20px; margin-right: 20px; }
  .hero-stats .num,
  .hero-stats .num em { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { padding: 18px 16px; }
  .shop-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step-card { padding: 18px 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 22px 20px 24px; }
  .merchant-cta { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .merchant-cta h2 { font-size: 22px; }

  /* 店铺页 */
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
  .shop-side button { white-space: nowrap; width: auto; }
  .shop-side button .count { display: none; }
  .shop-hero h1 { font-size: 20px; }
  .shop-hero .shop-avatar { width: 58px; height: 58px; font-size: 24px; }

  /* 店铺榜单 */
  .rank-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rank-title { font-size: 22px; }
  .podium { flex-direction: column; align-items: stretch; gap: 26px; margin-top: 44px; }
  .podium-card, .podium-card.p1, .podium-card.p2, .podium-card.p3 { order: 0; }
  .rank-row { gap: 12px; padding: 14px 14px; }
  .rank-row .rtrend { display: none; }
  .rank-row .no { width: 20px; font-size: 14px; }
  .rank-cta { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .rank-cta h2 { font-size: 21px; }
  .rank-cta .cta-stats { gap: 24px; }
  .rank-cta .cta-btn { width: 100%; justify-content: center; }

  /* 详情页 */
  .pd-info h1 { font-size: 20px; }
  .pd-price-box .price .num { font-size: 26px; }
  .pay-options { grid-template-columns: 1fr; }
  .pd-section { padding: 20px; }
  .pd-gallery .ic { width: 52px; height: 52px; }

  /* 结算 / 成功页 */
  .page-narrow { padding: 20px 16px 48px; }
  .panel { padding: 20px 18px; }
  .submit-bar { flex-direction: column; align-items: stretch; }
  .submit-bar .btn-primary { width: 100%; }
  .key-row { flex-wrap: wrap; }
  .key-row code { flex-basis: 100%; order: 3; }
}

/* ---------------- 列表工具条 / 分页器 ---------------- */
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; scroll-margin-top: 80px; }
.list-count { font-size: 13.5px; color: var(--ink-500); }
.list-count b { color: var(--ink-900); font-weight: 700; }
.pager-top { margin-top: 0; justify-content: flex-end; }
.pager-top .pager-btn { min-width: 32px; height: 32px; padding: 0 10px; font-size: 12.5px; }

/* 提示框内按钮 */
.tip-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.tip-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; font-size: 13px; font-weight: 600;
  border-radius: var(--r-sm); border: 1px solid var(--acc);
  color: var(--acc-deep); background: var(--card); cursor: pointer; transition: all .15s;
}
.tip-btn:hover { background: var(--acc-mark); }
.tip-btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.tip-btn.primary:hover { background: var(--acc-deep); border-color: var(--acc-deep); }

/* 搜索结果页 */
.search-hero { margin: 10px 0 26px; }
.search-box-lg { display: flex; align-items: center; gap: 10px; max-width: 660px; background: var(--card); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 5px 5px 5px 16px; transition: border-color .15s; }
.search-box-lg:focus-within { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.search-box-lg .ic { color: var(--ink-400); flex-shrink: 0; }
.search-box-lg input { flex: 1; min-width: 0; border: none; background: none; font-size: 15px; padding: 11px 4px; outline: none; color: var(--ink-900); }
.search-box-lg .btn-primary { flex-shrink: 0; padding: 11px 28px; }
.search-summary { margin-top: 16px; font-size: 14px; color: var(--ink-500); }
.search-summary b { color: var(--ink-900); font-weight: 700; }
.search-summary .kw { color: var(--acc-deep); font-weight: 600; }
.product-name mark { background: var(--acc-mark); color: var(--acc-deep); border-radius: 3px; padding: 0 2px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.pager-btn {
  min-width: 38px; height: 38px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  background: var(--card); border: 1px solid var(--line-dark);
  border-radius: var(--r-sm); cursor: pointer; transition: all .15s;
}
.pager-btn:hover:not(:disabled):not(.active) { border-color: var(--ink-900); color: var(--ink-900); }
.pager-btn.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; cursor: default; }
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 768px) {
  .merchant-cta p.no-wrap { white-space: normal; }
}
