/* =========================================
   大同市文物安全监测中心 · 首页样式
   设计方向：北地厚土 · 夯土砖石 · 沉静
   ========================================= */

:root {
  /* 核心色板 */
  --c-earth: #c9a770;          /* 夯土黄 */
  --c-earth-deep: #8a7142;     /* 深夯土 */
  --c-earth-pale: #e8dcc2;     /* 浅土色 */
  --c-brick: #2d2a26;          /* 城砖深灰 */
  --c-brick-soft: #4a463f;     /* 中灰 */
  --c-seal: #8b2d2d;           /* 朱砂红（印章） */
  --c-seal-deep: #6a1f1f;
  --c-paper: #f5ecd7;          /* 纸本色 */
  --c-paper-warm: #efe4c9;
  --c-line: #b9a883;           /* 分割线 */
  --c-line-dark: #3a362f;

  /* 字体 */
  --f-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --f-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 尺度 */
  --max-w: 1320px;
  --pad-x: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--f-sans);
  background: var(--c-paper);
  color: var(--c-brick);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =========================================
   纸本肌理底纹（全站）
   ========================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139, 45, 45, 0.015) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201, 167, 112, 0.025) 0%, transparent 40%);
  mix-blend-mode: multiply;
}

/* 全局噪点（增加质感） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================
   顶部导航
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 236, 215, 0);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(245, 236, 215, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(185, 168, 131, 0.3);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo 城楼图案 — 默认显示浅色版（首页英雄区深色背景下） */
.logo-img-wrap {
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 36px;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

.logo-img-dark { display: none; }
.logo-img-light { display: block; }

/* 滚动后或非首页 → 切换到深色版 */
.nav.scrolled .logo-img-dark,
body.page-inner .logo-img-dark { display: block; }
.nav.scrolled .logo-img-light,
body.page-inner .logo-img-light { display: none; }

.logo-text {
  display: flex;
  align-items: baseline;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--f-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--c-paper);
  transition: color 0.3s;
  white-space: nowrap;
}

.nav.scrolled .logo-text strong { color: var(--c-brick); }

.logo-alt {
  font-family: var(--f-serif);
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-earth);
  margin-left: 4px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav.scrolled .logo-alt { color: var(--c-brick-soft); }

@media (max-width: 1280px) {
  .logo-text strong { font-size: 15px; letter-spacing: 0.5px; }
  .logo-alt { font-size: 11px; }
}

@media (max-width: 1080px) {
  .logo-alt { display: none; }
}

.nav-menu {
  display: flex;
  gap: 22px;
  font-family: var(--f-serif);
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

.nav-menu a {
  position: relative;
  color: var(--c-paper);
  padding: 6px 0;
  transition: color 0.3s;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav.scrolled .nav-menu a { color: var(--c-brick); }

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-seal);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
  left: 0;
}

