/* ==========================================================
   交易所开户注册落地页 · 本地样式表
   移动端优先，依次适配手机 → 平板 → 桌面
   ========================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #1a2733;
  --ink-2: #33475a;
  --muted: #5b6b7b;
  --line: #e3e9ef;
  --line-2: #eef2f6;

  --primary: #1457c8;
  --primary-dark: #0f44a3;
  --primary-soft: #eaf2fc;

  --dark: #0b1726;
  --dark-2: #13233a;

  --up: #e5484d;      /* 红涨（国内习惯） */
  --down: #12a150;    /* 绿跌 */
  --gold: #d9a441;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(16, 38, 63, 0.10);
  --shadow-hover: 0 10px 28px rgba(16, 38, 63, 0.16);

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
  display: inline-block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px;
}

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 860px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  text-decoration: none;
}

.btn-block {
  width: 100%;
  padding: 13px 20px;
  font-size: 16px;
}

/* ==========================================================
   顶部行情跑马灯
   ========================================================== */
.ticker {
  background: var(--dark);
  color: #d8e2ec;
  overflow: hidden;
  font-size: 13px;
}

.ticker-track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 8px 0;
  animation: ticker-scroll 36s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ticker-item .ticker-pair {
  font-weight: 600;
  color: #ffffff;
}

.ticker-item .ticker-price {
  color: #c6d3df;
}

.ticker-item .ticker-change.up { color: var(--up); }
.ticker-item .ticker-change.down { color: var(--down); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================
   顶部粘性导航
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-name em {
  font-style: normal;
  font-weight: 400;
  color: #aebfce;
  font-size: 14px;
}

.site-nav {
  display: none;
  flex: 1;
  gap: 4px;
}

.site-nav a {
  color: #cdd9e4;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
}

.site-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn {
  padding: 9px 16px;
  font-size: 14px;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* 移动端导航展开态 */
.site-nav.open {
  display: flex;
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--dark-2);
  padding: 12px 20px 18px;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav.open a {
  padding: 12px 10px;
}

/* ==========================================================
   Hero 区 + 开户表单
   ========================================================== */
.hero {
  background: var(--dark);
  color: #eaf1f7;
  padding: 44px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 87, 200, 0.22);
  color: #bcd6f7;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-desc {
  color: #c3d1dd;
  font-size: 15.5px;
  margin-bottom: 22px;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-points li {
  position: relative;
  padding-left: 26px;
  color: #d6e1ea;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hstat strong {
  display: block;
  font-size: 26px;
  color: #ffffff;
  font-weight: 700;
}

.hstat span {
  font-size: 13px;
  color: #9fb2c1;
}

/* 注册表单卡片 */
.signup-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.card-head h2 {
  font-size: 21px;
  margin-bottom: 6px;
}

.card-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 18px;
}

.signup-tabs {
  display: flex;
  gap: 8px;
  background: var(--line-2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 38, 63, 0.10);
}

.signup-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.input-row {
  display: flex;
  gap: 8px;
}

.area-code {
  width: 92px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #ffffff;
  color: var(--ink);
}

.field input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 87, 200, 0.14);
}

.field.invalid input {
  border-color: var(--up);
}

.field-msg {
  min-height: 16px;
  font-size: 12.5px;
  color: var(--up);
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.agree input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--primary);
}

.form-tip {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================
   通用区块
   ========================================================== */
.section {
  padding: 52px 0;
}

.section-alt {
  background: #ffffff;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 34px;
}

.section-head h2 {
  font-size: 25px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 开户流程 ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 行情 / 对比表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.market-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  table-layout: fixed;
}

.market-table th,
.market-table td,
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
}

.market-table th,
.compare-table th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}

.market-table tbody tr:last-child td,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.market-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.market-pair strong {
  display: block;
  font-size: 14.5px;
}

.market-pair span {
  font-size: 12px;
  color: var(--muted);
}

.price-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.change-up { color: var(--up); font-weight: 600; }
.change-down { color: var(--down); font-weight: 600; }

.spark {
  display: inline-flex;
  align-items: center;
}

.spark svg {
  width: 96px;
  height: 30px;
}

/* ---------- 核心优势 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 用户评价 ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark-2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex: none;
}

.review-head strong {
  display: block;
  font-size: 15px;
}

.review-head span {
  font-size: 12.5px;
  color: var(--muted);
}

.review-card p {
  color: var(--ink-2);
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 17px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 风险提示 ---------- */
.notice {
  background: var(--bg);
}

.notice h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.notice-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: grid;
  gap: 14px;
}

.notice-box p {
  color: var(--ink-2);
  font-size: 14px;
}

/* ==========================================================
   页脚
   ========================================================== */
.site-footer {
  background: var(--dark);
  color: #c3d1dd;
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: #9fb2c1;
  max-width: 280px;
}

.footer-col h3 {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #b7c7d4;
  padding: 6px 0;
  font-size: 13.5px;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 20px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: #8ba1b2;
}

/* ==========================================================
   响应式：平板（≥768px）
   ========================================================== */
@media (min-width: 768px) {
  body { font-size: 15px; }

  .hero { padding: 60px 0 72px; }
  .hero h1 { font-size: 34px; }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .section { padding: 64px 0; }
  .section-head h2 { font-size: 28px; }
}

/* ==========================================================
   响应式：桌面（≥1024px）
   ========================================================== */
@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 { font-size: 38px; }

  .signup-card {
    padding: 28px 26px;
  }
}

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .feature-card { transition: none; }
}
