/* ==========================================================================
   怪兽巢穴官网 · 公共样式
   - 所有页面共用的头部导航、页脚、背景、按钮、卡片与正文排版
   - 视觉素材全部复用主题原有图片（TAB 按钮、下载按钮、边框、虚线等）
   ========================================================================== */

@font-face {
  font-family: 'ZiHunBianTaoTi';
  /* 已按常用 3500 汉字子集化（2.1MB → 约 480KB）；极旧浏览器回退到原始字体 */
  src: url('../fonts/display-gb2312.woff2') format('woff2'),
       url('../../images/fonts/字魂扁桃体.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #2bf8d1;
  --brand-deep: #05e1b5;
  --brand-dim: rgba(43, 248, 209, .35);
  --gold: #f0c108;
  --text: #ffffff;
  --text-body: #c3c3c3;
  --text-muted: #8c9593;
  --panel: rgba(0, 0, 0, .5);
  --panel-strong: rgba(6, 14, 14, .82);
  --line-dashed: 1px dashed var(--brand);
  --font-display: 'ZiHunBianTaoTi', "Microsoft YaHei", "微软雅黑", sans-serif;
  --font-body: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --content-width: 1200px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  /* 背景：原版的丛林场景图铺满宽度；图片以下用与图片底部一致的青色扫描线质感延续，
     避免长页面出现重复的恐龙或纯黑底 */
  background-color: #0a1011;
  background-image:
    url('../../images/index/bac/bac.webp'),
    repeating-linear-gradient(180deg, rgba(20, 44, 44, .55) 0 2px, rgba(6, 9, 12, .6) 2px 4px, transparent 4px 7px),
    radial-gradient(120% 60% at 50% 0%, #0f1a1b, #080c0d 70%);
  background-size: 100% auto, auto, 100% 100%;
  background-repeat: no-repeat, repeat, no-repeat;
  position: relative;
}
/* 内页：与原版一致，在背景上加深色遮罩，突出正文 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, .8);
  z-index: -1;
  pointer-events: none;
}
/* 首页：与原版一致，背景不加遮罩，只在顶部和两侧略微压暗以突出内容 */
body.page-home::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 18%, transparent 82%, rgba(0, 0, 0, .35)),
    linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%);
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
button { font-family: inherit; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10000;
  padding: 8px 16px; background: var(--brand); color: #000; font-weight: bold;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.container {
  width: 90%;
  max-width: var(--content-width);
  margin: 0 auto;
}
.site-main { display: block; min-height: 50vh; }

/* ---------- 头部导航 ---------- */
/* 页头背景是一条约 100px 高的岩石带（下方为投影），导航整行在岩石带内垂直居中；
   三栏布局让导航按钮相对整个页面居中，左右分别是 Logo 和下载按钮 */
