/* ============================================================
   Eightcap 外汇中文站  ·  yihui-chg.com
   设计语言：深海军蓝 + 标志青绿（teal），简洁卡片式布局
   字体：本土化中文系统字体栈（PingFang / 微软雅黑 / 思源黑体）
   ============================================================ */

:root {
  --ink:        #0a1929;   /* 主深色背景 */
  --ink-2:      #0e2438;   /* 次深色面板 */
  --ink-3:      #12304a;   /* 深色卡片 */
  --teal:       #11c08a;   /* 标志青绿 */
  --teal-light: #1ee0aa;   /* 亮青绿 */
  --teal-deep:  #0d9d72;   /* 深青绿（悬停） */
  --paper:      #ffffff;
  --mist:       #f4f8f9;   /* 浅色区块底 */
  --mist-2:     #eaf1f3;
  --slate:      #51677a;   /* 正文灰 */
  --slate-2:    #6c8093;
  --heading:    #0c2236;   /* 标题深蓝 */
  --line:       #e1e9ed;   /* 分隔线 */
  --line-dark:  #1d3a54;
  --radius:     14px;
  --radius-lg:  22px;
  --wrap:       1160px;
  --ease:       cubic-bezier(.22,.61,.36,1);

  --font-zh: "PingFang SC", "Microsoft YaHei", "微软雅黑",
             "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC",
             "WenQuanYi Micro Hei", sans-serif;
}

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

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

