@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&family=Orbitron:wght@500;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- 设计系统变量 --- */
:root {
  --bg-pure: #000000;
  --panel-bg: rgba(4, 4, 6, 0.93);
  --panel-border: rgba(255, 255, 255, 0.05);
  
  --color-primary: #00f2fe;     /* 霓虹蓝 */
  --color-accent: #bd00ff;      /* 霓虹紫 */
  --color-magenta: #ff007f;     /* 霓虹红 */
  --color-success: #00e676;     /* 荧光绿 */
  
  --text-main: #ffffff;
  --text-muted: #8a8a9c;
  --text-dark: #3e3e4a;
  
  --font-heavy: 'Montserrat', sans-serif;
  --font-cyber: 'Orbitron', sans-serif;
  --font-main: 'Inter', sans-serif;
  
  --transition-fast: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 基础重置 --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  width: 100%;
  height: 100%;
  background-color: var(--bg-pure);
  color: var(--text-main);
  font-family: var(--font-main);
  /* 保留滚动高度但隐藏默认滚动条，以启用平滑滚动驱动 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* --- WebGL Canvas 粒子背景 --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   原生阻尼滚动高度占位层
   ========================================================================== */
.scroll-height-spacer {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 600vh; /* 6倍高度，驱动 6000 像素的阻尼帧数 */
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   顶部固定导航栏 (Logo / Menu / Dimension)
   ========================================================================== */
.global-header {
  position: fixed;
  top: 40px;
  left: 60px;
  right: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 95;
  pointer-events: none;
}
.global-header > * {
  pointer-events: auto;
}

/* 品牌 Logo */
.brand-logo {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
  user-select: none;
  transition: opacity var(--transition-fast);
}
.brand-logo:hover {
  opacity: 0.8;
}

/* 维变切换悬浮条 */
.floating-engine-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.floating-engine-label {
  font-size: 9px;
  font-family: var(--font-cyber);
  letter-spacing: 1.5px;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-right: 4px;
}
.floating-engine-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-cyber);
  font-size: 8px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.floating-engine-btn:hover {
  color: var(--color-primary);
}
.floating-engine-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: var(--color-primary);
  border-color: rgba(0, 242, 254, 0.25);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 242, 254, 0.5);
}

/* 右上角极简 MENU 触发按钮 */
.menu-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  transition: all var(--transition-fast);
  user-select: none;
}
.menu-btn::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform var(--transition-fast);
}
.menu-btn:hover {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}
.menu-btn:hover::before {
  background-color: var(--color-primary);
  transform: scaleX(1.3);
}

/* ==========================================================================
   左侧工业风侧边导航面板 (Lateral Info Panel)
   ========================================================================== */
.lateral-info-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  z-index: 80;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 45px 0 60px;
  pointer-events: none;
}
.lateral-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  pointer-events: auto;
  width: 100%;
}
.scene-prefix {
  font-family: var(--font-cyber);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.scene-title {
  font-family: var(--font-heavy);
  font-size: 32px;
  letter-spacing: 1px;
  line-height: 1.0;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.6s ease;
}
.scene-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  transition: opacity 0.6s ease;
}

/* 小节子导航列表 */
.lateral-sub-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lateral-anchor-item {
  font-family: var(--font-cyber);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}
.lateral-anchor-item::before {
  content: '';
  width: 0;
  height: 1.5px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}
.lateral-anchor-item:hover {
  color: var(--text-muted);
}
.lateral-anchor-item.active {
  color: var(--color-primary);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
  transform: translateX(8px);
}
.lateral-anchor-item.active::before {
  width: 15px;
}

/* 各段主色调关联 */
.lateral-info-panel.resources-active .scene-title { color: var(--color-primary); }
.lateral-info-panel.tutorials-active .scene-title { color: var(--color-accent); }
.lateral-info-panel.wallpapers-active .scene-title { color: var(--color-magenta); }
.lateral-info-panel.contact-active .scene-title { color: var(--color-success); }

