/* ================================================================
   追风科学院 · F.A.S.T. · 切伦科夫蓝色彩系统
   Cherenkov Blue Color System
   ================================================================
   灵感来源: 切伦科夫辐射 —— 核反应堆冷却水中带电粒子
   超光速运动时发出的蓝色辉光
   ================================================================ */

:root {
  /* 切伦科夫蓝 主色谱 */
  --cherenkov-deep:   #0044AA;
  --cherenkov-core:   #0099FF;
  --cherenkov-sky:    #00BFFF;
  --cherenkov-glow:   #00F0FF;
  --cherenkov-moon:   #E8F0F8;

  /* 兼容别名 (HTML 内联属性使用) */
  --glow:             #00F0FF;

  /* 暗色基底 */
  --cherenkov-dark:   #001829;
  --cherenkov-darker: #000C17;
  --cherenkov-void:   #00050B;

  /* 主题背景色 */
  --bg-prologue:  radial-gradient(ellipse at 50% 50%, #001a33 0%, #000810 60%, #00050B 100%);
  --bg-glory:     radial-gradient(ellipse at 50% 40%, #002030 0%, #000810 60%, #00050B 100%);
  --bg-news:      radial-gradient(ellipse at 50% 50%, #001528 0%, #000810 55%, #00050B 100%);
  --bg-light:     radial-gradient(ellipse at 50% 50%, #001830 0%, #000810 50%, #00050B 100%);
  --bg-mission:   radial-gradient(ellipse at 50% 50%, #001028 0%, #000810 50%, #00050B 100%);

  /* 命令行语法高亮色 */
  --cmd-prompt:    #00F0FF;
  --cmd-ok:        #00FF88;
  --cmd-warn:      #FFAA00;
  --cmd-error:     #FF4466;
  --cmd-path:      #BB88FF;
  --cmd-param:     #FFDD44;
  --cmd-value:     #FF8844;
  --cmd-bracket:   #5588AA;
  --cmd-text:      #88CCDD;

  /* 字体 */
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-body:    'Rajdhani', 'Space Grotesk', sans-serif;
  --font-mono:    'Space Grotesk', monospace;

  /* 过渡时长 */
  --bg-duration:    1.2s;
  --content-duration: 0.6s;
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 基础重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--cherenkov-void);
  color: var(--cherenkov-moon);
  font-family: var(--font-body);
  cursor: none;
  user-select: none;
}

body { position: relative; }

/* ==================== 加载画面 (命令行风格) ==================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out);
}

#loader.loaded {
  opacity: 0;
  pointer-events: none;
}

#loader.boot-complete {
  background: var(--bg-prologue);
  transition: background 1.5s var(--ease-in-out);
}

.loader-terminal {
  width: 90%;
  max-width: 560px;
  padding: 32px;
  background: rgba(0, 5, 15, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(0, 100, 200, 0.15), inset 0 0 30px rgba(0, 50, 100, 0.05);
  backdrop-filter: blur(10px);
}

#loader.boot-complete .loader-terminal {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.loader-logo-wrap {
  text-align: center;
  margin-bottom: 20px;
}

/* [Ver2.1] 加载三角形 Canvas (小球轨道动画) */
.loader-triangle-canvas {
  filter: drop-shadow(0 0 12px var(--cherenkov-glow));
}

.loader-triangle-svg {
  filter: drop-shadow(0 0 12px var(--cherenkov-glow));
  animation: loaderTriPulse 1.8s ease-in-out infinite;
}

@keyframes loaderTriPulse {
  0%, 100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.05) rotate(2deg); }
}

#loader.boot-complete .loader-logo-wrap,
#loader.boot-complete .loader-cmd-lines,
#loader.boot-complete .loader-progress-area {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

/* 命令行文本区域 */
.loader-cmd-lines {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--cmd-text);
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.cmd-line {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  animation: cmdLineAppear 0.15s ease-out forwards;
}

@keyframes cmdLineAppear {
  to { opacity: 1; }
}

/* 语法高亮 */
.cmd-prompt  { color: var(--cmd-prompt); }
.cmd-ok      { color: var(--cmd-ok); }
.cmd-warn    { color: var(--cmd-warn); }
.cmd-error   { color: var(--cmd-error); }
.cmd-path    { color: var(--cmd-path); }
.cmd-param   { color: var(--cmd-param); }
.cmd-value   { color: var(--cmd-value); }
.cmd-bracket { color: var(--cmd-bracket); }

/* 进度条区域 */
.loader-progress-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loader-progress-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--cherenkov-glow);
  opacity: 0.6;
  white-space: nowrap;
  text-transform: uppercase;
}

