/* ==========================================================================
   OANDA 外汇中文站 — 全站样式
   主色调取自 OANDA 主站的深海军蓝，配干净的科技蓝点缀
   字体采用简体中文系统字体栈，贴合大陆与本土阅读习惯，无外部字体依赖
   ========================================================================== */

:root {
  --navy:      #002a3a;
  --navy-deep: #001b27;
  --navy-soft: #0a3a4f;
  --blue:      #1696d2;
  --blue-dark: #0f7bb0;
  --ink:       #16222b;
  --slate:     #56656f;
  --slate-2:   #7d8a93;
  --line:      #e1e7ec;
  --line-soft: #eef2f5;
  --paper:     #ffffff;
  --mist:      #f3f7f9;
  --mist-2:    #eaf1f5;
  --gold:      #f0b429;

  --maxw: 1140px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,42,58,.06), 0 8px 24px rgba(0,42,58,.06);

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

* { box-sizing: border-box; }

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

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

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--navy); }

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

/* ---------- 通用排版 ---------- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; margin: 0; font-weight: 700; }
h2 { font-size: 1.85rem; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--slate); }
strong { color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--blue-dark);
  margin-bottom: 14px;
}

.lead { font-size: 1.08rem; color: var(--slate); max-width: 60ch; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mist-2); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ==========================================================================
   页头 / 导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navy);
}
.brand-sub {
  font-size: .74rem;
  color: var(--slate-2);
  font-weight: 600;
  letter-spacing: .22em;
  margin-top: 2px;
}

.nav-toggle { display: none; }
.nav-burger { display: none; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 9px 16px;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 500;
  border-radius: 6px;
}
.nav-links a:hover { background: var(--mist); color: var(--navy); }
.nav-links a.is-active { color: var(--blue-dark); font-weight: 600; }
.nav-cta { margin-left: 14px; }

/* ==========================================================================
   首页主视觉
   ========================================================================== */
.hero {
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(22,150,210,.28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 78px 0 84px;
}
.hero h1 {
  color: #fff;
  font-size: 2.85rem;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin-bottom: 20px;
}
.hero h1 .hl { color: #5cc6f5; }
.hero p { color: rgba(255,255,255,.78); font-size: 1.12rem; max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { color: rgba(255,255,255,.6); font-size: .86rem; margin: 22px 0 0; }

.hero-trust {
  display: flex;
  gap: 34px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-trust .t-num { font-size: 1.55rem; font-weight: 800; color: #fff; }
.hero-trust .t-label { font-size: .85rem; color: rgba(255,255,255,.65); }

.hero-visual {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 22px;
}

/* ==========================================================================
   子页页头横幅
   ========================================================================== */
.page-banner {
  background:
    radial-gradient(700px 300px at 85% -30%, rgba(22,150,210,.26), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 60px 0 56px;
}
.page-banner .eyebrow { color: #5cc6f5; }
.page-banner h1 { color: #fff; font-size: 2.2rem; margin-bottom: 14px; }
.page-banner p { color: rgba(255,255,255,.78); max-width: 60ch; margin: 0; }

/* ==========================================================================
   区块
   ========================================================================== */
.section { padding: 72px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 64ch; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; }

/* 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3dde4; }
.card .ico {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist-2);
  border-radius: 10px;
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

/* 带分栏的图文 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}

/* 带编号的步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-left: 4px; }
.step .step-no {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .95rem; margin: 0; }

/* 特性清单 */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  color: var(--slate);
  border-bottom: 1px solid var(--line-soft);
}
.tick-list li:last-child { border-bottom: none; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 16px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.tick-list li strong { color: var(--ink); }

/* 数据条 */
.statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
}
.statbar .stat { text-align: center; }
.statbar .s-num { font-size: 2rem; font-weight: 800; color: var(--navy); }
.statbar .s-label { font-size: .9rem; color: var(--slate); margin-top: 4px; }

/* 表格 */
.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.specs { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.specs th, table.specs td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.specs th { background: var(--mist); color: var(--navy); font-weight: 700; }
table.specs tr:last-child td { border-bottom: none; }
table.specs td:first-child { color: var(--ink); font-weight: 600; }
table.specs td { color: var(--slate); }

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.faq-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.faq-item h3::before { content: "Q　"; color: var(--blue); font-weight: 800; }
.faq-item p { margin: 0; }

/* 首页 CTA 区（仅首页正文使用） */
.cta-band {
  background:
    radial-gradient(600px 260px at 20% 120%, rgba(22,150,210,.3), transparent 60%),
    linear-gradient(160deg, var(--navy-soft) 0%, var(--navy-deep) 100%);
  border-radius: 18px;
  padding: 54px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.cta-band h2 { color: #fff; font-size: 1.75rem; }
.cta-band p { color: rgba(255,255,255,.78); margin: 10px 0 0; }

/* 风险提示条 */
.risk-note {
  background: var(--mist);
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.risk-note p { font-size: .85rem; color: var(--slate-2); margin: 0; max-width: 100%; }

/* ==========================================================================
   页脚（三列式）
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 58px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 42px;
}
.footer-col h4 {
  color: #fff;
  font-size: .98rem;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; font-size: 1.18rem; }
.footer-col p { color: rgba(255,255,255,.62); font-size: .92rem; margin: 0 0 12px; max-width: 42ch; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { color: rgba(255,255,255,.62); font-size: .92rem; padding: 6px 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { color: rgba(255,255,255,.62); font-size: .92rem; padding: 6px 0; display: flex; gap: 10px; }
.footer-contact .lab { color: rgba(255,255,255,.45); min-width: 42px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0 34px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom .fb-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 60px; }
  .hero h1 { font-size: 2.3rem; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    cursor: pointer;
    margin-left: auto;
  }
  .nav-burger span { display: block; height: 2px; width: 22px; background: var(--navy); border-radius: 2px; transition: .2s; }
  .nav-menu {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    box-shadow: 0 14px 30px rgba(0,42,58,.1);
  }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-links a { padding: 12px 10px; border-radius: 6px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle:checked ~ .nav-menu { max-height: 520px; visibility: visible; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  h2 { font-size: 1.55rem; }
  .section { padding: 52px 0; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr 1fr; padding: 24px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 1.95rem; }
  .brand-sub { display: none; }
}

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