:root {
  --bg: #050810;
  --bg2: #0d1220;
  --bg3: #151b2e;
  --border: #1f2a44;
  --text: #e8edf5;
  --text2: #8a94a8;
  --accent: #d4a853;        /* 金色 - Wall Street gold */
  --accent2: #bc9341;
  --gold-glow: rgba(212, 168, 83, 0.15);
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 8px;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 168, 83, 0.08), transparent),
    linear-gradient(180deg, #050810 0%, #030510 100%);
  min-height: 100vh;
}

/* Ticker tape animation - Bloomberg style */
.ticker-tape {
  background: #000;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  overflow: hidden;
  padding: 8px 0;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 13px;
}
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  padding-left: 100%;
}
.ticker-item { display: inline-block; margin: 0 24px; color: var(--text2); }
.ticker-item strong { color: var(--text); }
.ticker-up { color: var(--green); }
.ticker-down { color: var(--red); }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Brand logo style */
.logo {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #d4a853, #f4d68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 导航栏 ── */
.navbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .logo { font-size: 20px; font-weight: 700; color: var(--accent); }
.navbar .nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--text2); font-size: 14px; cursor: pointer; }
.nav-link:hover { color: var(--text); }

/* 通知铃铛 */
.notif-btn { position: relative; cursor: pointer; padding: 4px; }
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--red); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
}