.loader-bar {
  flex: 1;
  height: 3px;
  background: rgba(0, 240, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cherenkov-deep), var(--cherenkov-glow));
  border-radius: 1px;
  box-shadow: 0 0 8px var(--cherenkov-glow);
  position: relative;
  transition: width 0.1s linear;
}

/* 进度条扫描线效果 */
.loader-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  bottom: -2px;
  width: 12px;
  background: linear-gradient(90deg, transparent, var(--cherenkov-glow));
  filter: blur(2px);
}

.loader-bar-percent {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cherenkov-glow);
  opacity: 0.5;
  min-width: 30px;
  text-align: right;
}

/* ==================== Three.js Canvas 容器 ==================== */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
}

#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ==================== 背景渐变层 ==================== */
#bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-prologue);
}

/* [Ver2.2] 背景流动光晕 — 增强可见度 */
#bg-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 40%, rgba(0, 153, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 500px 300px at 70% 60%, rgba(0, 240, 255, 0.06), transparent 70%),
    radial-gradient(ellipse 400px 500px at 50% 80%, rgba(0, 68, 170, 0.05), transparent 70%);
  animation: bgFlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgFlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(15px, -10px) scale(1.05); opacity: 1; }
  100% { transform: translate(30px, -20px) scale(1.1); opacity: 0.8; }
}

/* ==================== 故障转场 Canvas ==================== */
#glitch-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
}

#glitch-canvas.active { opacity: 1; }

/* ==================== 光爆覆盖层 ==================== */
#flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--cherenkov-glow) 0%, var(--cherenkov-deep) 30%, transparent 70%);
  opacity: 0;
}

/* ==================== 内容区域 ==================== */
#sections {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
}

.section {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.section.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  padding: 80px 60px 40px;
  max-height: 100vh;
  overflow-y: auto;
}

.section-inner::-webkit-scrollbar { width: 4px; }
.section-inner::-webkit-scrollbar-track { background: transparent; }
.section-inner::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.2); border-radius: 2px; }

.section-content { text-align: center; }

/* ==================== 文字样式 ==================== */
.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--cherenkov-glow);
  opacity: 0.6;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.main-title { font-family: var(--font-display); margin-bottom: 30px; }

.title-line {
  display: block;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--cherenkov-moon);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 153, 255, 0.2);
  line-height: 1.2;
}

.title-sub {
  display: block;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 400;
  letter-spacing: 6px;
  color: var(--cherenkov-glow);
  opacity: 0.5;
  margin-top: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--cherenkov-moon);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--cherenkov-glow);
  opacity: 0.6;
  margin-bottom: 40px;
  line-height: 1.8;
}

.section-desc {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--cherenkov-glow);
  opacity: 0.7;
  line-height: 1.8;
  margin-bottom: 60px;
}

/* ==================== 滚动提示 (仅箭头) ==================== */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  opacity: 0.5;
  animation: hintBreathe 2s ease-in-out infinite;
}

.hint-arrow-down {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--cherenkov-glow));
  position: relative;
}

.hint-arrow-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--cherenkov-glow);
  border-bottom: 1px solid var(--cherenkov-glow);
}

@keyframes hintBreathe {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(4px); }
}

