/* ───────────────────────────────────────────────────────────
   网站9 · 费率对比 — Liquid Glass 视觉系统
   设计参考：网站8 (Asme)
   ─────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Noto+Serif+SC:wght@400;500&display=swap');

:root {
  --bg: #000;
  --bg-soft: rgba(255, 255, 255, 0.02);
  --bg-softer: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text2: rgba(255, 255, 255, 0.70);
  --text3: rgba(255, 255, 255, 0.40);
  --text4: rgba(255, 255, 255, 0.25);
  --green: #00d48c;
  --green-bg: rgba(0, 212, 140, 0.10);
  --green-border: rgba(0, 212, 140, 0.25);
  --yellow: #f5c842;
  --yellow-bg: rgba(245, 200, 66, 0.10);
  --blue: #4f8ef7;
  --blue-bg: rgba(79, 142, 247, 0.10);
  --red: #ff5c5c;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

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

html, body { background: #000; color: var(--text); min-height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, .section-title, .article-hero h1, .hero h1, .ex-meta h1 {
  overflow-wrap: anywhere;
  word-break: normal;
}

.serif {
  font-family: 'Instrument Serif', 'Noto Serif SC', 'Source Han Serif SC', '宋体', serif;
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;          /* 关键：禁止浏览器为中文合成伪斜体 */
  letter-spacing: 0.04em;        /* 给字符之间一点呼吸感 */
  margin: 0 0.12em;              /* 横向外边距推开相邻字符，inline 元素的 margin 不影响行高 */
}

/* ── Layout ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 28px; }

/* ── Liquid Glass ── */
.liquid-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  background-blend-mode: luminosity;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.40) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ── Nav ── */
nav {
  position: sticky; top: 16px; z-index: 100;
  padding: 0 16px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
}
.logo { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.logo a { color: inherit; }
.logo span { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--text2); margin: 0 1px; }
.nav-links { display: flex; gap: 32px; margin-left: 36px; }
.nav-links a { font-size: 13px; color: var(--text2); transition: color 0.2s; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 12.5px; font-weight: 500;
  color: var(--text);
  transition: background 0.2s;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.05); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 28px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 212, 140, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(79, 142, 247, 0.08) 0%, transparent 50%),
    #000;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 3; max-width: 900px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--text2);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}
.hero-badge svg { color: var(--green); }
.hero-badge::before {
  border-radius: var(--radius-pill);
}

.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 em, .hero h1 .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--text2);
}

.hero p.lead {
  font-size: 16px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; justify-content: center; gap: 56px;
  margin-top: 8px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.stat-item { text-align: center; }
.stat-num { font-size: 32px; font-weight: 400; color: var(--text); letter-spacing: -0.02em; font-family: 'Instrument Serif', serif; font-style: italic; }
.stat-label { font-size: 11px; color: var(--text3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: #000;
  font-size: 13.5px; font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s, opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-glass {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  font-size: 13.5px; font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.05); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  font-size: 13.5px; font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-bright);
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.03); }

/* ── Section ── */
.section { padding: 100px 0; position: relative; }
.section-eyebrow {
  font-size: 11px; font-weight: 500; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}
.section-title .serif { color: var(--text3); }
.section-sub {
  font-size: 15px; color: var(--text2);
  max-width: 600px; line-height: 1.65;
  margin-bottom: 48px;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px; flex-wrap: wrap;
}
.section-head-block { max-width: 640px; }
.updated-tag {
  font-size: 11px; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ── Sort bar ── */
.sort-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.sort-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.12em; margin-right: 6px; }
.sort-btn {
  font-size: 12.5px; padding: 8px 16px;
  border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid var(--border);
  background: transparent; color: var(--text2);
  transition: all 0.2s; font-family: inherit; font-weight: 500;
}
.sort-btn:hover { border-color: var(--border-bright); color: var(--text); }
.sort-btn.active {
  background: var(--text); border-color: var(--text);
  color: #000;
}

