/* style.css - 全局样式与多主题定义 */

:root {
  /* 基础变量 */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --transition-fast: all 0.3s ease;
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- 全局重置与基础样式 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 通用按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid transparent;
}

/* --- 导航栏通用样式 (绝对定位在顶部，透明背景) --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-fast);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 10px 0;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

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

.nav-links a {
  color: #fff;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
}

.nav-links a:hover {
  background-color: rgba(255,255,255,0.2);
}

/* --- 页脚通用样式 --- */
.main-footer {
  background-color: #111;
  color: #ccc;
  padding: 60px 0 30px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
}

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

.copyright {
  font-size: 0.9rem;
  color: #666;
}

/* ========================================= */
/* 页面 1: 首页 (Home Page) - 深海蓝 + 玻璃态拟态 */
/* ========================================= */
.home-page {
  --bg-color: #0a192f;
  --text-color: #ccd6f6;
  --highlight: #64ffda;
  --card-bg: rgba(17, 34, 64, 0.7);
  
  background-color: var(--bg-color);
  color: var(--text-color);
}

.home-page .logo,
.home-page .nav-links a {
  color: var(--text-color);
}

.home-page .nav-links a:hover {
  color: var(--highlight);
  background: transparent;
}

.home-page .btn-primary {
  background-color: transparent;
  border-color: var(--highlight);
  color: var(--highlight);
}

.home-page .btn-primary:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/* 英雄区 */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.2; }
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #fff;
}

.hero-content h1 span {
  color: var(--highlight);
  display: block;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: #8892b0;
}

/* 特色功能区 */
.features-section {
  padding: 100px 0;
  background-color: #112240;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--highlight);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--highlight);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

/* FAQ区域 */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--highlight);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  color: #8892b0;
}

.faq-answer.active {
  max-height: 200px;
  padding-bottom: 20px;
}

/* 底部适应 */
.home-page .main-footer {
  background-color: #112240;
}

/* ========================================= */
/* 页面 2: 文章页 (Articles Page) - 杂志风 / 衬线体 / 红白配色 */
/* ========================================= */
.articles-page {
  --bg-main: #f9f7f1;
  --text-main: #2b2b2b;
  --accent-red: #c0392b;
  --border-color: #ddd;
  
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-serif);
}

.articles-page .main-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.articles-page .logo {
  color: var(--accent-red);
}

.articles-page .nav-links a {
  color: var(--text-main);
}

.articles-page .nav-links a:hover {
  color: var(--accent-red);
  background: transparent;
}

.articles-hero {
  padding: 150px 0 60px;
  text-align: center;
  border-bottom: 3px double var(--border-color);
  margin-bottom: 60px;
}

.articles-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.articles-hero p {
  font-size: 1.2rem;
  color: #666;
}

.articles-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  padding-bottom: 100px;
}

.article-card {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-color);
}

.article-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-red);
  opacity: 0.5;
  line-height: 1;
}

.article-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-content h2 a:hover {
  text-decoration: underline;
}

.article-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 15px;
  display: block;
}

.article-excerpt {
  font-size: 1.1rem;
  line-height: 1.8;
}

.articles-sidebar .widget {
  margin-bottom: 40px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
}

.widget h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-red);
  display: inline-block;
}

.widget ul li {
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.widget ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-red);
}

.articles-page .main-footer {
  background-color: #2b2b2b;
  color: #aaa;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .articles-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none; /* 移动端可扩展为汉堡菜单 */
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .article-card {
    flex-direction: column;
  }
}
/* ========================================= */
/* 页面 3: 交易所 (Exchange Page) - 暗黑工业风 */
/* ========================================= */
.exchange-page {
  --bg-dark: #121212;
  --bg-light: #1e1e1e;
  --text-primary: #e0e0e0;
  --accent-green: #00ff9d;
  --accent-red: #ff4d4d;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Consolas', 'Monaco', monospace;
}

.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 200px;
  height: 100vh;
  background: rgba(18, 18, 18, 0.9);
  padding: 40px 20px;
  z-index: 999;
  border-right: 1px solid #333;
}

.side-nav .logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-green);
  margin-bottom: 40px;
  line-height: 1.2;
}

.side-nav ul li {
  margin-bottom: 15px;
}

.side-nav ul li a {
  color: #888;
  font-size: 0.9rem;
}

.side-nav ul li a:hover {
  color: var(--accent-green);
}

.main-content {
  margin-left: 200px;
}

.hero-exchange {
  height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=1000') no-repeat center/cover;
}

.hero-exchange h1 {
  font-size: 3.5rem;
  color: #fff;
}

.hero-exchange h1 span {
  color: var(--accent-green);
  font-size: 1.5rem;
}

