/* ==========================================================================
   古泉鉴真 —— 全站样式
   主题：墨绿 + 铜金，浅色底
   ========================================================================== */

:root {
  --ink:        #1b2a25;
  --ink-2:      #3d504a;
  --muted:      #7d8c86;
  --line:       #e3ded1;
  --line-soft:  #efeade;
  --bg:         #f7f5ef;
  --bg-2:       #fbfaf6;
  --card:       #ffffff;
  --brand:      #1f3d34;
  --brand-2:    #2e5a4b;
  --brand-soft: #eaf1ee;
  --gold:       #b0851d;
  --gold-2:     #d8b155;
  --gold-soft:  #f8f1de;
  --ok:         #1c7a4c;
  --ok-soft:    #e8f5ee;
  --warn:       #a8690f;
  --warn-soft:  #fdf2df;
  --danger:     #b0332a;
  --danger-soft:#fdecea;
  --info:       #2a5d88;
  --info-soft:  #eaf2f9;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(27, 42, 37, .05), 0 8px 24px -12px rgba(27, 42, 37, .18);
  --shadow-sm:  0 1px 2px rgba(27, 42, 37, .06);
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 650; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.mt0 { margin-top: 0; }
.mt1 { margin-top: 8px; }
.mt2 { margin-top: 16px; }
.mt3 { margin-top: 24px; }
.mt4 { margin-top: 36px; }
.mb0 { margin-bottom: 0; }
.mb1 { margin-bottom: 8px; }
.mb2 { margin-bottom: 16px; }
.mb3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.gold { color: var(--gold); }

/* ── 页头 ──────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); }
.brand:hover { color: var(--brand); }
.brand-mark { color: var(--gold); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: .5px; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; }

.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav > a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
}
.site-nav > a:hover { background: var(--brand-soft); color: var(--brand); }
.site-nav > a.active { background: var(--brand); color: #fff; }
.site-nav > a.nav-user { background: var(--gold-soft); color: #7a5a08; font-weight: 600; }
.site-nav > a.nav-ghost { font-size: 13px; color: var(--muted); }

.nav-toggle {
  display: none; width: 40px; height: 36px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; cursor: pointer; padding: 8px 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink-2); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

/* ── 主体 ──────────────────────────────────────────────── */

.site-main { padding: 28px 0 64px; min-height: 60vh; }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 6px; }
.page-head .sub { color: var(--muted); margin: 0; }

.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 34px 0 16px;
}
.section-title h2 { margin: 0; }
.section-title .link { font-size: 13px; color: var(--muted); }

