/* ===== Yixuan Han 站共用基础（1:1 复刻自 Figma 1.2.3 / 2. Yixuan Han） ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --ink: #eaf0ed;        /* 导航/标题米白 */
  --ink-soft: #d5ddd8;   /* 副题/正文灰绿 */
  --gold: #bea06d;       /* 章节编号/激活金 */
  --gold-ring: rgba(219, 178, 107, 0.95);
  --cream: #e8ddc8;      /* 激活竖线奶油色 */
  --rule: #8a9ba0;       /* 顶部分隔线 */
  --overlay: #04171d;    /* 背景压暗层 */
  --serif: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, serif;
  --sans: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: #0a1a20; }
body { font-family: var(--sans); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { display: block; }

/* 画板：1440 定宽居中，与 Figma 画布 1px = 1px 对应 */
.canvas { position: relative; width: 1440px; margin: 0 auto; overflow: hidden; }

/* ===== 顶部导航（各页通用，y=30，top rule y=76） ===== */
/* 结构：外层 <div class="nav-item nav-XXX"> 为定位容器（原外层 <a> 内嵌下拉 <a>，
   构成 HTML 非法的 <a> 嵌套，浏览器会拆散结构），主链接为内部 <a class="nav-link">。
   div 内可合法包含 <div class="dropdown">（span 只许 phrasing content，会构成
   规范性违规）；left/width/字号/行高与原 <a> 完全一致，最终视觉位置不变。 */
/* z-index 31：须高于 .top-rule 的 30（同 30 时 top-rule 在 DOM 后、命中测试压住
   悬停桥 y76–77 那两行）；两者在视觉上并不重叠，提层不改变任何渲染。 */
.nav { position: absolute; top: 30px; height: 22px; z-index: 31; font-family: var(--sans); }
.nav-item {
  position: absolute; top: 0; height: 22px;
  font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--ink); line-height: 22px;
}
.nav-item .nav-link { display: block; width: 100%; height: 22px; }
.nav-item:hover > .nav-link, .nav-item .nav-link.active { color: var(--gold); }
.nav-home        { left: 657px; width: 54px; }
.nav-perspectives{ left: 760px; width: 134px; }
.nav-community   { left: 941px; width: 112px; }
.nav-rhythm      { left: 1104px; width: 77px; }
.nav-about       { left: 1232px; width: 63px; }

.top-rule { position: absolute; left: 144px; top: 76px; width: 1152px; height: 1px; background: var(--rule); z-index: 30; }

/* 下拉菜单（310×156，金色左边框，3 项）—— 以 div.nav-item（绝对定位）为基准。
   2026-11-02 甲方要求：二级导航字号 20px、默认白色、悬停变黄（--gold），
   面板相应加宽 250→310、条目 210→270 以容纳 20px 文字不裁切。
   2026-11-05 甲方要求：二级菜单与一级导航间距过大 → 面板由 top:69px 收紧至 top:34px
   （一级导航文字盒高 22px，间隙 12px），悬停桥相应缩短为 12px。 */
.dropdown {
  display: none; position: absolute; top: 34px; left: 0; width: 310px; height: 156px;
  background: #0c2029;
  border-left: 2px solid var(--gold);
  z-index: 40;
}
.dropdown a { position: absolute; left: 20px; font-size: 20px; font-weight: 400; letter-spacing: 0; line-height: 22px; color: #FFFFFF; width: 270px; transition: color .15s ease-out; }
.dropdown a:hover { color: var(--gold); }
.dropdown a:first-child { font-weight: 400; color: #FFFFFF; }
.dropdown a:first-child:hover { color: var(--gold); }
.dropdown a:nth-child(1) { top: 18px; }
.dropdown a:nth-child(2) { top: 64px; }
.dropdown a:nth-child(3) { top: 110px; }
.nav-item:hover .dropdown { display: block; }

/* 悬停桥：导航项盒高 22px（绝对 y30–52），下拉 top:34px（绝对 y64 起），
   中间 12px 间隙不在 .nav-item 盒内——鼠标穿过间隙时 :hover 失效，下拉立即
   display:none，菜单实际不可点。::after 透明占位铺满间隙（top:100% 即 22px，
   22+12=34 恰与下拉顶边相接），使下移全程保持悬停；不可见、不占布局、
   不改任何坐标。仅给带下拉的三项加桥（HOME/ABOUT 无下拉，不必覆盖下方）。 */
.nav-perspectives::after,
.nav-community::after,
.nav-rhythm::after {
  content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 12px;
}

/* 长页底部返回链接 */
.back-link {
  position: absolute; font-size: 16px; color: var(--ink-soft); letter-spacing: 0.02em;
}
.back-link:hover { color: var(--gold); }

/* ===== 复用组件：PDF 文档查看卡（#dfceb1 外卡 + #f6f2e9 内纸） ===== */
.pdf-card {
  background: #dfceb1; border-radius: 8px; padding: 40px;
  box-shadow: inset 0 0 0 1px rgba(220, 226, 213, 0.95); /* #dce2d5f2 */
}
.pdf-toolbar { position: relative; height: 22px; margin-bottom: 30px; }
.pdf-toolbar .label { font-size: 14px; letter-spacing: 0.14em; color: #343b34; font-weight: 400; }
.pdf-toolbar .open { position: absolute; right: 0; top: 0; font-size: 14px; letter-spacing: 0.14em; color: #343b34; }
.pdf-paper {
  background: #f6f2e9; border-radius: 8px; overflow: hidden; position: relative;
}
.pdf-paper img { width: 100%; height: auto; }

/* ===== 复用组件：视频/音频条（▷） ===== */
.media-bar {
  position: relative; background: rgba(10, 31, 38, 0.65);
  border: 1px solid rgba(138, 155, 160, 0.35); border-radius: 8px;
  display: flex; align-items: center;
}
.media-bar .play {
  width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--gold);
}
.media-bar .title { font-size: 22px; color: var(--ink); font-weight: 400; }
