/* 维度信息库 · 估价会员相关页面共用样式 */
:root {
  --gold: #A85F0A;
  --gold2: #8D4E07;
  --gold-soft: #F2E4CE;
  --gold-line: #DDC6A2;
  --card2: #F7F3EA;
  --border: #E7E2D8;
  --red: #A52A2A;
  --card: #FFFFFF;
  --text2: #26221C;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #FBFAF7;
  --panel: #FFFFFF;
  --line: #E7E2D8;
  --text: #26221C;
  --muted: #766F64;
  --faint: #A0998C;
  --ok: #2F7A4D;
  --ok-bg: #EAF5EE;
  --warn: #9A5A00;
  --warn-bg: #FFF4E2;
  --danger: #A52A2A;
  --danger-bg: #FBEAEA;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.75 "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 99;
  background: var(--text); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 10px; }

.site-head {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(251, 250, 247, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.head-inner {
  max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--text);
  display: grid; place-items: center;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: 1.6px; }
.brand-sub { font-size: 11px; color: var(--faint); letter-spacing: .8px; margin-left: 2px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.site-nav a {
  padding: 7px 11px; border-radius: 8px; color: var(--muted);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.site-nav a:hover { color: var(--text); background: #F2EEE5; }
.site-nav a.active { color: var(--gold); background: var(--gold-soft); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--text);
  font-size: 13px;
}
.chip:hover { border-color: var(--gold-line); color: var(--gold); }
.chip.solid { background: var(--text); border-color: var(--text); color: #fff; }
.chip.solid:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.mobile-head { display: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 34px 22px 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--gold); }
h1, h2, h3 { margin: 0; line-height: 1.28; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.5px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
.lead { color: var(--muted); font-size: 15px; max-width: 720px; margin: 12px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 26px; align-items: stretch; margin-bottom: 28px;
}
.hero-main {
  position: relative; overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(600px 280px at 82% -10%, rgba(168,95,10,.11), transparent 70%),
    #fff;
}
.hero-main::after {
  content: ""; position: absolute; right: -22px; bottom: -22px;
  width: 180px; height: 180px; border: 1px solid var(--gold-line);
  border-radius: 50%; opacity: .5; pointer-events: none;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }
.hero-side {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: 24px; border: 1px solid var(--gold-line); border-radius: 20px;
  background: linear-gradient(155deg, #FFFDF9, #F7F0E3);
}
.member-pill {
  display: inline-flex; align-items: center; gap: 7px;
  align-self: flex-start; padding: 5px 10px;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold);
  font-size: 12px; font-weight: 700;
}
.member-pill.expired { background: var(--warn-bg); color: var(--warn); }
.member-pill.none { background: #F1EEE7; color: var(--muted); }
.hero-side h2 { font-size: 20px; margin-top: 8px; }
.hero-side p { color: var(--muted); margin: 0; font-size: 13px; }
.price-line { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.price-line b { font-size: 32px; letter-spacing: -1px; color: var(--gold); }
.price-line span { color: var(--muted); font-size: 12px; }
.side-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.btn:hover { border-color: var(--gold-line); color: var(--gold); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn.primary:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn.gold:hover { background: #8D4E07; border-color: #8D4E07; color: #fff; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn.wide { width: 100%; }
.linkish { border: 0; background: transparent; color: var(--gold); padding: 0; min-height: auto; font-weight: 700; }
.linkish:hover { text-decoration: underline; }

.card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .small { margin-top: 3px; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 21px; }
.section-head a { color: var(--gold); font-size: 13px; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 22px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted); font-weight: 700; }
.field .hint { font-size: 11px; color: var(--faint); }
.input, .select {
  width: 100%; min-height: 44px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--text); font-size: 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,95,10,.12); outline: 0; }
.input.is-invalid { border-color: var(--danger); background: var(--danger-bg); }
.field-note { min-height: 18px; font-size: 12px; color: var(--danger); }
.form-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.form-foot .small { margin-left: auto; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.checkline input { width: 16px; height: 16px; accent-color: var(--gold); }

.result-card { min-height: 420px; display: flex; flex-direction: column; }
.result-body { flex: 1; position: relative; overflow: hidden; border-radius: 10px; }
.example-band {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 26px; background: linear-gradient(135deg, #FBF6EC, #F4EDE0);
}
.example-band .ex-kicker { font-size: 11px; letter-spacing: 2px; color: var(--gold); }
.example-band .ex-price { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; margin-top: 9px; color: var(--text); filter: blur(3.6px); user-select: none; }
.example-band .ex-row { margin-top: 10px; color: var(--muted); font-size: 13px; filter: blur(2px); }
.example-band .ex-badge { margin-top: 18px; display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: rgba(168,95,10,.12); color: var(--gold); font-size: 12px; filter: none; }
.result-empty { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 300px; color: var(--muted); text-align: center; padding: 24px; }
.result-empty .big { font-size: 28px; color: var(--gold); margin-bottom: 8px; }
.result-data { padding: 4px 0; }
.result-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.result-top .label { font-size: 12px; color: var(--muted); }
.result-top .price { font-size: 36px; font-weight: 800; letter-spacing: -1.2px; color: var(--gold); }
.result-top .sub { font-size: 12px; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.result-stat { padding: 12px; background: #FAF8F2; border: 1px solid #EEE9DE; border-radius: 10px; }
.result-stat span { display: block; font-size: 11px; color: var(--muted); }
.result-stat b { display: block; margin-top: 4px; font-size: 18px; }
.basis { margin-top: 14px; padding: 11px 12px; border-left: 2px solid var(--gold-line); background: #FCFAF5; color: var(--muted); font-size: 12px; line-height: 1.7; }
.assets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.asset-tag { padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 11px; color: var(--muted); }

.state-banner { display: none; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; }
.state-banner.show { display: flex; }
.state-banner.info { background: #F6F3EC; border: 1px solid var(--line); }
.state-banner.warn { background: var(--warn-bg); border: 1px solid #EBD3A9; }
.state-banner.ok { background: var(--ok-bg); border: 1px solid #C9E3D2; }
.state-banner .sb-icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--gold); font-weight: 800; }
.state-banner h3 { font-size: 14px; margin: 0 0 2px; }
.state-banner p { margin: 0; font-size: 12px; color: var(--muted); }
.state-banner .sb-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-align: left;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.plan:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.plan.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,95,10,.11); }
.plan.recommended { background: #FFFDF7; }
.plan .plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan .plan-name { font-weight: 800; }
.plan .rec { font-size: 10px; padding: 2px 6px; border-radius: 999px; background: var(--gold); color: #fff; }
.plan .plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 5px; margin-top: 4px; }
.plan .plan-price b { font-size: 26px; letter-spacing: -1px; color: var(--gold); white-space: nowrap; }
.plan .plan-price s { flex-basis: 100%; color: var(--faint); font-size: 11px; }
.plan .plan-desc { color: var(--muted); font-size: 12px; }
.plan .plan-days { color: var(--faint); font-size: 11px; }
.plan .plan-state { font-size: 11px; color: var(--gold); margin-top: auto; min-height: 18px; }
.plan-select { position: absolute; inset: 0; border: 0; background: transparent; border-radius: 12px; cursor: pointer; pointer-events: auto; }
.plan-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.plan > * { pointer-events: none; }
.plan .plan-top, .plan .plan-price, .plan .plan-desc, .plan .plan-days, .plan .plan-state { pointer-events: none; }

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.benefit { display: flex; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.benefit .bi { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.benefit b { display: block; font-size: 13px; }
.benefit span { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #F0ECE3; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 700; background: #FAF8F2; }
tr:last-child td { border-bottom: 0; }
.status-tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 11px; }
.status-tag.active, .status-tag.paid { background: var(--ok-bg); color: var(--ok); }
.status-tag.expired { background: var(--warn-bg); color: var(--warn); }
.status-tag.none, .status-tag.pending { background: #F1EEE7; color: var(--muted); }
.status-tag.cancelled { background: var(--danger-bg); color: var(--danger); }

.notice-box { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FAF8F2; color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 7px 12px; font-size: 13px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 700; }
.status-card { display: grid; gap: 14px; }
.status-main { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.status-main .avatar-lg { width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.status-main h2 { font-size: 20px; }
.status-main .small { margin-top: 2px; }
.status-main .spacer { margin-left: auto; }
.warn-line { color: var(--warn); }

.modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(38,34,28,.48);
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  width: min(560px, 100%); max-height: min(720px, 90vh); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  transform: translateY(6px) scale(.985); transition: transform .2s var(--ease);
}
.modal.open .modal-panel { transform: none; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { font-size: 20px; }
.modal-head .small { margin-top: 3px; }
.modal-close { margin-left: auto; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); }
.modal-close:hover { color: var(--gold); border-color: var(--gold-line); }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: #fff;
  font-size: 13px; box-shadow: 0 8px 30px rgba(38,34,28,.18);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }

footer.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot-inner .spacer { margin-left: auto; }

.auth-nav { min-width: 0; }
.auth-nav .auth-guest, .auth-nav .auth-user { display: flex; align-items: center; gap: 8px; }
.auth-nav .auth-user { position: relative; }
.auth-nav .auth-user-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 8px 3px 4px; display: flex; align-items: center; gap: 7px; min-height: 34px; }
.auth-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.auth-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.auth-chev { width: 12px; height: 12px; }
.auth-menu { position: fixed; z-index: 70; min-width: 170px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 34px rgba(38,34,28,.14); }
.auth-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; color: var(--text); font-size: 13px; }
.auth-menu-item:hover { background: #F7F3EA; color: var(--gold); }
.auth-menu-item.danger { color: var(--danger); }
.auth-member-badge { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.auth-member-badge.expired { background: var(--warn-bg); color: var(--warn); }
.auth-member-badge.none { display: none; }
.auth-mobile-menu { position: fixed; z-index: 70; min-width: 178px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 34px rgba(38,34,28,.14); }
.auth-mobile-menu .auth-menu-item { padding: 10px; }
.auth-mobile-menu[hidden] { display: none; }

@media (max-width: 900px) {
  .site-head { backdrop-filter: none; background: var(--bg); }
  .head-inner { display: none; }
  .mobile-head {
    display: flex; align-items: center; gap: 10px;
    height: var(--header-h); padding: 0 14px; border-bottom: 1px solid var(--line);
    background: rgba(251,250,247,.96); position: sticky; top: 0; z-index: 42;
  }
  .mobile-head .brand-mark { width: 28px; height: 28px; }
  .mobile-head .brand-name { font-size: 13px; letter-spacing: 1px; }
  .mobile-head .head-right { gap: 6px; }
  .mobile-head .chip { min-height: 32px; padding: 0 10px; font-size: 12px; }
  .mobile-menu-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; display: grid; place-items: center; }
  .mobile-menu-btn svg { width: 18px; height: 18px; }
  .wrap { padding: 22px 16px 52px; }
  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero-main { padding: 24px 20px; border-radius: 16px; }
  .hero-side { padding: 20px; border-radius: 16px; }
  .grid-main { grid-template-columns: 1fr; gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .result-card { min-height: 340px; }
  .result-top { align-items: flex-start; flex-direction: column; gap: 2px; }
  .result-top .price { font-size: 32px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .state-banner { flex-wrap: wrap; }
  .state-banner .sb-actions { margin-left: 36px; }
  .modal-panel { padding: 18px; max-height: 88vh; }
  .table-wrap { margin: 0 -4px; }
  .site-foot { margin-top: 20px; }
  .foot-inner { padding: 18px 16px 24px; }
  .foot-inner .spacer { display: none; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .side-actions .btn { flex: 1; }
  .form-foot .btn { width: 100%; }
  .form-foot .small { margin-left: 0; }
  .result-grid { grid-template-columns: 1fr; }
  .status-main .spacer { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
