/* ============================================
   暗网黑市揭秘者 - 主样式表
   加密货币 + 匿名交易 神秘主义视觉
   ============================================ */

:root {
  --primary: #6A0DAD;
  --primary-light: #8B2FC9;
  --accent-gold: #FFD700;
  --accent-blue: #00FFFF;
  --bg-dark: #000000;
  --card-bg: #1A0033;
  --card-bg-alt: #0D001A;
  --text-main: #E0E0E0;
  --text-muted: #A0A0A0;
  --text-bright: #FFFFFF;
  --border-color: #2D0055;
  --danger: #FF3366;
  --success: #00FF88;
  --font-main: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(106, 13, 173, 0.3);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 加密代码纹理背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(106, 13, 173, 0.03) 2px,
      rgba(106, 13, 173, 0.03) 4px
    );
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

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

/* ============ 导航栏 ============ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-menu a {
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-gold);
  background: rgba(106, 13, 173, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* ============ Hero 区域 ============ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(2px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(26, 0, 51, 0.8) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

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

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(106, 13, 173, 0.3);
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: var(--accent-blue); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-mono);
}

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

/* ============ 通用区块 ============ */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(106, 13, 173, 0.2);
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
}

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

/* ============ 卡片网格 ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

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

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--accent-blue);
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 0.8rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 500;
}

.card-link:hover {
  gap: 0.6rem;
}

/* ============ 价格指数表格 ============ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.price-table th {
  background: rgba(106, 13, 173, 0.3);
  padding: 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border-color);
}

.price-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(45, 0, 85, 0.5);
  font-size: 0.9rem;
}

.price-table tr:hover {
  background: rgba(106, 13, 173, 0.1);
}

.price-up {
  color: var(--danger);
}

.price-down {
  color: var(--success);
}

/* ============ 勒索软件图谱 ============ */
.ransomware-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.ransomware-node {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
  transition: var(--transition);
}

.ransomware-node:hover {
  border-color: var(--danger);
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

.ransomware-node .node-name {
  font-weight: 700;
  color: var(--danger);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.ransomware-node .node-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ 加密货币追踪器 ============ */
.crypto-tracker {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.tracker-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.tracker-node {
  text-align: center;
  padding: 1rem;
  background: rgba(106, 13, 173, 0.2);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  min-width: 120px;
}

.tracker-node .node-label {
  font-size: 0.8rem;
  color: var(--accent-blue);
  margin-bottom: 0.3rem;
}

.tracker-node .node-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.tracker-arrow {
  color: var(--accent-blue);
  font-size: 1.5rem;
  animation: flow-right 1.5s infinite;
}

@keyframes flow-right {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(5px); opacity: 0.5; }
}

/* ============ 黑客工具箱 ============ */
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--card-bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.tool-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.tool-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tool-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

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

.tool-warning {
  margin-top: 0.8rem;
  padding: 0.5rem;
  background: rgba(255, 51, 102, 0.1);
  border-left: 3px solid var(--danger);
  font-size: 0.8rem;
  color: var(--danger);
}

/* ============ 面包屑 ============ */
.breadcrumb {
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 80px auto 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--accent-blue);
}

/* ============ 页面内容区 ============ */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.page-content h1 {
  font-size: 2.2rem;
  color: var(--text-bright);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.page-content h2 {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin: 2rem 0 1rem;
}

.page-content h3 {
  font-size: 1.2rem;
  color: var(--accent-blue);
  margin: 1.5rem 0 0.8rem;
}

.page-content p {
  margin-bottom: 1.2rem;
  line-height: 1.9;
}

.page-content ul, .page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.page-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(106, 13, 173, 0.1);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-content .info-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.page-content .warning-box {
  background: rgba(255, 51, 102, 0.05);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ============ FAQ ============ */
.faq-list {
  margin: 2rem 0;
}

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

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: rgba(106, 13, 173, 0.1);
}

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ============ 页脚 ============ */
.site-footer {
  background: var(--card-bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ 搜索页 ============ */
.search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.search-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(106, 13, 173, 0.3);
}

.search-btn {
  padding: 1rem 2rem;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: var(--text-bright);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--primary-light);
}

.search-results {
  list-style: none;
}

.search-result-item {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.search-result-item:hover {
  border-color: var(--primary);
}

.search-result-item h3 {
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.search-result-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============ 404 页面 ============ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-message {
  font-size: 1.5rem;
  color: var(--text-bright);
  margin: 1rem 0;
}

.error-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: var(--text-bright);
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(106, 13, 173, 0.4);
}

/* ============ APP 下载页 ============ */
.app-hero {
  text-align: center;
  padding: 4rem 2rem;
}

.app-mockup {
  max-width: 300px;
  margin: 2rem auto;
  border-radius: 24px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-size: 1rem;
  transition: var(--transition);
}

.download-btn:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* ============ K线图动画 ============ */
.kline-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow: hidden;
}

.kline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.kline-title {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.kline-price {
  font-family: var(--font-mono);
  color: var(--success);
  font-size: 1.2rem;
  font-weight: 700;
}

.kline-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.kline-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--accent-blue));
  border-radius: 2px 2px 0 0;
  animation: kline-grow 2s ease-out forwards;
  opacity: 0;
}

@keyframes kline-grow {
  from { height: 0; opacity: 0; }
  to { opacity: 1; }
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tracker-flow {
    flex-direction: column;
  }

  .tracker-arrow {
    transform: rotate(90deg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-content h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============ 动画 ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 数据包跳跃动画 */
.packet-animation {
  position: relative;
  height: 60px;
  margin: 1rem 0;
  overflow: hidden;
}

.packet {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: packet-hop 3s infinite linear;
  box-shadow: 0 0 10px var(--accent-blue);
}

@keyframes packet-hop {
  0% { left: 0; top: 50%; }
  25% { left: 25%; top: 20%; }
  50% { left: 50%; top: 50%; }
  75% { left: 75%; top: 20%; }
  100% { left: 100%; top: 50%; }
}

/* 打字机效果 */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--accent-blue);
  white-space: nowrap;
  animation: typing 3s steps(30) 1s forwards, blink 0.75s step-end infinite;
  width: 0;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}
