/* ============================================================
   Moneta Markets 外汇中文站 — 全站样式
   配色：深藏蓝 #13173a / 珊瑚红 #ff4646 / 白 / 浅灰
   字体：本土化中文字体栈，无外部 CDN
   ============================================================ */

:root {
  --navy: #13173a;
  --navy-2: #1c2150;
  --navy-3: #2a3068;
  --coral: #ff4646;
  --coral-dark: #e23535;
  --ink: #1a1e35;
  --muted: #5b617a;
  --line: #e4e7f0;
  --surface: #f5f6fb;
  --white: #ffffff;
  --radius: 12px;
  --maxw: 1200px;
  --shadow: 0 10px 30px rgba(19, 23, 58, .08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Heiti SC", "WenQuanYi Micro Hei", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 23, 58, .97);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.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; flex: none; }
.brand-text { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.brand-text span { color: var(--coral); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, .82);
  padding: 9px 14px; border-radius: 8px;
  font-size: 15px; transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .08); }

.btn {
  display: inline-block; font-weight: 600; text-align: center;
  border-radius: 9px; transition: transform .12s, background .15s, box-shadow .15s;
  cursor: pointer;
}
.btn-open {
  background: var(--coral); color: #fff;
  padding: 9px 20px; font-size: 15px;
  box-shadow: 0 6px 16px rgba(255, 70, 70, .35);
}
.btn-open:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-lg { padding: 14px 34px; font-size: 17px; }

.nav-cta { margin-left: 10px; }

/* 纯 CSS 汉堡菜单 */
.nav-toggle { display: none; }
.hamburger {
  display: none; cursor: pointer; width: 42px; height: 42px;
  border-radius: 8px; position: relative;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px;
  background: #fff; border-radius: 2px; transition: .25s;
}
.hamburger span { top: 20px; }
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

/* ---------- 通用版块 ---------- */
section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-block; color: var(--coral); font-weight: 700;
  font-size: 13px; letter-spacing: 2px; margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.3; color: var(--ink); font-weight: 700; }
h1 { font-size: 42px; letter-spacing: -.5px; }
h2 { font-size: 31px; }
h3 { font-size: 20px; }
.lead { color: var(--muted); font-size: 18px; max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
p + p { margin-top: 14px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(255, 70, 70, .22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 96px 0 88px;
}
.hero h1 { color: #fff; max-width: 760px; }
.hero .lead { color: rgba(255, 255, 255, .82); margin-top: 20px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost {
  background: transparent; color: #fff; padding: 14px 30px; font-size: 17px;
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hero-stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 34px;
}
.hero-stats .num { font-size: 30px; font-weight: 700; color: #fff; }
.hero-stats .lbl { color: rgba(255, 255, 255, .68); font-size: 14px; margin-top: 4px; }

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

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4d9e8; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px;
  background: rgba(255, 70, 70, .1); color: var(--coral);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.surface { background: var(--surface); }

/* ---------- 数据条 ---------- */
.spec-list { list-style: none; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 600; color: var(--ink); }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy);
  color: #fff; font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- 首页 CTA 带 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; border-radius: 18px; padding: 50px 44px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 12px auto 26px; max-width: 560px; }

/* ---------- 子页头 ---------- */
.page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 70px 0;
}
.page-head h1 { color: #fff; }
.page-head .lead { color: rgba(255, 255, 255, .8); margin-top: 14px; }

.prose h2 { margin: 38px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p { color: #3a4060; }
.prose ul { margin: 12px 0 12px 22px; color: #3a4060; }
.prose li { margin: 7px 0; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 60px 0 0; font-size: 14.5px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 700; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand b { color: #fff; font-size: 17px; }
.footer-cols p { line-height: 1.85; }
.footer-cols ul { list-style: none; }
.footer-cols ul li { padding: 5px 0; color: rgba(255, 255, 255, .7); }
.footer-contact li { display: flex; gap: 8px; padding: 6px 0; }
.footer-contact .c-label { color: rgba(255, 255, 255, .5); flex: none; min-width: 52px; }
.footer-bottom {
  margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0; font-size: 13px; color: rgba(255, 255, 255, .5);
}
.risk { background: #0e1230; color: rgba(255, 255, 255, .55); font-size: 12.5px; line-height: 1.85; padding: 22px 0; }
.risk .wrap { max-width: var(--maxw); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-2); padding: 8px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; visibility: hidden;
  }
  .nav-links a { padding: 13px 10px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .nav-cta { margin: 12px 0 0; }
  .nav-links .nav-cta a { display: block; }
  .nav-toggle:checked ~ .nav-links { max-height: 460px; visibility: visible; padding-top: 8px; padding-bottom: 18px; }
  .nav-toggle:checked ~ .hamburger span { background: transparent; }
  .nav-toggle:checked ~ .hamburger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span::after { top: 0; transform: rotate(-45deg); }

  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  section { padding: 56px 0; }
  .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
