/* ===== XM 外汇中文站 样式表 ===== */

:root{
  --xm-red:#d3052f;
  --xm-red-dark:#a30021;
  --ink:#14233a;
  --ink-2:#1d3050;
  --ink-soft:#33445c;
  --text:#1f2733;
  --muted:#5b6573;
  --line:#e3e7ee;
  --bg:#ffffff;
  --bg-soft:#f4f6f9;
  --bg-dark:#10202f;
  --gold:#e0a44b;
  --radius:10px;
  --shadow:0 8px 28px rgba(20,35,58,.08);
  --shadow-sm:0 2px 10px rgba(20,35,58,.06);
  --maxw:1180px;
  --font:"PingFang SC","Microsoft YaHei","Hiragino Sans GB","Heiti SC","Source Han Sans CN","Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

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

/* ===== 顶部导航 ===== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(160%) blur(6px);
  border-bottom:1px solid var(--line);
}
.nav-bar{display:flex;align-items:center;justify-content:space-between;height:66px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:21px;letter-spacing:.5px;color:var(--ink)}
.brand .logo-mark{width:34px;height:34px;flex:0 0 auto}
.brand .brand-sub{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0}

.nav-toggle{display:none}
.nav-links{display:flex;align-items:center;gap:30px}
.nav-links a{font-size:15.5px;font-weight:600;color:var(--ink-soft);padding:6px 0;position:relative;transition:color .18s}
.nav-links a:hover{color:var(--xm-red)}
.nav-links a.active{color:var(--xm-red)}
.nav-links a.active::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:var(--xm-red);border-radius:2px}

.header-actions{display:flex;align-items:center;gap:14px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:700;font-size:15px;border-radius:8px;cursor:pointer;
  padding:11px 22px;transition:transform .12s ease,background .18s ease,box-shadow .18s;
  border:1.5px solid transparent;white-space:nowrap;
}
.btn-primary{background:var(--xm-red);color:#fff;box-shadow:0 6px 16px rgba(211,5,47,.28)}
.btn-primary:hover{background:var(--xm-red-dark);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--xm-red);color:var(--xm-red)}
.btn-light{background:#fff;color:var(--xm-red)}
.btn-light:hover{background:#fff;transform:translateY(-1px)}
.btn-lg{padding:14px 30px;font-size:16.5px}

.hamb{display:none;width:42px;height:42px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;position:relative}
.hamb span,.hamb span::before,.hamb span::after{
  content:"";position:absolute;left:11px;width:20px;height:2px;background:var(--ink);border-radius:2px;transition:.25s
}
.hamb span{top:20px}
.hamb span::before{top:-6px}
.hamb span::after{top:6px}

/* ===== 通用区块 ===== */
section{padding:74px 0}
.section-soft{background:var(--bg-soft)}
.section-dark{background:var(--bg-dark);color:#e9eef5}
.eyebrow{display:inline-block;font-size:13px;font-weight:700;letter-spacing:2px;color:var(--xm-red);text-transform:uppercase;margin-bottom:14px}
h1,h2,h3{color:var(--ink);line-height:1.3;font-weight:800}
.section-dark h1,.section-dark h2,.section-dark h3{color:#fff}
h2.title{font-size:30px;margin-bottom:16px}
.lead{font-size:17px;color:var(--muted);max-width:720px}
.section-dark .lead{color:#aebccb}
.center{text-align:center}
.center .lead{margin-left:auto;margin-right:auto}

/* ===== Hero ===== */
.hero{
  background:linear-gradient(160deg,#10202f 0%,#16273d 55%,#1d3050 100%);
  color:#fff;padding:88px 0 80px;position:relative;overflow:hidden;
}
.hero::after{
  content:"";position:absolute;right:-120px;top:-60px;width:460px;height:460px;
  background:radial-gradient(circle,rgba(211,5,47,.35),transparent 62%);filter:blur(10px);
}
.hero .wrap{position:relative;z-index:2;display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.hero h1{color:#fff;font-size:42px;line-height:1.18;margin-bottom:20px}
.hero h1 .hl{color:#ff5670}
.hero p{font-size:18px;color:#c4d0de;margin-bottom:30px;max-width:540px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.hero-note{margin-top:22px;font-size:13.5px;color:#8fa1b5}

.hero-card{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);
  border-radius:16px;padding:26px;backdrop-filter:blur(4px)
}
.hero-card h3{color:#fff;font-size:17px;margin-bottom:18px;font-weight:700}
.hero-stat{display:flex;align-items:baseline;justify-content:space-between;padding:13px 0;border-bottom:1px dashed rgba(255,255,255,.14)}
.hero-stat:last-child{border-bottom:0}
.hero-stat .num{font-size:24px;font-weight:800;color:#ff5670}
.hero-stat .lab{font-size:14.5px;color:#c4d0de}

/* ===== 数据条 ===== */
.stat-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center}
.stat-bar .item .n{font-size:32px;font-weight:800;color:var(--xm-red)}
.stat-bar .item .t{font-size:14.5px;color:var(--muted);margin-top:4px}

/* ===== 卡片网格 ===== */
.grid{display:grid;gap:24px}
.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 24px;transition:transform .16s,box-shadow .16s,border-color .16s;
}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d8deea}
.card .ico{width:46px;height:46px;border-radius:10px;background:rgba(211,5,47,.08);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.card .ico svg{width:24px;height:24px}
.card h3{font-size:18.5px;margin-bottom:10px}
.card p{color:var(--muted);font-size:15px}

.card-link{display:block}
.card-link h3{color:var(--ink);transition:color .16s}
.card-link:hover h3{color:var(--xm-red)}
.more{display:inline-flex;align-items:center;gap:6px;color:var(--xm-red);font-weight:700;font-size:14.5px;margin-top:14px}

/* ===== 特性列表 ===== */
.feature-row{display:grid;grid-template-columns:repeat(2,1fr);gap:28px 40px}
.feature{display:flex;gap:16px}
.feature .fi{flex:0 0 auto;width:42px;height:42px;border-radius:10px;background:var(--xm-red);color:#fff;display:flex;align-items:center;justify-content:center}
.feature .fi svg{width:22px;height:22px}
.feature h3{font-size:17px;margin-bottom:6px}
.feature p{color:var(--muted);font-size:14.5px}
.section-dark .feature p{color:#aebccb}
.section-dark .feature .fi{background:rgba(255,255,255,.1)}

/* ===== 表格 ===== */
.table-scroll{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--line)}
table.cmp{width:100%;border-collapse:collapse;min-width:640px;background:#fff}
table.cmp th,table.cmp td{padding:16px 18px;text-align:left;border-bottom:1px solid var(--line);font-size:15px}
table.cmp thead th{background:var(--ink);color:#fff;font-weight:700;font-size:15px}
table.cmp tbody th{color:var(--ink);font-weight:700;background:var(--bg-soft);white-space:nowrap}
table.cmp tbody tr:last-child td,table.cmp tbody tr:last-child th{border-bottom:0}
table.cmp td{color:var(--text)}

/* ===== 步骤 ===== */
.steps{counter-reset:step;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.step{position:relative;padding-top:6px}
.step .sn{width:44px;height:44px;border-radius:50%;background:var(--xm-red);color:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.step h3{font-size:17px;margin-bottom:6px}
.step p{color:var(--muted);font-size:14.5px}

/* ===== 文字+清单（分页正文） ===== */
.prose{max-width:860px}
.prose p{margin-bottom:16px;color:var(--ink-soft);font-size:16px}
.prose h3{font-size:21px;margin:34px 0 12px}
.prose h2{font-size:25px;margin:8px 0 14px}
.tick{margin:14px 0 6px}
.tick li{position:relative;padding-left:30px;margin-bottom:11px;color:var(--ink-soft)}
.tick li::before{content:"";position:absolute;left:0;top:8px;width:16px;height:16px;border-radius:50%;background:var(--xm-red);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center/14px no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center/14px no-repeat;
}

/* ===== 子页页头 ===== */
.page-head{background:linear-gradient(160deg,#10202f,#1d3050);color:#fff;padding:60px 0 56px}
.page-head .crumb{font-size:13.5px;color:#9fb0c2;margin-bottom:14px}
.page-head .crumb a:hover{color:#fff}
.page-head h1{color:#fff;font-size:34px;margin-bottom:14px}
.page-head p{color:#c4d0de;font-size:17px;max-width:760px}

/* ===== CTA 区块（仅首页） ===== */
.cta-band{background:linear-gradient(120deg,var(--xm-red),#e03155);color:#fff;text-align:center}
.cta-band h2{color:#fff;font-size:30px;margin-bottom:14px}
.cta-band p{color:#ffe2e8;font-size:17px;margin-bottom:28px;max-width:640px;margin-left:auto;margin-right:auto}

/* ===== 页脚 ===== */
.site-footer{background:var(--ink);color:#b9c5d4;padding:56px 0 0;font-size:14.5px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1.2fr;gap:40px;padding-bottom:40px}
.footer-grid h4{color:#fff;font-size:16px;margin-bottom:18px;font-weight:700}
.f-brand{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-weight:800;font-size:19px;color:#fff}
.f-brand .logo-mark{width:30px;height:30px}
.footer-grid p{color:#9fb0c2;line-height:1.8}
.f-list li{padding:6px 0;color:#9fb0c2}
.f-contact li{padding:7px 0;color:#9fb0c2;display:flex;gap:10px}
.f-contact .k{color:#7e91a6;flex:0 0 56px}
.risk{border-top:1px solid rgba(255,255,255,.1);padding:22px 0;color:#7e91a6;font-size:12.5px;line-height:1.7}
.copy{border-top:1px solid rgba(255,255,255,.1);padding:18px 0;color:#7e91a6;font-size:13px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* ===== 响应式 ===== */
@media(max-width:900px){
  .hero .wrap{grid-template-columns:1fr;gap:34px}
  .hero h1{font-size:34px}
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .feature-row{grid-template-columns:1fr}
}
@media(max-width:760px){
  section{padding:54px 0}
  .nav-links{
    position:absolute;top:66px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);
    flex-direction:column;align-items:stretch;gap:0;padding:8px 22px 18px;
    box-shadow:var(--shadow);display:none;
  }
  .nav-links a{padding:13px 4px;border-bottom:1px solid var(--line);font-size:16px}
  .nav-links a.active::after{display:none}
  .nav-toggle:checked ~ .nav-links{display:flex}
  .hamb{display:block}
  .header-actions .btn-text{display:none}
  .stat-bar{grid-template-columns:repeat(2,1fr);gap:28px 16px}
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .hero h1{font-size:30px}
  h2.title{font-size:25px}
  .page-head h1{font-size:27px}
}
@media(max-width:420px){
  .brand{font-size:18px}
  .brand .brand-sub{display:none}
}

/* 无障碍焦点 */
a:focus-visible,.btn:focus-visible,.hamb:focus-visible{outline:3px solid rgba(211,5,47,.45);outline-offset:2px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto !important;transition:none !important}}