/* ── 按钮 ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; font-size: 14px; font-family: inherit; font-weight: 550;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; background: #fff; color: var(--ink);
  transition: filter .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none; line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-2); color: #fff; }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover:not(:disabled) { filter: brightness(1.08); color: #fff; }

.btn-outline { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn-outline:hover:not(:disabled) { border-color: var(--brand-2); color: var(--brand-2); }

.btn-ghost { background: transparent; color: var(--brand-2); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-soft); }

.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f3cfcb; }

.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── 卡片 ──────────────────────────────────────────────── */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card + .card { margin-top: 18px; }
.card-hd {
  padding: 15px 20px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-2);
}
.card-hd h2, .card-hd h3 { margin: 0; font-size: 16px; }
.card-bd { padding: 20px; }
.card-bd > :last-child { margin-bottom: 0; }
.card-ft {
  padding: 14px 20px; border-top: 1px solid var(--line-soft);
  background: var(--bg-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

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

/* ── 提示条 ────────────────────────────────────────────── */

.flash-stack { margin-bottom: 18px; }
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; font-size: 14px;
}
.alert + .alert { margin-top: 8px; }
.alert-success { background: var(--ok-soft); border-color: #c8e6d7; color: #145c39; }
.alert-error   { background: var(--danger-soft); border-color: #f3cfcb; color: #8c2820; }
.alert-info    { background: var(--info-soft); border-color: #cfe1f0; color: #1f4d70; }
.alert-warn    { background: var(--warn-soft); border-color: #f0dcb6; color: #7d4e08; }
.alert-close {
  margin-left: auto; border: 0; background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; color: inherit; opacity: .5; padding: 0 2px;
}
.alert-close:hover { opacity: 1; }

/* ── 徽标 ──────────────────────────────────────────────── */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600;
  background: var(--line-soft); color: var(--ink-2); white-space: nowrap;
}
.badge-ok    { background: var(--ok-soft); color: var(--ok); }
.badge-warn  { background: var(--warn-soft); color: var(--warn); }
.badge-info  { background: var(--info-soft); color: var(--info); }
.badge-muted { background: #f0efe9; color: var(--muted); }
.badge-gold  { background: var(--gold-soft); color: #8a6408; }
.badge-danger{ background: var(--danger-soft); color: var(--danger); }

/* ── 表单 ──────────────────────────────────────────────── */

.field { margin-bottom: 18px; }
.field > label, .field-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
}
.field .req { color: var(--danger); margin-left: 2px; }
.field .tip { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%; padding: 10px 13px; font-size: 14px; font-family: inherit;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(46, 90, 75, .12);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d8c86' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }

.error-text { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* ── 首页 hero ─────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, #1f3d34 0%, #2b5246 55%, #35604f 100%);
  border-radius: 20px; padding: 46px 40px; color: #fff;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -70px; bottom: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(216, 177, 85, .22);
}
.hero h1 { color: #fff; font-size: 34px; letter-spacing: .5px; }
.hero .lead { color: rgba(255, 255, 255, .82); font-size: 16px; margin-bottom: 22px; }
.hero .tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px;
  background: rgba(216, 177, 85, .18); color: var(--gold-2);
  border: 1px solid rgba(216, 177, 85, .3); margin-bottom: 16px; letter-spacing: 1px;
}
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-points li { font-size: 13px; color: rgba(255, 255, 255, .8); display: flex; align-items: center; gap: 6px; }
.hero-points li::before { content: "◆"; color: var(--gold-2); font-size: 9px; }

.coin-art { display: flex; justify-content: center; align-items: center; }
.coin-art .coin {
  width: 190px; height: 190px; border-radius: 50%;
  border: 10px solid var(--gold-2);
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(140deg, #c9a34a 0%, #a8822f 48%, #86661f 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255,255,255,.18);
  position: relative;
}
.coin-art .coin::after {
  content: ""; width: 66px; height: 66px;
  border: 9px solid rgba(60, 44, 10, .78);
  background: rgba(255, 255, 255, .06);
}
.coin-art .coin span {
  position: absolute; font-size: 13px; color: rgba(255,255,255,.55);
  letter-spacing: 3px; bottom: -30px; left: 0; right: 0; text-align: center;
}

/* ── 服务卡片 ──────────────────────────────────────────── */

.svc-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); position: relative;
}
.svc.featured { border-color: var(--gold); box-shadow: 0 10px 30px -18px rgba(176, 133, 29, .55); }
.svc-flag {
  position: absolute; top: -1px; right: 22px;
  background: var(--gold); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 0 0 8px 8px; letter-spacing: .5px;
}
/* 下单页服务单选卡：选中态（金框 + 绿色「已选择」角标），未选中整体变淡 */
.svc.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 10px 30px -18px rgba(176, 133, 29, .55);
}
.svc-check {
  position: absolute; top: -1px; left: 22px;
  background: #1e7e52; color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 0 0 8px 8px; letter-spacing: .5px;
  display: none;
}
.svc.is-selected .svc-check { display: inline-block; }
.svc.is-dim { opacity: .6; }
.svc h3 { font-size: 20px; margin-bottom: 4px; }
.svc .svc-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.svc-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.svc-price b { font-size: 38px; font-weight: 700; color: var(--brand); letter-spacing: -1px; }
.svc-price .cur { font-size: 20px; color: var(--brand); font-weight: 600; }
.svc-price .unit { color: var(--muted); font-size: 13px; }
.svc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.svc-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.svc-features li {
  position: relative; padding-left: 22px; margin-bottom: 9px;
  font-size: 13.5px; color: var(--ink-2);
}
.svc-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 700; font-size: 13px;
}
.svc-mode { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

/* ── 流程步骤 ──────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.step h4 { margin-bottom: 5px; font-size: 14px; }
.step p { margin: 0; font-size: 13px; color: var(--muted); }

/* ── 上传区 ────────────────────────────────────────────── */

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-2); padding: 30px 20px; text-align: center;
  cursor: pointer; transition: border-color .18s ease, background .18s ease;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--gold); background: var(--gold-soft); }
.dropzone .dz-icon { font-size: 26px; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.dropzone strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dropzone span { font-size: 12.5px; color: var(--muted); }

.thumb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px; margin-top: 14px;
}
.thumb {
  position: relative; padding-top: 100%; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--line); background: #f2f0ea;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .58); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
}
.thumb-del:hover { background: var(--danger); }
.thumb-idx {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(0, 0, 0, .58); color: #fff; font-size: 11px;
  padding: 1px 7px; border-radius: 10px;
}

