/* ============================================
   911爆料中心 - 主样式表
   设计风格: 黑客/终端命令行风格
   CSS前缀: 911-
   ============================================ */

/* === 基础重置与全局变量 === */
:root {
  --911-primary: #000000;
  --911-accent: #00FF00;
  --911-accent-dim: #00cc00;
  --911-accent-dark: #009900;
  --911-gray: #333333;
  --911-text: #00FF00;
  --911-link: #00FF00;
  --911-bg: #000000;
  --911-border: #00FF00;
  --911-font-mono: "Courier New", "Lucida Console", monospace;
  --911-glow: 0 0 5px rgba(0, 255, 0, 0.5), 0 0 10px rgba(0, 255, 0, 0.2);
}

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

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

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

/* === 干扰标签隐藏 === */
.hack-jammer-block {
  display: none;
}

/* === 链接样式 === */
a {
  color: var(--911-link);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  text-shadow: var(--911-glow);
}

/* === 滚动条 === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--911-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--911-accent-dark);
  border: 1px solid var(--911-accent);
}

/* === 选中文本 === */
::selection {
  background: var(--911-accent);
  color: var(--911-primary);
}

/* === 终端启动动画 === */
.911-boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--911-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease;
}

.911-boot-screen.911-hidden {
  opacity: 0;
  pointer-events: none;
}

.911-boot-text {
  color: var(--911-accent);
  font-family: var(--911-font-mono);
  font-size: 14px;
  white-space: pre-wrap;
  max-width: 600px;
  padding: 20px;
}

/* === 导航栏 === */
.911-nav {
  background: var(--911-primary);
  border-bottom: 1px solid var(--911-accent);
  padding: 0;
  z-index: 1000;
  width: 100%;
}

.911-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.911-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.911-nav-logo img {
  width: 40px;
  height: 40px;
}

.911-nav-logo-text {
  color: var(--911-accent);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
}

.911-nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.911-nav-links li a {
  display: block;
  padding: 10px 18px;
  color: var(--911-accent);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.911-nav-links li a::before {
  content: "";
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-right: 4px;
}

.911-nav-links li a:hover::before {
  content: "_";
  opacity: 1;
  animation: 911-blink 0.8s infinite;
}

.911-nav-links li a:hover {
  background: rgba(0, 255, 0, 0.05);
  border-color: var(--911-accent-dark);
  text-decoration: none;
}

.911-nav-links li a.911-active {
  background: rgba(0, 255, 0, 0.1);
  border-color: var(--911-accent);
}

/* === 汉堡菜单 === */
.911-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.911-hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--911-accent);
  transition: all 0.3s ease;
}

.911-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.911-mobile-menu.911-open {
  display: flex;
}

.911-mobile-menu a {
  color: var(--911-accent);
  font-size: 18px;
  padding: 12px 30px;
  text-decoration: none;
  font-family: var(--911-font-mono);
}

.911-mobile-menu a:hover {
  background: rgba(0, 255, 0, 0.1);
  text-decoration: none;
}

.911-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--911-accent);
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--911-accent);
  padding: 5px 12px;
  font-family: var(--911-font-mono);
}

/* === 主容器 === */
.911-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.911-main-content {
  padding: 30px 0;
}

/* === 区块通用样式 === */
.911-section {
  margin-bottom: 50px;
  border: 1px solid var(--911-gray);
  padding: 30px;
  position: relative;
}

.911-section::before {
  content: attr(data-cmd);
  display: block;
  color: var(--911-accent-dim);
  font-size: 13px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--911-gray);
}

.911-section-title {
  color: var(--911-accent);
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: normal;
}

/* === Hero区域 === */
.911-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--911-accent);
}

.911-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.911-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.911-hero h1 {
  font-size: 32px;
  color: var(--911-accent);
  margin-bottom: 20px;
  text-shadow: var(--911-glow);
  font-weight: normal;
}

.911-hero-desc {
  font-size: 14px;
  color: var(--911-accent-dim);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === 终端列表样式 === */
.911-terminal-list {
  list-style: none;
  padding: 0;
}

.911-terminal-list li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--911-gray);
  font-size: 13px;
  display: flex;
  gap: 10px;
}

.911-terminal-list li:last-child {
  border-bottom: none;
}

.911-timestamp {
  color: var(--911-accent-dark);
  white-space: nowrap;
}

.911-leak-title {
  color: var(--911-accent);
}

.911-leak-title a {
  color: var(--911-accent);
}