.lateral-info-panel.resources-active .lateral-anchor-item.active { color: var(--color-primary); text-shadow: 0 0 8px rgba(0,242,254,0.4); }
.lateral-info-panel.resources-active .lateral-anchor-item::before { background-color: var(--color-primary); }
.lateral-info-panel.tutorials-active .lateral-anchor-item.active { color: var(--color-accent); text-shadow: 0 0 8px rgba(189,0,255,0.4); }
.lateral-info-panel.tutorials-active .lateral-anchor-item::before { background-color: var(--color-accent); }
.lateral-info-panel.wallpapers-active .lateral-anchor-item.active { color: var(--color-magenta); text-shadow: 0 0 8px rgba(255,0,127,0.4); }
.lateral-info-panel.wallpapers-active .lateral-anchor-item::before { background-color: var(--color-magenta); }
.lateral-info-panel.contact-active .lateral-anchor-item.active { color: var(--color-success); text-shadow: 0 0 8px rgba(0,230,118,0.4); }
.lateral-info-panel.contact-active .lateral-anchor-item::before { background-color: var(--color-success); }

/* 下一小节滑动提示 */
.next-section-link {
  font-family: var(--font-cyber);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dark);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  display: inline-block;
  animation: breatheText 3s infinite ease-in-out;
}
.next-section-link:hover {
  color: var(--color-primary);
}

@keyframes breatheText {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 0.85; transform: translateX(5px); }
}

/* ==========================================================================
   磨砂玻璃发光音乐播放器
   ========================================================================== */
.mini-music-player {
  position: fixed;
  bottom: 40px;
  left: 60px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 250px;
  pointer-events: auto;
  background: rgba(4, 4, 6, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 18px;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.mini-music-player:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-disc {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle, #444 10%, #1a1a1a 60%, #050505 90%);
  animation: rotateDisc 15s linear infinite;
  animation-play-state: paused;
  position: relative;
}
.mini-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-pure);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mini-music-player.playing .mini-disc {
  animation-play-state: running;
}
.track-details {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mini-track-title {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
  letter-spacing: 0.5px;
}
.mini-track-artist {
  font-size: 8px;
  color: var(--text-muted);
  font-family: var(--font-cyber);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.player-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-cyber);
  font-size: 8px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}
.player-btn-text:hover {
  color: var(--text-main);
  text-shadow: 0 0 4px #fff;
}
.player-btn-text.play-state {
  color: var(--color-primary);
  font-weight: 700;
}
.player-btn-text.active-loop {
  color: var(--color-accent);
}

/* 发光进度条 */
.mini-progress-bar {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  transition: height var(--transition-fast);
}
.mini-progress-bar:hover {
  height: 3px;
}
.mini-progress-fill {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
}

/* ==========================================================================
   全屏单小节滚动页面固定视区
   ========================================================================== */
.scroll-section-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}
.scroll-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 100px 100px 380px; /* 偏移，避开左侧 lateral panel */
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px) scale(0.97);
  transition: opacity var(--transition-slow), 
              visibility var(--transition-slow), 
              transform var(--transition-slow);
  pointer-events: none;
}
.scroll-section.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1.00);
  pointer-events: auto;
}

/* 发现气泡与文字 */
.scroll-discover {
  position: absolute;
  bottom: 50px;
  left: 380px;
  font-family: var(--font-cyber);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--text-dark);
  text-transform: uppercase;
  animation: bounceY 2.5s infinite ease-in-out;
}