.stats-bar {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-item strong {
  display: block;
  font-size: 0.9rem;
  color: #888;
}

.stat-item span {
  font-size: 1.8rem;
  color: #fff;
}

.content-section {
  padding: 80px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-2.reverse {
  direction: rtl;
}

.grid-2.reverse > * {
  direction: ltr;
}

.text-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

.dark-bg {
  background-color: var(--bg-light);
}

.image-frame img {
  border-radius: 10px;
  border: 1px solid #333;
}

.simple-footer {
  margin-left: 200px;
  padding: 20px;
  text-align: center;
  color: #555;
  font-size: 0.8rem;
}

/* ========================================= */
/* 页面 4: 下载 (Download Page) - 极简蓝白 */
/* ========================================= */
.download-page {
  --primary-blue: #007aff;
  background-color: #f5f7fa;
}

.minimal-header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.back-link {
  color: var(--primary-blue);
  font-weight: bold;
}

.minimal-header h1 {
  text-align: center;
  margin-top: 10px;
}

.download-hub {
  padding: 60px 0;
}

.download-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.download-card.desktop {
  text-align: center;
}

.download-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.version-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #666;
  margin: 20px 0;
}

.dl-btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
}

.dl-btn.blue {
  background-color: var(--primary-blue);
  color: #fff;
}

.dl-btn.outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.hash-check {
  font-family: monospace;
  font-size: 0.8rem;
  color: #999;
  margin-top: 15px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.security-notice {
  background: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
}

/* ========================================= */
/* 页面 5: 手机端 (Mobile Page) - 霓虹紫 */
/* ========================================= */
.mobile-page {
  --neon-purple: #a855f7;
  background-color: #0f0f23;
  color: #fff;
}

.mobile-hero {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(circle at top, #1a0a2e, #0f0f23);
}

.mobile-hero h1 {
  font-size: 3rem;
  color: var(--neon-purple);
  text-shadow: 0 0 10px var(--neon-purple);
}

.mobile-feature-item {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
  border-bottom: 1px dashed #333;
}

.mobile-feature-item.reverse {
  flex-direction: row-reverse;
}

.mockup img {
  border-radius: 30px;
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
}

/* ========================================= */
/* 页面 6: 安卓 (Android Page) - 终端绿 */
/* ========================================= */
.android-page {
  --android-green: #3ddc84;
  background-color: #1e2222;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
}

.terminal-header {
  background: #000;
  padding: 15px;
  font-size: 1.2rem;
  border-bottom: 1px solid #333;
}

.prompt {
  color: var(--android-green);
}

.android-container {
  padding: 60px 0;
}

.android-container h1 {
  color: #fff;
  font-size: 2.5rem;
}

.center-btn {
  text-align: center;
  margin: 40px 0;
}

.btn-android {
  background: transparent;
  border: 2px solid var(--android-green);
  color: var(--android-green);
  padding: 15px 30px;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.install-steps {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
}

.code-block {
  background: #000;
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
  overflow-x: auto;
}

.code-block pre {
  color: #0f0;
}

/* ========================================= */
/* 页面 7: 注册 (Register Page) - 清新薄荷 */
/* ========================================= */
.register-page {
  --mint-green: #4ade80;
  background: linear-gradient(135deg, #e0f7fa 0%, #f0fdf4 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-card {
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #999;
}

.step.active {
  background: var(--mint-green);
  color: #fff;
}

.line {
  flex-grow: 1;
  height: 3px;
  background: #eee;
  margin: 0 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--mint-green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

.benefits {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed #ddd;
}

/* ========================================= */
/* 页面 8: 电脑端 (PC Page) - 琥珀色 */
/* ========================================= */
.pc-page {
  --amber: #f59e0b;
  background-color: #1c1917;
  color: #e7e5e4;
}

.pc-hero {
  padding: 100px 0;
  text-align: center;
  background: url('https://images.unsplash.com/photo-1593642632823-8f785ba67e45?q=80&w=1000') no-repeat center/cover;
}

.pc-hero h1 {
  font-size: 3rem;
  color: #fff;
}

.pc-features {
  padding: 80px 0;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid #333;
}

.feature-icon {
  font-size: 3rem;
  color: var(--amber);
}

/* ========================================= */
/* 页面 9: App (App Page) - 活力橙 */
/* ========================================= */
.app-page {
  --orange: #ff9500;
  background-color: #fafafa;
}

.app-header {
  background: linear-gradient(135deg, #ff9500, #ff5e3a);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.app-icon {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 22px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.rating {
  margin-top: 10px;
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
}

.app-content {
  padding: 60px 0;
}

.whats-new, .reviews {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-card {
  border-left: 4px solid var(--orange);
  padding-left: 20px;
  margin-top: 20px;
}

.review-card span {
  display: block;
  margin-top: 10px;
  color: #666;
  font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .side-nav { display: none; }
  .main-content { margin-left: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .mobile-feature-item { flex-direction: column; }
}