/* v5-verse.css · 头号玩家（绿洲登录+赛车+夜店+太空）混合版 · 2026-11-30 v4 */

/* ========== 配色：绿洲主色 + 青橙强调 ========== */
:root {
  --oasis-green: #00ff41;     /* 绿洲绿 */
  --oasis-cyan: #00d4ff;      /* 电光青 */
  --oasis-orange: #ff5e00;    /* 警示橙 */
  --oasis-dark: #05080d;      /* 深空黑 */
  --oasis-grid: #0a3d2f;      /* 网格深绿 */
  --glow-green: rgba(0,255,65,0.6);
  --glow-cyan: rgba(0,212,255,0.4);
  --glow-orange: rgba(255,94,0,0.5);
}

/* ========== 背景：深空星光（稀疏）+ 深黑渐变 ========== */
body {
  background: 
    /* 稀疏远景星（太空站） */
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 50% 25%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 85% 40%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 20% 85%, rgba(0,255,65,0.4), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(0,212,255,0.4), transparent),
    /* 底部绿洲光晕 */
    radial-gradient(ellipse at 50% 100%, var(--glow-green) 0%, transparent 50%),
    /* 深空黑渐变 */
    linear-gradient(180deg, #000810 0%, var(--oasis-dark) 50%, #000a12 100%);
  background-size: 
    300% 300%, 300% 300%, 300% 300%, 300% 300%, 300% 300%, 300% 300%, 300% 300%,
    100% 100%, 100% 100%;
  animation: deepStar 20s ease-in-out infinite;
  position: relative;
  overflow-x: hidden;
}
@keyframes deepStar {
  0%, 100% { 
    background-position: 
      10% 15%, 30% 60%, 50% 25%, 70% 70%, 85% 40%, 20% 85%, 90% 20%,
      center, center;
  }
  50% { 
    background-position: 
      12% 18%, 33% 63%, 53% 28%, 73% 73%, 88% 43%, 23% 88%, 93% 23%,
      center, center;
  }
}

/* 细霓虹线条网格（绿洲登录界面）*/
body::before {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  background: 
    linear-gradient(90deg, var(--oasis-grid) 1px, transparent 1px),
    linear-gradient(0deg, var(--oasis-grid) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0%, rgba(10,61,47,0.5) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-position: center bottom;
  pointer-events: none;
  z-index: 0;
  transform: perspective(500px) rotateX(70deg);
  transform-origin: bottom;
  box-shadow: 0 -20px 40px var(--glow-green);
  animation: gridPulse 3s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

/* 高速光流（赛车场景）从上到下 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    linear-gradient(180deg, 
      transparent 0%, 
      var(--glow-cyan) 10%, 
      transparent 20%,
      transparent 40%,
      var(--glow-orange) 50%,
      transparent 60%,
      transparent 80%,
      var(--glow-green) 90%,
      transparent 100%
    );
  background-size: 100% 400%;
  animation: speedLight 4s linear infinite;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.3;
}
@keyframes speedLight {
  0% { background-position: 0 0; }
  100% { background-position: 0 400%; }
}

/* ========== 标题霓虹闪烁（夜店场景）========== */
h1, h2, .brand-text, .seg-head h2, .sd-col h2 {
  background: linear-gradient(120deg, var(--oasis-green), var(--oasis-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: neonFlicker 2s ease-in-out infinite;
  position: relative;
}
@keyframes neonFlicker {
  0%, 100% { 
    text-shadow: 
      0 0 5px var(--glow-green),
      0 0 5px var(--glow-green),
      0 0 15px var(--glow-green);
  }
  50% { 
    text-shadow: 
      0 0 5px var(--glow-green),
      0 0 40px var(--glow-green),
      0 0 60px var(--glow-green);
  }
}

/* 图标注入 */
[data-ico]::before {
  content: attr(data-ico);
  display: inline-block;
  margin-right: 0.42em;
  -webkit-text-fill-color: var(--oasis-cyan);
  background: none;
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--glow-cyan));
  animation: iconPulse 1.5s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--glow-cyan)); }
  50% { filter: drop-shadow(0 0 16px var(--glow-cyan)); }
}
.section-head h2[data-ico]::before,
.seg-head h2[data-ico]::before {
  font-size: 1em;
}