/* --- Section 1: HOME (大头像气泡展示) --- */
.home-content-box {
  max-width: 580px;
}
.home-tagline {
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.home-title {
  font-family: var(--font-heavy);
  font-size: 64px;
  line-height: 0.95;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.home-bio {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.home-sub-tag {
  font-size: 9px;
  font-family: var(--font-cyber);
  letter-spacing: 2px;
  color: var(--text-dark);
}

/* 右侧浮动的头像与霓虹光晕 */
.home-visual-wrapper {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.neon-glow-sphere {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 0, 255, 0.22) 0%, rgba(0, 242, 254, 0.03) 50%, transparent 70%);
  z-index: -1;
  filter: blur(30px);
  animation: pulseGlow 6s infinite ease-in-out alternate;
}
.avatar-floating-circle {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 35px rgba(189, 0, 255, 0.2);
  animation: floatAvatar 8s infinite ease-in-out;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.avatar-floating-circle:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 45px rgba(0, 242, 254, 0.35);
}
.avatar-floating-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Section Title 通用样式 --- */
.section-title-wrapper {
  margin-bottom: 35px;
}
.section-tag {
  font-family: var(--font-cyber);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-family: var(--font-heavy);
  font-size: 38px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1.0;
}
/* 颜色变种 */
#tutorials .section-tag { color: var(--color-accent); }
#wallpapers .section-tag { color: var(--color-magenta); }
#contact .section-tag { color: var(--color-success); }

/* ==========================================================================
   Section 内容网格布局
   ========================================================================== */

/* --- Section 2: RESOURCES (资源卡片) --- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
}
.res-card-sidewave {
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  padding: 22px 28px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.res-card-sidewave:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.12);
  background: rgba(0, 242, 254, 0.015);
  transform: translateY(-2px);
}
.res-badge-sidewave {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--font-cyber);
  font-size: 8px;
  letter-spacing: 1px;
  padding: 1px 5px;
  border-radius: 3px;
}
.res-badge-sidewave.hot {
  border: 1px solid rgba(255, 0, 127, 0.25);
  color: var(--color-magenta);
}
.res-badge-sidewave.recommend {
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--color-success);
}
.res-meta-tag {
  font-family: var(--font-cyber);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.res-title-sidewave {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.res-desc-sidewave {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  height: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.res-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 15px;
}
.res-details {
  font-family: var(--font-cyber);
  font-size: 8px;
  color: var(--text-dark);
}
.res-details span {
  margin-right: 12px;
}
.res-btn-sidewave {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-cyber);
  font-size: 8px;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}
.res-btn-sidewave:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* --- Section 3: TUTORIALS (教程格栅) --- */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
}
.tut-card-sidewave {
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
  padding: 22px 28px;
  border-radius: 12px;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tut-card-sidewave:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(189, 0, 255, 0.1);
  background: rgba(189, 0, 255, 0.01);
  transform: translateY(-2px);
}
.tut-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tut-tag-sidewave {
  font-family: var(--font-cyber);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--color-accent);
}
.tut-date-sidewave {
  font-family: var(--font-cyber);
  font-size: 8px;
  color: var(--text-dark);
}
.tut-title-sidewave {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.tut-excerpt-sidewave {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tut-read-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-cyber);
  font-size: 8px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color var(--transition-fast);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tut-read-btn:hover {
  color: var(--color-magenta);
}

/* --- Section 4: WALLPAPERS (壁纸画廊) --- */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 900px;
}
.wp-card-sidewave {
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.wp-card-sidewave img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.wp-card-sidewave:hover img {
  transform: scale(1.06);
}
.wp-overlay-sidewave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: opacity var(--transition-fast);
}
.wp-card-sidewave:hover .wp-overlay-sidewave {
  opacity: 1;
}
.wp-name-sidewave {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}
.wp-size-sidewave {
  font-family: var(--font-cyber);
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.wp-btns-sidewave {
  display: flex;
  gap: 8px;
}
.wp-btn-sidewave {
  flex: 1;
  text-align: center;
  padding: 5px;
  font-family: var(--font-cyber);
  font-size: 8px;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.wp-btn-sidewave.view {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wp-btn-sidewave.view:hover {
  background: rgba(255, 255, 255, 0.18);
}
.wp-btn-sidewave.download {
  background: #fff;
  color: #000;
  border: none;
}
.wp-btn-sidewave.download:hover {
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* --- Section 5: CONTACT (联系表单) --- */
.contact-container {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  gap: 50px;
}
.contact-form-side {
  flex: 1;
  max-width: 450px;
}
.contact-info-side {
  width: 320px;
}
.contact-intro-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 25px;
}
.form-title {
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 15px;
}
.input-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
  margin-bottom: 15px;
}
.input-field {
  background: none;
  border: none;
  flex: 1;
  color: #fff;
  font-family: var(--font-cyber);
  font-size: 11px;
  outline: none;
  width: 100%;
}
.send-btn {
  background: var(--color-primary);
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
  border-radius: 2px;
  transition: background var(--transition-fast);
}
.send-btn:hover {
  background: #fff;
}
.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.privacy-check {
  margin-top: 3px;
  accent-color: var(--color-primary);
}
.privacy-label {
  font-size: 10px;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

/* 详情 */
.info-title {
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 15px;
}
.info-list {
  list-style: none;
  font-size: 12px;
  line-height: 2.2;
  color: var(--text-muted);
}
.info-list strong {
  color: #fff;
}

/* 页脚 */
.footer-text {
  margin-top: 35px;
  font-family: var(--font-cyber);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 20px;
  max-width: 900px;
}

/* ==========================================================================
   全屏下拉式导航菜单 (下拉大字 Sidewave 遮罩菜单)
   ========================================================================== */
.menu-overlay-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--panel-bg);
  backdrop-filter: blur(25px) saturate(130%);
  -webkit-backdrop-filter: blur(25px) saturate(130%);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  padding: 60px 120px;
  overflow: hidden;
}
.menu-overlay-panel.active {
  transform: translateY(0);
}

/* 霓虹背景发光层 */
.menu-iridescent-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, 
                              rgba(0, 242, 254, 0.15) 0%, 
                              rgba(189, 0, 255, 0.1) 30%, 
                              rgba(255, 0, 127, 0.05) 60%, 
                              transparent 80%);
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
              background 1.0s ease;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: blur(40px);
  z-index: -1;
}
.menu-overlay-panel.active .menu-iridescent-glow {
  opacity: 1;
}