/* ── Table ── */
.table-wrap {
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table thead { background: rgba(255, 255, 255, 0.02); }
.fee-table th {
  padding: 18px 22px;
  text-align: left;
  font-size: 10.5px; font-weight: 500;
  color: var(--text3); letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.fee-table td {
  padding: 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text);
  vertical-align: middle;
}
.fee-table tr:last-child td { border-bottom: none; }
.fee-table tbody tr { transition: background 0.15s; }
.fee-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.ex-cell { display: flex; align-items: center; gap: 14px; }
.ex-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.ex-icon-svg {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ex-icon-svg svg {
  width: 100%; height: 100%; border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.ex-name-wrap .name { font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.ex-name-wrap .sub { font-size: 11.5px; color: var(--text3); margin-top: 1px; }

.fee-green { color: var(--green); font-weight: 500; }
.fee-yellow { color: var(--yellow); font-weight: 500; }
.fee-normal { color: var(--text2); }

.rebate-pill {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 500;
  padding: 5px 12px; border-radius: var(--radius-pill);
  color: var(--green);
  border: 1px solid var(--green-border);
  background: var(--green-bg);
}

.reg-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--text); color: #000;
  transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
.reg-link:hover { opacity: 0.88; transform: translateY(-1px); }
.reg-link svg { width: 12px; height: 12px; }

.data-footnote {
  font-size: 11.5px; color: var(--text3); margin-top: 14px;
  letter-spacing: 0.01em;
}

/* ── Calc section ── */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-card {
  border-radius: var(--radius-lg);
  padding: 32px;
}
.calc-card-title {
  font-size: 22px; font-weight: 400;
  color: var(--text); margin-bottom: 6px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 12px;
}
.calc-card-title .icon {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.icon-green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.icon-yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(245, 200, 66, 0.25); }
.calc-card-sub { font-size: 13px; color: var(--text3); margin-bottom: 26px; }

.field { margin-bottom: 16px; }
.field label {
  font-size: 11px; color: var(--text3); display: block; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
}
.field input, .field select {
  width: 100%; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
}
.field select option { background: #0a0a0a; color: var(--text); }

.result-group { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 18px; }
.result-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 9px 0;
}
.result-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.r-label { font-size: 13px; color: var(--text2); }
.r-val { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.r-val.green { color: var(--green); }
.r-val.big { font-size: 28px; font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

.info-box {
  margin-top: 18px;
  border: 1px solid rgba(79, 142, 247, 0.18);
  background: var(--blue-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 12.5px; color: #9bbdfc; line-height: 1.7;
}

/* ── Fee Saving Banner（主页费率计算器下方的返佣节省提示） ── */
.fee-saving {
  margin-top: 20px;
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--green-border);
  background: var(--green-bg);
  flex-wrap: wrap;
}
.fee-saving-body { flex: 1; min-width: 180px; }
.fee-saving-label {
  font-size: 11px; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 500;
}
.fee-saving-amount-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.fee-saving-amount {
  font-size: 34px; font-weight: 400;
  color: var(--green);
  font-family: 'Instrument Serif', serif; font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
}
.fee-saving-period {
  font-size: 13px; color: var(--text2);
}
.fee-saving-foot {
  font-size: 12px; color: var(--text3);
  line-height: 1.65;
}
.fee-saving-foot strong {
  color: var(--green); font-weight: 500;
}
.fee-saving-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--text); color: #000;
  font-size: 12.5px; font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.fee-saving-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Chart ── */
.bar-chart { margin-top: 12px; }
.bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.bar-name { font-size: 12px; color: var(--text2); width: 90px; flex-shrink: 0; font-weight: 500; }
.bar-track { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-pill); transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.bar-val { font-size: 11.5px; color: var(--text3); width: 56px; text-align: right; flex-shrink: 0; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item {
  border-radius: var(--radius);
  padding: 26px 28px;
}
.faq-q { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.faq-a { font-size: 13px; color: var(--text2); line-height: 1.75; }

/* ── CTA Banner ── */
.cta-banner {
  margin: 0 0 80px;
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h3 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 400; margin-bottom: 14px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.cta-banner h3 .serif { color: var(--text3); }
.cta-banner p { font-size: 14.5px; color: var(--text2); margin-bottom: 30px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.65; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.site-disclosure {
  max-width: 1100px;
  margin: 96px auto -56px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  color: var(--text2);
  font-size: 12px;
  line-height: 1.65;
  position: relative;
  z-index: 4;
}
.site-disclosure strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px; margin-top: 40px;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 24px;
}
.footer-logo { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.footer-logo span { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--text2); }
.footer-text { font-size: 12px; color: var(--text3); line-height: 1.7; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 12.5px; color: var(--text2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lang-switch summary, .nav-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .hero-stats { gap: 32px; }
  .section { padding: 72px 0; }
  .cta-banner { padding: 48px 24px; }
  .site-disclosure {
    margin: 88px 16px -52px;
    padding: 11px 13px;
    font-size: 11.5px;
  }
}
@media (max-width: 640px) {
  .hero { min-height: 80vh; padding: 80px 20px 40px; }
  .container, .container-narrow { padding: 0 20px; }
  .fee-table th:nth-child(3), .fee-table td:nth-child(3),
  .fee-table th:nth-child(4), .fee-table td:nth-child(4) { display: none; }
  .fee-table th, .fee-table td { padding: 16px 14px; }
  .calc-card { padding: 24px; }
  .stat-item .stat-num { font-size: 26px; }
}
