/* ==========================================================================
   欧易 OKX 推广落地页样式表 (现代化极速加载 & 暗黑科技风)
   ========================================================================== */

:root {
  --bg-dark: #090a0f;
  --bg-card: #11141e;
  --bg-card-hover: #171b28;
  --bg-card-subtle: #1c2233;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 82, 255, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --color-primary: #0052ff;
  --color-primary-hover: #1a66ff;
  --color-primary-glow: rgba(0, 82, 255, 0.25);
  --color-accent: #10b981;
  --color-accent-glow: rgba(16, 185, 129, 0.2);
  --color-gold: #f59e0b;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-max: 1160px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 顶部合规栏 (防 Google 飘红声明) */
.top-compliance-bar {
  background: rgba(17, 20, 30, 0.95);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 100;
}

.compliance-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.shield-icon {
  display: inline-flex;
  color: var(--color-accent);
}

.top-compliance-bar strong {
  color: var(--text-main);
}

/* 容器通用类 */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 99;
  height: 64px;
}

.nav-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-badge {
  background: #ffffff;
  color: #000000;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  padding: 4px 10px;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #ffffff;
}

/* 按钮通用 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  user-select: none;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pulse-btn {
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(0, 82, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
}

/* 主视觉区 Hero */
.hero-section {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 82, 255, 0.15) 0%, transparent 60%);
  position: relative;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: #ffffff;
}

/* 邀请码专属组件 */
.invite-code-card {
  display: inline-flex;
  align-items: center;
  background: #151924;
  border: 2px dashed rgba(0, 82, 255, 0.6);
  border-radius: 12px;
  padding: 10px 14px 10px 20px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  gap: 16px;
}

.invite-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.invite-code {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  background: #000;
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #60a5fa;
  font-family: monospace;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 82, 255, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(0, 82, 255, 0.4);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-bar {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--color-accent);
}

/* 核心 Section 结构 */
.section {
  padding: 80px 0;
  position: relative;
}

.bg-card {
  background-color: rgba(17, 20, 30, 0.6);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  background: rgba(0, 82, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 栅格布局 */
.grid {
  display: grid;
  gap: 24px;
}

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

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

/* 卡片样式 */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.highlighted-card {
  border-color: rgba(0, 82, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 82, 255, 0.08) 0%, var(--bg-card) 100%);
}

.badge-top-right {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.gradient-icon-1 { background: rgba(0, 82, 255, 0.15); color: #3b82f6; }
.gradient-icon-2 { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.gradient-icon-3 { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-tag {
  font-size: 0.8rem;
  color: #60a5fa;
  font-weight: 600;
  background: rgba(0, 82, 255, 0.08);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

/* 费率对比表格 */
.rate-comparison-table-wrapper {
  margin-top: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.table-caption {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
}

.table-responsive {
  overflow-x: auto;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.rate-table th, .rate-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.rate-table th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  font-weight: 600;
}

.table-highlight {
  background: rgba(0, 82, 255, 0.06);
}

.highlight-val {
  color: #10b981;
  font-weight: 700;
}

/* 4步注册步骤 */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  gap: 24px;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.step-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(0, 82, 255, 0.4);
  line-height: 1;
  font-family: monospace;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.step-tip {
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--color-primary);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  color: var(--text-main);
}

.step-tip strong {
  color: #60a5fa;
}

.tutorial-cta-wrap {
  text-align: center;
}

/* 生态卡片 */
.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition);
}

.ecosystem-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.eco-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.eco-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.eco-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.eco-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.eco-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.eco-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-list li {
  font-size: 0.875rem;
  color: var(--text-main);
  position: relative;
  padding-left: 18px;
}

.eco-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* FAQ 常见问题手风琴 */
.faq-container {
  max-width: 860px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(0, 82, 255, 0.35);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.faq-arrow {
  transition: transform 0.25s ease;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background: rgba(0, 0, 0, 0.15);
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer strong {
  color: #60a5fa;
}

/* 安全指南卡片 */
.security-card {
  background: linear-gradient(135deg, rgba(17, 20, 30, 0.9) 0%, rgba(20, 25, 38, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  gap: 36px;
}

.security-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.security-content {
  flex: 1;
}

.security-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sec-item {
  display: flex;
  gap: 12px;
}

.sec-bullet {
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sec-item strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.sec-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 底部悬浮条 (移动端展示) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 20, 30, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  z-index: 999;
}

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-code-wrap {
  display: flex;
  flex-direction: column;
}

.sticky-tag {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.sticky-code {
  font-size: 1.1rem;
  color: #60a5fa;
  letter-spacing: 1px;
}

/* 页脚 */
.footer {
  background: #050608;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 100px; /* 留出移动端底部悬浮条高度 */
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-title {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}

.footer-disclaimer h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-disclaimer p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer strong {
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8125rem;
}

/* Toast 浮动提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #10b981;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 响应式断点适配 */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* 移动端隐藏中间冗余导航，保证精炼 */
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .invite-code-card {
    flex-direction: column;
    width: 100%;
    padding: 16px;
    gap: 12px;
  }
  .invite-info {
    flex-direction: column;
    gap: 6px;
  }
  .invite-code {
    font-size: 1.8rem;
  }
  .btn-copy {
    width: 100%;
    justify-content: center;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .security-card {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
  .mobile-sticky-bar {
    display: block;
  }
  .footer {
    padding-bottom: 90px;
  }
}