/* 菜单内布局 */
.menu-panel-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.menu-nav-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
}
.menu-nav-item {
  position: relative;
}
.menu-nav-link {
  display: inline-block;
  font-family: var(--font-heavy);
  font-size: 5.5vw;
  line-height: 0.95;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}
.menu-nav-link:hover {
  color: var(--text-main);
  -webkit-text-stroke-color: var(--text-main);
  transform: translateX(15px);
}
.menu-nav-link.active {
  color: var(--text-main);
  -webkit-text-stroke-color: var(--text-main);
}

/* 霓虹色映射 */
.menu-nav-item:nth-child(2) .menu-nav-link:hover {
  color: var(--color-primary);
  -webkit-text-stroke-color: var(--color-primary);
  text-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
}
.menu-nav-item:nth-child(3) .menu-nav-link:hover {
  color: var(--color-accent);
  -webkit-text-stroke-color: var(--color-accent);
  text-shadow: 0 0 25px rgba(189, 0, 255, 0.45);
}
.menu-nav-item:nth-child(4) .menu-nav-link:hover {
  color: var(--color-magenta);
  -webkit-text-stroke-color: var(--color-magenta);
  text-shadow: 0 0 25px rgba(255, 0, 127, 0.45);
}
.menu-nav-item:nth-child(5) .menu-nav-link:hover {
  color: var(--color-success);
  -webkit-text-stroke-color: var(--color-success);
  text-shadow: 0 0 25px rgba(0, 230, 118, 0.45);
}