.nav-aux {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-ic {
  font-size: 18px;
  color: var(--c-paper);
  transition: color 0.3s;
}

.nav.scrolled .nav-ic { color: var(--c-brick); }

.nav-vr {
  font-family: var(--f-serif);
  font-size: 14px;
  padding: 8px 18px;
  border: 1px solid var(--c-paper);
  color: var(--c-paper);
  letter-spacing: 2px;
  transition: all 0.3s;
}

.nav.scrolled .nav-vr {
  border-color: var(--c-seal);
  color: var(--c-seal);
}

.nav-vr:hover {
  background: var(--c-seal);
  border-color: var(--c-seal);
  color: var(--c-paper);
}

/* 汉堡按钮默认隐藏（仅在 ≤768px 媒体查询里显示） */
.nav-toggle { display: none; }

/* 非首页：导航栏立即呈现"已滚动"视觉（浅底+深字+模糊） */
body.page-inner .nav {
  background: rgba(245, 236, 215, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(185, 168, 131, 0.3);
}
body.page-inner .logo-text strong { color: var(--c-brick); }
body.page-inner .logo-alt { color: var(--c-brick-soft); }
body.page-inner .nav-menu a { color: var(--c-brick); }
body.page-inner .nav-ic { color: var(--c-brick); }
body.page-inner .nav-vr {
  border-color: var(--c-seal);
  color: var(--c-seal);
}
body.page-inner .nav-toggle span { background: var(--c-brick); }

/* =========================================
   第 1 屏 · 英雄区（轮播）
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--c-brick);
  color: var(--c-paper);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  animation: slowPan 16s ease-in-out infinite alternate;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide-1 { background-image: url("../img/hero-bg-d.jpg"); }
.hero-slide-2 { background-image: url("../img/hero-bg-2-d.jpg"); }
.hero-slide-3 { background-image: url("../img/hero-bg-3-d.jpg"); }

@keyframes slowPan {
  0%   { transform: scale(1.00); }
  100% { transform: scale(1.08); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom,
    rgba(26, 24, 20, 0.35) 0%,
    rgba(26, 24, 20, 0.05) 40%,
    rgba(26, 24, 20, 0.05) 60%,
    rgba(26, 24, 20, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--c-earth);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-divider {
  width: 30px;
  height: 1px;
  background: var(--c-earth);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 1.05;
  letter-spacing: 8px;
  margin-bottom: 50px;
}

.ht-line {
  display: block;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ht-line:nth-child(1) { animation-delay: 0.5s; }
.ht-line:nth-child(2) { animation-delay: 0.8s; }

.ht-offset {
  padding-left: clamp(40px, 10vw, 160px);
  color: var(--c-earth);
}

.hero-sub {
  font-family: var(--f-serif);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2;
  color: rgba(245, 236, 215, 0.9);
  max-width: 520px;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

/* 轮播圆点 */
.hero-dots {
  position: absolute;
  right: clamp(30px, 4vw, 60px);
  bottom: 40px;
  z-index: 10;
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s ease 1.6s forwards;
}

.hero-dots .dot {
  width: 36px;
  height: 2px;
  background: rgba(245, 236, 215, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.4s, width 0.4s;
  position: relative;
}

.hero-dots .dot:hover {
  background: rgba(245, 236, 215, 0.5);
}

.hero-dots .dot.is-active {
  background: var(--c-earth);
  width: 52px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   通用 section 头
   ========================================= */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 60px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
  position: relative;
}

.section-head-light {
  border-bottom-color: rgba(245, 236, 215, 0.2);
}

.section-head-center {
  justify-content: center;
  border-bottom: none;
  margin-bottom: 50px;
}

.section-num {
  font-family: var(--f-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-seal);
  letter-spacing: 3px;
  opacity: 0.95;
}

.section-head-light .section-num {
  color: var(--c-earth);
  opacity: 1;
}

.section-label {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-brick);
  letter-spacing: 6px;
}

.section-head-light .section-label { color: var(--c-paper); }

.section-more {
  margin-left: auto;
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--c-brick-soft);
  letter-spacing: 2px;
  transition: color 0.3s;
}

.section-more:hover { color: var(--c-seal); }

/* =========================================
   第 2 屏 · 中心概况
   ========================================= */
.about {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px var(--pad-x);
  position: relative;
  z-index: 5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.section-title {
  font-family: var(--f-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 6px;
  margin-bottom: 40px;
  color: var(--c-brick);
}

.about-desc {
  font-family: var(--f-serif);
  font-size: 16px;
  line-height: 2;
  color: var(--c-brick-soft);
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 40px;
  border-left: 1px solid var(--c-line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.stat::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--c-seal);
  border-radius: 50%;
}

.stat-num {
  font-family: var(--f-serif);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  color: var(--c-brick);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-family: var(--f-sans);
  font-size: 13px;
  color: var(--c-brick-soft);
  letter-spacing: 3px;
}

/* =========================================
   第 3 屏 · VR 入口
   ========================================= */
.vr-entries {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x) 110px;
  position: relative;
  z-index: 5;
}

.vr-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vr-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  aspect-ratio: 3 / 4;
}

.vr-card:hover {
  transform: translateY(-8px);
}

.vr-card-img {
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
}

.vr-card:hover .vr-card-img {
  transform: scale(1.06);
}

/* 城墙遗址陈列馆 */
.vr-card-img-1 {
  background:
    linear-gradient(180deg, rgba(10,6,4,0) 50%, rgba(10,6,4,0.75) 100%),
    url("../img/chengqiang.svg") center/cover no-repeat,
    #1a1410;
}

/* 乾楼 */
.vr-card-img-2 {
  background:
    linear-gradient(180deg, rgba(10,6,4,0) 45%, rgba(10,6,4,0.8) 100%),
    url("../img/qianlou.svg") center/cover no-repeat,
    #1a1410;
}

/* 移除旧的 CSS 绘制叠加 */
.vr-card-img-1::before, .vr-card-img-2::before { display: none; }

.vr-card-meta {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 2;
}

.vr-card-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 45, 45, 0.85);
  color: var(--c-paper);
  font-family: var(--f-serif);
  font-size: 12px;
  letter-spacing: 2px;
}