/* 公告栏 */
.announcement {
  background: #1c2128;
  border-bottom: 1px solid var(--accent);
  padding: 10px 24px;
  color: var(--accent);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 明显联系方式 ── */
.contact-ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.contact-ribbon-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.contact-trigger {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.contact-trigger:hover,
.contact-trigger[aria-expanded="true"] {
  background: rgba(212,168,83,.10);
  border-color: rgba(212,168,83,.72);
}
.contact-trigger-copy {
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
}
.contact-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(34,197,94,.75);
  flex: 0 0 auto;
}
.contact-trigger strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .2px;
}
.contact-trigger .contact-hint {
  display: none;
}
.contact-trigger-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(212,168,83,.14);
  color: var(--accent);
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-chevron {
  color: var(--text2);
  font-size: 10px;
  font-weight: 800;
  transition: transform .18s;
}
.contact-trigger[aria-expanded="true"] .contact-chevron {
  transform: rotate(180deg);
}
.contact-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300;
  width: min(380px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(13, 18, 32, .98);
  box-shadow: 0 18px 42px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.04);
}
.contact-menu-item {
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.contact-menu-item:hover {
  background: rgba(212,168,83,.10);
  border-color: rgba(212,168,83,.72);
  color: var(--accent);
}
.contact-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  flex: 1;
}
.contact-label {
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
}
.contact-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}
.contact-value.is-empty {
  color: var(--text2);
  font-weight: 600;
}
.contact-label,
.contact-value {
  max-width: 190px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-action {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  border: 1px solid rgba(212,168,83,.28);
  border-radius: 6px;
  background: rgba(212,168,83,.08);
}
.contact-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(212,168,83,.14);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  font-family: 'SF Mono', 'Monaco', monospace;
}
.contact-menu-item[data-channel="wechat"] .contact-icon {
  background: rgba(34,197,94,.12);
  color: var(--green);
}
.contact-menu-item[data-channel="tg"] .contact-icon {
  background: rgba(59,130,246,.12);
  color: var(--blue);
}
.contact-menu-item[data-channel="xchat"] .contact-icon {
  background: rgba(212,168,83,.14);
  color: var(--accent);
}
.site-toast {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 1200;
  width: min(360px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(13, 18, 32, .97);
  box-shadow: 0 18px 42px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.site-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.site-toast.success { border-left-color: var(--green); }
.site-toast.warning { border-left-color: var(--accent); }
.site-toast.error { border-left-color: var(--red); }
.site-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(212,168,83,.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  font-family: 'SF Mono', 'Monaco', monospace;
}
.site-toast.success .site-toast-icon {
  background: rgba(34,197,94,.12);
  color: var(--green);
}
.site-toast.error .site-toast-icon {
  background: rgba(239,68,68,.12);
  color: var(--red);
}
.site-toast-body {
  min-width: 0;
  display: block;
}
.site-toast-body strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}
.site-toast-body span {
  display: block;
  color: var(--text2);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
  word-break: break-all;
}
@media (max-width: 640px) {
  .contact-ribbon { flex: 0 0 auto; }
  .contact-ribbon-inner {
    align-items: stretch;
    justify-content: flex-start;
  }
  .contact-trigger {
    width: auto;
    height: 32px;
    padding: 0 9px;
    justify-content: flex-start;
  }
  .contact-trigger-copy { flex: 0 1 auto; }
  .contact-menu {
    position: fixed;
    top: 92px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .site-toast {
    top: 78px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ── 容器 ── */
.container { max-width: 900px; margin: 0 auto; padding: 32px 16px; }
.container-sm { max-width: 480px; margin: 0 auto; padding: 32px 16px; }

/* ── 卡片 ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 8px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent2); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #000; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── 表单 ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; color: var(--text2); font-size: 14px; }
.form-input {
  width: 100%; padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 15px; outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-hint { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* ── 状态标签 ── */
.badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
}
.badge-green { background: rgba(63,185,80,.15); color: var(--green); }
.badge-red { background: rgba(248,81,73,.15); color: var(--red); }
.badge-yellow { background: rgba(247,147,26,.15); color: var(--accent); }
.badge-gray { background: var(--bg3); color: var(--text2); }
.badge-blue { background: rgba(88,166,255,.15); color: var(--blue); }

/* ── 表格 ── */
.table { width: 100%; border-collapse: collapse; }
.table th { color: var(--text2); font-size: 13px; font-weight: 500; padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg3); }

/* ── 统计数字 ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card { background: var(--bg3); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* ── 进度条 ── */
.progress-bar { background: var(--bg3); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .5s; }

/* ── 复制框 ── */
.copy-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
}
.copy-box span { flex: 1; font-size: 13px; color: var(--blue); word-break: break-all; }

/* ── 二维码区 ── */
.qr-box { text-align: center; padding: 24px 0; }
.qr-box img { width: 180px; height: 180px; border-radius: 8px; background: #fff; }
.qr-amount { font-size: 32px; font-weight: 700; color: var(--accent); margin: 12px 0 4px; }
.qr-hint { font-size: 13px; color: var(--text2); }

/* ── 倒计时 ── */
.countdown { font-size: 20px; font-weight: 600; color: var(--red); text-align: center; margin: 12px 0; }

/* ── 支付状态动画 ── */
.status-pending { color: var(--text2); }
.status-paid { color: var(--green); }
.pulse { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ── 客服窗口 ── */
.chat-box { display: flex; flex-direction: column; height: 400px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.chat-msg.user { background: var(--accent); color: #000; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.admin { background: var(--bg3); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; }

/* ── 首页英雄区 ── */
.hero { text-align: center; padding: 80px 16px 60px; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--text2); max-width: 500px; margin: 0 auto 32px; }
.hero-price { font-size: 48px; font-weight: 800; color: var(--accent); }
.hero-price small { font-size: 20px; color: var(--text2); }

.xau-hero {
  text-align: left;
  padding: 72px 24px 56px;
  background:
    linear-gradient(90deg, rgba(5,8,16,.92), rgba(5,8,16,.76)),
    radial-gradient(ellipse 70% 48% at 82% 18%, rgba(212,168,83,.20), transparent 60%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.xau-hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 46px;
  align-items: center;
}
.xau-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(212,168,83,.46);
  border-radius: 8px;
  background: rgba(212,168,83,.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.xau-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: 0;
  margin: 0 0 22px;
}
.xau-hero p {
  max-width: 610px;
  margin: 0 0 30px;
  color: #b4bccb;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-actions .btn {
  min-height: 46px;
  padding: 12px 28px;
}
.xau-hero .hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(13,18,32,.72);
  font-size: 18px;
  color: var(--text);
}
.xau-hero .hero-price small { font-size: 14px; }
.xau-hero-visual {
  position: relative;
  min-height: 420px;
}
.xau-gold-photo {
  position: absolute;
  inset: 0 0 78px 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(5,8,16,.12), rgba(5,8,16,.76)),
    url('https://source.unsplash.com/900x700/?gold,bullion,finance') center / cover;
  border: 1px solid rgba(212,168,83,.28);
  box-shadow: 0 28px 80px rgba(0,0,0,.46);
}
.xau-market-card {
  position: absolute;
  left: 0;
  right: 42px;
  bottom: 0;
  padding: 22px;
  border-radius: 8px;
  background: rgba(13,18,32,.94);
  border: 1px solid rgba(212,168,83,.42);
  box-shadow: 0 22px 56px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.04);
}
.xau-market-top,
.xau-quote-row,
.xau-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.xau-market-top {
  color: var(--text2);
  font-size: 12px;
  letter-spacing: 1.4px;
}
.xau-symbol {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin: 12px 0 14px;
}
.xau-quote-label {
  color: var(--text2);
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.xau-quote {
  font-family: 'SF Mono', 'Monaco', monospace;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}
.xau-quote #goldSpotChange {
  font-size: 14px;
  margin-left: 4px;
}
.xau-session-pill {
  border: 1px solid rgba(34,197,94,.32);
  color: var(--green);
  background: rgba(34,197,94,.08);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}
.xau-mini-chart {
  height: 70px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 18px 0 14px;
}
.xau-mini-chart span {
  flex: 1;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(212,168,83,.92), rgba(212,168,83,.10));
}
.xau-mini-chart span:nth-child(1) { height: 34%; }
.xau-mini-chart span:nth-child(2) { height: 52%; }
.xau-mini-chart span:nth-child(3) { height: 44%; }
.xau-mini-chart span:nth-child(4) { height: 72%; }
.xau-mini-chart span:nth-child(5) { height: 62%; }
.xau-mini-chart span:nth-child(6) { height: 86%; }
.xau-mini-chart span:nth-child(7) { height: 70%; }
.xau-panel-foot {
  color: var(--text2);
  font-size: 12px;
}
.xau-main { max-width: 1180px; }
.xau-legacy-content {
  padding-top: 0;
}
.xau-legacy-content > .card:first-child {
  margin-top: 28px;
}
.xau-section {
  margin: 28px 0 34px;
}
.xau-section-head {
  max-width: 780px;
  margin: 0 0 22px;
}
.xau-section-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.6px;
  margin-bottom: 8px;
}
.xau-section h2,
.xau-platform-copy h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  margin: 0 0 10px;
}
.xau-section-head p,
.xau-platform-copy p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
}
.xau-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.xau-feature-grid .feature-card {
  min-height: 178px;
  background: linear-gradient(180deg, rgba(21,27,46,.94), rgba(13,18,32,.94));
}
.xau-feature-grid .feature-icon {
  width: 34px;
  height: 28px;
  border-radius: 6px;
  background: rgba(212,168,83,.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-weight: 800;
  margin-bottom: 14px;
}
.xau-market-grid,
.xau-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.xau-market-tile,
.xau-account-card {
  padding: 20px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.xau-market-tile span {
  display: inline-flex;
  color: var(--accent);
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 16px;
}
.xau-market-tile strong,
.xau-account-name {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.xau-market-tile p,
.xau-account-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}
.xau-account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xau-account-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.xau-account-card p { flex: 1; }
.xau-account-price {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.xau-platform-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: 8px;
  border: 1px solid rgba(212,168,83,.34);
  background: linear-gradient(135deg, rgba(212,168,83,.10), rgba(13,18,32,.94));
}
.xau-platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.xau-platform-list span {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(5,8,16,.28);
  font-size: 13px;
}
.xau-platform-panel {
  min-height: 220px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(5,8,16,.20), rgba(5,8,16,.88)),
    radial-gradient(circle at 68% 28%, rgba(212,168,83,.46), transparent 34%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.xau-platform-panel div {
  font-size: 64px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.xau-platform-panel span {
  color: var(--text2);
  font-size: 13px;
  margin-top: 10px;
}

/* ── 功能特性网格 ── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 40px 0; }
.feature-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text2); }

/* ── 代理阶梯表 ── */
.tier-table { width: 100%; }
.tier-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tier-row:last-child { border-bottom: none; }
.tier-level { width: 60px; font-weight: 700; color: var(--accent); }
.tier-req { flex: 1; color: var(--text2); font-size: 14px; }
.tier-rate { font-size: 20px; font-weight: 700; color: var(--green); }
.tier-row.active { background: rgba(247,147,26,.05); border-radius: 8px; padding: 12px; }

/* ── 响应式 ── */
@media (max-width: 900px) {
  .container { padding: 24px 16px; }
  .hero { padding: 50px 16px 40px; }
  .hero h1 { font-size: 34px; line-height: 1.2; }
  .hero p { font-size: 15px; }
  .card { padding: 18px; }
  .xau-hero-grid,
  .xau-platform-section {
    grid-template-columns: 1fr;
  }
  .xau-hero-visual { min-height: 360px; }
  .xau-feature-grid,
  .xau-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xau-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* Navbar */
  .navbar {
    height: auto; min-height: 56px;
    padding: 8px 12px; flex-wrap: wrap; gap: 8px;
  }
  .navbar .logo { font-size: 17px; }
  .navbar .logo span { display: none; } /* 隐藏 CAPITAL 副标题节省空间 */
  .navbar .nav-right {
    gap: 8px; flex-wrap: wrap; justify-content: flex-end;
    width: 100%;
  }
  .nav-link { font-size: 12px; }
  .btn-sm { padding: 5px 10px; font-size: 12px; }
  #langBtn { min-width: auto !important; padding: 5px 10px !important; font-size: 12px !important; }

  /* Ticker */
  .ticker-tape { padding: 6px 0; font-size: 11px; }
  .ticker-item { margin: 0 14px; }

  /* Hero */
  .hero { padding: 30px 12px 20px; }
  .hero h1 { font-size: 24px; line-height: 1.3; }
  .hero p { font-size: 14px; max-width: 100%; }
  .hero-price { font-size: 34px; }
  .hero-price small { font-size: 16px; }
  .hero .btn { padding: 12px 24px !important; font-size: 15px !important; }
  .xau-hero {
    padding: 34px 14px 26px;
  }
  .xau-hero h1 {
    font-size: 36px;
    line-height: 1.04;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .xau-hero .hero-price {
    width: 100%;
    font-size: 15px;
    flex-wrap: wrap;
  }
  .xau-hero-visual {
    min-height: 330px;
  }
  .xau-gold-photo {
    inset: 0 0 76px 0;
  }
  .xau-market-card {
    left: 0;
    right: 0;
    padding: 18px;
  }
  .xau-symbol { font-size: 34px; }
  .xau-quote-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .xau-feature-grid,
  .xau-market-grid,
  .xau-account-grid {
    grid-template-columns: 1fr;
  }
  .xau-platform-section {
    padding: 18px;
  }
  .xau-platform-panel {
    min-height: 160px;
  }
  .xau-platform-panel div {
    font-size: 48px;
  }

  /* Container */
  .container { padding: 16px 12px; }
  .container-sm { padding: 16px 12px; }
  .card { padding: 16px; margin-bottom: 14px; border-radius: 8px; }
  .card-title { font-size: 16px; margin-bottom: 12px; }

  /* Stats */
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11px; }

  /* Features (4 大特色) */
  .features { grid-template-columns: 1fr !important; gap: 12px; }
  .feature-card { padding: 18px; }
  .feature-title { font-size: 15px; }
  .feature-desc { font-size: 13px; }

  /* Table */
  .table { font-size: 12px; }
  .table th, .table td { padding: 8px 6px; }
  /* 订单/用户表在手机横向滚动 */
  .card > .table, .card > div > .table {
    display: block; overflow-x: auto; white-space: nowrap;
  }

  /* Tier rows */
  .tier-row { padding: 10px 0; }
  .tier-level { width: 42px; font-size: 13px; }
  .tier-req { font-size: 12px; padding: 0 6px; }
  .tier-rate { font-size: 16px; }

  /* Form */
  .form-input { font-size: 14px; padding: 9px 12px; }
  .form-label { font-size: 13px; }

  /* Modals - 全屏可滚动 */
  #authModal > .card, #buyModal > .card, #langModal > div {
    max-height: 92vh; overflow-y: auto; margin: 10px;
  }

  /* Admin tabs 横向滚动 */
  #mainWrap > div:first-child {
    overflow-x: auto; white-space: nowrap;
    scrollbar-width: none;
  }
  #mainWrap > div:first-child::-webkit-scrollbar { display: none; }

  /* 通用 grid 降级 */
  [style*="grid-template-columns"] {
    /* 大部分已用 auto-fit minmax，但某些显式 2 列也需要降成 1 列 */
  }
}

/* 超窄屏（≤380px） */
@media (max-width: 380px) {
  .hero h1 { font-size: 20px; }
  .hero-price { font-size: 28px; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .nav-link { font-size: 11px; }
}

/* ── 工具类 ── */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--text2); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-accent { color: var(--accent); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.hidden { display: none !important; }