/* 菜单右侧说明 */
.menu-aside-info {
  text-align: right;
  max-width: 400px;
}
.menu-aside-tagline {
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.menu-aside-address {
  font-family: var(--font-cyber);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  line-height: 2.0;
  text-transform: uppercase;
}

/* 顶部 CLOSE 按钮 */
.menu-close-btn {
  position: absolute;
  top: 40px;
  right: 60px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}
.menu-close-btn:hover {
  color: var(--color-magenta);
}

/* ==========================================================================
   全局弹窗 (Modal)
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}
.modal.active {
  display: flex;
}
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  background: #060609;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-cyber);
  font-size: 10px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 10;
}
.modal-close:hover {
  color: var(--color-magenta);
}
.modal-header {
  padding: 35px 40px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.modal-tag {
  font-family: var(--font-cyber);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.modal-title {
  font-family: var(--font-heavy);
  font-size: 18px;
  line-height: 1.3;
}
.modal-body {
  padding: 30px 40px 40px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  scrollbar-width: thin;
}
.modal-body p {
  margin-bottom: 18px;
}
.modal-body ol, .modal-body ul {
  margin-bottom: 22px;
  padding-left: 20px;
}
.modal-body li {
  margin-bottom: 8px;
}
.modal-body strong {
  color: var(--color-primary);
}
.modal-body code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--color-magenta);
}
.modal-body .code-block {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0 22px;
  font-family: monospace;
  font-size: 11.5px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 灯箱大图 */
.lightbox-wrapper {
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  box-shadow: none;
  border: none;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.lightbox-caption {
  margin-top: 15px;
  text-align: center;
  font-family: var(--font-cyber);
  font-size: 11px;
  letter-spacing: 2px;
  color: #fff;
}

/* ==========================================================================
   动画与关键帧
   ========================================================================== */
@keyframes rotateDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.05);
    opacity: 1.0;
  }
}

@keyframes floatAvatar {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1.5deg);
  }
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 1. 平板与小屏幕 PC (1100px 以下) */
@media (max-width: 1100px) {
  .scroll-section {
    padding-left: 360px;
    padding-right: 60px;
  }
  .resource-grid, .tutorial-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .wallpaper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-visual-wrapper {
    right: 60px;
  }
}

/* 2. 平板与手机端 (992px以下) */
@media (max-width: 992px) {
  .global-header {
    top: 25px;
    left: 30px;
    right: 30px;
  }
  
  .floating-engine-control {
    display: none; /* 移动端隐藏 3D 切换条，以免拥挤 */
  }

  .lateral-info-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 90px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }
  .lateral-panel-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  .scene-prefix, .scene-desc, .lateral-sub-nav, .lateral-footer {
    display: none; /* 移动端隐藏侧边详细信息 */
  }
  .scene-title {
    font-size: 20px;
    letter-spacing: 2px;
  }
  
  .mini-music-player {
    position: fixed;
    bottom: 25px;
    left: 30px;
    right: 30px;
    width: auto;
    background: rgba(4, 4, 6, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 10px;
  }
  
  .scroll-section-wrapper {
    /* 在移动端，我们仍然使用 fixed 重叠，但为顶端横条腾出空间 */
    top: 90px;
    height: calc(100vh - 90px);
  }
  .scroll-section {
    padding: 40px 30px 100px; /* 留出底部音乐播放器空间 */
    justify-content: flex-start;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .scroll-section::-webkit-scrollbar {
    display: none;
  }
  
  .scroll-discover {
    display: none;
  }
  
  /* 首页 */
  .home-title {
    font-size: 38px;
  }
  .home-visual-wrapper {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 30px;
  }
  .avatar-floating-circle {
    width: 160px;
    height: 160px;
  }
  .neon-glow-sphere {
    width: 260px;
    height: 260px;
  }
  
  /* 菜单下拉面板 */
  .menu-overlay-panel {
    padding: 100px 30px 40px;
  }
  .menu-panel-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .menu-nav-link {
    font-size: 8vw;
  }
  .menu-close-btn {
    top: 25px;
    right: 30px;
  }
  .menu-aside-info {
    text-align: left;
  }
  
  .wallpaper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wp-card-sidewave {
    height: 200px;
  }
  
  /* 联系 */
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }
  .contact-info-side {
    width: 100%;
  }
}

/* 3. 小手机端 (576px以下) */
@media (max-width: 576px) {
  .menu-nav-link {
    font-size: 10vw;
  }
  .wallpaper-grid {
    grid-template-columns: 1fr;
  }
  .wp-card-sidewave {
    height: 280px;
  }
}
