/* ============================================================
   avatrade 云 · 全站样式表
   ============================================================ */
:root {
  --brand: #2f63e0;
  --brand-2: #4f8bff;
  --brand-3: #8b5cf6;
  --cyan: #22c3b8;
  --ink: #142a52;
  --ink-2: #33456a;
  --muted: #6b7c9c;
  --line: #e4ecfa;
  --bg: #ffffff;
  --bg-soft: #f5f9ff;
  --bg-soft-2: #eef5ff;
  --radius: 18px;
  --shadow: 0 12px 36px rgba(30, 72, 160, .09);
  --shadow-lg: 0 24px 60px rgba(30, 72, 160, .14);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--soft2 { background: linear-gradient(180deg, #f5f9ff 0%, #eef7ff 100%); }

/* ---------- topbar ---------- */
.topbar {
  background: #10275c;
  color: #cfe0ff;
  font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar a { color: #cfe0ff; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .lang-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.13);
  padding: 4px 12px; border-radius: 20px;
  color: #fff; font-weight: 600;
}
.topbar .lang-link:hover { background: rgba(255,255,255,.24); }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.brand-name span { color: var(--brand); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; display: block; margin-top: -4px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 14px; border-radius: 9px; font-size: 15px; color: var(--ink-2);
  font-weight: 500; transition: .2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--brand); background: var(--bg-soft-2); }
.main-nav a.active { color: var(--brand); background: #e9f1ff; font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 11px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .22s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 10px 24px rgba(47,99,224,.24); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47,99,224,.34); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; background: linear-gradient(160deg, #f4f9ff 0%, #ffffff 55%, #eaf6ff 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#c9dcfb 1px, transparent 1px);
  background-size: 26px 26px; opacity: .42;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e9f1ff; color: var(--brand); border: 1px solid #d6e5ff;
  padding: 6px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(47,99,224,.16); }
.hero h1 { font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--brand) 0%, var(--brand-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta b { color: var(--ink); font-size: 15px; }
.hero-meta i { width: 16px; height: 16px; color: var(--cyan); font-style: normal; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg); }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 26px 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-label { font-size: 13px; color: var(--muted); margin: 0; flex-shrink: 0; }
.trust-logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.trust-logos span { font-size: 17px; font-weight: 700; color: #8fa2c4; letter-spacing: .5px; }

/* ---------- section head ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.8px; }
.sec-head p { color: var(--muted); font-size: 16px; margin: 0; }
.sec-head--left { text-align: left; margin-left: 0; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: #c9dcff; box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, #e9f1ff, #e2f7ff); margin-bottom: 20px;
}
.card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.card-link { font-size: 14px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover { gap: 10px; }
.card-tag { position: absolute; top: 20px; right: 20px; background: #e9f8f2; color: #14a97a; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); }
.split h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.8px; }
.split .lead { color: var(--muted); font-size: 16px; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; }
.feature-list .tick {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: #e7f8f0; color: #14a97a; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 3px;
}
.feature-list b { color: var(--ink); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--brand); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- dark CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 62px 56px;
  background: linear-gradient(120deg, #17377e 0%, #2f63e0 55%, #7c4de0 100%);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -90px; top: -160px; border-radius: 50%; background: rgba(255,255,255,.09); }
.cta::before { content: ""; position: absolute; width: 260px; height: 260px; right: 160px; bottom: -180px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta p { color: #d8e6ff; margin: 0; font-size: 16px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 62px 0 24px; background: linear-gradient(160deg, #f4f9ff, #fff 70%); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumb a:hover { color: var(--brand); }
.crumb span { margin: 0 8px; color: #b7c5dd; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -1px; margin-bottom: 14px; }
.page-hero .lead { font-size: 17px; color: var(--muted); max-width: 760px; margin: 0; }

/* ---------- download page ---------- */
.dl-hero-card {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 40px;
  box-shadow: var(--shadow); margin-top: 34px;
}
.dl-hero-card img { border-radius: 18px; width: 100%; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.dl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c9dcff; }
.dl-card-media { background: linear-gradient(140deg, #eef5ff, #e4f8ff); padding: 26px; display: grid; place-items: center; }
.dl-card-media img { width: 128px; height: 128px; object-fit: contain; }
.dl-card-media svg { width: 78px; height: 78px; }
.dl-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.dl-card-body h3 { font-size: 19px; margin-bottom: 6px; }
.dl-card-body .ver { font-size: 13px; color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.dl-card-body p { font-size: 14px; color: var(--muted); flex: 1; }
.dl-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: #93a3bd; border-top: 1px dashed var(--line); padding-top: 14px; margin-bottom: 16px; }
.dl-card .btn { width: 100%; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft-2); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: none; }
td a { color: var(--brand); font-weight: 600; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #e9f1ff; color: var(--brand); }
.badge--green { background: #e7f8f0; color: #14a97a; }
.notice { background: #fff8ec; border: 1px solid #ffe4b5; border-radius: 14px; padding: 18px 22px; font-size: 14.5px; color: #8a621f; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- footer ---------- */
.site-footer { background: #0e214c; color: #a8bde3; padding: 68px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; padding-bottom: 46px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; max-width: 320px; margin: 18px 0 22px; line-height: 1.9; }
.footer-brand .f-logo { display: inline-flex; align-items: center; gap: 11px; }
.footer-brand .f-logo img { width: 38px; height: 38px; border-radius: 10px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom a { margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--line); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-30 { margin-top: 30px; }
.mt-46 { margin-top: 46px; }
.reveal { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- inner page extras ---------- */
.hero--cn { background: linear-gradient(155deg, #eaf6ff 0%, #ffffff 52%, #f1edff 100%); }
.hero--soft { padding: 56px 0 70px; }
.zone-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.zone-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zone-item b { color: var(--ink); font-size: 15px; }
.zone-item small { color: var(--muted); font-size: 12.5px; display: block; }
.zone-item .az { font-size: 12px; font-weight: 700; color: var(--brand); background: #eaf1ff; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips span { background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; padding: 7px 15px; border-radius: 30px; }
.os-svg { width: 82px; height: 82px; color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 7px 9px; font-size: 14px; }
  .hero-grid, .split, .dl-hero-card { gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 66px; }
  .hero-grid, .split, .dl-hero-card { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .grid-3, .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-wrap { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .main-nav a { white-space: nowrap; }
  .cta { padding: 42px 30px; }
  .dl-hero-card { padding: 24px; }
}
@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  .grid-3, .grid-2, .dl-grid, .grid-4, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-right { display: none; }
  .hero h1 { font-size: 34px; }
  .cta { padding: 34px 24px; }
}
