/* ===== CMC Markets Chinese Website - Final Design ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy: #0d1b33;
  --navy-2: #132442;
  --navy-3: #1a3055;
  --navy-card: rgba(255,255,255,0.04);
  --red: #d93a34;
  --red-hover: #b82e28;
  --gold: #c4953a;
  --gold-light: #d4a84e;
  --white: #fff;
  --bg: #f5f7fa;
  --bg-card: #fff;
  --text: #1a1a2e;
  --text-2: #4a5568;
  --text-3: #a0aec0;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== NAV ===== */
.cmc-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmc-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.cmc-logo {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.cmc-logo em { color: var(--red); font-style: normal; }
.cmc-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cmc-nav-list a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
}
.cmc-nav-list a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.cmc-nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}
.cmc-nav-cta:hover { background: var(--red-hover) !important; }

/* ===== HERO ===== */
.cmc-hero {
  background: linear-gradient(165deg, #0d1b33 0%, #132442 50%, #1a3055 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cmc-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(196,149,58,0.05) 0%, transparent 60%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.hero-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.hero-txt h1 {
  color: var(--white);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.hero-txt h1 .hl { color: var(--gold); }
.hero-txt p {
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 480px;
}
.hero-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-red:hover { background: var(--red-hover); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }

/* Hero 卡片面板 */
.hero-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-stat {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.hero-stat .n { font-size: 28px; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat .l { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }
.hero-info {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.hero-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.hero-info-item + .hero-info-item { border-top: 1px solid rgba(255,255,255,0.03); }

/* ===== 信任条 ===== */
.trust-bar {
  background: #070f22;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-items span {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.trust-items em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ===== SECTIONS ===== */
.sec { padding: 64px 0; }
.sec-light { background: var(--white); }
.sec-gray { background: var(--bg); }
.sec-dark {
  background: linear-gradient(165deg, #0d1b33, #132442);
  color: var(--white);
}
.sec-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.sec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}
.sec-dark .sec-label { color: var(--gold); }
.sec-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.sec-dark .sec-title { color: var(--white); }
.sec-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 36px;
}
.sec-dark .sec-desc { color: rgba(255,255,255,0.5); }

/* ===== FEATURES 3-column ===== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  transition: all 0.3s;
}
.feat-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}
.feat-card .icon { font-size: 26px; margin-bottom: 12px; }
.feat-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.feat-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0; }

/* ===== PRODUCT cards (dark bg) ===== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.prod-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  transition: all 0.3s;
}
.prod-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.prod-card .icon { font-size: 26px; margin-bottom: 8px; }
.prod-card h3 { font-size: 15px; font-weight: 600; color: var(--white); margin: 0 0 3px; }
.prod-card p { font-size: 12px; color: rgba(255,255,255,0.35); margin: 0; }

/* ===== PLATFORM cards ===== */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  transition: all 0.3s;
}
.plat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.05); transform: translateY(-2px); }
.plat-card .icon { font-size: 32px; margin-bottom: 10px; }
.plat-card h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.plat-card p { font-size: 13px; color: var(--text-2); margin: 0; }

/* ===== CTA ===== */
.cta-sec {
  background: linear-gradient(165deg, #0d1b33, #1a3055);
  padding: 64px 0;
  text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; padding: 0 24px; }
.cta-sec h2 { color: var(--white); font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.cta-sec p { color: rgba(255,255,255,0.55); font-size: 15px; margin: 0 0 28px; }
.cta-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.cmc-footer {
  background: #070d1c;
  padding: 44px 0 0;
}
.foot-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.foot-col h4 { color: var(--white); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.foot-col a:hover { color: var(--white); }
.foot-bot {
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 36px;
  padding: 18px 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

/* ===== SUBPAGES ===== */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.page-wrap h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
}
.page-wrap h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.page-wrap h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--navy-2);
}
.page-wrap p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 14px;
  color: var(--text-2);
}
.page-wrap ul, .page-wrap ol {
  padding-left: 20px;
  margin: 12px 0;
}
.page-wrap li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 4px;
}

/* 表格 */
.page-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}
.page-wrap th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
.page-wrap td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.page-wrap tr:nth-child(even) { background: var(--bg); }

/* 响应式 */
@media (max-width: 1024px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .feat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-txt h1 { font-size: 30px; }
  .btn-red, .btn-ghost { padding: 10px 22px; font-size: 13px; }
  .feat-grid, .prod-grid, .plat-grid, .foot-grid { grid-template-columns: 1fr; }
  .sec-title { font-size: 24px; }
  .page-wrap { padding: 24px 16px 40px; }
}
