/* =============================================
   数字货币钱庄 - 主样式文件
   风格：简洁奢靡（深黑 + 金色 + 玻璃拟态）
   ============================================= */

/* ---------- 全局重置 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:        #C9A84C;
  --gold-light:  #F0D080;
  --gold-dark:   #8B6914;
  --black:       #0A0A0A;
  --dark:        #111111;
  --dark-card:   #181818;
  --dark-border: #2A2A2A;
  --white:       #FFFFFF;
  --text-muted:  #888888;
  --glass-bg:    rgba(255, 255, 255, 0.04);
  --glass-border:rgba(201, 168, 76, 0.25);
  --shadow-gold: 0 0 30px rgba(201, 168, 76, 0.15);
  --radius:      12px;
  --radius-lg:   20px;
  --font-main:   'Noto Serif SC', 'Georgia', serif;
  --font-sans:   'Noto Sans SC', 'Arial', sans-serif;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- 选中文字 ---------- */
::selection { background: var(--gold); color: var(--black); }

/* =============================================
   导航栏
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 72px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

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

.navbar-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--black);
  font-family: var(--font-main);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
}

.navbar-logo .logo-text {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.navbar-logo .logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 40px;
}

.navbar-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 1px;
  transition: color var(--transition);
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--gold);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  transform: scaleX(1);
}

.navbar-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black) !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.5);
}

/* ---------- 汉堡菜单（移动端） ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =============================================
   英雄区（Hero）
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

/* 背景粒子网格 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201,168,76,0.05) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  background: var(--glass-bg);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

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

/* ---------- 按钮系统 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* =============================================
   统计数字条
   ============================================= */
.stats-bar {
  padding: 40px 60px;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  background: var(--dark);
}

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

.stat-item .stat-num {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

/* =============================================
   服务卡片区
   ============================================= */
.section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- 服务卡片 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--glass-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
}

.card-link .arrow {
  transition: transform var(--transition);
}

.card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* =============================================
   分隔线
   ============================================= */
.divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px auto 0;
}

/* =============================================
   页脚
   ============================================= */
footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 60px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0;
  flex-wrap: wrap;
}

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

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

/* =============================================
   内页（教程页）通用样式
   ============================================= */
.page-hero {
  padding: 140px 60px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-family: var(--font-main);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero h1 span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- 教程内容区 ---------- */
.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

/* 侧边目录 */
.doc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.doc-sidebar-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.doc-nav {
  list-style: none;
  border-left: 1px solid var(--dark-border);
}

.doc-nav li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.doc-nav li a:hover,
.doc-nav li a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(201,168,76,0.04);
}

/* 教程正文 */
.doc-content { min-width: 0; }

.doc-section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.doc-section h2 {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-section h2 .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.doc-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-light);
  margin: 28px 0 12px;
}

.doc-section p {
  font-size: 14px;
  color: #BBBBBB;
  line-height: 1.85;
  margin-bottom: 16px;
}

/* 提示框 */
.tip-box {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13px;
  color: #CCCCCC;
  line-height: 1.7;
}

.tip-box .tip-label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* 警告框 */
.warn-box {
  background: rgba(255, 80, 80, 0.06);
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-left: 3px solid #FF5050;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13px;
  color: #CCCCCC;
  line-height: 1.7;
}

.warn-box .warn-label {
  font-size: 11px;
  color: #FF5050;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* 步骤列表 */
.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 20px 0;
}

.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #BBBBBB;
  line-height: 1.7;
}

.steps-list li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px; height: 26px;
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  color: var(--gold);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 代码块 */
.code-block {
  background: #0D0D0D;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--gold-light);
  overflow-x: auto;
  line-height: 1.6;
}

/* 图片占位 */
.img-placeholder {
  background: var(--dark-card);
  border: 1px dashed var(--dark-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 20px 0;
}

/* 联系卡片 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.contact-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--glass-border);
  box-shadow: var(--shadow-gold);
}

.contact-card .cc-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.contact-card .cc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.contact-card .cc-value {
  font-size: 13px;
  color: var(--gold);
  word-break: break-all;
}

/* =============================================
   响应式
   ============================================= */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .navbar-nav { display: none; }
  .hamburger { display: flex; }

  .section { padding: 60px 24px; }
  .stats-bar { padding: 32px 24px; gap: 40px; }

  .doc-layout {
    grid-template-columns: 1fr;
    padding: 40px 24px 80px;
  }

  .doc-sidebar { display: none; }
  .page-hero { padding: 120px 24px 60px; }
  footer { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
