/* ============================================================
   MT4/MT5 交易平台落地页 — Mobile-First Responsive
   DESIGN: 深空墨黑 + 琥珀金 (XAU 意象) + 上涨绿/下跌红
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* 色板 */
  --bg0: #0a0d14;
  --bg1: #11151f;
  --bg2: #151a27;
  --panel: rgba(255, 255, 255, 0.02);
  --gold: #e8b339;
  --gold-l: #f2c45c;
  --green: #1fbf8f;
  --red: #e4575f;
  --text: #f5f7fa;
  --text2: #9aa3b2;
  --text3: #5b6472;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* 字体 */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.35s;

  /* 尺寸 */
  --nav-h: 64px;
  --radius: 14px;
  --radius-sm: 10px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(120% 80% at 50% -10%, var(--bg1) 0%, var(--bg0) 60%);
  background-color: var(--bg0);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 64px 0;
}

/* ---------- 通用标题 ---------- */
.sec-head {
  text-align: center;
  margin-bottom: 40px;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sec-tag::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.sec-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sec-sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text2);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hl {
  color: var(--gold);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  color: #161106;
  box-shadow: 0 10px 30px -10px rgba(232, 179, 57, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(232, 179, 57, 0.7);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 13, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  display: grid;
  place-items: center;
  color: #161106;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.brand small {
  font-weight: 400;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color var(--speed) var(--ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  display: none;
  gap: 10px;
  align-items: center;
}

.nav-burger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}

.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-burger span {
  position: relative;
}

.nav-burger span::before {
  position: absolute;
  top: -6px;
}

.nav-burger span::after {
  position: absolute;
  top: 6px;
}

.nav-burger.open span {
  background: transparent;
}

.nav-burger.open span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-burger.open span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg1);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .btn {
  margin-top: 10px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 30%, var(--bg0) 82%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gold);
  border: 1px solid rgba(232, 179, 57, 0.35);
  background: rgba(232, 179, 57, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(31, 191, 143, 0.6);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto;
}

.hero-sub {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text2);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px auto 0;
  max-width: 620px;
}

.stat-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
}

.stat-pill .v {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.stat-pill .l {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* 信任背书条 */
.trustbar {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.trustbar-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}

.trustbar-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  min-height: 44px;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.trust-logo:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.trust-logo .icon {
  font-size: 15px;
}

/* ============================================================
   实时行情
   ============================================================ */
.market {
  background: linear-gradient(180deg, transparent, rgba(21, 26, 39, 0.5), transparent);
}

.market-live {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
}

.market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.market-head .mh-title {
  font-weight: 700;
  font-size: 15px;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--green);
}

.live-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s infinite;
}

.live-clock {
  font-size: 13px;
  color: var(--text2);
  font-variant-numeric: tabular-nums;
}

.market-table {
  display: block;
}

.m-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.95fr;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--speed) var(--ease);
  min-height: 56px;
}

.m-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.m-row:last-child {
  border-bottom: none;
}

.m-row:hover {
  background: rgba(232, 179, 57, 0.05);
}

.m-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-name .s {
  font-weight: 700;
  font-size: 14px;
}

.m-name .d {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m-price {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.m-price small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text3);
}

.m-change {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.m-up {
  color: var(--green);
}

.m-down {
  color: var(--red);
}

.m-open {
  justify-self: end;
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.m-intro {
  text-align: center;
  font-size: 13px;
  color: var(--text3);
  margin-top: 16px;
}

/* K线浮层 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 10, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-mask.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  animation: slideUp 0.4s var(--ease);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: 17px;
  font-weight: 700;
}

.modal-head .chg {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 18px;
}

.modal-close:hover {
  border-color: var(--gold);
}

.modal-body {
  padding: 16px 18px;
}

.kline-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
}

.kline-wrap svg {
  width: 100%;
  height: auto;
}

.modal-note {
  font-size: 12px;
  color: var(--text3);
  margin-top: 12px;
  line-height: 1.5;
}

.modal-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

/* ============================================================
   MT4 vs MT5
   ============================================================ */
.cmp-grid {
  display: grid;
  gap: 20px;
}

.cmp-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.cmp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 179, 57, 0.5);
}

.cmp-card .chip {
  display: inline-block;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(232, 179, 57, 0.12);
  color: var(--gold);
  margin-bottom: 14px;
}

.cmp-card h3 {
  font-size: 20px;
  font-weight: 800;
}