/* ==================== 成就网格 (Section 02) ==================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.achievement-card {
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cherenkov-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.achievement-card:hover {
  border-color: rgba(0, 240, 255, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0, 153, 255, 0.15);
}

.achievement-card:hover::before { opacity: 1; }
.achievement-card.active-card { border-color: rgba(0, 240, 255, 0.5); box-shadow: 0 10px 40px rgba(0, 153, 255, 0.15); }
.achievement-card.active-card::before { opacity: 1; }

.achv-icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--cherenkov-glow); }
.achv-icon svg { width: 100%; height: 100%; }
.achv-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--cherenkov-moon); margin-bottom: 6px; }
.achv-year { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--cherenkov-glow); opacity: 0.5; margin-bottom: 10px; }
.achv-desc { font-size: 12px; font-weight: 300; letter-spacing: 1px; color: var(--cherenkov-moon); opacity: 0.6; line-height: 1.6; }

/* ==================== 新闻中心 (Section 03) — Ver2.3 明日方舟情报页风格重构 ==================== */
.news-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  transition: all 0.5s var(--ease-out);
}

/* 新闻中心标题区 — 双语标签 + 信息层级 */
.news-header {
  text-align: left;
  margin-bottom: 20px;
  transition: all 0.6s var(--ease-out);
  border-left: 2px solid var(--cherenkov-glow);
  padding-left: 16px;
}

.news-header.moved {
  position: absolute;
  top: -10px;
  left: 20px;
  text-align: left;
  z-index: 5;
}

.news-back-arrow {
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--cherenkov-glow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.6;
  transition: opacity 0.3s;
  margin-bottom: 8px;
}

.news-back-arrow.visible {
  display: inline-flex;
}

.news-back-arrow:hover { opacity: 1; }

.news-back-arrow svg {
  width: 16px;
  height: 16px;
}

/* 双语标签: 中文大标题 + 英文小标签 */
.news-header .section-tag {
  margin-bottom: 6px;
}

.news-header .section-title {
  margin-bottom: 4px;
}

.news-header .section-subtitle {
  margin-bottom: 0;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: 0.4;
}

/* [Ver2.4] 明日方舟情报页风格 — 新闻中心容器 */
.news-ark-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  text-align: left;
}

.news-ark-container::-webkit-scrollbar { width: 3px; }
.news-ark-container::-webkit-scrollbar-track { background: transparent; }
.news-ark-container::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.15); border-radius: 2px; }

/* [Ver2.2] 新闻中心禁止 section-inner 滚动 */
.section[data-theme="news"] .section-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section[data-theme="news"] .news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 新闻详情区可内部滚动 */
.news-detail {
  max-height: 100%;
  overflow-y: auto;
}

.news-detail::-webkit-scrollbar { width: 3px; }
.news-detail::-webkit-scrollbar-track { background: transparent; }
.news-detail::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.15); border-radius: 2px; }

/* [Ver2.4] 限制线 — URL风格装饰分割线 (明日方舟特色) */
.ark-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  flex-shrink: 0;
}

.ark-divider-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--cherenkov-glow);
  opacity: 0.35;
  white-space: nowrap;
  text-transform: uppercase;
}

.ark-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 240, 255, 0.2), transparent);
}

.ark-divider-thin {
  margin: 10px 0;
}

.ark-divider-thin .ark-divider-line {
  background: linear-gradient(to right, rgba(0, 240, 255, 0.12), transparent);
}

/* [Ver2.4] Tab 分类 — 中英双语对照 */
.ark-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  padding-bottom: 0;
}

.ark-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  margin-bottom: -1px;
}

.ark-tab-en {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(0, 240, 255, 0.3);
  transition: color 0.3s;
}

.ark-tab-cn {
  font-family: 'Rajdhani', 'Microsoft YaHei', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(232, 240, 248, 0.35);
  transition: color 0.3s;
}

.ark-tab:hover .ark-tab-en { color: rgba(0, 240, 255, 0.6); }
.ark-tab:hover .ark-tab-cn { color: rgba(232, 240, 248, 0.6); }

.ark-tab.active {
  border-bottom-color: var(--cherenkov-glow);
}

.ark-tab.active .ark-tab-en {
  color: var(--cherenkov-glow);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.ark-tab.active .ark-tab-cn {
  color: var(--cherenkov-moon);
}

/* [Ver2.4] BREAKING NEWS 头条 */
.ark-breaking {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ark-breaking-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ff4466;
  margin-bottom: 8px;
  text-transform: uppercase;
  animation: statusBlink 2s ease-in-out infinite;
}

.ark-breaking-content {
  min-height: 40px;
}

.ark-breaking-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 68, 102, 0.06), rgba(0, 15, 30, 0.4));
  border: 1px solid rgba(255, 68, 102, 0.15);
  border-left: 3px solid rgba(255, 68, 102, 0.4);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(8px);
}