.upload-counter { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ── 图片画廊 ──────────────────────────────────────────── */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gallery a {
  display: block; padding-top: 100%; position: relative;
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
}
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* ── 订单列表 ──────────────────────────────────────────── */

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.order-item:hover { border-color: var(--brand-2); box-shadow: var(--shadow); }
.order-thumb {
  width: 66px; height: 66px; border-radius: 10px; overflow: hidden;
  flex: none; background: #f2f0ea; border: 1px solid var(--line);
}
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-main { flex: 1; min-width: 0; }
.order-main h4 { margin: 0 0 3px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-main .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.order-side { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.order-price { font-size: 16px; font-weight: 650; color: var(--brand); }

/* ── 表格 ──────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.table th, table.table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.table th { background: var(--bg-2); font-weight: 600; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
table.table tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: #fcfbf7; }
table.table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── 报告 ──────────────────────────────────────────────── */

.verdict-banner {
  border-radius: var(--radius); padding: 22px 24px; color: #fff;
  background: linear-gradient(135deg, #1f3d34, #33604f);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.verdict-banner.is-fake { background: linear-gradient(135deg, #7d2a22, #a63a30); }
.verdict-banner.is-doubt { background: linear-gradient(135deg, #7d5a12, #a8802a); }
.verdict-banner.is-unknown { background: linear-gradient(135deg, #3d4a46, #5b6b65); }
.verdict-main { flex: 1; min-width: 220px; }
.verdict-label { font-size: 12px; letter-spacing: 2px; opacity: .7; margin-bottom: 4px; }
.verdict-value { font-size: 32px; font-weight: 700; letter-spacing: 1px; line-height: 1.15; }
.verdict-title { font-size: 14px; opacity: .85; margin-top: 6px; }
.verdict-gauge { text-align: center; min-width: 130px; }
.verdict-gauge .ring {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  background: conic-gradient(var(--gold-2) calc(var(--pct, 0) * 1%), rgba(255,255,255,.18) 0);
  position: relative;
}
.verdict-gauge .ring::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: rgba(0, 0, 0, .28); backdrop-filter: blur(2px);
}
.verdict-gauge .ring b { position: relative; font-weight: 700; }
.verdict-gauge .ring b i { font-size: 12px; font-style: normal; opacity: .75; font-weight: 500; }
.verdict-gauge small { font-size: 12px; opacity: .75; }

.dim-list { display: flex; flex-direction: column; }
.dim-item {
  display: grid; grid-template-columns: 108px 68px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: start;
}
.dim-item:last-child { border-bottom: 0; }
.dim-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.dim-level { font-size: 12px; }
.dim-detail { font-size: 13.5px; color: var(--ink-2); }

.report-block { margin-top: 22px; }
.report-block h3 {
  font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.report-block h3::before { content: ""; width: 3px; height: 15px; background: var(--gold); border-radius: 2px; }
.point-list { list-style: none; padding: 0; margin: 0; }
.point-list li {
  position: relative; padding: 8px 0 8px 20px; font-size: 13.5px;
  border-bottom: 1px dashed var(--line-soft); color: var(--ink-2);
}
.point-list li:last-child { border-bottom: 0; }
.point-list li::before { content: "·"; position: absolute; left: 6px; color: var(--gold); font-weight: 700; }
.point-list.risk li::before { content: "!"; color: var(--danger); left: 7px; font-size: 12px; }
.point-list.advice li::before { content: "→"; color: var(--info); font-size: 12px; left: 4px; }

.prose { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; }

.analysis-status {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 20px; text-align: center;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--gold);
  animation: spin .9s linear infinite; margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-dots { display: inline-flex; gap: 5px; margin-left: 4px; vertical-align: middle; }
.progress-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .35; animation: dot 1.2s infinite; }
.progress-dots i:nth-child(2) { animation-delay: .2s; }
.progress-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* ── 支付页 ────────────────────────────────────────────── */

.pay-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.qr-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px; background: var(--bg-2); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.qr-canvas { background: #fff; padding: 12px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.qr-fallback {
  width: 248px; min-height: 248px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 16px;
  word-break: break-all; font-size: 11px; color: var(--muted); text-align: center;
  border: 1px dashed var(--line); border-radius: 10px; background: #fff;
}
.pay-amount { font-size: 34px; font-weight: 700; color: var(--brand); letter-spacing: -1px; }
.pay-amount .cur { font-size: 20px; }

.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line-soft); }
.summary-row:last-child { border-bottom: 0; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 550; text-align: right; }

/* ── 统计 ──────────────────────────────────────────────── */

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.stat .k { font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.stat .v { font-size: 24px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ── 空状态 ────────────────────────────────────────────── */

.empty { text-align: center; padding: 54px 20px; }
.empty .icon { font-size: 34px; color: var(--line); margin-bottom: 12px; }
.empty h3 { color: var(--ink-2); margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

/* ── 分页 ──────────────────────────────────────────────── */

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.pager a:hover { border-color: var(--brand-2); color: var(--brand-2); }
.pager .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .disabled { opacity: .45; }

/* ── 登录/注册 ─────────────────────────────────────────── */

.auth-wrap { max-width: 420px; margin: 30px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.auth-hd { padding: 26px 28px 6px; text-align: center; }
.auth-hd h1 { font-size: 22px; margin-bottom: 6px; }
.auth-hd p { color: var(--muted); font-size: 13.5px; }
.auth-bd { padding: 20px 28px 28px; }
.auth-ft { padding: 14px 28px; background: var(--bg-2); border-top: 1px solid var(--line-soft); font-size: 13px; text-align: center; color: var(--muted); }

.auth-tabs { display: flex; gap: 4px; background: var(--bg-2); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tabs a {
  flex: 1; text-align: center; padding: 8px; border-radius: 7px;
  font-size: 13.5px; color: var(--muted); font-weight: 550;
}
.auth-tabs a.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ── 后台 ──────────────────────────────────────────────── */

.admin-body { background: #f4f3ee; }
.admin-nav { background: var(--brand); }
.admin-nav .brand { color: #fff; }
.admin-nav .brand-mark { color: var(--gold-2); }
.admin-nav .brand-text small { color: rgba(255, 255, 255, .55); }
.admin-nav .site-nav > a { color: rgba(255, 255, 255, .78); }
.admin-nav .site-nav > a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-nav .site-nav > a.active { background: rgba(216, 177, 85, .22); color: var(--gold-2); }
.admin-nav .nav-user { background: rgba(255, 255, 255, .14); color: #fff; }
.admin-nav .nav-ghost { color: rgba(255, 255, 255, .6); }

.filter-bar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; margin-bottom: 18px;
}
.filter-bar .input, .filter-bar .select { width: auto; min-width: 150px; }

.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 9px 12px; border-radius: 8px; background: var(--bg-2); }
.check-item .mark { font-weight: 700; flex: none; width: 16px; }
.check-item.ok .mark { color: var(--ok); }
.check-item.bad .mark { color: var(--danger); }

/* ── 页脚 ──────────────────────────────────────────────── */

.site-footer {
  background: #fff; border-top: 1px solid var(--line);
  padding: 34px 0 40px; margin-top: 40px;
}
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; gap: 10px; align-items: flex-start; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-brand strong { font-size: 16px; }
.footer-brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; }
.footer-links a { color: var(--ink-2); }
.footer-links span { color: var(--muted); }
.footer-note { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 18px; }
.footer-note p { margin: 0 0 6px; }
.footer-note .copy { margin: 0; }

/* ── 图片灯箱 ──────────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(14, 20, 18, .92);
  display: flex; align-items: center; justify-content: center; padding: 30px;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }

/* ── 响应式 ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 34px 26px; }
  .coin-art { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 15px; }
  .site-main { padding: 20px 0 48px; }
  h1 { font-size: 24px; }
  .hero h1 { font-size: 26px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 15px 16px; flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow); gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 11px 12px; }
  .header-inner { position: relative; }

  .form-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dim-item { grid-template-columns: 1fr; gap: 5px; }
  .dim-item .dim-level { margin-bottom: 2px; }
  .verdict-banner { padding: 18px; gap: 16px; }
  .verdict-value { font-size: 26px; }
  .verdict-gauge .ring { width: 78px; height: 78px; font-size: 18px; }
  .order-item { flex-wrap: wrap; }
  .order-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .card-bd { padding: 16px; }
  .svc { padding: 20px; }
}

@media print {
  .site-header, .site-footer, .btn, .flash-stack { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   首页 · 选择鉴定方式弹窗
   ========================================================================== */

/* ── 弹窗 ─────────────────────────────────────────── */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 30, 26, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-mask[hidden] { display: none; }

.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px -16px rgba(20, 30, 26, .45);
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 60px);
  overflow: auto;
  padding: 22px 22px 18px;
  animation: modal-pop .18s ease;
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-hd h3 { margin: 0; font-size: 18px; }

.modal-close {
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.modal-close:hover { color: var(--ink); background: var(--line-soft); }

.modal-sub {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.method-list { display: flex; flex-direction: column; gap: 10px; }

.method-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}

.method-item:hover {
  border-color: var(--gold-2);
  background: var(--gold-soft);
  color: var(--ink);
}

.method-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.method-info { flex: 1; min-width: 0; }
.method-info b { display: block; font-size: 15px; }
.method-info small { color: var(--muted); font-size: 12.5px; }

.method-price { color: var(--danger); font-weight: 700; font-size: 18px; white-space: nowrap; }
.method-price small { font-size: 11.5px; font-weight: 400; color: var(--muted); }

.method-go { font-size: 22px; color: var(--muted); }

@media (max-width: 720px) {
  .expert-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 18px 16px 14px; }
}

/* ── 支付页 · 多通道二维码 ────────────────────────── */

.channel-grid {
  display: grid;
  gap: 16px;
  justify-content: center;
}

.channel-grid-1 { grid-template-columns: minmax(0, 260px); }
.channel-grid-2 { grid-template-columns: repeat(2, minmax(0, 240px)); }

.channel-box {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
}

.channel-label { margin: 0 0 10px; color: var(--brand); }

@media (max-width: 640px) {
  .channel-grid-2 { grid-template-columns: 1fr; }
}
