/* ============================================================
   {{STORE_NAME}} — 数字商品小店 设计系统
   主色：深海军蓝 + 电光蓝，辅助：薄荷绿（成功/有货）、琥珀（促销）
   ============================================================ */

:root {
  --ink: #0a1730;
  --ink-2: #33415c;
  --ink-3: #5d6b85;
  --muted: #8492ab;
  --line: #e5eaf3;
  --line-soft: #eef2f8;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #fbfcfe;

  --brand: #2e4bff;
  --brand-600: #2440e0;
  --brand-700: #1b32b4;
  --brand-soft: #eaefff;
  --mint: #00a97e;
  --mint-soft: #e3f7f0;
  --amber: #c2620a;
  --amber-soft: #fff3e6;
  --rose: #d63b4a;
  --rose-soft: #ffedee;
  --slate-soft: #f0f3f9;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(16, 32, 66, 0.06), 0 1px 3px rgba(16, 32, 66, 0.05);
  --shadow: 0 4px 14px rgba(16, 32, 66, 0.07), 0 1px 3px rgba(16, 32, 66, 0.04);
  --shadow-l: 0 18px 40px -12px rgba(16, 32, 66, 0.22);

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ------------------------------ header ------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; height: 66px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: -0.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, #2e4bff, #7b2cff 55%, #00c2a8);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px rgba(46, 75, 255, 0.35);
}
.logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 4px 14px rgba(46,75,255,.22); margin-right: 2px; }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-s); color: var(--ink-2);
  font-size: 14.5px; font-weight: 550;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-700); }
