/* ... 保留之前的 :root, header, nav 等基础样式 ... */
/* 如果您是追加代码，请确保不要重复定义 :root 和 body 基础属性 */
:root {
  --bg-dark: #0a0a0a;
  /* 极深背景 */
  --panel-bg: #141414;
  /* 面板背景 */
  --input-bg: #252525;
  /* 输入框背景 */
  --accent-gold: #e2c585;
  /* 金色主色调 */
  --accent-gold-hover: #f0d58f;
  --text-main: #ffffff;
  --text-gray: #888888;
  --border-color: #333333;

  /* 字体定义 */
  --font-serif: "Songti SC", "SimSun", "Times New Roman", serif;
  /* 宋体/衬线 */
  --font-sans: "DengXian", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  /* 等线/无衬线 */
  --font-mono: "Consolas", "Monaco", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ================= Header ================= */
header {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.header-left .back-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 14px;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.header-center {
  text-align: center;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
  margin-left: 160px;
}

.logo-subtitle {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #fff;
  letter-spacing: 1px;
  margin-top: 2px;
  margin-left: 160px;
}

.header-right nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-item {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* 激活状态：金色背景 */
.nav-item.active {
  background-color: var(--accent-gold);
  color: #1a1a1a;
  font-weight: bold;
}

.nav-item:hover:not(.active) {
  color: #fff;
}


/* ================= Hero Section (双重背景) ================= */


.hero-section {
  text-align: center;
  padding: 60px 20px 40px;


}

.main-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--accent-gold);
  /* 这里的标题是金色的 */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.description {
  font-family: var(--font-sans);
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.5px;
}

/* ================= PAGE 3: 历史演变 ================= */

.bg-layer {
  position: fixed;
  top: 55%;
  right: 0;
  transform: translateY(-50%);

  width: 50vw;
  height: 80vh;

  background-image: url('./素材补充/未标题-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  /* 图片靠右对齐 */

  pointer-events: none;

  z-index: 0;
  /* 置于底层 */
  opacity: 0.9;

  animation: pulseGlow 10s infinite alternate;
}

/* 呼吸浮动动画 */
@keyframes pulseGlow {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.9;
  }
}

/* 历史页面的主体容器 */
.history-main {
  flex: 1;
  overflow-y: auto;
  /* 允许滚动 */
  position: relative;
  padding: 0 40px;

  z-index: 1;
}

/* 针对历史页面的 Hero 区域调整 */
.hero-history {
  text-align: center;
  padding: 50px 0 60px 0;

  background: transparent;
  border-bottom: none;
}

/* === 时间轴容器 === */
.timeline-container {
  max-width: 800px;
  margin: 0 auto 0 100px;

  position: relative;
  padding-left: 30px;

}

/* 垂直贯穿线 */
.timeline-line {
  position: absolute;
  left: 6px;
  /* 线的水平位置 */
  top: 10px;
  bottom: 50px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-gold) 0%, rgba(226, 197, 133, 0.2) 100%);
  z-index: 1;
}

/* 单个时间节点 */
.timeline-item {
  position: relative;
  margin-bottom: 50px;
  /* 节点间距 */
  opacity: 0;
  /* 初始隐藏，用于JS动画 */
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* 可见状态 */
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 时间轴圆点 */
.timeline-dot {
  position: absolute;
  left: -32px;

  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(226, 197, 133, 0.6);
  /* 发光效果 */
}


/* 年代标题 */
.t-title {
  font-family: var(--font-sans);
  font-size: 23px;
  font-weight: bold;
  color: var(--accent-gold);
  margin-bottom: 8px;
  position: relative;
}

/* 描述文字 */
.t-desc {
  font-family: var(--font-sans);
  font-size: 20px;
  color: #b2b1b1;
  line-height: 1.6;
  max-width: 500px;
}

/* 响应式调整 */
@media (max-width: 900px) {

  .bg-layer {
    display: none;
  }

  .timeline-container {
    margin: 0 auto;
    padding-left: 30px;
  }
}

/* --- 响应式适配 (移动端: 屏幕宽度小于768px) --- */
@media (max-width: 768px) {

  body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }

  header {
    height: auto;
    flex-direction: column;
    /* 改为垂直排列 */
    padding: 15px 15px 10px 15px;
    gap: 15px;
    /* 上下两行之间的间距 */
    position: relative;
  }

  .header-left {
    position: absolute;
    left: 15px;
    top: 20px;
    /* 垂直对齐第一行的Logo */
  }

  .header-center {
    margin: 0;
  }

  .logo-title,
  .logo-subtitle {
    margin-left: 0;
    text-align: center;
  }

  .header-right {
    width: 100%;
    overflow-x: auto;
  }

  .header-right nav ul {
    justify-content: center;
    gap: 8px;
  }

  .nav-item {
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
    /* 保证导航文字不换行 */
  }

  .hero-section {
    padding: 30px 15px 20px;
  }

  .main-title {
    font-size: 24px;
    margin-bottom: 8px;
  }
}