.ark-breaking-item:hover {
  border-color: rgba(255, 68, 102, 0.3);
  border-left-color: #ff4466;
  background: linear-gradient(135deg, rgba(255, 68, 102, 0.1), rgba(0, 20, 40, 0.5));
}

.ark-breaking-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 68, 102, 0.6);
}

.ark-breaking-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cherenkov-moon);
  line-height: 1.4;
}

.ark-breaking-read {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(0, 240, 255, 0.4);
  margin-top: 4px;
}

/* [Ver2.4] 新闻卡片网格 */
.ark-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

/* [Ver2.4] 新闻卡片 — 明日方舟情报页风格 */
.ark-card {
  background: rgba(0, 15, 30, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 3px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
}

.ark-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ark-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 20, 40, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.06);
}

.ark-card:hover::before { opacity: 1; }

/* 卡片头部: 标签 + 日期 */
.ark-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.ark-card-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 1px;
  text-transform: uppercase;
}

.ark-card-badge.breaking {
  color: #ff4466;
  background: rgba(255, 68, 102, 0.1);
  border: 1px solid rgba(255, 68, 102, 0.3);
}

.ark-card-badge.important {
  color: var(--cmd-warn);
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.ark-card-badge.normal {
  color: var(--cherenkov-glow);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.ark-card-date {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--cherenkov-glow);
  opacity: 0.35;
  text-align: right;
}

/* 卡片标题 */
.ark-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--cherenkov-moon);
  line-height: 1.5;
  flex: 1;
}

/* 卡片摘要 */
.ark-card-summary {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: var(--cherenkov-moon);
  opacity: 0.4;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 卡片底部 READ MORE */
.ark-card-read {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(0, 240, 255, 0.3);
  text-transform: uppercase;
  transition: color 0.3s;
}

.ark-card:hover .ark-card-read {
  color: rgba(0, 240, 255, 0.6);
}

/* [Ver2.4] 管理后台按钮 — 明日方舟风格 */
.ark-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 15, 30, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 2px;
  color: var(--cherenkov-glow);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.3s;
  align-self: flex-start;
  margin-top: 8px;
}

.ark-admin-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.ark-admin-btn:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 20, 40, 0.6);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
}

.ark-admin-arrow {
  opacity: 0.4;
  transition: transform 0.3s, opacity 0.3s;
}

.ark-admin-btn:hover .ark-admin-arrow {
  opacity: 0.8;
  transform: translateX(3px);
}

/* 新闻详情展开 */
.news-detail {
  display: none;
  padding: 30px;
  background: rgba(0, 15, 30, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  text-align: left;
  animation: detailExpand 0.6s var(--ease-out);
}

.news-detail.visible {
  display: block;
}

@keyframes detailExpand {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.news-detail-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cherenkov-moon);
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.news-detail-content {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--cherenkov-moon);
  opacity: 0.8;
  line-height: 2;
  white-space: pre-wrap;
}

/* 管理后台按钮 (显式) */
.news-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 2px;
  color: var(--cherenkov-glow);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  align-self: flex-start;
}

.news-admin-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.news-admin-btn svg {
  width: 12px;
  height: 12px;
}

.news-empty {
  text-align: center;
  padding: 40px;
  color: var(--cherenkov-glow);
  opacity: 0.3;
  font-size: 14px;
  letter-spacing: 2px;
}

/* 隐藏式管理入口 (兼容) */
.news-admin-entry {
  text-align: center;
  margin-top: 20px;
}

.admin-link {
  display: inline-block;
  color: rgba(0, 240, 255, 0.15);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1;
}

.admin-link:hover {
  color: var(--cherenkov-glow);
}