.nav-links a.is-active { color: var(--brand-700); background: var(--brand-soft); }
.nav-links .nav-links-lookup { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-lookup {
  padding: 8px 12px; border-radius: var(--radius-s); color: var(--ink-2);
  font-size: 14.5px; font-weight: 600;
}
.nav-lookup:hover { background: var(--brand-soft); color: var(--brand-700); }
.nav-lookup.is-active { color: var(--brand-700); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #fff;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand-700); }
.nav-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; color: var(--ink-2);
}
.nav-icon:hover { background: var(--brand-soft); color: var(--brand-700); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; }

/* ------------------------------ hero ------------------------------ */

.hero {
  position: relative; overflow: hidden;
  background: #fff; text-align: center; padding: 88px 0 84px;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(46,75,255,.07), transparent 65%);
}
.hero::after {
  width: 460px; height: 460px; left: -180px; bottom: -300px;
  background: radial-gradient(circle, rgba(0,169,126,.06), transparent 65%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-tag {
  color: var(--brand); font-size: 15px; font-weight: 750; letter-spacing: .04em;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 5.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.hero-sub { margin: 18px auto 0; font-size: clamp(15px, 1.7vw, 17.5px); color: var(--ink-3); max-width: 640px; line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; margin-top: 36px; }
.hero-link { color: var(--brand); font-size: 15.5px; font-weight: 650; }
.hero-link:hover { text-decoration: underline; }

/* ------------------------------ buttons ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .16s ease;
  font-family: inherit; white-space: nowrap;
}
.btn-primary { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(46,75,255,.28); }
.btn-brand:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-brand[disabled] { background: #b9c2dd; box-shadow: none; cursor: not-allowed; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-danger { background: var(--rose); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 13px; }

/* ------------------------------ sections ------------------------------ */

.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: 24px; font-weight: 700; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.section-head .more { color: var(--brand); font-size: 14px; font-weight: 600; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ------------------------------ cards ------------------------------ */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-s);
  overflow: hidden; transition: .18s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: #cfd9ef; }

.product-card { display: flex; flex-direction: column; padding: 14px 14px 16px; }
.pc-thumb {
  background: var(--slate-soft); border-radius: 14px; aspect-ratio: 4 / 3;
  display: grid; place-items: center; overflow: hidden;
}
.pc-thumb img { width: 58%; height: 58%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .pc-thumb img { transform: scale(1.05); }
.pc-body { padding: 13px 4px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-tags { display: flex; gap: 10px; min-height: 17px; }
.pc-tag { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.pc-tag-sale { color: var(--amber); }
.pc-tag-auto { color: var(--brand-700); }
.pc-tag-out { color: #94a3b8; }
.pc-name {
  font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink); min-height: 45px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.pc-price b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.pc-price b small { font-size: 12.5px; font-weight: 700; margin-right: 1px; }
.pc-price s { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.pc-usd { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; letter-spacing: .01em; }
.pc-buy {
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 650;
  padding: 8px 20px; border-radius: 999px; white-space: nowrap; transition: .16s ease;
  box-shadow: 0 4px 12px rgba(46, 75, 255, 0.25);
}
.product-card:hover .pc-buy { background: var(--brand-600); }
.pc-buy.is-off { background: #e8edf5; color: #94a3b8; box-shadow: none; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 90%; }
.badge {
  font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  letter-spacing: .01em; white-space: nowrap;
}
.badge-stock { background: var(--mint-soft); color: var(--mint); }
.badge-out { background: var(--slate-soft); color: #64748b; }
.badge-sale { background: var(--amber-soft); color: var(--amber); }
.badge-auto { background: var(--brand-soft); color: var(--brand-700); }
.badge-off { background: var(--rose-soft); color: var(--rose); }

.product-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-size: 21px; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; }
.price small { font-size: 13px; font-weight: 600; margin-right: 1px; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: 12px; color: var(--amber); font-weight: 650; }

/* ------------------------------ 分类胶囊筛选条 ------------------------------ */

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 2px 0 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 17px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-s); transition: .15s ease;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-1px); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------ categories ------------------------------ */

.cat-card { padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.cat-icon {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, #eef2ff, #e2f7f1); color: var(--brand-700);
}
.cat-card h3 { font-size: 17px; font-weight: 700; }
.cat-card p { margin: 5px 0 12px; font-size: 13.5px; color: var(--muted); }
.cat-count { font-size: 12.5px; color: var(--muted); }

/* ------------------------------ features ------------------------------ */

.feature { text-align: center; padding: 4px 12px; }
.feature-icon {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-700);
}
.feature h3 { font-size: 16.5px; font-weight: 700; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* ------------------------------ notice / posts ------------------------------ */

.notice-bar {
  background: linear-gradient(90deg, #0f2456, #17306f); color: #d9e2ff; font-size: 13.5px;
}
.notice-bar .container { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 10px; align-items: center; }

.post-item { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.post-item:last-child { border-bottom: none; }
.post-item .tag { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 6px; height: fit-content; white-space: nowrap; }
.tag-news { background: var(--brand-soft); color: var(--brand-700); }
.tag-tutorial { background: var(--mint-soft); color: var(--mint); }
.post-item h4 { font-size: 15px; font-weight: 600; }
.post-item p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.post-date { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ------------------------------ detail page ------------------------------ */

.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a:hover { color: var(--brand); }
.detail-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; padding: 12px 0 60px; }

/* ------------------------------ checkout 高级风 ------------------------------ */
.checkout-page { background: linear-gradient(180deg, #f5f7ff 0%, #fafbff 46%, #ffffff 100%); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 30px; align-items: start; }
.checkout-left, .checkout-right { display: flex; flex-direction: column; gap: 18px; }

.prod-card { display: flex; gap: 16px; align-items: center; padding: 20px; }
.prod-card-img { width: 96px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: var(--shadow-s); }
.prod-card-name { font-weight: 700; font-size: 16px; line-height: 1.45; }

.notice-card { padding: 22px 22px 24px; }
.notice-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.notice-head h3 { font-size: 16px; font-weight: 700; margin: 0; }
.qual-pill { font-size: 12px; font-weight: 700; color: var(--brand-700); background: var(--brand-soft); border: 1px solid #d3dcff; border-radius: 999px; padding: 4px 11px; }
.qual-block { background: linear-gradient(180deg, #f3f6ff, #eef4ff); border: 1px solid #e0e8ff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.qual-head { font-size: 14px; font-weight: 700; color: var(--brand-700); margin-bottom: 8px; }
.qual-list { margin: 0; padding-left: 18px; }
.qual-list li { margin: 4px 0; line-height: 1.6; color: var(--ink-2); }
.qual-warn { margin: 10px 0 0; font-size: 12.5px; color: #c0392b; font-weight: 600; }
.notice-body h4 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }

.order-card { padding: 0; overflow: hidden; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #2e4bff 0%, #5b3bff 100%); color: #fff; }
.order-head .muted { color: rgba(255, 255, 255, .85); }
.order-prod-name { font-weight: 700; font-size: 15.5px; line-height: 1.4; color: #fff; }
.order-price { text-align: right; flex: none; }
.order-price-main { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.order-price-main small { font-size: 16px; font-weight: 700; margin-right: 2px; }
.order-price-sub { font-size: 12px; opacity: .92; margin-top: 2px; }
.order-form { padding: 22px; }
.form-h { font-size: 18px; font-weight: 750; margin: 0 0 4px; }
.opt { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.agree-line { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.agree-line input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.order-form .btn-brand { background: linear-gradient(135deg, #2e4bff 0%, #5b3bff 100%); border: none; margin-top: 18px; }

@media (max-width: 880px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 20px; }
  .order-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .order-price { text-align: left; }
}
.detail-media { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-s); }
.detail-title { font-size: clamp(22px, 3vw, 29px); font-weight: 750; letter-spacing: -0.02em; }
.price-big { font-size: 34px; font-weight: 780; color: var(--ink); letter-spacing: -0.03em; }
.price-usdt { font-size: 14px; color: var(--muted); }
.kv { display: flex; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.kv span:first-child { color: var(--muted); width: 76px; flex: none; }
.field-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 14px; }
.field-note h4 { font-size: 14.5px; margin-bottom: 8px; }
.steps { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.step-chip { font-size: 12.5px; background: var(--brand-soft); color: var(--brand-700); border-radius: 8px; padding: 5px 10px; font-weight: 600; }

/* ------------------------------ forms ------------------------------ */

.form-row { margin-bottom: 16px; }
label.form-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.form-label .req { color: var(--rose); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  font-size: 15px; font-family: inherit; background: var(--surface); color: var(--ink);
  transition: .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,75,255,.12); }
textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.alert { padding: 12px 15px; border-radius: 11px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--rose-soft); color: #9f2b38; border: 1px solid #f7ccd1; }
.alert-warn { background: var(--amber-soft); color: #92460b; border: 1px solid #f7dcb9; }
.alert-info { background: var(--brand-soft); color: var(--brand-700); border: 1px solid #d3dcff; }
.alert-ok { background: var(--mint-soft); color: #0b7f5e; border: 1px solid #c6ecdd; }

/* ------------------------------ pay page ------------------------------ */

.pay-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.qr-box { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; display: grid; place-items: center; }
.qr-box img { width: 200px; height: 200px; }
.addr-box {
  display: flex; gap: 10px; align-items: center; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin: 10px 0 4px;
}
.addr-box code { font-size: 13px; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; flex: 1; }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { border-color: var(--brand); color: var(--brand-700); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--rose); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.st-pending { background: var(--amber-soft); color: var(--amber); }
.st-paid { background: var(--brand-soft); color: var(--brand-700); }
.st-delivered { background: var(--mint-soft); color: var(--mint); }
.st-cancelled { background: var(--slate-soft); color: #64748b; }
.dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.3s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.delivery-box {
  background: linear-gradient(140deg, #0e2a52, #123a6b); color: #fff; border-radius: var(--radius);
  padding: 18px 20px; margin-top: 14px;
}
.delivery-box code { font-size: 15px; letter-spacing: .06em; color: #6ff0cd; word-break: break-all; }

/* ------------------------------ captcha ------------------------------ */

.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-img { flex: none; border-radius: 11px; overflow: hidden; display: block; line-height: 0; box-shadow: var(--shadow-s); cursor: default; user-select: none; }
.captcha-row input { flex: 1; min-width: 0; }

/* ------------------------- checkout: detect & channels ------------------------- */
.check-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check-line input { width: 15px; height: 15px; accent-color: var(--brand); }
.detect-panel {
  margin-top: 12px; padding: 14px 16px; border-radius: 12px;
  background: #eefaf3; border: 1px solid #bfe9d2;
}
.detect-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.detect-ok { font-size: 14px; font-weight: 700; color: #12805c; }
.detect-fail { font-size: 14px; font-weight: 700; color: #c0392b; }
.detect-tag {
  font-size: 12px; font-weight: 650; color: #12805c;
  border: 1px solid #8fd7b8; background: #fff; border-radius: 999px; padding: 3px 10px;
}
.detect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detect-cell { background: #fff; border: 1px solid #e3efe8; border-radius: 9px; padding: 9px 12px; }
.detect-cell:first-child { grid-column: 1 / -1; }
.detect-cell span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.detect-cell b { font-size: 14px; font-weight: 650; color: var(--ink); word-break: break-all; }
.detect-note { margin-top: 10px; font-size: 12.5px; color: #12805c; }
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel-card {
  position: relative; display: block; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.channel-card input { position: absolute; opacity: 0; pointer-events: none; }
.channel-name { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.channel-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.channel-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.channel-card.is-off { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
.channel-tag {
  font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; vertical-align: 2px;
}

/* ------------------------------ tables ------------------------------ */

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table th { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }

/* ------------------------------ admin ------------------------------ */

.admin-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 26px; padding: 26px 0 60px; }
.admin-side { position: sticky; top: 86px; align-self: start; }
.admin-side a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); font-weight: 550; }
.admin-side a:hover { background: var(--brand-soft); color: var(--brand-700); }
.admin-side a.is-active { background: var(--brand-soft); color: var(--brand-700); font-weight: 650; }
.admin-nav-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 12px 4px; }
.stat-card { padding: 18px 20px; }
.stat-card span { font-size: 13px; color: var(--muted); }
.stat-card b { display: block; font-size: 27px; font-weight: 750; letter-spacing: -0.02em; margin-top: 2px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; padding: 9px 12px; font-size: 14px; }
.login-wrap { max-width: 380px; margin: 90px auto; }

/* ------------------------------ article ------------------------------ */

.article { max-width: 760px; margin: 0 auto; padding: 26px 0 70px; }
.article h1 { font-size: clamp(23px, 3.6vw, 33px); font-weight: 750; letter-spacing: -0.025em; }
.article .meta { color: var(--muted); font-size: 13.5px; margin: 12px 0 26px; }
.article-body { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.markdown h2, .markdown h3, .markdown h4,
.article-body h2, .article-body h3, .article-body h4 {
  color: var(--ink); font-weight: 700; margin: 22px 0 10px; line-height: 1.4;
}
.markdown h2, .article-body h2 { font-size: 19px; }
.markdown h3, .article-body h3 { font-size: 16px; }
.markdown h4, .article-body h4 { font-size: 14.5px; }
.markdown p, .article-body p { margin: 0 0 12px; }
.markdown ul, .markdown ol, .article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 12px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li, .markdown li { margin-bottom: 7px; }
.markdown ul.checklist, .article-body ul.checklist { list-style: none; padding-left: 2px; }
.check-item { display: flex; gap: 6px; align-items: flex-start; }
.markdown table, .article-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.markdown th, .markdown td, .article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; }
.markdown th, .article-body th { background: var(--surface-2); }
.markdown blockquote, .article-body blockquote { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--brand-700); }
.markdown code, .article-body code { background: var(--slate-soft); padding: 2px 6px; border-radius: 5px; font-size: 13.5px; }

/* ------------------------------ footer ------------------------------ */

.site-footer { background: #08122a; color: #96a5c8; padding: 44px 0 30px; margin-top: 20px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 650; }
.site-footer a { color: #96a5c8; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.contact-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #dfe6ff; padding: 5px 11px; border-radius: 999px; font-size: 13px; margin: 3px 5px 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }

/* ------------------------------ misc ------------------------------ */

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 34px; margin-bottom: 10px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.hide { display: none !important; }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .admin-side a { white-space: nowrap; }
  .admin-nav-label { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .nav { height: 60px; gap: 12px; }
  .nav-toggle { display: block; }
  .nav-lookup { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 60px; transform: none;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 14px;
    box-shadow: var(--shadow); display: none; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-links-lookup { display: block; }
  .logo span:last-child { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 58px 0 56px; }
  .hero-cta { gap: 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .chip-row { gap: 8px; margin-bottom: 20px; }
  .chip { padding: 7px 14px; font-size: 13.5px; }
  .pay-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .toolbar input, .toolbar select { flex: 1 1 100%; min-width: 0; }
  .btn-lg { width: 100%; }
}

@media (max-width: 420px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}