.cmp-card .tagline {
  font-size: 13px;
  color: var(--text2);
  margin-top: 6px;
  min-height: 40px;
}

.cmp-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmp-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.cmp-item .mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.cmp-yes {
  background: rgba(31, 191, 143, 0.15);
  color: var(--green);
}

.cmp-no {
  background: rgba(228, 87, 95, 0.15);
  color: var(--red);
}

.cmp-reco {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(232, 179, 57, 0.07);
  border: 1px dashed rgba(232, 179, 57, 0.4);
  font-size: 13px;
  color: var(--gold);
  line-height: 1.5;
}

/* ============================================================
   核心优势
   ============================================================ */
.adv-grid {
  display: grid;
  gap: 16px;
}

.adv-card {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.adv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 179, 57, 0.5);
}

.adv-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(232, 179, 57, 0.12);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.adv-card h3 {
  font-size: 18px;
  font-weight: 800;
}

.adv-card > p {
  font-size: 14px;
  color: var(--text2);
  margin-top: 8px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.channel-row:last-child {
  border-bottom: none;
}

.channel-row .name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.channel-row .name .i {
  color: var(--gold);
}

.channel-row .time {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.latency-wrap .img-cap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}

.latency-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.latency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--panel);
}

.latency-item .loc {
  font-weight: 700;
  font-size: 14px;
}

.latency-item .code {
  font-size: 11px;
  color: var(--text3);
}

.latency-item .ms {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--green);
  font-size: 16px;
}

.ea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ea-tag {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text2);
}

/* ============================================================
   数据 + 评价墙
   ============================================================ */
.kpi-band {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg2), rgba(232, 179, 57, 0.06));
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  overflow: hidden;
}

.kpi-cell {
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kpi-cell:nth-child(2n) {
  border-right: none;
}

.kpi-cell:nth-child(n + 3) {
  border-bottom: none;
}

.kpi-cell .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.kpi-cell .num.flash {
  text-shadow: 0 0 18px rgba(232, 179, 57, 0.5);
}

.kpi-cell .label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text2);
}

.testi-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.testi-card {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 179, 57, 0.5);
}

.testi-stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 2px;
}

.testi-quote {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #161106;
  flex-shrink: 0;
}

.av-amber {
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
}

.av-green {
  background: linear-gradient(135deg, #2ecda0, #1fbf8f);
  color: #05251b;
}

.av-red {
  background: linear-gradient(135deg, #f0717a, #e4575f);
  color: #2a0507;
}

.av-blue {
  background: linear-gradient(135deg, #6ea8ff, #4f7dff);
  color: #08112a;
}

.testi-user .meta {
  font-size: 14px;
  font-weight: 700;
}

.testi-user .meta small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.faq-q .arrow {
  font-size: 18px;
  color: var(--gold);
  transition: transform var(--speed) var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--speed) var(--ease);
}

.faq-a p {
  padding: 0 18px 18px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

.risk {
  margin-top: 36px;
  border: 1px solid rgba(228, 87, 95, 0.3);
  background: rgba(228, 87, 95, 0.05);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.risk h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 8px;
}

.risk p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text2);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
}

.footer-brand small {
  font-weight: 400;
  color: var(--gold);
  font-size: 11px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  min-height: 34px;
  font-size: 14px;
  color: var(--text2);
  transition: color var(--speed) var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   动画关键帧
   ============================================================ */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 191, 143, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(31, 191, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 191, 143, 0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes flashCell {
  0% {
    text-shadow: 0 0 20px rgba(232, 179, 57, 0.9);
  }
  100% {
    text-shadow: 0 0 0 rgba(232, 179, 57, 0);
  }
}

.flash-anim {
  animation: flashCell 0.6s var(--ease);
}

/* ============================================================
   响应式 (≥768px 平板 / ≥1024px 桌面)
   ============================================================ */
@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    padding: calc(var(--nav-h) + 96px) 0 96px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .hero-cta .btn {
    min-width: 220px;
  }

  .cmp-grid {
    grid-template-columns: 1fr 1fr;
  }

  .adv-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi-band {
    grid-template-columns: repeat(4, 1fr);
  }

  .kpi-cell {
    border-right: 1px solid var(--line);
    border-bottom: none;
  }

  .kpi-cell:nth-child(n + 3) {
    border-right: 1px solid var(--line);
  }

  .kpi-cell:last-child {
    border-right: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: flex;
  }

  .nav-burger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: 620px;
  }

  .testi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .market-table {
    display: block;
  }
}

/* ============================================================
   Realistic MT4 / MT5 terminal mockups
   ============================================================ */
.tm-frame {
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.85);
  background: #0b0e15;
}