body {
  font-family: var(--font-zh);
  color: var(--heading);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用区块标题 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--heading);
}
.section-lead {
  margin-top: 16px;
  max-width: 620px;
  color: var(--slate);
  font-size: 17px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #052b20;
  box-shadow: 0 8px 22px -8px rgba(17,192,138,.6);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--heading);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-ghost-light {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   顶部导航
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,25,41,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand-text span { color: var(--teal-light); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #c4d2de;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a.active { color: var(--teal-light); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 9px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px auto; border-radius: 2px; transition: .25s;
}

/* ============================================================
   英雄区
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 540px at 78% -10%, rgba(17,192,138,.22), transparent 60%),
    radial-gradient(640px 420px at 8% 110%, rgba(30,224,170,.10), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.015em;
}
.hero h1 em { color: var(--teal-light); font-style: normal; }
.hero p {
  margin-top: 22px;
  font-size: 18px;
  color: #b9c8d6;
  max-width: 520px;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; gap: 30px; flex-wrap: wrap;
  font-size: 14px; color: #9fb2c2;
}
.hero-trust b { color: #fff; font-weight: 700; }

/* 英雄区右侧：数据面板 */
.hero-panel {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 {
  font-size: 14px; font-weight: 600; color: #9fb2c2;
  letter-spacing: .08em; margin-bottom: 22px;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
.stat { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat .num {
  font-size: 34px; font-weight: 800; color: var(--teal-light);
  line-height: 1; letter-spacing: -.02em;
}
.stat .lbl { margin-top: 8px; font-size: 14px; color: #b9c8d6; }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 88px 0; }
.section.alt { background: var(--mist); }
.section-head { margin-bottom: 50px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- 特色三栏 ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(12,34,54,.35);
  border-color: #cfe7df;
}
.feature .ico {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(17,192,138,.16), rgba(17,192,138,.05));
  color: var(--teal-deep);
  margin-bottom: 20px;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 700; color: var(--heading); }
.feature p { margin-top: 11px; color: var(--slate); font-size: 15.5px; }

/* ---------- 价差表 ---------- */
.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.spread-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spread-table thead th {
  background: var(--ink);
  color: #cfdce6;
  font-weight: 600;
  text-align: left;
  padding: 15px 20px;
  font-size: 13.5px;
  letter-spacing: .04em;
}
.spread-table thead th:not(:first-child) { text-align: right; }
.spread-table tbody td { padding: 15px 20px; border-top: 1px solid var(--line); }
.spread-table tbody td:not(:first-child) { text-align: right; color: var(--slate); }
.spread-table tbody tr:hover { background: var(--mist); }
.spread-table .sym { font-weight: 700; color: var(--heading); }
.spread-table .tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--teal-deep); background: rgba(17,192,138,.1);
  padding: 2px 9px; border-radius: 6px; margin-left: 8px;
}
.table-note { margin-top: 16px; font-size: 13px; color: var(--slate-2); }

/* ---------- 平台卡 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.platform {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s var(--ease);
}
.platform:hover { border-color: #cfe7df; transform: translateY(-3px); }
.platform .badge {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  color: #fff; background: linear-gradient(150deg, var(--ink-3), var(--ink));
  letter-spacing: .02em;
}
.platform h3 { font-size: 18px; font-weight: 700; color: var(--heading); }
.platform p { margin-top: 8px; color: var(--slate); font-size: 15px; }

/* ---------- 优势条（深色） ---------- */
.darkband {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(17,192,138,.18), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #fff;
}
.darkband .section-title { color: #fff; }
.darkband .section-lead { color: #b9c8d6; }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.split .item h3 {
  font-size: 19px; font-weight: 700; color: #fff;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.split .item p { color: #aebfcd; font-size: 15.5px; }

/* ---------- CTA（仅首页） ---------- */
.cta {
  background:
    radial-gradient(600px 360px at 50% -30%, rgba(30,224,170,.28), transparent 65%),
    linear-gradient(180deg, var(--ink-3), var(--ink));
  color: #fff; text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 32px;
}
.cta h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta p { margin: 16px auto 30px; max-width: 540px; color: #c4d2de; font-size: 17px; }

/* ---------- 子页：内容排版 ---------- */
.page-hero {
  background:
    radial-gradient(700px 380px at 80% -20%, rgba(17,192,138,.18), transparent 60%),
    linear-gradient(180deg, var(--ink), var(--ink-2));
  color: #fff; padding: 72px 0 64px;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  letter-spacing: -.015em; line-height: 1.2;
}
.page-hero p { margin-top: 18px; max-width: 640px; color: #b9c8d6; font-size: 18px; }
.breadcrumb { font-size: 14px; color: #8da3b5; margin-bottom: 18px; }
.breadcrumb a { color: #aebfcd; }
.breadcrumb a:hover { color: var(--teal-light); }

.prose h2 {
  font-size: clamp(23px, 2.6vw, 30px); font-weight: 800;
  color: var(--heading); margin: 0 0 18px; letter-spacing: -.01em;
}
.prose h3 { font-size: 19px; font-weight: 700; color: var(--heading); margin: 28px 0 10px; }
.prose p { color: var(--slate); margin-bottom: 16px; font-size: 16.5px; }
.prose + .prose { margin-top: 56px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
.info-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.info-card .ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; color: var(--teal-deep);
  background: linear-gradient(150deg, rgba(17,192,138,.15), rgba(17,192,138,.04));
}
.info-card .ico svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 18px; font-weight: 700; color: var(--heading); margin-bottom: 9px; }
.info-card p { color: var(--slate); font-size: 15.5px; }

.check-list { list-style: none; display: grid; gap: 14px; margin-top: 4px; }
.check-list li {
  position: relative; padding-left: 34px; color: var(--slate); font-size: 16.5px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(17,192,138,.13);
}
.check-list li::after {
  content: ""; position: absolute; left: 7px; top: 9px;
  width: 8px; height: 5px; border-left: 2px solid var(--teal-deep);
  border-bottom: 2px solid var(--teal-deep);
  transform: rotate(-45deg);
}
.check-list li b { color: var(--heading); font-weight: 700; }

/* 账户类型对比 */
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.account-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; background: var(--paper);
}
.account-card.featured {
  border-color: var(--teal);
  box-shadow: 0 20px 50px -28px rgba(17,192,138,.5);
}
.account-card .ribbon {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  color: var(--teal-deep); background: rgba(17,192,138,.12);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.account-card h3 { font-size: 24px; font-weight: 800; color: var(--heading); }
.account-card .sub { color: var(--slate-2); font-size: 14.5px; margin-top: 4px; }
.account-card .feat-list {
  list-style: none; margin-top: 22px; display: grid; gap: 13px;
}
.account-card .feat-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding-bottom: 13px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--slate);
}
.account-card .feat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.account-card .feat-list li b { color: var(--heading); font-weight: 700; }

/* FAQ */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; background: var(--paper);
}
.faq-item h3 {
  font-size: 17.5px; font-weight: 700; color: var(--heading);
  display: flex; align-items: flex-start; gap: 11px;
}
.faq-item h3::before {
  content: "Q"; flex: none;
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--teal); color: #052b20;
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.faq-item p { margin-top: 12px; padding-left: 35px; color: var(--slate); font-size: 15.5px; }

/* ============================================================
   页脚（三列式）
   ============================================================ */
.footer { background: var(--ink); color: #9fb2c2; padding: 64px 0 0; }
.footer-cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 48px;
}
.footer .brand-text { font-size: 18px; }
.footer-about p { margin-top: 18px; font-size: 14.5px; line-height: 1.85; max-width: 360px; }
.footer h4 {
  color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px;
  letter-spacing: .03em;
}
.footer-list { list-style: none; display: grid; gap: 11px; font-size: 14.5px; }
.footer-list li { color: #9fb2c2; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.footer-contact .k { color: #6f879a; flex: none; width: 56px; }
.footer-contact .v { color: #c4d2de; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0 36px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: #6f879a;
}
.risk {
  border-top: 1px solid var(--line-dark);
  padding: 26px 0 0;
  font-size: 12.5px; line-height: 1.8; color: #61798c; max-width: 100%;
}
.risk b { color: #8aa0b2; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 64px 0 72px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 72px; }
  .brand { order: 0; height: 72px; }
  .nav-toggle { order: 1; display: block; margin-left: auto; height: 72px; }
  .nav-links { order: 2; }
  .nav-cta { order: 3; }
  .nav-links, .nav-cta { display: none; width: 100%; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 2px; padding: 8px 0 6px;
    border-top: 1px solid var(--line-dark);
  }
  .nav.open .nav-links a { padding: 13px 6px; font-size: 16px; }
  .nav.open .nav-cta { display: flex; width: 100%; padding: 4px 0 16px; }
  .nav.open .nav-cta .btn { display: inline-flex; width: 100%; justify-content: center; }
  .feature-grid, .platform-grid, .info-grid, .account-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .hero-trust { gap: 18px; }
  .section { padding: 64px 0; }
  .spread-table thead th, .spread-table tbody td { padding: 12px 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