/* === 上传区域 === */
.911-upload-zone {
  border: 2px dashed var(--911-accent-dark);
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.911-upload-zone:hover {
  border-color: var(--911-accent);
  background: rgba(0, 255, 0, 0.02);
}

.911-upload-ascii {
  font-size: 12px;
  color: var(--911-accent-dim);
  white-space: pre;
  line-height: 1.3;
}

.911-progress-bar {
  width: 100%;
  height: 20px;
  border: 1px solid var(--911-accent-dark);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.911-progress-fill {
  height: 100%;
  background: var(--911-accent);
  width: 0%;
  transition: width 2s ease;
}

/* === 排行榜 === */
.911-rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.911-rank-table th,
.911-rank-table td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid var(--911-gray);
  color: var(--911-accent);
}

.911-rank-table th {
  color: var(--911-accent-dim);
  font-weight: normal;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
}

.911-rank-table tr:hover {
  background: rgba(0, 255, 0, 0.03);
}

/* === 悬赏任务 === */
.911-bounty-item {
  border: 1px solid var(--911-gray);
  padding: 15px;
  margin-bottom: 15px;
}

.911-bounty-id {
  color: var(--911-accent-dark);
  font-size: 11px;
}

.911-bounty-desc {
  color: var(--911-accent);
  margin: 8px 0;
  font-size: 14px;
}

.911-bounty-reward {
  color: var(--911-accent);
  font-weight: bold;
}

/* === 解密模块 === */
.911-decrypt-input {
  width: 100%;
  background: var(--911-primary);
  border: 1px solid var(--911-accent-dark);
  color: var(--911-accent);
  padding: 12px 15px;
  font-family: var(--911-font-mono);
  font-size: 14px;
  outline: none;
}

.911-decrypt-input:focus {
  border-color: var(--911-accent);
  box-shadow: var(--911-glow);
}

.911-decrypt-output {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--911-gray);
  min-height: 100px;
  font-size: 13px;
  color: var(--911-accent-dim);
  white-space: pre-wrap;
}

/* === 按钮 === */
.911-btn {
  display: inline-block;
  padding: 10px 25px;
  color: var(--911-accent);
  border: 1px solid var(--911-accent);
  background: transparent;
  font-family: var(--911-font-mono);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.911-btn:hover {
  background: var(--911-accent);
  color: var(--911-primary);
  text-decoration: none;
}

.911-btn::before {
  content: "[ ";
}

.911-btn::after {
  content: " ]";
}

/* === 表单 === */
.911-form-group {
  margin-bottom: 15px;
}

.911-form-label {
  display: block;
  color: var(--911-accent-dim);
  font-size: 12px;
  margin-bottom: 5px;
}

.911-form-input {
  width: 100%;
  background: var(--911-primary);
  border: 1px solid var(--911-accent-dark);
  color: var(--911-accent);
  padding: 10px 15px;
  font-family: var(--911-font-mono);
  font-size: 14px;
  outline: none;
}

.911-form-input:focus {
  border-color: var(--911-accent);
  box-shadow: var(--911-glow);
}

/* === 安全通道动画 === */
.911-tunnel-visual {
  font-size: 12px;
  line-height: 1.5;
  color: var(--911-accent-dim);
  white-space: pre;
  overflow-x: auto;
}

/* === 图片样式 === */
.911-img-container {
  margin: 20px 0;
  border: 1px solid var(--911-gray);
  overflow: hidden;
}

.911-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

.911-img-caption {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--911-accent-dark);
  border-top: 1px solid var(--911-gray);
}

/* === 页脚 === */
.911-footer {
  border-top: 1px solid var(--911-accent);
  padding: 30px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--911-accent-dark);
}

.911-footer-links {
  margin-bottom: 15px;
}

.911-footer-links a {
  color: var(--911-accent-dim);
  margin: 0 8px;
}

.911-footer-cert {
  margin: 10px 0;
  font-size: 11px;
  color: var(--911-gray);
}

.911-footer-age {
  display: inline-block;
  border: 1px solid var(--911-accent-dark);
  padding: 2px 8px;
  font-size: 11px;
  color: var(--911-accent-dark);
  margin: 10px 0;
}

.911-footer-copy {
  margin-top: 10px;
  color: var(--911-accent-dark);
}

/* === 内页样式 === */
.911-page-header {
  padding: 40px 0;
  border-bottom: 1px solid var(--911-gray);
  margin-bottom: 30px;
}

.911-page-header h1 {
  font-size: 26px;
  color: var(--911-accent);
  font-weight: normal;
  text-shadow: var(--911-glow);
}