/* ========== 卡片：绿洲边框 + 脉冲光晕 ========== */
.seg-section, .section, .day-card, .stage-card, .news-card {
  position: relative;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.7), 
    0 0 8px var(--glow-green),
    inset 0 0 20px rgba(0,255,65,0.05);
  border: 1px solid var(--oasis-green);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(5,8,13,0.85);
  animation: cardGlow 3s ease-in-out infinite;
}
@keyframes cardGlow {
  0%, 100% { 
    box-shadow: 
      0 4px 20px rgba(0,0,0,0.7), 
      0 0 8px var(--glow-green),
      inset 0 0 20px rgba(0,255,65,0.05);
  }
  50% { 
    box-shadow: 
      0 6px 30px rgba(0,0,0,0.8), 
      0 0 15px var(--glow-green),
      inset 0 0 30px rgba(0,255,65,0.1);
  }
}
.seg-section:hover, .day-card:hover, .stage-card:hover, .news-card:hover {
  box-shadow: 
    0 8px 40px rgba(0,0,0,0.9), 
    0 0 25px var(--glow-cyan),
    0 0 40px var(--glow-orange),
    inset 0 0 40px rgba(0,212,255,0.15);
  border-color: var(--oasis-cyan);
  transform: translateY(-5px) scale(1.02);
}

/* ========== 导航图标 ========== */
.nav a .nav-ico {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--glow-green));
  animation: navPulse 2s ease-in-out infinite;
}
@keyframes navPulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--glow-green)); }
  50% { filter: drop-shadow(0 0 12px var(--glow-green)); }
}

/* ========== 工具命令块 ========== */
.tool-cmd {
  position: relative;
  margin: 1em 0;
}
.tool-cmd pre {
  background: rgba(5,8,13,0.95);
  border: 2px solid var(--oasis-grid);
  border-radius: 8px;
  padding: 1em 3.5em 1em 1em;
  overflow-x: auto;
  font-size: 0.9em;
  color: var(--oasis-green);
  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.8),
    0 0 8px var(--glow-green);
  font-family: 'Consolas', 'Courier New', monospace;
}
.tool-cmd .copy-btn {
  position: absolute;
  top: 0.6em;
  right: 0.6em;
  padding: 0.5em 1em;
  font-size: 0.75em;
  background: rgba(255,94,0,0.4);
  border: 2px solid var(--oasis-orange);
  border-radius: 6px;
  color: var(--oasis-orange);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 700;
  text-shadow: 0 0 8px var(--glow-orange);
  animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { 
    box-shadow: 0 0 10px var(--glow-orange);
  }
  50% { 
    box-shadow: 0 0 12px var(--glow-orange);
  }
}
.tool-cmd .copy-btn:hover {
  background: rgba(255,94,0,0.7);
  box-shadow: 0 0 15px var(--glow-orange);
  transform: scale(1.05);
}
.tool-cmd .copy-btn:active {
  background: rgba(255,94,0,0.9);
  transform: scale(0.98);
}


/* ========== 栏目标题重排版（绿洲风格）========== */

