/* ===== 黑料网暗网风匿名爆料中心 - 全局样式 ===== */
:root {
  --primary: #B71C1C;
  --secondary: #FF1744;
  --bg: #000000;
  --card: #1A1A1A;
  --accent: #00FF00;
  --text: #CCCCCC;
  --text-dim: #666666;
  --border: #333333;
  --radius: 0px;
  --shadow: 0 0 10px rgba(0,255,0,0.1);
  --font-mono: 'Courier New', 'Noto Sans Mono', monospace;
  --max-width: 1200px;
  --header-height: 60px;
}

/* ===== 重置与基础 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* ===== 扫描线效果 ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
}

/* ===== 数字雨背景 ===== */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
}

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

/* ===== 头部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--primary);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo::before {
  content: '[';
  color: var(--accent);
}

.site-logo::after {
  content: ']';
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 5px 10px;
  font-family: var(--font-mono);
  cursor: pointer;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  gap: 5px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 255, 0, 0.05);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-dim);
}

/* ===== 首屏终端区域 ===== */
.hero-terminal {
  background: var(--card);
  border: 1px solid var(--accent);
  margin: 40px 0;
  padding: 0;
  box-shadow: var(--shadow);
}

.terminal-header {
  background: #0D0D0D;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: var(--secondary); }
.terminal-dot.yellow { background: #FFC107; }
.terminal-dot.green { background: var(--accent); }

.terminal-title {
  margin-left: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 30px;
  min-height: 300px;
}

.terminal-line {
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeInLine 0.5s forwards;
}

.terminal-line .prompt {
  color: var(--accent);
}

.terminal-line .command {
  color: var(--text);
}

.terminal-line .output {
  color: var(--secondary);
}

.cursor-blink {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--accent);
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes fadeInLine {
  to { opacity: 1; }
}

/* ===== ASCII Logo ===== */
.ascii-logo {
  text-align: center;
  color: var(--secondary);
  font-size: 0.6rem;
  line-height: 1.2;
  margin: 20px 0;
  white-space: pre;
  overflow-x: auto;
}

/* ===== 安全等级指示器 ===== */
.security-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--card);
  border: 1px solid var(--accent);
  padding: 15px 20px;
  margin: 20px 0;
}

.security-level {
  display: flex;
  gap: 4px;
}

.security-bar {
  width: 8px;
  height: 20px;
  background: var(--border);
}

.security-bar.active {
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
}

.security-text {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ===== 区块标题 ===== */
.section-title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin: 50px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--primary);
  position: relative;
}

.section-title::before {
  content: '> ';
  color: var(--accent);
}

/* ===== 卡片系统 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 25px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  transition: background 0.3s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card:hover::before {
  background: var(--accent);
}

.card-title {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

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

.card-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--accent);
  padding: 5px 15px;
  transition: all 0.3s;
}

.card-link:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===== 时间线 ===== */
.timeline {
  position: relative;
  padding-left: 30px;
  margin: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 25px;
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border: 2px solid var(--primary);
}

.timeline-date {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.timeline-title {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 8px;
}

.timeline-status {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  border: 1px solid;
}

.timeline-status.verified {
  color: var(--accent);
  border-color: var(--accent);
}

.timeline-status.pending {
  color: #FFC107;
  border-color: #FFC107;
}

.timeline-status.breaking {
  color: var(--secondary);
  border-color: var(--secondary);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== 加密表单 ===== */
.encrypt-form {
  background: var(--card);
  border: 1px solid var(--primary);
  padding: 30px;
  margin: 20px 0;
}

.encrypt-form label {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.encrypt-form textarea,
.encrypt-form input[type="text"] {
  width: 100%;
  background: #0D0D0D;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 15px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 15px;
}

.encrypt-form textarea:focus,
.encrypt-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.2);
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--secondary);
  padding: 12px 30px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.btn-submit:hover {
  background: var(--secondary);
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

/* ===== FAQ ===== */
.faq-list {
  margin: 20px 0;
}

.faq-item {
  border: 1px solid var(--border);
  margin-bottom: 10px;
  background: var(--card);
}

.faq-question {
  padding: 15px 20px;
  cursor: pointer;
  color: var(--secondary);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(183, 28, 28, 0.1);
}

.faq-question::after {
  content: '[+]';
  color: var(--accent);
  font-size: 0.8rem;
}

.faq-item.active .faq-question::after {
  content: '[-]';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 15px 20px;
  max-height: 500px;
}

/* ===== 工具列表 ===== */
.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.tool-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.tool-icon {
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-name {
  color: var(--secondary);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

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

/* ===== 洋葱路由图 ===== */
.onion-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

.route-node {
  text-align: center;
  padding: 15px;
  border: 1px solid var(--accent);
  min-width: 100px;
}

.route-node .node-label {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 5px;
}

.route-arrow {
  color: var(--secondary);
  font-size: 1.2rem;
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--primary);
  padding: 40px 0 20px;
  background: var(--card);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

/* ===== 通用页面内容 ===== */
.page-content {
  padding: 30px 0 60px;
}

.page-content h1 {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.page-content h2 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin: 30px 0 15px;
  padding-left: 15px;
  border-left: 3px solid var(--primary);
}

.page-content h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 20px 0 10px;
}

.page-content p {
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.page-content li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.page-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}

.page-content a:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

/* ===== 图片响应式 ===== */
.responsive-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

/* ===== 搜索页 ===== */
.search-box {
  display: flex;
  gap: 10px;
  margin: 30px 0;
}

.search-box input {
  flex: 1;
  background: #0D0D0D;
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 15px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.search-box input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.search-box button {
  background: var(--primary);
  border: 1px solid var(--secondary);
  color: #fff;
  padding: 12px 25px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.3s;
}

.search-box button:hover {
  background: var(--secondary);
}

.search-results {
  margin: 20px 0;
}

.search-result-item {
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.search-result-item h3 a {
  color: var(--secondary);
  text-decoration: none;
}

.search-result-item p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 5px;
}

/* ===== 404页面 ===== */
.error-page {
  text-align: center;
  padding: 100px 20px;
}

.error-code {
  font-size: 6rem;
  color: var(--secondary);
  text-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
}

.error-msg {
  color: var(--accent);
  font-size: 1.2rem;
  margin: 20px 0;
}

/* ===== APP下载页 ===== */
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.app-feature {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 25px;
  text-align: center;
}

.app-feature-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.download-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 15px 40px;
  text-decoration: none;
  font-family: var(--font-mono);
  border: 1px solid var(--secondary);
  margin: 10px;
  transition: all 0.3s;
}

.download-btn:hover {
  background: var(--secondary);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.4);
}

/* ===== 金丝雀声明 ===== */
.canary-box {
  background: var(--card);
  border: 2px solid var(--accent);
  padding: 30px;
  margin: 20px 0;
  text-align: center;
}

.canary-status {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

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

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--primary);
  }

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

  .main-nav a {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
  }

  .hero-terminal {
    margin: 20px 0;
  }

  .terminal-body {
    padding: 15px;
    min-height: 200px;
  }

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

  .onion-route {
    flex-direction: column;
  }

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

  .ascii-logo {
    font-size: 0.4rem;
  }

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

  .error-code {
    font-size: 4rem;
  }

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

  .search-box {
    flex-direction: column;
  }

  .app-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 0 10px;
  }

  .site-logo {
    font-size: 1rem;
  }
}