.vr-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 30px 30px;
  z-index: 2;
  color: var(--c-paper);
}

.vr-card-body h3 {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.vr-card-body p {
  font-family: var(--f-serif);
  font-size: 14px;
  line-height: 1.9;
  color: rgba(245, 236, 215, 0.8);
  letter-spacing: 1px;
  margin-bottom: 22px;
  max-width: 92%;
}

.vr-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--c-earth);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-earth);
  transition: gap 0.3s;
}

.vr-card-cta i {
  font-style: normal;
  transition: transform 0.3s;
}

.vr-card:hover .vr-card-cta i {
  transform: translateX(6px);
}

/* =========================================
   第 4 屏 · 城墙史话
   ========================================= */
.history {
  background: var(--c-brick);
  color: var(--c-paper);
  padding: 110px var(--pad-x);
  position: relative;
  overflow: hidden;
}

.history::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(201, 167, 112, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(139, 45, 45, 0.08) 0%, transparent 50%);
}

.history::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 55px, rgba(245, 236, 215, 0.02) 55px, rgba(245, 236, 215, 0.02) 56px);
}

.history > * { position: relative; z-index: 1; }

.history .section-head {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.history-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

.history-title {
  font-family: var(--f-serif);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 8px;
  color: var(--c-earth);
}

.history-title span {
  display: inline-block;
  margin: 0 1px;
}

.history-era {
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--c-earth-pale);
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--c-earth-deep);
  width: fit-content;
}

.history-lead {
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 2.1;
  color: var(--c-paper);
  letter-spacing: 1.5px;
  margin-bottom: 28px;
  padding-left: 24px;
  border-left: 2px solid var(--c-earth);
}

.history-body {
  font-family: var(--f-serif);
  font-size: 15px;
  line-height: 2;
  color: rgba(245, 236, 215, 0.75);
  letter-spacing: 1.2px;
  margin-bottom: 40px;
}

.history-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.h-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  border: 1px solid var(--c-earth-deep);
  transition: all 0.3s;
  font-family: var(--f-serif);
}

.h-link:hover {
  background: var(--c-earth-deep);
  border-color: var(--c-earth);
}

.h-link-num {
  font-size: 20px;
  color: var(--c-earth);
  font-weight: 700;
}

.h-link-title {
  flex: 1;
  font-size: 15px;
  color: var(--c-paper);
  letter-spacing: 1.5px;
}

.h-link i {
  font-style: normal;
  color: var(--c-earth);
  transition: transform 0.3s;
}

.h-link:hover i { transform: translateX(4px); }

/* =========================================
   第 5 屏 · 守护动态
   ========================================= */
.news {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px var(--pad-x);
  position: relative;
  z-index: 5;
}

.news-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 60px;
  align-items: start;
}

.news-feature {
  cursor: pointer;
  transition: transform 0.4s;
}

.news-feature:hover {
  transform: translateY(-6px);
}

.news-feature-img {
  aspect-ratio: 16 / 10;
  background: url("../img/news-hero.svg") center/cover no-repeat, #1a1410;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.news-feature-img::before { display: none; }

.news-feature-body time {
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--c-seal);
  margin-bottom: 14px;
  display: block;
}

.news-feature-body h3 {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: var(--c-brick);
  line-height: 1.5;
}

.news-feature-body p {
  font-family: var(--f-serif);
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-brick-soft);
  letter-spacing: 1px;
}

.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--c-line);
  transition: padding 0.3s;
}

.news-list li:first-child { padding-top: 0; }

.news-list li:hover {
  padding-left: 8px;
}

.news-list time {
  font-family: var(--f-serif);
  font-size: 13px;
  color: var(--c-seal);
  letter-spacing: 2px;
  min-width: 60px;
}

.news-list a {
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--c-brick);
  letter-spacing: 1px;
  line-height: 1.6;
  transition: color 0.3s;
}

