/* ==========================================================================
   赛风 (Saifeng) 官方生产级核心样式表
   域名：saifeng.my
   设计主题：Deep Space Meteorite Black & Supernova Cyber Nuclear Gold / Pulsar Quantum Cyan
   特性：深空陨铁黑曜底色 + 极超新星核能金 / 脉冲量子天青蓝粒子流态美学
   ========================================================================== */

:root {
  /* 基础与表面背景色彩系统 */
  --bg-deep: #05070b;
  --bg-base: #080c14;
  --bg-surface: #0e1422;
  --bg-card: rgba(16, 24, 39, 0.75);
  --bg-card-hover: rgba(22, 33, 54, 0.9);
  --bg-elevated: #162033;
  --bg-glass: rgba(14, 20, 34, 0.85);

  /* 核心高能量渐变与重音系统 */
  --gold-supernova: #ffd000;
  --gold-cyber: #ffb800;
  --gold-amber: #f59e0b;
  --gold-glow: rgba(255, 208, 0, 0.25);

  --cyan-pulsar: #00f0ff;
  --cyan-quantum: #00d4ff;
  --cyan-electric: #38bdf8;
  --cyan-glow: rgba(0, 240, 255, 0.25);

  /* 状态与辅助色 */
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.2);
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;

  /* 文字系统 (严格符合 WCAG AAA 对比度) */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #05070b;

  /* 边框系统 */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(255, 208, 0, 0.35);
  --border-cyan: rgba(0, 240, 255, 0.35);

  /* 阴影与发光效果 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-gold-glow: 0 0 25px rgba(255, 208, 0, 0.2);
  --shadow-cyan-glow: 0 0 25px rgba(0, 240, 255, 0.2);

  /* 字体族 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;

  /* 布局与边界 */
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --header-height: 74px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 15% 10%, rgba(255, 208, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
    var(--bg-deep);
}

/* 顶部公告条 */
.top-notice-bar {
  background: linear-gradient(90deg, rgba(255, 208, 0, 0.12), rgba(0, 240, 255, 0.12));
  border-bottom: 1px solid rgba(255, 208, 0, 0.2);
  padding: 8px 16px;
  font-size: 0.84rem;
  color: var(--text-main);
  text-align: center;
  position: relative;
  z-index: 101;
}

.top-notice-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-notice-bar .badge-gold {
  background: var(--gold-supernova);
  color: var(--text-inverse);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-notice-bar a {
  color: var(--cyan-pulsar);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* 页面通用容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部固定导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 品牌 Logo (严禁带域名后缀，纯正"赛风") */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-supernova) 0%, var(--cyan-pulsar) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(255, 208, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.brand-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(45deg);
  animation: logoGlint 4s infinite linear;
}

@keyframes logoGlint {
  0% { transform: translateX(-100%) rotate(45deg); }
  20%, 100% { transform: translateX(100%) rotate(45deg); }
}

.brand-text {
  background: linear-gradient(90deg, #ffffff 40%, var(--gold-supernova) 80%, var(--cyan-pulsar) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 导航链接 */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-supernova), var(--cyan-pulsar));
  border-radius: 2px;
}

/* 头部操作区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 1.4rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* 移动端菜单抽屉 */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 24px;
  z-index: 99;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link.active {
  color: var(--cyan-pulsar);
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  line-height: 1.2;
}

/* 赛博核能金主按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-supernova) 0%, var(--gold-cyber) 100%);
  color: #05070b;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffe043 0%, var(--gold-supernova) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 208, 0, 0.45);
}

/* 量子天青副按钮 */
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-pulsar) 0%, #0ea5e9 100%);
  color: #05070b;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #4ef5ff 0%, var(--cyan-pulsar) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45);
}

/* 描边按钮 */
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan-pulsar);
  color: var(--cyan-pulsar);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* 渐变文本 */
.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 10%, var(--gold-supernova) 70%, var(--gold-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 10%, var(--cyan-pulsar) 70%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-fusion {
  background: linear-gradient(90deg, var(--gold-supernova) 0%, var(--cyan-pulsar) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 标签徽章 */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 208, 0, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-supernova);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.section-badge-cyan {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--border-cyan);
  color: var(--cyan-pulsar);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-supernova);
  box-shadow: 0 0 10px var(--gold-supernova);
  animation: pulseBeacon 1.8s infinite;
}

.section-badge-cyan .pulse-indicator {
  background: var(--cyan-pulsar);
  box-shadow: 0 0 10px var(--cyan-pulsar);
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* 核心章节标题 */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 通用网格布局 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 通用卡片容器 */
.cyber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.cyber-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), var(--shadow-cyan-glow);
}

.cyber-card-gold:hover {
  border-color: var(--border-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), var(--shadow-gold-glow);
}

/* 页脚统一样式 (严禁包含 XML 网站地图 文本链接) */
.site-footer {
  margin-top: auto;
  background: #030407;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px 0;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-pulsar), var(--gold-supernova), transparent);
  opacity: 0.4;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--cyan-pulsar);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .section-title {
    font-size: 2rem;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

