* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  color-scheme: light;
  --page-bg: #f5f4ee;
  --page-text: #19201b;
  --page-backdrop: linear-gradient(115deg, rgba(244, 241, 232, .94), rgba(232, 238, 229, .72) 48%, rgba(246, 242, 233, .9)), radial-gradient(circle at 82% 18%, rgba(154, 64, 52, .16), transparent 30%);
  --frame-border: rgba(58, 70, 48, .12);
  --nav-bg: rgba(232, 233, 229, .92);
  --nav-bg-strong: rgba(246, 246, 242, .98);
  --nav-text: #252b26;
  --nav-muted: #515a52;
  --nav-hover: #7c3029;
  --nav-border: rgba(31, 35, 31, .12);
  --nav-shadow: 0 12px 28px rgba(27, 30, 25, .16), inset 0 -1px 0 rgba(255, 255, 255, .72);
  --brand-bg: #7f2c26;
  --brand-text: #fff4d2;
  --accent: #8b3a32;
  --heading: #151b16;
  --muted: #3f493f;
  --primary-bg: #202d22;
  --primary-text: #fff6da;
  --secondary-bg: rgba(255, 255, 255, .56);
  --secondary-text: #243425;
  --panel-bg: rgba(255, 255, 255, .6);
  --panel-border: rgba(58, 70, 48, .12);
  --feature-bg: linear-gradient(135deg, rgba(255, 250, 237, .95), rgba(245, 238, 221, .85)), linear-gradient(90deg, rgba(126, 45, 38, .1), transparent);
  --feature-border: rgba(130, 47, 38, .2);
  --body-text: #3e463d;
  --footer-bg: rgba(247, 246, 240, .9);
  --footer-text: #405042;
  --slide-bg: #f7f7f2;
  --dot-bg: rgba(38, 45, 38, .28);
  --dot-active: rgba(30, 35, 30, .84);
}
[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #11130f;
  --page-text: #ece7d8;
  --page-backdrop: linear-gradient(115deg, rgba(16, 18, 15, .98), rgba(24, 28, 23, .9) 48%, rgba(13, 15, 13, .96)), radial-gradient(circle at 82% 18%, rgba(144, 52, 43, .18), transparent 30%);
  --frame-border: rgba(238, 230, 202, .1);
  --nav-bg: rgba(28, 30, 27, .94);
  --nav-bg-strong: rgba(38, 41, 37, .98);
  --nav-text: #f1ecd9;
  --nav-muted: rgba(241, 236, 217, .78);
  --nav-hover: #ffd36b;
  --nav-border: rgba(255, 255, 255, .12);
  --nav-shadow: 0 12px 28px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(255, 255, 255, .08);
  --brand-bg: #9b3a31;
  --brand-text: #fff3cf;
  --accent: #d66c5f;
  --heading: #f5efdf;
  --muted: #c6c3b5;
  --primary-bg: #f0db9a;
  --primary-text: #171713;
  --secondary-bg: rgba(255, 255, 255, .08);
  --secondary-text: #f2ead3;
  --panel-bg: rgba(28, 31, 27, .72);
  --panel-border: rgba(255, 255, 255, .1);
  --feature-bg: linear-gradient(135deg, rgba(35, 34, 28, .96), rgba(45, 38, 31, .88)), linear-gradient(90deg, rgba(183, 72, 60, .16), transparent);
  --feature-border: rgba(222, 180, 112, .18);
  --body-text: #d8d4c5;
  --footer-bg: rgba(16, 18, 15, .9);
  --footer-text: #d7d1be;
  --slide-bg: #20231f;
  --dot-bg: rgba(238, 230, 202, .28);
  --dot-active: rgba(255, 235, 176, .9);
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  transition: background-color .18s ease, color .18s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.siteShell { min-height: 100vh; padding: 78px clamp(16px, 4vw, 54px) 78px; position: relative; }
.siteShell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    var(--page-backdrop);
}
.siteShell::after {
  content: "";
  position: fixed;
  inset: 16px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid var(--frame-border);
}
.topNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 54px);
  color: var(--nav-text);
  background: linear-gradient(180deg, var(--nav-bg-strong), var(--nav-bg));
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 0; white-space: nowrap; }
.brandMark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nav-border);
  background: var(--brand-bg);
  color: var(--brand-text);
  border-radius: 6px;
  font-weight: 800;
}
.navLinks { display: flex; align-items: center; gap: 22px; color: var(--nav-muted); font-size: 14px; white-space: nowrap; }
.menuButton { display: none; }
.navLinks a, .searchButton { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 8px 0; }
.navLinks a {
  position: relative;
  border-radius: 6px;
}
.navLinks a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--nav-hover);
  opacity: 0;
  transform: scaleX(.2);
  transition: opacity .16s ease, transform .16s ease;
}
.navLinks a:hover, .searchButton:hover, .navLinks a.isActive { color: var(--nav-hover); }
.navLinks a:hover::after, .navLinks a.isActive::after {
  opacity: 1;
  transform: scaleX(1);
}
.navLinks a.isActive {
  font-weight: 800;
}
.searchButton {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--nav-border);
  background: rgba(255, 255, 255, .12);
}
.siteSearch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.siteSearch input {
  width: 138px;
  height: 32px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 0 12px;
  outline: none;
  background: rgba(255, 255, 255, .22);
  color: var(--nav-text);
  font-family: inherit;
}
.siteSearch input::placeholder { color: var(--nav-muted); }
.themeSwitch {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}
.themeSwitch button {
  height: 24px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
}
.themeSwitch button[aria-pressed="true"] {
  background: var(--nav-text);
  color: var(--nav-bg-strong);
}
.hero {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(420px, 1.16fr);
  align-items: center;
  gap: clamp(26px, 4.6vw, 72px);
  padding: 24px 0 58px;
}
.pageMain { min-height: calc(100vh - 150px); padding: 40px 0 58px; }
.pageTitle {
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.1;
  color: var(--heading);
}
.heroText { max-width: 640px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 700; font-size: 14px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(42px, 6.7vw, 86px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--heading);
}
.summary { margin: 24px 0 0; max-width: 610px; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.78; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.primaryAction, .secondaryAction {
  min-width: 142px;
  height: 44px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--primary-bg);
  cursor: pointer;
}
.primaryAction { background: var(--primary-bg); color: var(--primary-text); }
.primaryAction .ri-windows-fill { font-size: 18px; line-height: 1; }
.secondaryAction { background: var(--secondary-bg); color: var(--secondary-text); }
.gallery { min-width: 0; width: 100%; }
.galleryViewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.galleryViewport:active { cursor: grabbing; }
.galleryTrack { display: flex; align-items: center; will-change: transform; }
.slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  padding: 0 clamp(4px, 1vw, 10px);
}
.slidePreview {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  padding: 0;
  border: 1px solid rgba(54, 70, 49, .15);
  border-radius: 8px;
  overflow: hidden;
  background: var(--slide-bg);
  box-shadow: 0 26px 70px rgba(34, 42, 31, .22);
  cursor: zoom-in;
}
.slide img { width: 100%; height: 100%; object-fit: fill; display: block; background: var(--slide-bg); pointer-events: none; }
.slide figcaption {
  position: absolute;
  left: 24px;
  bottom: 16px;
  max-width: calc(100% - 48px);
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(21, 24, 20, .78);
  color: #fff5d8;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.slide:hover figcaption, .slide:focus-within figcaption { opacity: 1; transform: translateY(0); }
.galleryDots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.galleryDots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--dot-bg);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}
.galleryDots button.isActive { width: 22px; background: var(--dot-active); }
.contentSection, .storySection {
  max-width: 1120px;
  margin: 0 auto 54px;
  padding: 54px clamp(18px, 5vw, 58px);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.sectionHead { margin-bottom: 24px; }
.sectionHead h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; color: var(--heading); }
.featureGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.featureBlock {
  min-height: 116px;
  border: 1px solid var(--feature-border);
  background:
    var(--feature-bg);
  border-radius: 4px;
}
.featureTitle {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--heading);
  text-align: left;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
