/* ===== Einstq — 原创版式 ===== */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff4ff;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #667085;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 16px/1.7 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== 导航 ===== */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff; font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; letter-spacing: .06em; }
.brand-text small { font-size: 11px; color: var(--ink-3); }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--blue); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-chip {
  font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
/* 语言切换下拉（桌面 + 移动共用） */
.lang-dd { position: relative; }
.lang-dd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.lang-dd-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-dd .caret { font-size: 10px; opacity: .7; }
.lang-dd-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16,24,40,.14); padding: 6px; min-width: 160px;
  max-height: 60vh; overflow: auto; z-index: 100;
}
.lang-dd.open .lang-dd-menu { display: block; }
.lang-dd-menu button {
  display: block; width: 100%; text-align: start; background: none; border: none;
  font-size: 14px; color: var(--ink); padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.lang-dd-menu button:hover { background: var(--blue-soft); color: var(--blue); }
.lang-dd-menu button.on { color: var(--blue); font-weight: 700; }
.nav-burger { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); width: 100%; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.arr { transition: transform .15s; }
.btn-primary:hover .arr { transform: translateX(3px); }

/* ===== Hero ===== */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.25; letter-spacing: -.01em; }
.hero-sub { margin-top: 18px; color: var(--ink-2); max-width: 460px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; }
.hero-checks {
  margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 24px; max-width: 460px;
}
.hero-checks li { font-size: 14px; color: var(--ink-2); position: relative; padding-left: 20px; }
.hero-checks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.chart-svg { width: 100%; height: auto; }

/* ===== 通用 Section ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.kicker { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-align: center; }
h2 { text-align: center; font-size: 28px; margin-top: 8px; letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--ink-2); max-width: 640px; margin: 12px auto 0; font-size: 15px; }
.center-cta { text-align: center; margin-top: 32px; }
.footnote { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 20px; }

/* ===== 产品步骤条 ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 36px 0 28px; }
.steps li {
  background: var(--blue-soft); border-radius: 12px; text-align: center; padding: 14px 8px;
}
.steps b { color: var(--blue); font-size: 12px; display: block; }
.steps span { font-weight: 700; font-size: 15px; display: block; margin-top: 2px; }
.steps small { color: var(--ink-3); font-size: 12px; }

/* ===== 卡片 ===== */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { font-size: 17px; }
.card p { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.card ul { margin-top: 12px; }
.card ul li {
  font-size: 13.5px; color: var(--ink-2); padding: 4px 0 4px 18px; position: relative;
}
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: .7;
}
.card-link { margin-top: auto; padding-top: 16px; color: var(--blue); font-size: 13.5px; font-weight: 600; }
.card-link:hover { color: var(--blue-dark); }

/* ===== 三步开始 ===== */
.step-card { position: relative; padding-top: 40px; }
.step-no {
  position: absolute; top: -14px; left: 24px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(37,99,235,.35);
}
.step-card h3 { margin-top: 6px; }

/* ===== 交易场所 chips ===== */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow);
}

/* ===== 价格方案 ===== */
.billing-toggle {
  display: flex; justify-content: center; gap: 0; margin: 28px auto 24px;
  border: 1px solid var(--line); border-radius: 10px; width: max-content; overflow: hidden;
}
.bt-btn {
  border: none; background: #fff; padding: 8px 22px; font-size: 14px; cursor: pointer; color: var(--ink-2);
}
.bt-btn.active { background: var(--blue); color: #fff; }
.price { margin-top: 12px; display: flex; align-items: baseline; gap: 2px; }
.price .cur { font-size: 16px; color: var(--ink-2); }
.price b { font-size: 34px; letter-spacing: -.02em; }
.price .per { color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.price-card ul { margin: 16px 0 20px; flex: 1; }
.price-card.featured { border-color: var(--blue); position: relative; }
.badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 3px 12px;
}

/* ===== 安全性 ===== */
.sec-card { align-items: flex-start; }
.sec-icon { font-size: 26px; }
.sec-card h3 { margin-top: 10px; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 760px; }
.faq { margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; padding: 18px 4px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); font-size: 14.5px; padding: 0 4px 18px; }

/* ===== 风险提示 ===== */
.risk { background: #fffbeb; border-top: 1px solid #fde68a; padding: 20px 0; }
.risk p { font-size: 13px; color: #92400e; }

/* ===== 页脚 ===== */
.footer { background: #0b1220; color: #cbd5e1; padding: 48px 0 24px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text small { color: #94a3b8; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid #1e293b; font-size: 13px; color: #94a3b8; }

/* ===== 登录 / 注册页 ===== */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fbfcfe, #eef3fb);
}
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.auth-card {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 36px 32px;
}
.auth-card h1 { font-size: 22px; text-align: center; }
.auth-sub { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.auth-form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 6px; }
.field input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; outline: none; background: #fff;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.agree { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.agree input { margin-top: 3px; }
.agree a { color: var(--blue); }
.form-msg { font-size: 13.5px; min-height: 18px; }
.form-msg.err { color: #dc2626; }
.form-msg.ok { color: #16a34a; }
.auth-alt { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.auth-alt a { color: var(--blue); font-weight: 600; }
.auth-brand { display: flex; justify-content: center; padding: 20px 0 0; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .cards-4, .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 24px; gap: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-actions { margin-left: auto; }
  .lang-chip { display: none; }
  .nav-actions .btn { white-space: nowrap; }
  .brand-text small { max-width: 140px; }
}

/* ===== RTL（阿拉伯语） ===== */
[dir="rtl"] .lang-dd-menu { right: auto; left: 0; }
[dir="rtl"] .lang-dd-menu button { text-align: right; }
[dir="rtl"] .hero-checks li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .hero-checks li::before { left: auto; right: 0; }
[dir="rtl"] .card ul li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .card ul li::before { left: auto; right: 2px; }
[dir="rtl"] .btn-primary .arr { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .card-link .arr { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .footer-links { text-align: right; }
@media (max-width: 600px) {
  .cards-4, .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-checks { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .nav { gap: 10px; }
  .nav-actions { gap: 8px; flex-shrink: 0; }
  .nav-actions .btn-ghost { display: none; } /* 移动端只留“注册账号”+汉堡菜单 */
  /* 语言切换：移动端只留地球图标，圆形大点击区 */
  .lang-dd-btn {
    padding: 0; width: 36px; height: 36px;
    justify-content: center; border-radius: 50%;
    font-size: 17px; line-height: 1;
  }
  .lang-dd-label, .lang-dd .caret { display: none; }
  /* 注册按钮收窄，避免和语言按钮、品牌挤压 */
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 13px; }
  .brand-text small { max-width: 110px; }
}
