/* ==========================================================================
   OKX 欧易专属推广落地页样式表 (bianaxr.com)
   特点：纯原生 CSS、零外部阻塞依赖、极速 Core Web Vitals、全端自适应响应式
   ========================================================================== */

:root {
  --bg-primary: #0a0b0d;
  --bg-secondary: #121418;
  --bg-tertiary: #1a1d24;
  --bg-card: rgba(26, 29, 36, 0.7);
  --bg-card-hover: rgba(36, 40, 50, 0.85);
  
  --text-primary: #ffffff;
  --text-secondary: #9aa0a6;
  --text-muted: #676e79;
  
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-gold: #f59e0b;
  --accent-gold-bg: rgba(245, 158, 11, 0.12);
  
  --border-color: #262a33;
  --border-light: rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --container-max: 1200px;
  --header-height: 72px;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* 顶部独立第三方声明条（防钓鱼误判关键） */
.top-compliance-bar {
  background: linear-gradient(90deg, #181b22 0%, #1e222b 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  position: relative;
  z-index: 101;
}

.top-compliance-bar strong {
  color: var(--accent-gold);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.logo-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Hero 区域 */
.hero-section {
  position: relative;
  padding: 70px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

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

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* 邀请码高光卡片 */
.invite-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 580px;
  margin: 0 auto 36px;
  box-shadow: var(--shadow-md);
  position: relative;
  backdrop-filter: blur(12px);
}

.invite-box-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), transparent, rgba(16, 185, 129, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.invite-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.invite-input-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border: 1px solid #333945;
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 16px;
  margin-bottom: 12px;
}

.invite-code-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.copy-btn {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: var(--accent-primary-hover);
}

.invite-benefits-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.invite-benefits-tag span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-green);
}

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

/* 数据背书栏 */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
  padding-top: 36px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 通用板块规范 */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

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

.section-tag {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* 福利网格 */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: var(--shadow-glow);
}

.benefit-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #60a5fa;
  font-size: 26px;
}

.benefit-icon-wrapper.gold {
  background: var(--accent-gold-bg);
  color: var(--accent-gold);
}

.benefit-icon-wrapper.green {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.benefit-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.benefit-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 16px;
}

.benefit-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  align-self: flex-start;
}

/* 4步注册教程 */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: #3b82f6;
  background: var(--bg-tertiary);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-tips {
  margin-top: 14px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #38bdf8;
}

/* 平台优势特色网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-box {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-box-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #60a5fa;
}

.feature-box-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-box-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 费率对比表格 */
.fee-table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

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

.fee-table th {
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-secondary);
}

.fee-table tr:last-child td {
  border-bottom: none;
}

.discount-highlight {
  color: var(--accent-green);
  font-weight: 700;
}

/* 防钓鱼与安全指南板块 (Anti-Phishing & Security) */
.security-alert-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

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

.security-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fbbf24;
}

.security-tips-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
}

.security-tips-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.security-tips-item h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.security-tips-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: #3b82f6;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #60a5fa;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s;
  background: var(--bg-secondary);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s;
}

/* CTA 转换引导 Banner */
.cta-banner {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.25) 0%, rgba(10, 11, 13, 0.95) 70%), var(--bg-secondary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  margin: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* 页脚 */
.site-footer {
  background: #060708;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-desc {
  line-height: 1.7;
  max-width: 360px;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

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

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto 12px;
}

/* 浮动 Toast 提示组件 */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* 移动端响应式断点 */
@media (max-width: 992px) {
  .hero-title {
    font-size: 38px;
  }
  .benefits-grid, .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .security-tips-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 60px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero-section {
    padding: 40px 0;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .benefits-grid, .steps-container {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