.featureTitle i { font-style: normal; color: var(--accent); font-size: 24px; }
.featureBody { padding: 0 22px 22px; color: var(--body-text); line-height: 1.86; }
.featureBody h1, .featureBody h2 { display: none; }
.guideAccordion, .logTimeline, .storyContent { color: var(--body-text); line-height: 1.86; }
.guideItem { border-top: 1px solid rgba(47, 58, 45, .14); }
.guideItem:last-child { border-bottom: 1px solid rgba(47, 58, 45, .14); }
.guideToggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--heading);
  text-align: left;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}
.guideToggle i { font-style: normal; color: var(--accent); }
.guidePanel { padding: 0 0 20px; }
.guidePanel[hidden] { display: none; }
.guidePanel h1, .guidePanel h2 { display: none; }
.isTargeted {
  outline: 2px solid color-mix(in srgb, var(--accent) 54%, transparent);
  outline-offset: 4px;
}
.searchPanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  margin-bottom: 26px;
}
.searchPanel input {
  height: 44px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--secondary-bg);
  color: var(--page-text);
  font-family: inherit;
}
.searchPanel button {
  border: 1px solid var(--primary-bg);
  border-radius: 6px;
  background: var(--primary-bg);
  color: var(--primary-text);
  cursor: pointer;
}
.emptyText { color: var(--muted); }
.searchResults { display: grid; gap: 12px; }
.searchResult {
  display: block;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--secondary-bg);
}
.searchResult span { display: block; margin-bottom: 6px; color: var(--accent); font-size: 13px; font-weight: 800; }
.searchResult strong { display: block; color: var(--heading); font-size: 20px; }
.searchResult p { margin: 8px 0 0; color: var(--body-text); line-height: 1.7; }
.logTimeline h1 { display: none; }
.logTimeline h2 {
  position: relative;
  margin: 26px 0 10px;
  padding-left: 24px;
  color: var(--accent);
  font-size: 22px;
}
.logTimeline h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent);
}
.logTimeline ul { margin: 0 0 18px 24px; padding-left: 16px; border-left: 1px solid rgba(124, 48, 41, .18); }
.storyContent { max-height: 540px; overflow: auto; padding-right: 12px; }
.storyContentFull { max-height: none; overflow: visible; }
.storyContent h1 { display: none; }
.storyContent h2 { font-size: 22px; margin: 24px 0 10px; }
.storyContent blockquote { margin: 16px 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.fixedBottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 18px;
  background: var(--footer-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(43, 54, 39, .12);
  color: var(--footer-text);
  font-size: 13px;
}
.fixedBottom a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.toast {
  position: fixed;
  z-index: 60;
  transform: translate(-50%, -100%) scale(.9);
  opacity: 0;
  pointer-events: none;
  background: var(--primary-bg);
  color: var(--primary-text);
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  white-space: nowrap;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.isVisible { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.imageLightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 18px;
  background: rgba(8, 9, 8, .92);
}
.imageLightbox[hidden] { display: none; }
.imageLightbox img { width: auto; height: auto; max-width: 96vw; max-height: 84vh; object-fit: contain; box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }
.imageLightbox p { margin: 14px 0 0; color: #fff4d2; font-size: 15px; }
.lightboxClose {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
@media (max-width: 980px) {
  .siteShell { padding: 104px 16px 86px; }
  .topNav { min-height: 58px; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .menuButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--nav-text);
    cursor: pointer;
    font-size: 22px;
  }
  .navLinks { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 2px; }
  .topNav.isMenuOpen .navLinks { display: flex; }
  .navLinks a, .searchButton { width: 100%; padding: 10px 2px; text-align: left; }
  .navLinks a.isActive { padding-left: 10px; background: color-mix(in srgb, var(--nav-hover) 10%, transparent); }
  .siteSearch { width: 100%; display: grid; grid-template-columns: 1fr 42px; gap: 8px; padding-top: 6px; }
  .siteSearch input { width: 100%; }
  .siteSearch .searchButton { display: inline-grid; width: 42px; padding: 0; text-align: center; }
  .themeSwitch { align-self: flex-start; }
  .themeSwitch { flex: 0 0 auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 26px 0 44px; }
  .heroText { max-width: none; }
  .gallery { margin-top: 4px; }
  .featureGrid { grid-template-columns: 1fr; }
}
/* 动态（新闻）栏目 */
.newsEmpty { color: var(--muted); font-size: 16px; padding: 20px 0; }
.newsList { list-style: none; margin: 0; padding: 0; }
.newsItem {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--panel-border);
}
.newsTitle {
  color: var(--heading);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}
.newsTitle:hover { color: var(--accent); }
.newsMeta {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
}
.newsPager {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}
.newsPager a { color: var(--accent); text-decoration: none; }
.newsPager a:hover { text-decoration: underline; }
.newsPageInfo { color: var(--muted); }
.newsArticle {
  max-width: 860px;
  margin: 0 auto 54px;
  padding: 54px clamp(18px, 5vw, 58px);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.newsArticleHead { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--panel-border); }
.newsArticleTitle { margin: 0 0 14px; font-size: clamp(26px, 4vw, 38px); line-height: 1.3; color: var(--heading); }
.newsBody { color: var(--body-text); line-height: 1.86; font-size: 16px; }
.newsBody p { margin: 0 0 16px; }
.newsBody img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.newsBody h1, .newsBody h2, .newsBody h3 { color: var(--heading); line-height: 1.4; margin: 26px 0 14px; }
.newsBody pre {
  background: rgba(0, 0, 0, .06);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
}
.newsBody code { font-family: "Consolas", "Microsoft YaHei", monospace; }
.newsBody :not(pre) > code { background: rgba(0, 0, 0, .06); padding: 2px 6px; border-radius: 4px; }
.newsBody blockquote { margin: 16px 0; padding: 6px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.newsBody a { color: var(--accent); }
.newsBack { margin-top: 34px; }
.newsBack a { color: var(--accent); text-decoration: none; font-size: 15px; }
.newsBack a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .siteShell { padding-top: 112px; }
  .newsItem { flex-direction: column; gap: 8px; }
  .newsArticle { padding: 34px 16px; }
  .brand { font-size: 17px; }
  .brandMark { width: 30px; height: 30px; }
  .navLinks { font-size: 13px; }
  h1 { font-size: 42px; }
  .summary { font-size: 16px; line-height: 1.7; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .primaryAction, .secondaryAction { width: 100%; }
  .slide { padding: 0; }
  .slidePreview { aspect-ratio: 4 / 3; }
  .slide figcaption { opacity: 1; transform: none; left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 12px; }
  .contentSection, .storySection { padding: 34px 16px; margin-bottom: 34px; }
  .featureTitle { min-height: 70px; padding: 18px 16px; font-size: 18px; }
  .featureBody { padding: 0 16px 18px; }
  .guideToggle { font-size: 18px; }
  .searchPanel { grid-template-columns: 1fr; }
  .searchPanel button { height: 42px; }
  .fixedBottom { position: static; flex-direction: column; gap: 4px; margin: 20px -16px -86px; }
}