/* section-head：首页板块标题 */
.section-head {
  position: relative;
  padding: 1.2em 1.5em 1.2em 2.5em;
  background: rgba(5,8,13,0.7);
  border: 1px solid var(--oasis-green);
  border-left: 4px solid var(--oasis-green);
  border-radius: 0 8px 8px 0;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.6),
    0 0 5px var(--glow-green),
    inset 0 0 30px rgba(0,255,65,0.03);
  margin-bottom: 2em;
  transition: all 0.4s;
  overflow: hidden;
}
.section-head::before {
  /* 左侧光条 */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--oasis-green), transparent);
  animation: barPulse 2s ease-in-out infinite;
}
@keyframes barPulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 5px var(--glow-green); }
  50% { opacity: 1; box-shadow: 0 0 12px var(--glow-green); }
}
.section-head::after {
  /* 悬停扫描线 */
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--oasis-cyan), transparent);
  box-shadow: 0 0 10px var(--glow-cyan);
  transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-head:hover::after {
  top: 50%;
}
.section-head:hover {
  border-color: var(--oasis-cyan);
  box-shadow: 
    0 6px 30px rgba(0,0,0,0.8),
    0 0 20px var(--glow-cyan),
    inset 0 0 50px rgba(0,212,255,0.08);
  transform: translateX(5px);
}
.section-head h2 {
  font-size: 1.5em;
  margin: 0;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}
.section-head p {
  margin: 0.4em 0 0;
  font-size: 0.75em;
  font-family: 'Consolas', 'Courier New', monospace;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--oasis-cyan);
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* seg-head：课程详情页段落标题 */
.seg-head {
  position: relative;
  padding: 1em 1.2em 1em 3em;
  background: rgba(5,8,13,0.6);
  border: 1px solid var(--oasis-grid);
  border-left: 3px solid var(--oasis-cyan);
  border-radius: 0 6px 6px 0;
  box-shadow: 
    0 2px 15px rgba(0,0,0,0.5),
    0 0 15px rgba(0,212,255,0.2),
    inset 0 0 20px rgba(0,212,255,0.02);
  margin-bottom: 1.5em;
  transition: all 0.3s;
}
.seg-head::before {
  /* 左侧编号 */
  content: attr(data-no);
  position: absolute;
  left: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  font-weight: 700;
  font-family: 'Consolas', monospace;
  color: var(--oasis-cyan);
  opacity: 0.6;
  text-shadow: 0 0 10px var(--glow-cyan);
}
.seg-head:hover {
  border-left-color: var(--oasis-green);
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.7),
    0 0 12px var(--glow-green),
    inset 0 0 30px rgba(0,255,65,0.05);
  transform: translateX(3px);
}
.seg-head:hover::before {
  color: var(--oasis-green);
  text-shadow: 0 0 8px var(--glow-green);
}
.seg-head h2 {
  font-size: 1.2em;
  margin: 0;
  letter-spacing: 0.06em;
}
.seg-head p {
  margin: 0.3em 0 0;
  font-size: 0.7em;
  font-family: 'Consolas', monospace;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--oasis-cyan);
  opacity: 0.7;
}
.seg-no {
  /* 隐藏原 span.seg-no，改用 ::before 显示 */
  display: none !important;
}

/* 响应式 */
@media (max-width: 390px) {
  .section-head {
    padding: 1em 1em 1em 2em;
  }
  .seg-head {
    padding: 0.8em 1em 0.8em 2.5em;
  }
  .section-head::after, .seg-head::before {
    display: none;
  }
}

/* ========== 响应式（≤390px）========== */
@media (max-width: 390px) {
  body::before {
    height: 40vh;
    background-size: 30px 30px, 30px 30px, 100% 100%;
  }
  body::after {
    opacity: 0.2;
  }
  .nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .nav a {
    display: inline-flex;
    flex-shrink: 0;
  }
  .seg-section:hover, .day-card:hover, .stage-card:hover, .news-card:hover {
    transform: none;
  }
}

/* ========== 动画降级 ========== */
@media (prefers-reduced-motion: reduce) {
  body, body::before, body::after, h1, h2, .brand-text, [data-ico]::before,
  .seg-section, .section, .day-card, .stage-card, .news-card,
  .nav a .nav-ico, .tool-cmd .copy-btn {
    animation: none;
  }
  .seg-section:hover, .day-card:hover, .stage-card:hover, .news-card:hover {
    transform: none;
  }
}