.news-list a:hover { color: var(--c-seal); }

/* =========================================
   第 6 屏 · 文化专题
   ========================================= */
.culture {
  background: var(--c-paper-warm);
  padding: 110px 0;
  position: relative;
  z-index: 5;
}

.culture .section-head {
  max-width: var(--max-w);
  margin: 0 auto 60px;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.culture-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.culture-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s;
}

.culture-card:hover {
  transform: translateY(-8px);
}

.cc-img {
  position: absolute;
  inset: 0;
  transition: transform 0.6s;
}

.culture-card:hover .cc-img {
  transform: scale(1.08);
}

.culture-card-1 .cc-img {
  background: linear-gradient(180deg, rgba(10,6,4,0) 45%, rgba(10,6,4,0.85) 100%),
              url("../img/culture-1.svg") center/cover no-repeat, #1a1410;
}
.culture-card-2 .cc-img {
  background: linear-gradient(180deg, rgba(10,6,4,0) 45%, rgba(10,6,4,0.85) 100%),
              url("../img/culture-2.svg") center/cover no-repeat, #1a1422;
}
.culture-card-3 .cc-img {
  background: linear-gradient(180deg, rgba(10,6,4,0) 45%, rgba(10,6,4,0.85) 100%),
              url("../img/culture-3.svg") center/cover no-repeat, #1a1410;
}
.culture-card-4 .cc-img {
  background: linear-gradient(180deg, rgba(10,6,4,0) 45%, rgba(10,6,4,0.85) 100%),
              url("../img/culture-4.svg") center/cover no-repeat, #1a0a0a;
}

.cc-img::before { display: none; }

.cc-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 2;
  color: var(--c-paper);
}

.cc-cat {
  display: inline-block;
  padding: 4px 10px;
  background: var(--c-seal);
  color: var(--c-paper);
  font-family: var(--f-serif);
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.cc-body h4 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cc-body p {
  font-family: var(--f-serif);
  font-size: 13px;
  color: rgba(245, 236, 215, 0.8);
  letter-spacing: 1px;
}

/* =========================================
   第 7 屏 · 公告与政策
   ========================================= */
.notices {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px var(--pad-x);
  position: relative;
  z-index: 5;
}

.notices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.notice-list, .policy-list {
  list-style: none;
}

.notice-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line);
}

.notice-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  min-width: 60px;
  flex-shrink: 0;
}

.notice-date b {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-brick);
  line-height: 1;
}

.notice-date em {
  font-family: var(--f-serif);
  font-style: normal;
  font-size: 10px;
  color: var(--c-brick-soft);
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.notice-list a {
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--c-brick);
  letter-spacing: 1px;
  line-height: 1.6;
  transition: color 0.3s;
}

.notice-list a:hover { color: var(--c-seal); }

.policy-list li {
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line);
}

.policy-list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s;
}

.policy-list a:hover {
  transform: translateX(6px);
}

.policy-t {
  font-family: var(--f-serif);
  font-size: 16px;
  color: var(--c-brick);
  letter-spacing: 1px;
  font-weight: 500;
}

.policy-m {
  font-family: var(--f-sans);
  font-size: 12px;
  color: var(--c-brick-soft);
  letter-spacing: 2px;
}

/* =========================================
   页脚（简化版）
   ========================================= */
.footer {
  background: var(--c-brick);
  color: var(--c-earth-pale);
  padding: 44px var(--pad-x);
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(185, 168, 131, 0.15);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.fb-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 13px;
  color: var(--c-earth-pale);
  opacity: 0.72;
  letter-spacing: 1.5px;
}

.fb-partners {
  gap: 0;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(185, 168, 131, 0.15);
  opacity: 0.88;
}

.fb-partners-label {
  color: var(--c-earth);
  letter-spacing: 3px;
  font-weight: 500;
  padding-right: 22px;
  margin-right: 6px;
  border-right: 1px solid rgba(185, 168, 131, 0.25);
}

.fb-partners a {
  color: var(--c-earth-pale);
  opacity: 0.8;
  padding: 0 14px;
  transition: opacity 0.3s, color 0.3s;
}

.fb-partners a:hover {
  opacity: 1;
  color: var(--c-earth);
}

.fb-line a {
  color: var(--c-earth);
  transition: opacity 0.3s;
}