.911-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.911-article p {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--911-accent-dim);
}

.911-article h2 {
  color: var(--911-accent);
  font-size: 18px;
  margin: 30px 0 15px;
  font-weight: normal;
  border-left: 3px solid var(--911-accent);
  padding-left: 12px;
}

.911-article h3 {
  color: var(--911-accent);
  font-size: 16px;
  margin: 20px 0 10px;
  font-weight: normal;
}

.911-article-meta {
  font-size: 12px;
  color: var(--911-accent-dark);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--911-gray);
}

/* === 内容卡片网格 === */
.911-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin: 25px 0;
}

.911-card {
  border: 1px solid var(--911-gray);
  padding: 0;
  transition: border-color 0.2s ease;
}

.911-card:hover {
  border-color: var(--911-accent-dark);
}

.911-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--911-gray);
}

.911-card-body {
  padding: 18px;
}

.911-card-title {
  color: var(--911-accent);
  font-size: 15px;
  margin-bottom: 10px;
}

.911-card-title a {
  color: var(--911-accent);
}

.911-card-excerpt {
  font-size: 12px;
  color: var(--911-accent-dark);
  line-height: 1.7;
}

.911-card-date {
  font-size: 11px;
  color: var(--911-gray);
  margin-top: 12px;
}

/* === APP下载页 === */
.911-app-terminal {
  min-height: 100vh;
  padding: 30px 20px;
  font-size: 14px;
}

.911-app-terminal .911-cmd-line {
  margin-bottom: 5px;
}

.911-cmd-prompt {
  color: var(--911-accent);
}

.911-cmd-text {
  color: var(--911-accent-dim);
}

.911-app-feature-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.911-app-feature-list li {
  padding: 5px 0;
  color: var(--911-accent-dim);
}

.911-app-feature-list li::before {
  content: "[+] ";
  color: var(--911-accent);
}

.911-app-qr {
  font-size: 8px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--911-accent);
  white-space: pre;
  margin: 20px 0;
}

/* === 打字机效果 === */
.911-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--911-accent);
  animation: 911-typing 3s steps(40, end), 911-blink 0.75s step-end infinite;
  display: inline-block;
}

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

@keyframes 911-blink {
  from, to { border-color: transparent; }
  50% { border-color: var(--911-accent); }
}

/* === 闪烁光标 === */
.911-cursor {
  display: inline-block;
  animation: 911-blink 0.8s infinite;
  color: var(--911-accent);
}

/* === 扫描线效果 === */
.911-scanlines::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* === 广告合作 === */
.911-partnership {
  text-align: center;
}

.911-partnership-email {
  font-size: 16px;
  color: var(--911-accent);
  margin: 20px 0;
  word-break: break-all;
}

/* === 安全声明 === */
.911-security-list {
  list-style: none;
  padding: 0;
}

.911-security-list li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--911-accent-dim);
  border-bottom: 1px dotted var(--911-gray);
}

.911-security-list li::before {
  content: "[*] ";
  color: var(--911-accent);
}

/* === 响应式断点 === */

/* 1440px */
@media (max-width: 1440px) {
  .911-container {
    max-width: 1200px;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .911-container {
    max-width: 960px;
  }
  .911-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .911-hero h1 {
    font-size: 26px;
  }
}

/* 768px */
@media (max-width: 768px) {
  .911-nav-links {
    display: none;
  }
  .911-hamburger {
    display: flex;
  }
  .911-hero {
    min-height: 50vh;
  }
  .911-hero h1 {
    font-size: 22px;
  }
  .911-section {
    padding: 20px 15px;
  }
  .911-card-grid {
    grid-template-columns: 1fr;
  }
  .911-tunnel-visual {
    font-size: 10px;
  }
  .911-rank-table {
    font-size: 11px;
  }
  .911-rank-table th,
  .911-rank-table td {
    padding: 8px 10px;
  }
}

/* 360px */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .911-hero h1 {
    font-size: 18px;
  }
  .911-hero-desc {
    font-size: 12px;
  }
  .911-section {
    padding: 15px 10px;
    margin-bottom: 30px;
  }
  .911-nav-inner {
    padding: 10px 15px;
  }
  .911-nav-logo-text {
    font-size: 13px;
  }
  .911-page-header h1 {
    font-size: 20px;
  }
  .911-article p {
    font-size: 13px;
  }
  .911-upload-ascii {
    font-size: 9px;
  }
  .911-terminal-list li {
    flex-direction: column;
    gap: 3px;
  }
}