/* ==================== 故障文字效果 ==================== */
.glitch-text { position: relative; display: inline-block; }
.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
}
.glitch-text.glitching::before {
  opacity: 0.8; color: var(--cherenkov-glow);
  animation: glitchTop 0.3s linear;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  transform: translate(-2px, 0);
}
.glitch-text.glitching::after {
  opacity: 0.8; color: #ff4466;
  animation: glitchBottom 0.3s linear;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
  transform: translate(2px, 0);
}
@keyframes glitchTop { 0%,100%{transform:translate(-2px,0);} 25%{transform:translate(2px,-1px);} 50%{transform:translate(-1px,1px);} 75%{transform:translate(1px,0);} }
@keyframes glitchBottom { 0%,100%{transform:translate(2px,0);} 25%{transform:translate(-2px,1px);} 50%{transform:translate(1px,-1px);} 75%{transform:translate(-1px,0);} }

@keyframes statusBlink { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

/* ==================== 科学之光统计 (Section 04) ==================== */
.light-content { display: flex; justify-content: center; gap: 60px; margin-bottom: 40px; }
.light-stat { text-align: center; position: relative; }
.light-stat::after {
  content: ''; position: absolute; right: -30px; top: 10%;
  width: 1px; height: 80%;
  background: linear-gradient(to bottom, transparent, rgba(0,240,255,0.15), transparent);
}
.light-stat:last-child::after { display: none; }
.stat-number { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: var(--cherenkov-glow); text-shadow: 0 0 20px rgba(0, 240, 255, 0.4); line-height: 1; }
.stat-unit { font-family: var(--font-mono); font-size: 13px; letter-spacing: 2px; color: var(--cherenkov-glow); opacity: 0.5; margin-top: 4px; }
.stat-label { font-size: 12px; font-weight: 300; letter-spacing: 2px; color: var(--cherenkov-moon); opacity: 0.4; margin-top: 8px; }
.cursor-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: var(--cherenkov-glow); opacity: 0.4; text-transform: uppercase; margin-top: 30px; }

/* ==================== 永恒使命 (Section 05) ==================== */
.mission-content { max-width: 800px; margin: 0 auto; }
.mission-title { margin-bottom: 40px; }

.mission-quote {
  margin-bottom: 50px;
  position: relative;
  padding: 0 40px;
}

.mission-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--cherenkov-glow), transparent);
}

.quote-cn {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--cherenkov-moon);
  opacity: 0.9;
  line-height: 2;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.quote-la {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--cherenkov-glow);
  opacity: 0.5;
  margin-top: 12px;
  font-style: italic;
}

.meditation-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cherenkov-glow);
  opacity: 0.3;
  text-transform: uppercase;
  transition: opacity 0.5s;
}

.section.active[data-theme="mission"].meditating .meditation-hint {
  opacity: 0;
}

.section.active[data-theme="mission"].meditating .mission-content {
  opacity: 0;
  transition: opacity 2s var(--ease-out);
}

/* [Ver2.2] 冥想模式退出进度条 */
.meditation-exit-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cherenkov-deep), var(--cherenkov-glow));
  box-shadow: 0 0 12px var(--cherenkov-glow);
  z-index: 500;
  transition: width 0.1s linear;
  opacity: 0;
}

.meditation-exit-bar.visible {
  opacity: 1;
}

.meditation-exit-hint {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--cherenkov-glow);
  text-transform: uppercase;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.5s;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  pointer-events: none;
}

.meditation-exit-hint.visible {
  opacity: 0.7;
}

/* [Ver2.4] 冥想模式 HTML 文字覆盖层 */
.meditation-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.meditation-overlay.visible {
  opacity: 1;
}

.meditation-portrait-placeholder {
  width: 160px;
  height: 200px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(0, 68, 170, 0.05), rgba(0, 240, 255, 0.03));
  position: relative;
}

.meditation-portrait-placeholder::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 2px;
}

.meditation-text-cn {
  font-family: 'Orbitron', 'Microsoft YaHei', 'SimHei', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 8px;
  text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
  margin-bottom: 12px;
  animation: meditationTextGlow 3s ease-in-out infinite alternate;
}

