/* JET-PRO VIN Decoder */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "SF Pro", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0d1117; color: #e6edf3; min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px; border-bottom: 1px solid #21262d; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 36px; width: 36px; }
.brand span { color: #d4a72c; font-weight: 600; font-size: 14px; margin-left: 6px; }
.brand .brand-name span { margin-left: 4px; }
nav { display: flex; gap: 10px; align-items: center; }
.lang-switch { background: #21262d; color: #e6edf3; border: 1px solid #30363d;
  border-radius: 8px; padding: 6px 8px; font-size: 13px; cursor: pointer; }
[dir="rtl"] .decode-box { flex-direction: row; }
[dir="rtl"] #result-table td:first-child { text-align: right; }
.badge { background: #21262d; padding: 6px 12px; border-radius: 20px; font-size: 13px; color: #9da7b3; }
.badge.vip { background: #d4a72c; color: #111; font-weight: 700; }
.btn { border: 0; border-radius: 8px; padding: 8px 18px; font-size: 14px; cursor: pointer; }
.btn.primary { background: #d4a72c; color: #111; font-weight: 700; }
.btn.ghost { background: transparent; border: 1px solid #30363d; color: #e6edf3; }
.btn.big { padding: 12px 28px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.hidden { display: none !important; }

main { max-width: 960px; margin: 0 auto; padding: 40px 20px; }
.hero { text-align: center; margin-bottom: 36px; }
.hero h1 { font-size: 34px; margin-bottom: 10px; }
.hero .sub { color: #9da7b3; margin-bottom: 24px; }
.decode-box { display: flex; gap: 10px; justify-content: center; }
#vin-input { width: 380px; max-width: 70vw; padding: 12px 16px; font-size: 17px; letter-spacing: 2px;
  text-transform: uppercase; background: #161b22; border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; }
#vin-input:focus { outline: 2px solid #d4a72c; }
.msg { margin-top: 12px; min-height: 20px; font-size: 14px; color: #f0883e; }
.msg.ok { color: #3fb950; }

.card { background: #161b22; border: 1px solid #21262d; border-radius: 12px; padding: 24px; margin-bottom: 28px; }
.card h2 { margin-bottom: 16px; font-size: 20px; }
#result-table { width: 100%; border-collapse: collapse; }
#result-table td { padding: 9px 6px; border-bottom: 1px solid #21262d; font-size: 15px; }
#result-table td:first-child { color: #9da7b3; width: 180px; }
.trace { margin-top: 14px; color: #484f58; font-size: 12px; }

.pricing h2 { text-align: center; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.plan h3 { color: #d4a72c; margin-bottom: 6px; }
.plan .price { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.plan ul { list-style: none; margin-bottom: 14px; }
.plan li { padding: 4px 0; color: #9da7b3; font-size: 14px; }
.plan li::before { content: "✓ "; color: #3fb950; }
.plan.highlight { border-color: #d4a72c; }
.sku-btn { display: block; width: 100%; margin: 6px 0; text-align: left;
  background: #21262d; border: 1px solid #30363d; color: #e6edf3;
  border-radius: 8px; padding: 9px 12px; cursor: pointer; font-size: 14px; }
.sku-btn:hover { border-color: #d4a72c; }
.sku-btn b { color: #d4a72c; float: right; }

footer { text-align: center; color: #484f58; font-size: 13px; padding: 28px; border-top: 1px solid #21262d; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex;
  align-items: center; justify-content: center; z-index: 50; }
.modal-body { background: #161b22; border: 1px solid #30363d; border-radius: 14px;
  padding: 28px; width: 420px; max-width: 92vw; position: relative; }
.close { position: absolute; top: 10px; right: 14px; background: none; border: 0;
  color: #9da7b3; font-size: 26px; cursor: pointer; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { flex: 1; padding: 10px; background: #21262d; border: 0; border-radius: 8px;
  color: #9da7b3; font-size: 15px; cursor: pointer; }
.tab.active { background: #d4a72c; color: #111; font-weight: 700; }
.auth-form label { display: block; margin-bottom: 12px; font-size: 14px; color: #9da7b3; }
.auth-form input { width: 100%; margin-top: 5px; padding: 10px 12px; background: #0d1117;
  border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; font-size: 15px; }
.auth-form .row { display: flex; gap: 8px; }
.auth-form .row input { flex: 1; }
.auth-form .row .btn { margin-top: 5px; white-space: nowrap; }
.auth-form .big { width: 100%; margin-top: 6px; }
.hint { margin-top: 12px; font-size: 12px; color: #484f58; }

/* ---------- SEO/GEO 内容区 ---------- */
.prose { line-height: 1.7; font-size: 15px; color: #c9d1d9; }
.prose h2 { font-size: 22px; margin-bottom: 14px; color: #e6edf3; }
.prose h3 { font-size: 17px; margin: 22px 0 10px; color: #d4a72c; }
.prose p, .prose ul, .prose ol { margin-bottom: 12px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { color: #d4a72c; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose .answer { background: #1c2128; border-inline-start: 3px solid #d4a72c;
  border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 16px; color: #e6edf3; }
[dir="rtl"] .prose .answer { border-radius: 8px 0 0 8px; }
.prose .years-line { font-family: "SF Mono", Consolas, monospace; font-size: 13.5px;
  background: #0d1117; border: 1px solid #21262d; border-radius: 8px; padding: 12px 14px; line-height: 2; }
.prose .note { color: #9da7b3; font-size: 13.5px; }
.prose .models { font-size: 15px; line-height: 2; }
.prose .meta-line { color: #9da7b3; font-size: 13.5px; margin-top: 14px; }
.prose .ext { font-size: 13.5px; color: #9da7b3; }
.seo-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14.5px; }
.seo-table th { text-align: start; color: #d4a72c; padding: 8px 10px; border-bottom: 2px solid #30363d; }
.seo-table td { padding: 8px 10px; border-bottom: 1px solid #21262d; vertical-align: top; }
.seo-table td:first-child { white-space: nowrap; color: #9da7b3; }
.prose details { border: 1px solid #21262d; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.prose details[open] { border-color: #30363d; background: #1c2128; }
.prose summary { cursor: pointer; font-weight: 600; color: #e6edf3; font-size: 15.5px; }
.prose details p { margin: 10px 0 2px; color: #c9d1d9; }

/* ---------- 3-TAB 白标 ---------- */
.tabbar { display: flex; gap: 6px; justify-content: center; padding: 14px 20px 0;
  max-width: 960px; margin: 0 auto; }
.ptab { background: transparent; border: 1px solid #30363d; border-bottom: 0;
  border-radius: 10px 10px 0 0; padding: 11px 22px; color: #9da7b3; font-size: 15px;
  cursor: pointer; font-weight: 600; }
.ptab.active { background: #161b22; color: #d4a72c; border-color: #d4a72c; }
main { padding-top: 24px; }
.tabpane { border-top: 1px solid #21262d; padding-top: 28px; }
.page-head { text-align: center; margin-bottom: 26px; }
.page-head h1 { font-size: 28px; margin-bottom: 8px; }
.page-head .sub { color: #9da7b3; }

/* 功能卡片（目录 + 车型联动共用） */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-bottom: 28px; }
.feat-card { display: flex; flex-direction: column; gap: 8px; background: #161b22;
  border: 1px solid #21262d; border-radius: 12px; padding: 18px; text-decoration: none;
  color: #e6edf3; transition: border-color .15s; }
.feat-card:hover { border-color: #d4a72c; }
.feat-img, .feat-icon { display: flex; align-items: center; justify-content: center;
  height: 96px; border-radius: 8px; background: #1c2128; overflow: hidden; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-icon { font-size: 42px; }
.feat-img-lg, .feat-icon.feat-img-lg { width: 120px; height: 90px; flex: 0 0 auto; font-size: 44px; }
.feat-name { font-weight: 700; font-size: 15px; line-height: 1.35; }
.feat-tag { color: #9da7b3; font-size: 13px; line-height: 1.5; }
.feat-count { margin-top: auto; color: #d4a72c; font-size: 12.5px; font-weight: 600; }
.mf-title { margin: 22px 0 14px; font-size: 18px; color: #d4a72c; }
.mf-none { color: #9da7b3; font-size: 14px; }

/* 功能详情 */
.feat-detail .back { color: #9da7b3; font-size: 13.5px; text-decoration: none; }
.feat-detail .back:hover { color: #d4a72c; }
.feat-detail-head { display: flex; gap: 18px; align-items: center; margin: 14px 0 16px; }
.feat-detail-head h2 { margin-bottom: 6px; }
.feat-desc { color: #c9d1d9; line-height: 1.7; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip { background: #21262d; border: 1px solid #30363d; border-radius: 20px;
  padding: 5px 13px; font-size: 13px; color: #c9d1d9; }
.feat-cta { display: inline-block; text-decoration: none; }

/* 完整包版式补充 */
.feat-filter { margin-bottom: 20px; }
.fchip { background: #161b22; cursor: pointer; font-family: inherit; }
.fchip:hover { border-color: #d4a72c; }
.fchip.active { background: #d4a72c; color: #111; border-color: #d4a72c; font-weight: 700; }
a.chip { text-decoration: none; }
a.chip:hover { border-color: #d4a72c; color: #d4a72c; }
.feat-cat { color: #484f58; font-size: 12px; }
.feat-detail .hero-img { width: 100%; max-height: 340px; object-fit: cover;
  border-radius: 10px; margin: 12px 0 18px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.feat-detail .chips { margin-bottom: 8px; }
.feat-detail table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14.5px; }
.feat-detail th { text-align: start; color: #d4a72c; padding: 8px 10px; border-bottom: 2px solid #30363d; }
.feat-detail td { padding: 8px 10px; border-bottom: 1px solid #21262d; }
.feat-detail ol, .feat-detail ul { padding-inline-start: 24px; margin-bottom: 14px; }
.feat-detail li { margin-bottom: 6px; }

/* -------- TAB3 How It Works 白标（暗色主题） -------- */
.how-hero { text-align: center; margin-bottom: 34px; }
.how-hero h2 { font-size: 30px; margin: 14px 0 10px; }
.how-hero h2 em { font-style: normal; color: #d4a72c; }
.how-hero p { color: #9da7b3; max-width: 640px; margin: 0 auto; }
.how-eyebrow { display: inline-block; background: rgba(212,167,44,.12); color: #d4a72c;
  border: 1px solid rgba(212,167,44,.35); padding: 5px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.how-badges { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px; font-size: 13.5px; color: #9da7b3; }
.how-badges b { color: #e6edf3; }
.how-sec { color: #e6edf3; font-size: 20px; margin: 38px 0 8px; }
.how-sec.sub2 { font-size: 18px; }
.how-sub { color: #9da7b3; font-size: 14.5px; margin-bottom: 18px; max-width: 720px; }
.hw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 8px; }
.hw-option { border: 1px solid #21262d; border-radius: 12px; padding: 20px; background: #1c2128; }
.hw-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.hw-tag.wired { background: rgba(63,185,80,.15); color: #3fb950; }
.hw-tag.wifi { background: rgba(212,167,44,.15); color: #d4a72c; }
.hw-option h3 { color: #e6edf3; font-size: 19px; margin-bottom: 6px; }
.hw-desc { color: #9da7b3; font-size: 14px; margin-bottom: 16px; }
.hw-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hw-variant { border: 1px solid #30363d; border-radius: 10px; padding: 14px; background: #161b22; }
.hw-variant img { aspect-ratio: 1/1; object-fit: contain; border-radius: 8px;
  background: #fff; margin-bottom: 10px; width: 100%; }
.hw-variant h4 { font-size: 14px; color: #e6edf3; margin-bottom: 4px; line-height: 1.35; }
.hw-variant p { font-size: 12.5px; color: #9da7b3; margin-bottom: 10px; line-height: 1.45; }
.hw-stores { display: flex; gap: 6px; flex-wrap: wrap; }
.store-btn { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 6px;
  border: 1px solid #30363d; background: #21262d; color: #e6edf3; text-decoration: none; transition: .15s; }
.store-btn:hover { border-color: #d4a72c; }
.store-btn.amz { border-color: #8a6d1f; background: rgba(212,167,44,.12); color: #e8c05a; }
.store-btn.amz:hover { background: rgba(212,167,44,.22); }
.store-btn.ae { border-color: #8a3a1f; background: rgba(240,136,62,.12); color: #f0883e; }
.store-btn.ae:hover { background: rgba(240,136,62,.22); }
.sw-card { border: 1px solid #21262d; border-radius: 12px; padding: 26px; background: #1c2128; }
.sw-logo { font-size: 24px; font-weight: 800; color: #e6edf3; margin-bottom: 4px; }
.sw-logo span { color: #d4a72c; }
.sw-sub { font-size: 12.5px; color: #9da7b3; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; margin-bottom: 14px; }
.sw-card ul { list-style: none; margin: 12px 0 20px; padding: 0; }
.sw-card li { padding: 6px 0 6px 28px; position: relative; font-size: 14.5px; color: #c9d1d9; }
.sw-card li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 19px; height: 19px;
  background: rgba(63,185,80,.15); color: #3fb950; border-radius: 50%; font-size: 11.5px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-step { background: #1c2128; border: 1px solid #21262d; border-radius: 12px;
  padding: 26px 20px; text-align: center; }
.step-num { width: 50px; height: 50px; border-radius: 50%; background: #d4a72c; color: #111;
  font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; }
.how-step h4 { font-size: 17px; color: #e6edf3; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: #9da7b3; }
.table-wrap { overflow-x: auto; }
.stores-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stores-table th { background: #21262d; color: #d4a72c; text-align: start; padding: 12px 16px;
  font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.stores-table td { padding: 11px 16px; border-bottom: 1px solid #21262d; vertical-align: middle; color: #c9d1d9; }
.stores-table tr:hover td { background: #1c2128; }
.stores-table .lnk { color: #d4a72c; font-weight: 600; white-space: nowrap; text-decoration: none; }
.stores-table .lnk:hover { text-decoration: underline; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.fba { background: rgba(88,166,255,.15); color: #58a6ff; }
.pill.fbm { background: rgba(212,167,44,.15); color: #d4a72c; }
.pill.ae { background: rgba(240,136,62,.15); color: #f0883e; }
.ae-group { background: #21262d !important; font-weight: 700; color: #e6edf3 !important;
  font-size: 12.5px; letter-spacing: .05em; }
.ae-chips { line-height: 2.4; }
.ae-chips .store-btn { margin: 0 6px 6px 0; }
.how-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 38px 0 8px; }
.trust-item { text-align: center; background: #1c2128; border: 1px solid #21262d;
  border-radius: 12px; padding: 24px 18px; }
.trust-item .ico { font-size: 30px; margin-bottom: 12px; }
.trust-item h4 { font-size: 16.5px; color: #d4a72c; margin-bottom: 8px; }
.trust-item p { font-size: 13.5px; color: #9da7b3; }
#how-content details { border: 1px solid #21262d; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
#how-content details[open] { border-color: #30363d; background: #1c2128; }
#how-content summary { cursor: pointer; font-weight: 600; color: #e6edf3; font-size: 15px; }
#how-content details p { margin: 10px 0 2px; color: #c9d1d9; font-size: 14.5px; }
@media (max-width: 860px) {
  .hw-grid, .how-steps, .how-trust { grid-template-columns: 1fr; }
  .hw-variants { grid-template-columns: 1fr 1fr; }
}

/* 解码结果 → How It Works 引导链接 */
.result-next { display: block; margin-top: 18px; padding: 13px 18px; text-align: center;
  border: 1px solid #d4a72c; border-radius: 10px; color: #d4a72c; font-weight: 700;
  font-size: 15px; text-decoration: none; background: rgba(212,167,44,.08); transition: .15s; }
.result-next:hover { background: rgba(212,167,44,.18); }

/* 解码结果功能清单：5 栏紧凑布局 */
.feat-grid.five { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.feat-grid.five .feat-card { padding: 10px; }
.feat-grid.five .feat-card h4 { font-size: 13px; }
@media (max-width: 860px) { .feat-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .feat-grid.five { grid-template-columns: repeat(2, 1fr); } }

/* ==================== 移动端 / Pad 响应式优化 ==================== */
img { max-width: 100%; height: auto; }
html { -webkit-text-size-adjust: 100%; }

/* Pad 横屏及以下 (≤1024px) */
@media (max-width: 1024px) {
  .topbar { padding: 12px 20px; }
  main { padding: 28px 16px; }
  .tabbar { padding: 12px 16px 0; }
}

/* Pad 竖屏及以下 (≤860px)：顶栏保持单行，按钮组可横滑，避免两行漂浮的散乱感 */
@media (max-width: 860px) {
  .topbar { flex-wrap: nowrap; gap: 10px; }
  .brand { font-size: 18px; white-space: nowrap; }
  .brand span { font-size: 12px; }
  .topbar nav { flex-wrap: nowrap; gap: 6px; margin-inline-start: auto;
    flex-shrink: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav .btn { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
  .topbar nav .badge { white-space: nowrap; font-size: 12px; padding: 5px 10px; }
  .lang-switch { max-width: 110px; }
  .hero h1 { font-size: 28px; }
  .page-head h1 { font-size: 24px; }
  .feat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .hw-variants { grid-template-columns: 1fr 1fr; }
  .cta-row { flex-wrap: wrap; }
}

/* 手机 (≤640px)：单列堆叠、全宽输入、紧凑表格 */
@media (max-width: 640px) {
  .topbar { padding: 10px 14px; }
  .brand { font-size: 17px; }
  .brand span { font-size: 12px; }
  nav { gap: 6px; }
  .btn { padding: 7px 14px; font-size: 13px; }
  .btn.big { padding: 11px 20px; font-size: 15px; }
  .badge { font-size: 12px; padding: 5px 10px; }
  .lang-switch { font-size: 12px; max-width: 104px; }

  main { padding: 20px 12px; }
  .hero { margin-bottom: 24px; }
  .hero h1 { font-size: 23px; line-height: 1.3; }
  .hero .sub { font-size: 14px; }
  .page-head h1 { font-size: 21px; }
  .page-head .sub { font-size: 14px; }

  .decode-box { flex-direction: column; }
  #vin-input { width: 100%; max-width: none; font-size: 16px; }
  .decode-box .btn { width: 100%; }

  .tabbar { padding: 10px 10px 0; gap: 4px; }
  .ptab { flex: 1; padding: 10px 6px; font-size: 13px; text-align: center; }

  .card { padding: 16px; margin-bottom: 20px; }
  #result-table td { font-size: 13.5px; padding: 8px 4px; }
  #result-table td:first-child { width: 38%; }

  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feat-card h4 { font-size: 13px; }
  .mf-title { font-size: 16px; }

  .hw-variants { grid-template-columns: 1fr; }
  .hw-option { padding: 14px; }
  .how-hero h2 { font-size: 22px; }
  .how-badges { gap: 12px; font-size: 12.5px; }
  .how-sec { font-size: 17px; margin: 28px 0 6px; }
  .stores-table { font-size: 13px; }
  .stores-table th, .stores-table td { padding: 9px 10px; }
  .step-num { width: 42px; height: 42px; font-size: 18px; }

  .pricing .grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; text-align: center; }
  .result-next { font-size: 14px; padding: 12px 14px; }

  .modal-body { padding: 20px; }
  .auth-form .row { flex-direction: column; align-items: stretch; }
  .auth-form .row .btn { margin-top: 0; }
  footer { font-size: 12px; padding: 20px 12px; }
}

/* 小屏手机 (≤380px) 再收紧 */
@media (max-width: 380px) {
  .hero h1 { font-size: 20px; }
  .ptab { font-size: 12px; padding: 9px 4px; }
}

/* 全局防横向溢出 */
html, body { overflow-x: clip; }

/* 手机端：顶栏整齐两行——品牌一行，操作按钮组整行均匀分布 */
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar nav { width: 100%; margin-inline-start: 0; justify-content: space-between;
    overflow-x: visible; }
  .topbar nav .btn { padding: 6px 12px; }
}
@media (max-width: 380px) {
  .topbar nav .btn { padding: 6px 9px; font-size: 12.5px; }
  .lang-switch { max-width: 92px; }
}

/* 手机端表格细化：pill 不换行、更紧凑 */
@media (max-width: 640px) {
  .stores-table .pill { white-space: nowrap; font-size: 11px; padding: 3px 8px; }
  .stores-table { font-size: 12.5px; }
  .stores-table th, .stores-table td { padding: 8px 8px; }
  .stores-table .lnk { font-size: 12px; }
}

/* Admin 查询行为后台 */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-stat { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: 12px 14px; }
.admin-stat .n { font-size: 22px; font-weight: 800; }
.admin-stat .l { font-size: 12px; color: #9da7b3; margin-top: 2px; }
.admin-stat.wide { grid-column: span 2; }
.admin-stat .mini { font-size: 12px; color: #c9d1d9; margin-top: 6px; line-height: 1.5; }
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.admin-filters input[type="text"], .admin-filters input:not([type]), .admin-filters select {
  background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 8px 12px;
  color: #e6edf3; font-size: 13px; }
.admin-filters input#af-vin { width: 200px; text-transform: uppercase; }
.admin-filters input[type="checkbox"] { width: auto; }
.af-dup { font-size: 13px; color: #9da7b3; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.admin-table-wrap { overflow-x: auto; padding: 8px 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid #21262d;
  text-align: left; white-space: nowrap; }
.admin-table th { color: #9da7b3; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.admin-table tr.row-dup td { background: rgba(212, 167, 44, .07); }
.dup-badge { background: #d4a72c; color: #111; border-radius: 10px; padding: 1px 7px;
  font-size: 11px; font-weight: 700; margin-left: 6px; }
.st-ok { color: #3fb950; } .st-blocked { color: #f85149; } .st-invalid { color: #d29922; }
@media (max-width: 640px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-stat.wide { grid-column: span 2; }
  .admin-filters input#af-vin { width: 100%; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 7px 8px; }
}

/* Admin 七大板块 */
.admin-h { margin: 28px 0 12px; font-size: 16px; color: #d4a72c; }
.admin-empty-note { padding: 16px 18px; color: #9da7b3; font-size: 13.5px; line-height: 1.6; }
.admin-empty-note code { background: #21262d; padding: 1px 6px; border-radius: 4px; }
.admin-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 860px) { .admin-cols { grid-template-columns: 1fr; } }

/* 结果区功能清单的硬件前提说明 */
.mf-note { font-size: 13px; color: #9da7b3; line-height: 1.6; margin: 6px 0 14px;
  max-width: 860px; }

/* Admin 操作按钮 */
.mini-btn { font-size: 11px; padding: 3px 8px; margin: 1px 2px; border-radius: 6px;
  border: 1px solid #30363d; background: #21262d; color: #c9d1d9; cursor: pointer;
  white-space: nowrap; }
.mini-btn:hover { border-color: #58a6ff; color: #fff; }
.mini-btn.danger { border-color: #6e3535; color: #ff9b9b; }
.mini-btn.danger:hover { border-color: #f85149; color: #ffb3b3; }
.mini-btn.ok { border-color: #2e5c3a; color: #7ee2a0; }
.mini-btn.ok:hover { border-color: #3fb950; }
.mini-btn:disabled { opacity: .4; cursor: not-allowed; }
.admin-table td.ops { white-space: nowrap; }

/* TEC DOC 技术文档库 */
.tec-searchbar { display: flex; gap: 10px; padding: 14px; }
.tec-searchbar input { flex: 1; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #30363d; background: #0d1117; color: #e6edf3; font-size: 15px; }
.tec-selects { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tec-selects select { padding: 9px 12px; border-radius: 8px; border: 1px solid #30363d;
  background: #0d1117; color: #e6edf3; min-width: 160px; }
.tec-list { padding: 6px 0; }
.tec-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 14px;
  border-bottom: 1px solid #21262d; cursor: pointer; }
.tec-row:hover { background: #161b22; }
.tec-row:last-child { border-bottom: none; }
.tec-row b { flex-shrink: 0; }
.tec-row .sub { font-size: 12px; color: #9da7b3; }
.tec-chapters { margin-left: 18px; border-left: 2px solid #30363d; }
.tec-group { margin: 10px 14px 16px; }
.tec-group h4 { margin: 8px 0 4px; }
.tec-note { padding: 18px; text-align: center; }
.tec-dtc-card { padding: 16px 18px; margin-bottom: 14px; }
.tec-dtc-head { display: flex; justify-content: space-between; align-items: center; }
.tec-dtc-card h4 { margin: 12px 0 4px; }
.tec-dtc-card ul { margin: 4px 0; padding-left: 20px; }
.tec-viewer-card { width: min(1100px, 96vw); height: 88vh; display: flex;
  flex-direction: column; padding: 0; overflow: hidden; }
.tec-viewer-head { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #21262d; }
#tec-frame { flex: 1; border: none; width: 100%; background: #fff; }
@media (max-width: 640px) {
  .tec-searchbar { flex-direction: column; }
  .tec-selects select { flex: 1; min-width: 0; }
}

/* ---------------- TEC WIKI 阅读器（全页布局） ---------------- */
main.tec-full { max-width: none; padding: 0 0 0 0; }
main.tec-full #pane-tec { border-top: none; padding-top: 0; }
.tec-wiki { display: flex; min-height: calc(100vh - 65px); }
#tec-sidebar { width: 320px; flex-shrink: 0; border-right: 1px solid #21262d;
  display: flex; flex-direction: column; max-height: calc(100vh - 65px);
  position: sticky; top: 0; }
.tec-sb-search { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid #21262d; }
.tec-sb-search input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px;
  background: #0d1117; border: 1px solid #30363d; color: #e6edf3; font-size: 13px; }
.tec-sb-search .btn { padding: 8px 12px; font-size: 13px; }
.tec-sb-tree { flex: 1; overflow-y: auto; padding: 8px 6px 40px; font-size: 14px; }
.tec-node { padding: 6px 8px; border-radius: 6px; cursor: pointer; line-height: 1.45;
  display: flex; gap: 6px; align-items: baseline; word-break: break-word; }
.tec-node:hover { background: #161b22; }
.tec-node .tec-caret { color: #9da7b3; width: 12px; flex-shrink: 0; font-size: 11px; }
.tec-node .tec-dot { color: #9da7b3; width: 12px; flex-shrink: 0; text-align: center; }
.tec-node .sub { color: #8b949e; font-size: 11px; }
.tec-kids { margin-left: 14px; border-left: 1px solid #21262d; padding-left: 6px; }
.tec-lv0 b { color: #d4a72c; }
.tec-lv5 { font-size: 13px; }
.tec-cta { padding: 18px 14px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.tec-err { padding: 12px; color: #f0883e; }
#tec-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#tec-main-head { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 22px; border-bottom: 1px solid #21262d; }
.tec-main-title { display: flex; gap: 10px; align-items: baseline; min-width: 0; flex-wrap: wrap; }
.tec-main-title b { font-size: 16px; }
.tec-main-title .sub { color: #8b949e; font-size: 12px; }
#tec-welcome { padding: 28px 26px; max-width: 860px; }
#tec-welcome h1 { font-size: 26px; margin-bottom: 8px; }
#tec-welcome .sub { color: #9da7b3; margin-bottom: 14px; }
#tec-welcome .hint { color: #8b949e; font-size: 13px; margin-bottom: 20px; }
#tec-doc-wrap { flex: 1; min-height: 0; }
#tec-frame { width: 100%; height: calc(100vh - 130px); border: 0; background: #fff; }
.tec-list { padding: 6px 0; }
.tec-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 14px;
  border-bottom: 1px solid #21262d; cursor: pointer; }
.tec-row:hover { background: #161b22; }
.tec-row b { flex-shrink: 0; }
.tec-row .sub { font-size: 12px; color: #9da7b3; }
.tec-dtc-card { padding: 16px 18px; margin-bottom: 14px; }
.tec-dtc-head { display: flex; justify-content: space-between; align-items: center; }
.tec-dtc-card h4 { margin: 12px 0 4px; }
.tec-dtc-card ul { margin: 4px 0; padding-left: 20px; }
.mini-btn { background: #21262d; border: 1px solid #30363d; color: #e6edf3;
  border-radius: 6px; padding: 2px 8px; cursor: pointer; }
/* 打印时隐藏受保护内容 */
@media print { body.tec-print-block #pane-tec, body.tec-print-block #tec-paywall { display: none !important; } }
/* 移动端：侧栏折叠为顶部横向区 */
@media (max-width: 900px) {
  .tec-wiki { flex-direction: column; }
  #tec-sidebar { width: 100%; max-height: 40vh; position: static; border-right: none;
    border-bottom: 1px solid #21262d; }
  #tec-frame { height: calc(100vh - 300px); }
}

/* ---------------- DTC 实时搜索 & 付费打印 ---------------- */
#print-area { display: none; }
@media print {
  body.printing-dtc > :not(#print-area) { display: none !important; }
  body.printing-dtc #print-area { display: block !important; }
}
.jlr-print { color: #000; background: #fff; font-family: "Times New Roman", "SimSun", serif;
  padding: 24px 30px; max-width: 720px; margin: 0 auto; }
.jlr-print-head { display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 3px double #000; padding-bottom: 8px; margin-bottom: 14px; }
.jlr-print-head b { letter-spacing: 2px; font-size: 15px; }
.jlr-print-head span { font-size: 13px; }
.jlr-print-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.jlr-print-table td { border: 1px solid #444; padding: 7px 10px; font-size: 13px; }
.jlr-print-table td:first-child { width: 110px; background: #f0f0f0; font-weight: 700; }
.jlr-print h4 { margin: 12px 0 4px; font-size: 14px; }
.jlr-print ul { margin: 4px 0; padding-left: 22px; font-size: 13px; }
.jlr-print-wm { margin-top: 22px; border-top: 1px solid #999; padding-top: 6px;
  font: 11px/1.5 monospace; color: #a33; text-align: center; }

/* ---------------- 后台管理台：左侧导航布局 ---------------- */
.admin-layout { display: flex; gap: 18px; align-items: flex-start; }
.admin-side { flex: 0 0 168px; position: sticky; top: 76px; display: flex; flex-direction: column;
  gap: 4px; background: #161b22; border: 1px solid #21262d; border-radius: 12px; padding: 10px; }
.as-item { text-align: left; background: transparent; border: 0; color: #c9d1d9; font-size: 13.5px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.as-item:hover { background: #21262d; color: #fff; }
.as-item.active { background: #d4a72c; color: #111; font-weight: 700; }
.admin-main { flex: 1; min-width: 0; }
.admin-matrix-legend { padding: 12px 14px; margin-bottom: 12px; font-size: 13px;
  display: flex; flex-direction: column; gap: 4px; }
.admin-matrix-legend .sub { margin-top: 4px; }
#admin-matrix input, #admin-matrix select { background: #0d1117; border: 1px solid #30363d;
  color: #e6edf3; border-radius: 6px; padding: 5px 8px; font-size: 13px; max-width: 150px; }
@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .admin-side { position: static; flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .as-item { flex: 1 1 30%; text-align: center; }
}

/* ---------------- 授权目录树（三级勾选） ---------------- */
.sc-tree { max-height: 320px; overflow-y: auto; padding: 10px 14px; margin-bottom: 6px; }
.sc-brand { margin-bottom: 8px; }
.sc-l1 { display: block; font-size: 14px; padding: 3px 0; cursor: pointer; }
.sc-model { margin-left: 22px; padding: 2px 0; }
.sc-l2 { font-size: 13px; cursor: pointer; }
.sc-years { margin-left: 22px; display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.sc-l3 { font-size: 12.5px; color: #9da7b3; cursor: pointer; white-space: nowrap; }
.sc-tree input[type="checkbox"] { accent-color: #d4a72c; }

/* ===== 解码结果 · 授权包推荐卡 ===== */
.pack-rec-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 18px 0 6px; padding: 18px 20px;
  border: 1px solid #2e5c46; border-radius: 14px;
  background: linear-gradient(135deg, #f2fbf5 0%, #e8f4ee 100%);
}
[dir="rtl"] .pack-rec-card { direction: rtl; }
.pack-rec-card .pr-ico { font-size: 30px; line-height: 1; }
.pack-rec-card .pr-main { flex: 1 1 320px; min-width: 240px; }
.pack-rec-card h3 { margin: 0 0 4px; font-size: 17px; color: #143c2a; }
.pack-rec-card .pr-sub { margin: 0 0 6px; font-size: 13px; color: #4a6b58; }
.pack-rec-card .pr-price { margin: 0; font-size: 14px; color: #1d503a; }
.pack-rec-card .pr-alt { display: block; font-size: 12px; color: #6b8578; margin-top: 3px; }
.pack-rec-card .pr-cta { flex: 0 0 auto; white-space: nowrap; }
.pr-vip { margin: 4px 2px 10px; font-size: 13px; }
.pr-vip a { color: #2e5c46; text-decoration: none; border-bottom: 1px dotted #2e5c46; }
@media (max-width: 640px) {
  .pack-rec-card { flex-direction: column; align-items: stretch; text-align: center; }
  .pack-rec-card .pr-cta { width: 100%; }
}