.fb-line a:hover { opacity: 1; }

.fb-sep {
  color: var(--c-earth-deep);
  opacity: 0.5;
}

/* =========================================
   悬浮"我要留言"
   ========================================= */
.float-msg {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(80px, 12vh, 130px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: var(--c-seal);
  color: var(--c-paper);
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  box-shadow: 0 6px 20px rgba(139, 45, 45, 0.35), 0 2px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-msg:hover {
  background: var(--c-seal-deep);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(139, 45, 45, 0.5);
}

.fm-icon {
  writing-mode: horizontal-tb;
  font-size: 18px;
  margin-bottom: 4px;
  font-family: var(--f-sans);
}

.fm-text {
  writing-mode: vertical-rl;
  line-height: 1.3;
}

/* 留言弹层 */
.msg-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-modal[hidden] { display: none; }

.msg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.65);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.msg-dialog {
  position: relative;
  width: min(480px, 92vw);
  background: var(--c-paper);
  padding: 44px 36px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: dialogIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.msg-dialog::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 3px;
  background: var(--c-seal);
}

.msg-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--c-brick-soft);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.msg-close:hover { color: var(--c-seal); }

.msg-title {
  font-family: var(--f-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--c-brick);
  letter-spacing: 6px;
  margin-bottom: 10px;
}

.msg-sub {
  font-family: var(--f-serif);
  font-size: 13px;
  color: var(--c-brick-soft);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.msg-form label {
  display: block;
  margin-bottom: 18px;
}

.msg-form label span {
  display: block;
  font-family: var(--f-serif);
  font-size: 13px;
  color: var(--c-brick-soft);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.msg-form input,
.msg-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--f-serif);
  font-size: 14px;
  color: var(--c-brick);
  resize: vertical;
  transition: border-color 0.3s;
}

.msg-form input:focus,
.msg-form textarea:focus {
  outline: none;
  border-color: var(--c-seal);
}