.site-header {
  width: 100%;
  height: 177px;
  padding: 0;
  background-image: url('../../images/index/top.webp');
  background-size: 100% 100%;
  position: relative;
  z-index: 50;
}
.site-header .nav-menu {
  max-width: var(--content-width);
  width: 100%;
  height: 98px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.site-header .nav-logo { justify-self: start; display: block; line-height: 0; }
.site-header .nav-logo img { width: clamp(130px, 14vw, 200px); height: auto; }
.site-header .nav-main { display: flex; justify-content: center; }
.site-header .nav-list { display: flex; flex-wrap: nowrap; gap: clamp(12px, 2.4vw, 36px); margin: 0; padding: 0; }
.site-header .nav-list > li { list-style: none; position: relative; padding: 10px 0; }

/* 岩石按钮：文字使用与 Logo 同风格的标题字体，银色金属质感。
   按钮保持素材原比例 151:54（不拉伸），最大即素材原尺寸；文字与右侧“游戏下载”同一字号 */
.site-header .dropdown-btn {
  position: relative;
  width: clamp(100px, 10vw, 151px);
  height: auto;
  aspect-ratio: 151 / 54;
  padding: 0;
  border: none;
  border-radius: 0;
  background: url('../../images/index/TAB_off.webp') no-repeat center / 100% 100%;
  color: #eef0ee;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.46vw, 21px);
  font-weight: normal;
  letter-spacing: 2px;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 按钮素材下沿有一道较厚的暗边，可见的石面中心比几何中心略高 */
.site-header .nav-label {
  position: relative;
  top: -1px;
  text-shadow: 0 1px 0 #151716, 0 2px 3px rgba(0, 0, 0, .6);
  transition: filter .2s ease;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .site-header .nav-label {
    background: linear-gradient(180deg, #ffffff 0%, #e6e9e8 44%, #a7aeac 56%, #eef1f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 1px 0 #151716) drop-shadow(0 2px 2px rgba(0, 0, 0, .6));
  }
}
.site-header .dropdown-btn:hover,
.site-header .dropdown-btn:focus-visible,
.site-header .nav-list > li.is-active > .dropdown-btn,
.site-header .nav-list > li.open > .dropdown-btn {
  background-image: url('../../images/index/TAB_on.webp');
}
.site-header .dropdown-btn:hover .nav-label,
.site-header .dropdown-btn:focus-visible .nav-label,
.site-header .nav-list > li.open > .dropdown-btn .nav-label {
  filter: drop-shadow(0 1px 0 #0e100f) drop-shadow(0 0 2px rgba(0, 0, 0, .85));
}
.site-header .nav-list > li.is-active > .dropdown-btn .nav-label {
  filter: drop-shadow(0 1px 0 #0e100f) drop-shadow(0 0 2px rgba(0, 0, 0, .85));
}
/* 当前栏目：石面下方一道青色指示灯 */
.site-header .dropdown-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--brand);
  box-shadow: 0 0 6px rgba(43, 248, 209, .9), 0 0 12px rgba(43, 248, 209, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.site-header .nav-list > li.is-active > .dropdown-btn::after { opacity: 1; }
.site-header .dropdown-btn .caret {
  display: inline-block;
  position: relative;
  top: -1px;
  width: 0; height: 0;
  margin-left: 5px;
  border-top: 6px solid #d9dddc;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  filter: drop-shadow(0 1px 0 #151716);
  transition: transform .2s ease;
}
.site-header .nav-list > li.open > .dropdown-btn .caret { transform: rotate(180deg); }
/* 下拉菜单：与导航按钮同一块石板素材（九宫格拉伸，边框与倒角不变形） */
.site-header .dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(136px, 11vw, 166px);
  margin: 0;
  padding: 2px 0;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 13px 14px 12px;
  border-image: url('../../images/index/TAB_off.webp') 12 13 14 12 fill stretch;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6));
  height: auto;
  min-height: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: normal;
  letter-spacing: 2px;
  display: none;
  z-index: 100;
}
/* 只在点击后展开（旧模板里有悬停展开的样式，这里覆盖掉） */
.site-header .nav-list > .dropdown:not(.open):hover > .dropdown-menu:not(.show) { display: none; }
.site-header .nav-list > li > .dropdown-menu.show, .site-header .nav-list > li.open > .dropdown-menu { display: block; animation: navDropIn .2s ease; }
.site-header .dropdown-menu li, .site-header .dropdown-menu li:hover { display: block; width: auto; list-style: none; margin: 0; padding: 0; background: none; }
/* 刻在石板上的分隔线：一道暗线 + 一道高光 */
.site-header .dropdown-menu li + li { border-top: 1px solid rgba(0, 0, 0, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.site-header .dropdown-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: #e6e9e8;
  text-shadow: 0 1px 0 #111312, 0 2px 3px rgba(0, 0, 0, .6);
  transition: background-color .15s ease, color .15s ease;
}
.site-header .dropdown-menu a:hover, .site-header .dropdown-menu a:focus-visible { background-color: rgba(0, 0, 0, .22); color: #fff; }
.site-header .dropdown-menu li.is-active > a { color: #fff; }
.site-header .dropdown-menu li.is-active > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 6px rgba(43, 248, 209, .9);
}
@keyframes navDropIn {
  from { opacity: 0; margin-top: -6px; }
  to { opacity: 1; margin-top: 0; }
}

.site-header .nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
/* 金色下载按钮：深棕色压印文字，与岩石按钮的石面中线对齐。
   最大即素材原尺寸 199×67（不放大发虚），与左侧 Logo 分量相当；窄屏按原比例缩小 */
.site-header .download-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(124px, 13.8vw, 199px);
  height: auto;
  aspect-ratio: 199 / 67;
  background: url('../../images/index/down.webp') no-repeat center / 100% 100%;
  color: #4a2604;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.46vw, 21px);
  letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255, 236, 170, .8), 0 -1px 0 rgba(120, 60, 0, .3);
  transition: filter .2s ease;
}
.site-header .download-btn span { position: relative; top: -1px; padding-left: 2px; }
.site-header .download-btn:hover { filter: brightness(1.08) saturate(1.05); }

.site-header .nav-toggle {
  display: none;
  width: 48px;
  height: 44px;
  padding: 0;
  /* 方形按钮用石板素材九宫格绘制，倒角不被挤扁 */
  border-style: solid;
  border-color: transparent;
  border-width: 10px 11px 12px 10px;
  border-image: url('../../images/index/TAB_off.webp') 12 13 14 12 fill stretch;
  background: none;
  cursor: pointer;
}
.site-header .nav-toggle span, .site-header .nav-toggle span::before, .site-header .nav-toggle span::after {
  display: block; width: 20px; height: 2px; margin: 0 auto; background: #fff;
  position: relative; transition: transform .2s ease;
}
.site-header .nav-toggle span::before, .site-header .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.site-header .nav-toggle span::before { top: -6px; }
.site-header .nav-toggle span::after { top: 6px; }
.nav-open .site-header .nav-toggle span { background: transparent; }
.nav-open .site-header .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .site-header .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 年龄提示弹窗 ---------- */
.age-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6);
}
.age-popup-overlay.show { display: flex; }
.age-popup {
  width: 90%; max-width: 500px; padding: 30px 40px;
  background: rgba(0, 0, 0, .75); border: 1px solid var(--brand-dim);
  border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}