.tm {
  width: 100%;
  font-size: 11px;
  color: var(--text2);
  background: #0b0e15;
  line-height: 1.3;
}

.tm-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #141a26;
  border-bottom: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 10.5px;
}

.tm-dots {
  display: inline-flex;
  gap: 5px;
}

.tm-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3346;
}

.tm-dots i:first-child {
  background: #e4575f;
}

.tm-dots i:nth-child(2) {
  background: #e8b339;
}

.tm-dots i:nth-child(3) {
  background: #1fbf8f;
}

.tm-title {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text2);
  font-size: 10px;
}

.tm-win {
  color: var(--text3);
  white-space: nowrap;
}

.tm-menu {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 5px 10px;
  border-bottom: 1px solid var(--line);
  background: #0e131d;
}

.tm-menu span {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  color: var(--text2);
  min-height: 20px;
  display: inline-flex;
  align-items: center;
}

.tm-menu span:hover {
  background: rgba(232, 179, 57, 0.12);
  color: var(--gold);
}

.tm-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: #0b0e15;
}

.tm-tool {
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text2);
  white-space: nowrap;
}

.tm-tool.ord {
  background: rgba(232, 179, 57, 0.16);
  border-color: rgba(232, 179, 57, 0.4);
  color: var(--gold-l);
  font-weight: 700;
}

.tm-tfs {
  display: inline-flex;
  gap: 2px;
  flex-wrap: wrap;
}

.tm-tf {
  font-size: 9.5px;
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
}

.tm-tf.act {
  background: rgba(232, 179, 57, 0.18);
  color: var(--gold-l);
  font-weight: 700;
}

.tm-main {
  display: flex;
  min-height: 240px;
}

.tm-side {
  width: 34%;
  max-width: 190px;
  min-width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-right: 1px solid var(--line);
  background: #0d111a;
}

.tm-panel {
  background: #0b0e15;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tm-phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: #131a27;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.tm-mw {
  font-variant-numeric: tabular-nums;
}

.tm-mw-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4px;
  padding: 3px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 9.5px;
}

.tm-mw-row.act {
  background: rgba(232, 179, 57, 0.12);
}

.tm-mw-row .sym {
  color: var(--text);
  font-weight: 700;
}

.tm-mw-row .bid,
.tm-mw-row .ask,
.tm-mw-row .tm-spread {
  text-align: right;
  color: var(--text2);
}

.tm-mw-row .bid {
  color: var(--green);
}

.tm-mw-row .ask {
  color: var(--red);
}

.tm-tree {
  padding: 6px 8px;
  font-size: 10px;
}

.tm-tree .tn {
  padding: 2px 0;
  color: var(--text2);
}

.tm-tree .tn.sub {
  padding-left: 14px;
  color: var(--text3);
}

.tm-tree .tw {
  color: var(--gold);
  margin-right: 4px;
  font-size: 8px;
}

.tm-chart {
  flex: 1;
  min-width: 0;
  background: #080a10;
  position: relative;
}

.tm-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.tm-chart-over {
  position: absolute;
  top: 6px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 9px;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
  z-index: 1;
  pointer-events: none;
}

.tm-chart-over b {
  color: var(--gold);
}

.tm-bottom {
  border-top: 1px solid var(--line);
  background: #0b0e15;
}

.tm-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  padding: 5px 8px 0;
  border-bottom: 1px solid var(--line);
  background: #0e131d;
}

.tm-tab {
  font-size: 9.5px;
  padding: 4px 8px;
  color: var(--text3);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

.tm-tab.act {
  background: #0b0e15;
  color: var(--gold);
  border-color: var(--line);
}

.tm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.tm-table th,
.tm-table td {
  text-align: left;
  padding: 4px 8px;
  white-space: nowrap;
}

.tm-table th {
  color: var(--text3);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.tm-table td {
  color: var(--text2);
}

.tm-table .up {
  color: var(--green);
}

.tm-table .dn {
  color: var(--red);
}

.tm-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px;
  background: #0e131d;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--text3);
}

.tm-bars {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

/* on small screens hide Ask / spread columns to keep it crisp */
@media (max-width: 460px) {
  .hide-m {
    display: none;
  }

  .tm-mw-row {
    grid-template-columns: 1.3fr 1fr;
  }
}