.meditation-text-en {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 4px;
  color: rgba(179, 230, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.meditation-text-contrib {
  font-family: 'Rajdhani', 'Microsoft YaHei', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgba(242, 235, 204, 0.75);
  margin-bottom: 8px;
}

.meditation-text-years {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(128, 179, 243, 0.7);
}

@keyframes meditationTextGlow {
  0% { text-shadow: 0 0 15px currentColor, 0 0 30px currentColor; }
  100% { text-shadow: 0 0 25px currentColor, 0 0 50px currentColor, 0 0 80px currentColor; }
}



/* ==================== 顶部 Tab 导航 ==================== */
#tab-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(to bottom, rgba(0, 8, 16, 0.7), transparent);
  backdrop-filter: blur(4px);
}

.tab-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; transition: opacity 0.3s; }
.tab-logo:hover { opacity: 0.7; }
.tab-logo-svg { filter: drop-shadow(0 0 4px var(--cherenkov-glow)); animation: logoSpin 20s linear infinite; }
@keyframes logoSpin { to { transform: rotate(360deg); } }
.tab-logo-text { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--cherenkov-glow); }

/* Tab items container */
.tab-items {
  display: flex;
  gap: 4px;
  position: relative;
}

.tab-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}

.tab-item:hover { background: rgba(0, 240, 255, 0.05); }

.tab-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--cherenkov-glow); opacity: 0.4; }
.tab-name { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 2px; color: var(--cherenkov-moon); opacity: 0.5; transition: opacity 0.3s; position: relative; z-index: 2; }
.tab-item.active .tab-name { opacity: 1; }
.tab-item.active .tab-num { opacity: 0.8; }

/* Tab 高亮滑动条 */
.tab-highlight-bar {
  position: absolute;
  bottom: 0;
  height: 14px;
  background: var(--cherenkov-glow);
  opacity: 0.25;
  z-index: 1;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  transition: left 0.5s var(--ease-smooth), width 0.5s var(--ease-smooth);
  pointer-events: none;
}

/* 移动端切换指示器 */
.tab-switch-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cherenkov-glow);
  opacity: 0;
  transition: opacity 0.3s;
}

.tab-switch-indicator.visible { opacity: 0.9; }

.switch-from, .switch-to { letter-spacing: 1px; }
.switch-arrow { opacity: 0.5; }

/* 移动端汉堡菜单 */
.tab-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.tab-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cherenkov-glow);
  border-radius: 1px;
  transition: all 0.3s;
}

.tab-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.tab-hamburger.open span:nth-child(2) { opacity: 0; }
.tab-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端展开菜单 */
.tab-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(0, 8, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  z-index: 99;
  padding: 16px 20px;
}

.tab-mobile-menu.open { display: block; }

.tab-mobile-menu .tab-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.05);
}

.tab-mobile-menu .tab-name { font-size: 14px; }

/* ==================== 右侧章节指示器 ==================== */
#side-indicator {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-ring {
  opacity: 0.3;
  transition: opacity 0.3s var(--ease-out);
  cursor: pointer;
}

.progress-ring:hover { opacity: 0.6; }
.progress-ring.active { opacity: 1; }

.ring-fill {
  transition: stroke-dashoffset 0.12s linear;
}

.ring-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--cherenkov-glow);
  opacity: 0.6;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.progress-ring.active .ring-label { opacity: 1; }

.ring-arrow {
  transition: opacity 0.3s;
}

.progress-ring.filled .ring-label { opacity: 0; }
.progress-ring.filled .ring-arrow { display: block !important; animation: arrowPulse 0.6s ease-in-out infinite; }

@keyframes arrowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ==================== 自定义光标 ==================== */
#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: var(--cherenkov-glow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--cherenkov-glow);
}

.cursor-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.ch-line { position: absolute; background: var(--cherenkov-glow); box-shadow: 0 0 4px var(--cherenkov-glow); }
.ch-top { width: 1px; height: 12px; top: -22px; left: 0; }
.ch-bottom { width: 1px; height: 12px; top: 10px; left: 0; }
.ch-left { width: 12px; height: 1px; left: -22px; top: 0; }
.ch-right { width: 12px; height: 1px; left: 10px; top: 0; }

body.cursor-science .cursor-crosshair { opacity: 1; }
body.cursor-science .cursor-ring { width: 40px; height: 40px; border-color: rgba(0, 240, 255, 0.5); }
body.cursor-science .cursor-dot { width: 2px; height: 2px; }