.age-popup h3 { margin: 0 0 20px; font-size: 18px; text-align: center; color: #fff; }
.age-popup p { margin: 10px 0; font-size: 14px; line-height: 1.6; color: #fff; }
.age-popup .close-btn {
  display: block; margin: 25px auto 0; padding: 10px 30px;
  background: #2E7D32; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px;
}
.age-popup .close-btn:hover { background: #388E3C; }

/* ---------- 页面公共块 ---------- */
.page-head { margin: 30px 0 20px; }
.page-title {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 2px;
  color: #e9eeee;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.page-title::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 8px; height: 80%;
  transform: translateY(-50%) skewX(-8deg);
  background: linear-gradient(180deg, #2bf8d1, #1a8f78);
}
.dashed-line { height: 0; border-bottom: var(--line-dashed); width: 100%; }
.dashed-line--thin { border-bottom-color: rgba(43, 248, 209, .55); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  padding: 18px 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
  color: #ccc;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 22px; color: #8c9593; font-family: var(--font-body); }
.breadcrumb a { color: #ddd; transition: color .2s ease; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--brand); max-width: 28em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 筛选标签 */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 18px 0 26px; }
.filter-tab {
  position: relative;
  padding: 4px 2px;
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  transition: color .2s ease;
}
.filter-tab:hover { color: var(--brand); }
.filter-tab.active { color: var(--brand); }
.filter-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand);
}

/* 分页（框架输出 Bootstrap 结构） */
.pager-wrap { margin: 40px 0 10px; display: flex; justify-content: center; }
.pager-wrap .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager-wrap .pagination li a,
.pager-wrap .pagination li span {
  display: inline-block; min-width: 40px; padding: 8px 14px; text-align: center;
  border: 1px solid rgba(43, 248, 209, .45); border-radius: 4px;
  color: var(--brand); background: rgba(0, 0, 0, .35); transition: all .2s ease;
}
.pager-wrap .pagination li a:hover { background: var(--brand); color: #001a14; }
.pager-wrap .pagination li.active span { background: var(--brand); color: #001a14; font-weight: bold; }
.pager-wrap .pagination li.disabled span { color: #555; border-color: #333; cursor: not-allowed; }

.empty-state {
  padding: 70px 20px; text-align: center; color: var(--text-muted);
  border: 1px dashed rgba(43, 248, 209, .35); border-radius: 6px; background: rgba(0, 0, 0, .35);
}
.empty-state strong { display: block; margin-bottom: 8px; font-size: 18px; color: #ddd; }

.btn-frame {
  display: inline-block; min-width: 168px; padding: 10px 24px; text-align: center;
  color: #e6fffa; font-weight: bold; letter-spacing: 1px;
  background: linear-gradient(180deg, rgba(31, 92, 80, .9), rgba(13, 48, 42, .9));
  border: 1px solid rgba(43, 248, 209, .55);
  box-shadow: inset 0 0 12px rgba(43, 248, 209, .15);
  transition: all .2s ease;
}
.btn-frame:hover { color: #fff; border-color: var(--brand); box-shadow: 0 0 12px rgba(43, 248, 209, .35); }

/* ==========================================================================
   资讯列表：每篇一行（日期 / 标题与摘要 / 配图）
   - 有图无图同一节奏：左侧日期列固定，配图统一 16:9 放在右侧，无图时文字占满
   - 方图、竖图完整显示在画框中央，两侧用同图模糊填充（与首页头条一致）
   ========================================================================== */
.news-list { border-top: 1px dashed rgba(43, 248, 209, .35); }
.news-row { position: relative; border-bottom: 1px dashed rgba(43, 248, 209, .35); }
.news-row::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px;
  background: var(--brand); opacity: 0; transition: opacity .25s ease;
}
.news-row:hover::before { opacity: 1; }
.news-row--top::before { background: var(--gold); opacity: 1; }
.news-row__link {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 316px; gap: 0 32px; align-items: center;
  padding: 26px 18px 26px 0; color: inherit; transition: background-color .25s ease;
}
.news-row--text .news-row__link { grid-template-columns: 96px minmax(0, 1fr); padding-top: 28px; padding-bottom: 28px; }
.news-row__link:hover { background: linear-gradient(90deg, rgba(43, 248, 209, .07), rgba(43, 248, 209, 0) 72%); }

/* 日期 */
.news-row__date {
  align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1px solid rgba(43, 248, 209, .16);
}
.news-row__date b {
  font-family: var(--font-display); font-weight: normal; font-size: 42px; line-height: 1;
  color: #e9eeee; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); transition: color .2s ease;
}
.news-row__date span { margin-top: 8px; font-size: 13px; letter-spacing: 1px; color: var(--text-muted); }
.news-row:hover .news-row__date b { color: var(--brand); }
.news-row--top .news-row__date b { color: var(--gold); }

/* 标题与摘要 */
.news-row__body { min-width: 0; }
.news-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.news-row__tag {
  padding: 1px 8px; font-size: 12px; line-height: 18px; font-weight: bold;
  color: #001a14; background: var(--brand); border-radius: 2px;
}
.news-row__tag--top { background: var(--gold); }
.news-row__title {
  margin: 0; font-size: 21px; line-height: 1.45; font-weight: bold; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s ease;
}
.news-row:hover .news-row__title { color: var(--brand); }
.news-row__excerpt {
  margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: #b9c2c0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row__foot { display: flex; align-items: center; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.news-row__date-inline { display: none; }
.news-row__more { margin-left: auto; }
.news-row__more img { display: block; width: 64px; height: auto; opacity: .8; transition: opacity .2s ease, transform .2s ease; }
.news-row:hover .news-row__more img { opacity: 1; transform: translateX(3px); }

/* 配图 */
.news-row__thumb {
  position: relative; padding: 5px;
  border: 12px solid transparent;
  border-image: url('../../images/index/kuang.webp') 16 fill stretch;
}
.news-row__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1213; }
.news-row__img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; transition: transform .5s ease;
}
.news-row__thumb--portrait .news-row__img,
.news-row__thumb--square .news-row__img { object-fit: contain; }
.news-row__backdrop {
  position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px);
  object-fit: cover; filter: blur(14px) brightness(.45) saturate(1.1);
}
.news-row:hover .news-row__img { transform: scale(1.05); }

/* 文章页底部“相关阅读”：紧凑版 */
.news-list--compact .news-row__link { grid-template-columns: 80px minmax(0, 1fr) 240px; gap: 0 26px; padding-top: 18px; padding-bottom: 18px; }
.news-list--compact .news-row--text .news-row__link { grid-template-columns: 80px minmax(0, 1fr); }
.news-list--compact .news-row__date b { font-size: 34px; }
.news-list--compact .news-row__title { font-size: 18px; }
.news-list--compact .news-row__excerpt { -webkit-line-clamp: 1; }
.news-list--compact .news-row__foot { display: none; }

/* ==========================================================================
   正文排版（文章 / 单页）
   ========================================================================== */
.article { max-width: 920px; margin: 0 auto; padding: 36px 0 10px; }
.article-header { text-align: center; margin-bottom: 28px; }
.article-title {
  font-size: 30px; line-height: 1.4; font-weight: bold; color: #fff;
  letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.article-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
  margin-top: 12px; font-size: 14px; color: #a7b0ae;
}
.article-meta a:hover { color: var(--brand); }
.article-cover { margin: 0 auto 30px; text-align: center; }
.article-cover img {
  display: inline-block; width: auto; max-width: 100%; height: auto; max-height: 640px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
}
.article-lead {
  margin: 0 0 26px; padding: 14px 18px;
  font-size: 15px; line-height: 1.8; color: #d8dedd;
  border-left: 3px solid var(--brand); background: rgba(43, 248, 209, .06);
}

.prose {
  font-size: 17px;
  line-height: 1.95;
  color: #d7d7d7;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.05em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: #fff; font-weight: bold; line-height: 1.45; }
.prose h2 {
  margin-top: 1.9em; padding-left: 14px; font-size: 22px;
  border-left: 4px solid var(--brand);
}
.prose h3 { margin-top: 1.6em; font-size: 19px; }
.prose h4, .prose h5, .prose h6 { margin-top: 1.4em; font-size: 17px; color: #eaeaea; }
.prose strong, .prose b { color: #fff; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(43, 248, 209, .5); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.6em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose blockquote {
  padding: 12px 18px; color: #cfd6d5;
  border-left: 3px solid var(--brand); background: rgba(43, 248, 209, .06);
}
.prose hr { height: 0; border: 0; border-top: var(--line-dashed); margin: 2em 0; }
.prose img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.prose figure { margin: 1.8em 0; text-align: center; }
.prose figure img { box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--text-muted); text-align: center; }
.prose video { display: block; width: 100%; max-height: 70vh; margin: 1.6em auto; background: #000; }
.prose .embed { position: relative; margin: 1.6em 0; aspect-ratio: 16 / 9; background: #000; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose pre {
  padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.6;
  background: rgba(0, 0, 0, .55); border: 1px solid #2a3533; border-radius: 4px;
}
.prose code { font-family: Consolas, Monaco, monospace; font-size: .9em; color: #9ff5e4; }
.prose pre code { color: #dfe6e5; }
.prose mark { background: rgba(240, 193, 8, .35); color: #fff; padding: 0 2px; }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid rgba(43, 248, 209, .25); vertical-align: top; }
.prose th { background: rgba(43, 248, 209, .12); color: #fff; font-weight: bold; text-align: left; }
.prose tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }

.article-footer { margin-top: 48px; }
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-top: 22px; border-top: var(--line-dashed);
}
.post-nav a, .post-nav span {
  display: block; padding: 12px 16px; font-size: 14px; color: #cfd6d5;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(43, 248, 209, .2);
  transition: border-color .2s ease, color .2s ease;
}
.post-nav a:hover { color: var(--brand); border-color: var(--brand); }
.post-nav small { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 12px; }
.post-nav .is-next { text-align: right; }
.post-nav span { color: #666; }

.related { margin-top: 56px; }
.related-title {
  margin-bottom: 22px; padding-left: 14px; font-family: var(--font-display); font-size: 24px;
  border-left: 5px solid var(--brand);
}

/* ---------- 页脚 ---------- */
.site-footer {
  display: block;
  position: relative;
  margin-top: 80px;
  padding: 46px 0 38px;
  text-align: center;
  color: #8f9a98;
  font-size: 12px;
  line-height: 1.8;
  /* 与顶部导航同一块岩石材质，压暗后作为底座 */
  background:
    linear-gradient(180deg, rgba(6, 11, 11, .7), rgba(3, 6, 6, .88) 65%, rgba(2, 4, 4, .96)),
    url('../../images/index/footer-stone.webp') center top / cover #050909;
  border-top: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .55);
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 248, 209, .55) 30%, rgba(43, 248, 209, .55) 70%, transparent);
}
.site-footer a { color: inherit; transition: color .2s ease; }
.site-footer a:hover { color: var(--brand); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer .footer-inner { width: 90%; max-width: var(--content-width); margin: 0 auto; }

/* 品牌行：Logo | 标语 | 适龄提示，两端分量相当、以标语为中心左右对称 */
.site-footer .footer-brand { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; }
.site-footer .footer-logo { flex-shrink: 0; line-height: 0; }
.site-footer .footer-logo img { width: 140px; height: auto; }
.site-footer .footer-slogan {
  position: relative; margin: 0; padding: 0 28px;
  font-size: 15px; font-weight: bold; color: #e9efee; letter-spacing: 1px;
}
.site-footer .footer-slogan::before,
.site-footer .footer-brand--age .footer-slogan::after,
.site-footer .footer-logo + .footer-age::before {
  content: ""; position: absolute; top: 50%; width: 1px; height: 30px; transform: translateY(-50%);
  background: rgba(255, 255, 255, .18);
}
.site-footer .footer-slogan::before { left: 0; }
.site-footer .footer-slogan::after { right: 0; }
.site-footer .footer-logo + .footer-age { padding-left: 28px; }
.site-footer .footer-logo + .footer-age::before { left: 0; }
.site-footer .footer-age {
  position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  min-width: 140px; /* 与 Logo 同宽，标语正好居中 */
  margin: 0; padding: 0; border: none; background: none; cursor: pointer; text-align: left;
  opacity: .9; transition: opacity .2s ease;
}
.site-footer .footer-age:hover, .site-footer .footer-age:focus-visible { opacity: 1; }
.site-footer .footer-age img { display: block; width: auto; height: 46px; border-radius: 2px; }
.site-footer .footer-age__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.site-footer .footer-age__text b { font-size: 13px; color: #e9efee; letter-spacing: 1px; }
.site-footer .footer-age__text span { font-size: 12px; color: #9aa6a4; }
.site-footer .footer-age:hover .footer-age__text span { color: #cfd6d5; }

.site-footer .footer-links ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  margin-top: 26px; font-size: 14px; color: #cfd6d5;
}
.site-footer .footer-links li { display: flex; align-items: center; }
.site-footer .footer-links li + li::before { content: ""; width: 1px; height: 12px; margin: 0 16px; background: rgba(255, 255, 255, .2); }

.site-footer .footer-advice {
  max-width: 760px; margin: 24px auto 0; padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px; color: #b3bdbb; letter-spacing: .5px;
}
.site-footer .footer-advice span { display: block; }
.site-footer .footer-meta { margin-top: 18px; }
.site-footer .footer-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px; }
.site-footer .footer-info + .footer-info { margin-top: 2px; }
.site-footer .footer-info a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .18); text-underline-offset: 3px; }
.site-footer .footer-info a:hover { text-decoration-color: currentColor; }
.site-footer .footer-record a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.site-footer .footer-record img { width: 16px; height: 16px; }
.site-footer .footer-copyright { margin: 6px 0 0; font-size: 12px; color: #6d7876; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .site-header .nav-menu { padding: 0 20px; }
}
@media (max-width: 992px) {
  .news-row__link { grid-template-columns: 84px minmax(0, 1fr) 248px; gap: 0 24px; }
  .news-row--text .news-row__link { grid-template-columns: 84px minmax(0, 1fr); }
  .news-row__date b { font-size: 36px; }
}
/* 导航按钮放不下时（由 site.js 检测，窄屏默认）收起为菜单按钮 */
.nav-collapsed .site-header { height: auto; min-height: 96px; padding: 12px 0; background-size: cover; background-position: center top; }
.nav-collapsed .site-header .nav-menu { display: flex; flex-direction: row; justify-content: space-between; height: auto; }
.nav-collapsed .site-header .nav-toggle { display: block; order: 3; }
.nav-collapsed .site-header .nav-main {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; padding: 12px 5% 20px;
  background: rgba(5, 10, 10, .97); border-bottom: 1px solid var(--brand-dim);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .6);
}
.nav-collapsed.nav-open .site-header .nav-main { display: block; }
.nav-collapsed .site-header .nav-list { flex-direction: column; align-items: center; gap: 10px; }
.nav-collapsed .site-header .nav-list > li { padding: 0; width: 184px; }
/* 石板按钮保持素材原比例（151:54），只按尺寸缩放，不横向拉伸 */
.nav-collapsed .site-header .dropdown-btn { width: 184px; height: auto; aspect-ratio: 151 / 54; font-size: 20px; background-size: 100% 100%; }
.nav-collapsed .site-header .dropdown-menu {
  position: static; transform: none; width: 184px; margin-top: 6px; filter: none;
}
.nav-collapsed .site-header .dropdown-menu a { height: 42px; }
.nav-collapsed .site-header .nav-actions { margin-left: auto; }
.nav-collapsed .site-header .nav-logo img { width: 130px; }
.nav-collapsed .site-header .download-btn { width: 128px; font-size: 16px; }
/* 未启用脚本时：导航按钮自动换行，保证可用 */
html:not(.js) .site-header .nav-list { flex-wrap: wrap; justify-content: center; }
html:not(.js) .site-header { height: auto; min-height: 177px; }
html:not(.js) .site-header .nav-menu { height: auto; min-height: 98px; }
@media (max-width: 640px) {
  .container { width: auto; margin: 0 16px; }
  .page-title { font-size: 30px; }
  .breadcrumb { font-size: 15px; }
  .breadcrumb li + li::before { margin: 0 10px; }
  .article { padding-top: 20px; }
  .article-title { font-size: 23px; }
  .prose { font-size: 16px; line-height: 1.9; }
  .prose h2 { font-size: 20px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .is-next { text-align: left; }
  .nav-collapsed .site-header .download-btn { width: 116px; font-size: 15px; letter-spacing: 1px; }
  .site-header .nav-actions { gap: 6px; }
  .site-footer { margin-top: 56px; padding: 34px 0 30px; }
  .site-footer .footer-inner { width: auto; margin: 0 16px; }
  .site-footer .footer-brand { gap: 12px 0; }
  .site-footer .footer-logo img { width: 120px; }
  .site-footer .footer-slogan { order: 3; flex-basis: 100%; padding: 0; font-size: 14px; text-align: center; }
  .site-footer .footer-slogan::before, .site-footer .footer-slogan::after { display: none; }
  /* 手机：标语换到下一行，Logo 与适龄提示并排成对，中间一道分隔线 */
  .site-footer .footer-age { order: 2; margin-left: 20px; padding-left: 20px; }
  .site-footer .footer-age::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 30px; transform: translateY(-50%);
    background: rgba(255, 255, 255, .18);
  }
  .site-footer .footer-age img { height: 40px; }
  .site-footer .footer-links ul { margin-top: 20px; font-size: 13px; }
  .site-footer .footer-links li + li::before { margin: 0 10px; }
  .site-footer .footer-advice { margin-top: 18px; padding: 12px 0; font-size: 12px; letter-spacing: 0; }
  .site-footer .footer-advice span { display: inline; }
  .site-footer .footer-info { gap: 0 14px; }
}
@media (max-width: 767px) {
  .news-row::before { display: none; }
  .news-row__link,
  .news-list--compact .news-row__link { grid-template-columns: minmax(0, 1fr) 128px; gap: 0 14px; align-items: start; padding: 18px 0; }
  .news-row--text .news-row__link,
  .news-list--compact .news-row--text .news-row__link { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .news-row__date { display: none; }
  .news-row__date-inline { display: inline; }
  .news-row__meta { margin-bottom: 8px; }
  .news-row__title, .news-list--compact .news-row__title { font-size: 17px; -webkit-line-clamp: 3; }
  .news-row__excerpt { margin-top: 6px; font-size: 13px; line-height: 1.7; }
  .news-row--media .news-row__excerpt { -webkit-line-clamp: 2; }
  .news-row__foot, .news-list--compact .news-row__foot { display: flex; margin-top: 8px; font-size: 12px; gap: 12px; }
  .news-row__more { display: none; }
  .news-row__thumb { padding: 3px; border-width: 8px; }
  .news-row__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 400px) {
  .news-row__link, .news-list--compact .news-row__link { grid-template-columns: minmax(0, 1fr) 104px; }
  .news-row--media .news-row__excerpt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