.msg-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  background: var(--c-seal);
  color: var(--c-paper);
  border: none;
  font-family: var(--f-serif);
  font-size: 15px;
  letter-spacing: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.msg-submit:hover { background: var(--c-seal-deep); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   响应式（平板及以下）
   ========================================= */
@media (max-width: 960px) {
  .nav-menu { display: none; }

  .about-grid,
  .vr-cards,
  .history-layout,
  .news-grid,
  .notices-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .culture-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-links {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-title {
    letter-spacing: 4px;
  }

  .ht-offset {
    padding-left: 30px;
  }

  .about-stats {
    padding-left: 0;
    border-left: none;
    padding-top: 30px;
    border-top: 1px solid var(--c-line);
    flex-direction: row;
    gap: 32px;
    flex-wrap: wrap;
  }

  .stat { flex: 1; min-width: 120px; }
  .stat::before { display: none; }
  .stat-num { font-size: 42px !important; }

  .hero-seal {
    width: 60px;
    right: 24px;
    bottom: 30px;
  }
  .seal-inner {
    width: 60px;
    height: 60px;
    padding: 6px;
  }
  .seal-inner span { font-size: 16px; }

  .hero-actions { flex-direction: column; gap: 16px; align-items: flex-start; }
  .btn-primary, .btn-ghost { padding: 14px 26px; width: auto; }
}

@media (max-width: 600px) {
  .culture-scroll { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero-content { padding-top: 100px; }
  .hero-meta { flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: 2px; }
  .hero-seal { display: none; }
}

/* ============================================
   移动端专属优化（≤768px）
   - 加载小图（流量节省 40%+）
   - 英雄区高度自适应竖屏
   - 汉堡菜单
   - 排版收紧
   ============================================ */
@media (max-width: 768px) {
  /* 1. 英雄区：用小图，固定竖屏舒适高度 */
  .hero {
    height: 70vh;
    min-height: 480px;
    max-height: 720px;
  }
  .hero-slide-1 { background-image: url("../img/hero-bg-m.jpg"); }
  .hero-slide-2 { background-image: url("../img/hero-bg-2-m.jpg"); }
  .hero-slide-3 { background-image: url("../img/hero-bg-3-m.jpg"); }
  /* 让背景图主体居中（cover 模式下中心点是关键） */
  .hero-slide { background-position: center center; }

  /* 2. 顶部导航：紧凑 + 显示汉堡按钮 */
  .nav-inner { padding: 0 16px; height: 56px; }
  .logo { gap: 8px; }
  .logo-img-wrap { width: 32px; height: 26px; }
  .logo-text strong { font-size: 14px; letter-spacing: 0; }
  .logo-alt { display: none; }
  .nav-aux { gap: 12px; }
  .nav-aux .nav-vr { padding: 5px 10px; font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
  .nav-aux .nav-ic { display: none; }

  /* 3. 汉堡按钮（默认隐藏，移动端显示） */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text, #2a2a2a);
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 4. 抽屉式导航菜单 */
  .nav-menu {
    display: flex !important;
    position: fixed;
    top: 56px;
    right: 0;
    width: 70%;
    max-width: 280px;
    height: calc(100vh - 56px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu a {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
  }

  /* 5. 各 section 内边距收紧 */
  .about, .vr-entries, .history, .news, .culture {
    padding: 60px 20px;
  }
  .section-title { font-size: 32px; line-height: 1.4; }
  .history-title { font-size: 36px; letter-spacing: 6px; }
  .history-title span { margin: 0 2px; }

  /* 6. VR 卡片：移动端单列，图片铺满卡片（与桌面端一致），仅调整卡片比例 */
  .vr-card { aspect-ratio: 4 / 5; }
  .vr-card-img { height: auto; }
  .vr-card-body { padding: 28px 24px 24px; }
  .vr-card-body h3 { font-size: 26px; letter-spacing: 3px; }
  .vr-card-body p { font-size: 13px; line-height: 1.8; }

  /* 7. 数字区：竖排更易读 */
  .about-stats { flex-direction: column !important; gap: 24px; }
  .stat { width: 100%; min-width: auto; }
  .stat-num { font-size: 48px !important; }

  /* 8. 新闻：主图高度收缩 */
  .news-feature-img { height: 200px; }
  .news-feature-body { padding: 20px; }
  .news-feature-body h3 { font-size: 18px; line-height: 1.5; }

  /* 9. 页脚：合作机构改为居中两列网格，整体居中对齐 */
  .footer { padding: 40px 20px 24px; }
  .fb-line { flex-wrap: wrap; gap: 8px; font-size: 13px; justify-content: center; }
  .fb-partners {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 20px;
    margin-bottom: 14px;
  }
  .fb-partners-label {
    width: 100%;
    text-align: center;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(185, 168, 131, 0.2);
    font-size: 13px;
    letter-spacing: 6px;
  }
  .fb-partners > a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
  }
  /* 用 flex 让链接 wrap 成 2-3 列居中 */
  .fb-partners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .fb-partners-label { grid-column: 1 / -1; }
  .fb-sep { display: none; }

  /* 10. 悬浮按钮缩小 */
  .float-msg {
    bottom: 20px;
    right: 16px;
    padding: 12px 16px;
  }
  .fm-text { display: none; }
  .fm-icon { margin: 0; font-size: 18px; }

  /* 11. 留言弹层适配 */
  .msg-dialog { width: 92%; padding: 32px 24px; }
  .msg-title { font-size: 20px; }
}

/* ===========================================
   列表页 & 文章详情页样式（11ty 多级页面新增）
   =========================================== */

/* 列表页通用容器 */
.list-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 80px;
  min-height: 70vh;
}

.list-head {
  margin-bottom: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e0d8;
}

.list-head .section-num {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  letter-spacing: 6px;
  color: #b89968;
  margin-bottom: 12px;
}

.list-title {
  font-family: "Noto Serif SC", serif;
  font-size: 42px;
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: 8px;
  margin: 0 0 12px;
}

.list-sub {
  font-size: 15px;
  color: #888;
  letter-spacing: 2px;
  margin: 0;
}

/* 新闻列表项 */
.list-items {
  display: flex;
  flex-direction: column;
}

.list-item {
  border-bottom: 1px solid #ece7df;
  transition: background 0.3s;
}

.list-item:hover {
  background: #faf7f1;
}

.list-item-link {
  display: block;
  padding: 32px 24px;
  color: inherit;
  text-decoration: none;
}

.list-item-date {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: #b89968;
  margin-bottom: 12px;
}

.list-item-title {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  font-weight: 600;
  color: #2a2a2a;
  letter-spacing: 2px;
  margin: 0 0 12px;
  line-height: 1.5;
  transition: color 0.3s;
}

.list-item:hover .list-item-title {
  color: #8b6f3f;
}

.list-item-summary {
  font-size: 14px;
  line-height: 1.9;
  color: #666;
  margin: 0 0 16px;
}

.list-item-more {
  font-size: 13px;
  color: #b89968;
  letter-spacing: 2px;
}

/* 文物列表页（用首页同款 VR 卡片网格） */
.vr-cards-page {
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* 史话列表页（垂直堆叠的链接） */
.history-links-page {
  flex-direction: column;
  gap: 0;
  max-width: 800px;
}

.history-links-page .h-link {
  width: 100%;
  padding: 28px 24px;
  border-bottom: 1px solid #ece7df;
}

/* 文化专题列表页 */
.culture-scroll-page {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===========================================
   文章详情页（新闻 / 文物 / 史话 / 专题共用）
   =========================================== */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 40px 100px;
}

.article-head {
  margin-bottom: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e0d8;
}

.article-breadcrumb {
  font-size: 13px;
  color: #999;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.article-breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.article-breadcrumb a:hover {
  color: #8b6f3f;
}

.article-numeral {
  font-family: "Noto Serif SC", serif;
  font-size: 36px;
  color: #b89968;
  margin-bottom: 12px;
  letter-spacing: 4px;
}

.article-category {
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: 6px;
  color: #b89968;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.article-title {
  font-family: "Noto Serif SC", serif;
  font-size: 36px;
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: 4px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.article-lead {
  font-size: 16px;
  line-height: 2;
  color: #555;
  margin: 0;
  letter-spacing: 1px;
}

.article-date {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: #b89968;
  margin-top: 16px;
}

.article-body {
  font-size: 16px;
  line-height: 2.1;
  color: #2a2a2a;
  letter-spacing: 0.5px;
}

.article-body h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 600;
  color: #2a2a2a;
  letter-spacing: 3px;
  margin: 48px 0 20px;
  padding-left: 14px;
  border-left: 4px solid #b89968;
}

.article-body h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 600;
  color: #2a2a2a;
  letter-spacing: 2px;
  margin: 36px 0 16px;
}

.article-body p {
  margin: 0 0 24px;
  text-indent: 2em;
}

.article-body ul,
.article-body ol {
  padding-left: 2em;
  margin: 0 0 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.9;
}

.article-body blockquote {
  border-left: 4px solid #b89968;
  padding: 8px 24px;
  margin: 32px 0;
  background: #faf7f1;
  color: #555;
  font-style: italic;
}

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 4px;
}

.article-body code {
  background: #f4f1ea;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 14px;
}

.article-foot {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid #e5e0d8;
}

.article-back-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-back {
  display: inline-block;
  font-size: 14px;
  color: #8b6f3f;
  letter-spacing: 2px;
  text-decoration: none;
  transition: transform 0.3s;
}

.article-back:hover {
  transform: translateX(-4px);
}

.article-home {
  display: inline-block;
  padding: 10px 22px;
  font-size: 13px;
  color: #fff;
  background: #8b6f3f;
  border: 1px solid #8b6f3f;
  letter-spacing: 3px;
  text-decoration: none;
  transition: all 0.3s;
}

.article-home:hover {
  background: transparent;
  color: #8b6f3f;
}

/* 当前导航高亮 */
.nav-menu a.is-current {
  color: #8b6f3f;
  font-weight: 600;
}

/* "更多" 链接（首页守护动态 → 列表页） */
.section-more {
  margin-left: auto;
  font-size: 13px;
  color: #b89968;
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.3s;
}

.section-more:hover {
  color: #8b6f3f;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .list-page {
    padding: 100px 20px 60px;
  }
  .list-title {
    font-size: 30px;
    letter-spacing: 4px;
  }
  .list-item-link {
    padding: 24px 16px;
  }
  .list-item-title {
    font-size: 18px;
  }
  .vr-cards-page,
  .culture-scroll-page {
    grid-template-columns: 1fr;
  }
  .article {
    padding: 100px 20px 60px;
  }
  .article-title {
    font-size: 26px;
    letter-spacing: 2px;
  }
  .article-body {
    font-size: 15px;
    line-height: 2;
  }
  .article-body h2 {
    font-size: 20px;
  }
}