/* ==================== 数据面板 (保留兼容) ==================== */
.data-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.data-panel { background: rgba(0, 15, 30, 0.6); border: 1px solid rgba(0, 240, 255, 0.15); border-radius: 2px; padding: 20px; text-align: left; backdrop-filter: blur(8px); position: relative; overflow: hidden; }
.data-panel::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--cherenkov-glow); opacity: 0.6; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-id { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--cherenkov-glow); opacity: 0.5; }
.panel-status { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 2px; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; }
.panel-status.critical { color: #ff4466; background: rgba(255, 68, 102, 0.1); border: 1px solid rgba(255, 68, 102, 0.3); animation: statusBlink 2s ease-in-out infinite; }
.panel-status.warning { color: #ffaa00; background: rgba(255, 170, 0, 0.1); border: 1px solid rgba(255, 170, 0, 0.3); }
.panel-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--cherenkov-moon); margin-bottom: 14px; }
.panel-data { margin-bottom: 12px; }
.data-bar { width: 100%; height: 4px; background: rgba(0, 240, 255, 0.1); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.data-bar-fill { height: 100%; background: linear-gradient(90deg, var(--cherenkov-deep), var(--cherenkov-glow)); border-radius: 2px; box-shadow: 0 0 8px var(--cherenkov-glow); }
.data-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px solid rgba(0, 240, 255, 0.05); }
.data-row span:first-child { color: var(--cherenkov-moon); opacity: 0.5; letter-spacing: 1px; }
.data-value { font-family: var(--font-mono); font-weight: 500; color: var(--cherenkov-glow); letter-spacing: 1px; }
.data-value.danger { color: #ff4466; }
.panel-desc { font-size: 11px; font-weight: 300; letter-spacing: 1px; color: var(--cherenkov-moon); opacity: 0.4; line-height: 1.6; }

/* ==================== 响应式适配 ==================== */
@media (max-width: 1024px) {
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .light-content { gap: 30px; flex-wrap: wrap; }
  .ark-card-grid { grid-template-columns: repeat(2, 1fr); }
  #tab-nav { padding: 16px 20px; }
  .section-inner { padding: 70px 30px 30px; }

  /* 移动端 Tab: 隐藏完整 Tab, 显示汉堡菜单 */
  .tab-items { display: none; }
  .tab-hamburger { display: flex; }
  #side-indicator { right: 12px; }
  .progress-ring { width: 36px !important; height: 36px !important; }
  .news-detail-title { font-size: 20px; }
}

@media (max-width: 640px) {
  .achievements-grid { grid-template-columns: 1fr; }
  .light-content { flex-direction: column; gap: 20px; }
  .light-stat::after { display: none; }
  .section-title { font-size: 24px; letter-spacing: 4px; }
  .title-line { font-size: 32px; letter-spacing: 4px; }
  .ark-card-grid { grid-template-columns: 1fr; }
  .ark-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .quote-cn { font-size: 20px; letter-spacing: 4px; }
  #side-indicator { display: none; }
  body { cursor: default; }
  #custom-cursor { display: none; }
  .section-inner { padding: 60px 16px 20px; }
}

/* ==================== 入场动画 ==================== */
.section.active .section-content > * {
  animation: contentFadeIn 0.8s var(--ease-out) backwards;
}

.section.active .section-content > *:nth-child(1) { animation-delay: 0.1s; }
.section.active .section-content > *:nth-child(2) { animation-delay: 0.2s; }
.section.active .section-content > *:nth-child(3) { animation-delay: 0.3s; }
.section.active .section-content > *:nth-child(4) { animation-delay: 0.4s; }
.section.active .section-content > *:nth-child(5) { animation-delay: 0.5s; }
.section.active .section-content > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ==================== 消融转场动画 ==================== */
.section.dissolving { animation: dissolveOut 1.5s var(--ease-in-out) forwards; }
@keyframes dissolveOut { 0% { opacity: 1; filter: blur(0); transform: scale(1); } 100% { opacity: 0; filter: blur(20px); transform: scale(1.05); } }

.section.morphing-out .section-content { animation: morphOut 0.8s var(--ease-out) forwards; }
@keyframes morphOut { 0% { opacity: 1; transform: scale(1); filter: blur(0); } 100% { opacity: 0; transform: scale(0.8); filter: blur(15px); } }
