/* ========== 基础变量 ========== */
:root {
  --whitewall: #f7f5f0;
  --black-tile: #2d2d2b;
  --ochre: #8c6b48;
  --ochre-dark: #6b4f33;
  --stone: #9e9e9c;
  --ochre-light: rgba(140, 107, 72, 0.1);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ========== 重置与全局 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: "Noto Serif SC", "STSong", "SimSun", serif;
  color: var(--black-tile);
  background: #f5f0e8;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========== 背景视频 ========== */
.bg-video {
  position: fixed; left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: -10;
  opacity: 0.2; pointer-events: none;
  filter: grayscale(30%) contrast(0.85) saturate(0.5) blur(1px);
  mix-blend-mode: multiply;
}

/* ========== 宣纸纹理 ========== */
.paper-texture {
  position: fixed; inset: 0;
  pointer-events: none; z-index: -5;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect fill="%23f7f5f0" width="100%" height="100%"/><g opacity="0.05" fill="%238c6b48"><circle cx="20" cy="40" r="0.8"/><circle cx="60" cy="80" r="0.6"/><circle cx="120" cy="50" r="0.7"/><circle cx="160" cy="120" r="0.8"/><circle cx="80" cy="160" r="0.6"/><circle cx="140" cy="30" r="0.5"/><circle cx="40" cy="140" r="0.7"/></g></svg>');
  mix-blend-mode: multiply;
  opacity: 0.4;
}

/* ========== 边缘晕染效果 ========== */
.ink-edge {
  position: fixed; pointer-events: none; z-index: -2;
}
.ink-edge-top {
  top: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, rgba(140,107,72,0.08) 0%, rgba(140,107,72,0.02) 40%, transparent 100%);
}
.ink-edge-bottom {
  bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(0deg, rgba(140,107,72,0.08) 0%, rgba(140,107,72,0.02) 40%, transparent 100%);
}
.ink-edge-left {
  top: 0; bottom: 0; left: 0; width: 80px;
  background: linear-gradient(90deg, rgba(140,107,72,0.06) 0%, transparent 100%);
}
.ink-edge-right {
  top: 0; bottom: 0; right: 0; width: 80px;
  background: linear-gradient(270deg, rgba(140,107,72,0.06) 0%, transparent 100%);
}

/* ========== 云粒子画布 ========== */
#cloudCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: -3;
}

/* ========== 圆形导航按钮 ========== */
#circleNav {
  position: fixed;
  top: 24px; right: 32px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}
.circle-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(140,107,72,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--ochre);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  cursor: pointer;
}
.circle-btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.circle-btn span {
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.circle-btn:hover {
  background: var(--ochre);
  color: #fff;
  border-color: var(--ochre);
  box-shadow: 0 6px 20px rgba(140,107,72,0.3);
  transform: translateY(-3px) scale(1.08);
}
.circle-btn:hover svg { transform: scale(1.1); }
.circle-btn.active {
  background: var(--black-tile);
  color: #fff;
  border-color: var(--black-tile);
  box-shadow: 0 4px 16px rgba(45,45,43,0.25);
}

/* ========== 通用页面 ========== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 48px 60px;
  position: relative;
}

/* ========== 首页 ========== */
.home-page {
  justify-content: flex-start;
  padding-top: 110px;
  position: relative;
  overflow: hidden;
}

/* 水墨晕染背景装饰 */
.ink-wash-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  overflow: hidden;
}
.ink-wash-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.08;
  animation: inkFloat 20s ease-in-out infinite;
}
.ink-wash-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8c6b48 0%, transparent 70%);
  top: -200px; right: -200px;
  animation-delay: 0s;
}
.ink-wash-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #6b4f33 0%, transparent 70%);
  bottom: 100px; left: -100px;
  animation-delay: -7s;
}
.ink-wash-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #9e9e9c 0%, transparent 70%);
  top: 50%; left: 50%;
  animation-delay: -14s;
}
@keyframes inkFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.06; }
  33% { transform: translate(30px, -30px) scale(1.1); opacity: 0.1; }
  66% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.08; }
}

/* 徽派建筑剪影装饰 */
.huizhou-silhouette {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: -3;
  opacity: 0.15;
}
.huizhou-silhouette svg {
  width: 100%;
  height: 100%;
}

.home-title-area {
  text-align: center;
  width: 100%;
  max-width: 1300px;
  animation: fadeInUp 1s ease both;
  position: relative;
  z-index: 1;
}

/* 顶部装饰线 */
.title-decoration.top-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
  margin: 0 auto 20px;
  border-radius: 2px;
  animation: lineExpand 1.5s ease 0.5s both;
}
@keyframes lineExpand {
  from { width: 0; opacity: 0; }
  to { width: 60px; opacity: 1; }
}

.home-title {
  font-family: "Ma Shan Zheng", "Noto Serif SC", cursive, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--black-tile);
  letter-spacing: 0.06em;
  line-height: 1.15;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1em;
}

/* 逐字动画 */
.home-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: charReveal 0.6s ease forwards;
  animation-delay: calc(var(--i) * 0.15s);
}
@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.home-title .char.highlight {
  color: var(--ochre);
  text-shadow: 2px 2px 4px rgba(140,107,72,0.1);
  position: relative;
}
.home-title .char.highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
  border-radius: 2px;
  animation: underlineExpand 0.8s ease 1s both;
}
@keyframes underlineExpand {
  from { width: 0; }
  to { width: 40px; }
}

.home-subtitle {
  font-family: "Ma Shan Zheng", "Noto Serif SC", cursive, serif;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--ochre);
  letter-spacing: 0.1em;
  margin-top: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.subtitle-line {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
  animation: lineGrow 1s ease 1s both;
}
@keyframes lineGrow {
  from { width: 0; opacity: 0; }
  to { width: 30px; opacity: 1; }
}

.home-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  animation: fadeIn 1s ease 1.2s both;
}
.divider-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
}
.divider-decoration {
  width: 8px;
  height: 8px;
  background: var(--ochre);
  transform: rotate(45deg);
  opacity: 0.6;
}
.divider-decoration.left { animation: diamondRotate 2s ease infinite; }
.divider-decoration.right { animation: diamondRotate 2s ease infinite reverse; }
@keyframes diamondRotate {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.2); }
}

/* 知识点标签 */
.knowledge-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  animation: fadeInUp 0.8s ease 1.4s both;
}
.k-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(140,107,72,0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ochre-dark);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
}
.k-tag:hover {
  background: rgba(140,107,72,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(140,107,72,0.15);
}
.tag-icon {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* 知识点提示气泡 */
.knowledge-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  padding: 12px 16px;
  background: rgba(45,45,43,0.95);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.6;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  text-align: left;
}
.knowledge-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(45,45,43,0.95);
}
.k-tag:hover .knowledge-tooltip {
  opacity: 1;
  visibility: visible;
}

/* 首页主体：全景图(左) + 数据卡片(右) */
.home-body {
  display: grid;
  grid-template-columns: 3.0fr 250px;
  gap: 32px;
  width: 100%;
  max-width: 1100px;
  margin-top: 36px;
  align-items: start;
  animation: fadeInUp 1s ease 0.2s both;
}
.home-panorama {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(140,107,72,0.08);
}

/* 轮播轨道 */
.panorama-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.panorama-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.panorama-slide.active {
  position: relative;
  opacity: 1;
}
.panorama-slide img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(5%) contrast(0.98) saturate(0.95);
}

/* 左右箭头 */
.panorama-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  opacity: 0;
}
.home-panorama:hover .panorama-arrow {
  opacity: 1;
}
.panorama-arrow:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.panorama-arrow svg {
  width: 18px; height: 18px;
  color: var(--ochre-dark);
}
.panorama-arrow-left { left: 10px; }
.panorama-arrow-right { right: 10px; }

/* 指示器圆点 */
.panorama-dots {
  position: absolute;
  bottom: 42px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 12;
}
.panorama-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(140,107,72,0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}
.panorama-dot.active {
  background: var(--ochre);
  border-color: var(--ochre);
  transform: scale(1.3);
}
.panorama-dot:hover:not(.active) {
  background: rgba(255,255,255,0.85);
}

/* 热点 */
.hotspot {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ochre);
  border: 3px solid rgba(255,255,255,0.92);
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(140,107,72,0.18);
  transition: all 0.3s ease;
  z-index: 10;
}
.hotspot:hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: var(--ochre-dark);
  box-shadow: 0 0 0 8px rgba(140,107,72,0.12);
}
.hotspot-pulse {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--ochre);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  50%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 0.6; }
}

/* 热点提示浮层 */
.hottip {
  position: absolute;
  padding: 16px 20px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(140,107,72,0.12);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  pointer-events: none;
  display: none;
  max-width: 280px;
  font-size: 0.88rem;
  line-height: 1.65;
  z-index: 50;
  animation: tipIn 0.25s ease;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hottip h4 {
  font-size: 1rem;
  color: var(--ochre-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hottip h4::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: var(--ochre);
  border-radius: 2px;
}
.hottip p {
  color: rgba(45,45,43,0.75);
  font-size: 0.82rem;
}

/* 全景提示文字 */
.panorama-hint {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(45,45,43,0.06);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--stone);
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}
.hint-icon { font-size: 0.9rem; }

/* 首页画卷卡片容器 */
.home-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 画卷卡片 */
.scroll-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s ease;
}
.scroll-card:hover {
  box-shadow: var(--shadow-lg);
}

/* 画卷轴（上下装饰条） */
.scroll-bar {
  height: 14px;
  background: linear-gradient(180deg, #b8956a 0%, #8c6b48 40%, #6b4f33 60%, #8c6b48 100%);
  position: relative;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(107,79,51,0.25);
}
.scroll-bar::before {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  top: 4px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  border-radius: 1px;
}
.scroll-bar-bottom {
  background: linear-gradient(0deg, #b8956a 0%, #8c6b48 40%, #6b4f33 60%, #8c6b48 100%);
  box-shadow: 0 -2px 6px rgba(107,79,51,0.25);
}

/* 画卷封面 */
.scroll-cover {
  position: relative;
  height: 100px;
  overflow: hidden;
}
.scroll-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(0.95);
  transition: transform 0.6s ease;
}
.scroll-card:hover .scroll-cover-img {
  transform: scale(1.05);
}
.scroll-cover-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 16px 10px;
  background: linear-gradient(0deg, rgba(45,45,43,0.7) 0%, transparent 100%);
  font-family: "Ma Shan Zheng", "Noto Serif SC", cursive, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}
.scroll-cover-hint {
  position: absolute;
  top: 8px; right: 10px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  color: var(--ochre-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: opacity 0.3s ease;
}
.scroll-card.open .scroll-cover-hint {
  opacity: 0;
}

/* 画卷内容区（初始收起） */
.scroll-body {
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  transition: max-height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding 0.6s ease;
  padding: 0 18px;
}
.scroll-card.open .scroll-body {
  max-height: 400px;
  padding: 18px;
}
.scroll-body p {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(45,45,43,0.8);
  text-indent: 2em;
  letter-spacing: 0.03em;
}

/* ========== 五大景点按钮栏 ========== */
.landmark-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 1300px;
  margin-top: 32px;
  animation: fadeInUp 1s ease 0.4s both;
}
.landmark-btn {
  flex: 1;
  max-width: 220px;
  aspect-ratio: 1.35;
  border: none;
  border-radius: 0;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  position: relative;
  overflow: visible;
  box-shadow: none;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landmark-btn:hover {
  transform: translateY(-6px) scale(1.05);
  filter: brightness(1.05);
}
.landmark-btn span {
  position: relative;
  z-index: 2;
  font-family: "Ma Shan Zheng", "Noto Serif SC", cursive, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ochre-dark);
  letter-spacing: 0.18em;
  text-shadow: none;
}

/* ========== 景点弹窗 ========== */
.landmark-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(45,45,43,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.landmark-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.landmark-modal {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.landmark-overlay.show .landmark-modal {
  transform: translateY(0) scale(1);
}
.landmark-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  font-size: 1.4rem;
  color: var(--stone);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}
.landmark-close:hover {
  background: rgba(140,107,72,0.15);
  color: var(--ochre-dark);
  transform: rotate(90deg);
}
.landmark-modal-img {
  width: 42%;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(45,45,43,0.03);
  display: flex;
  align-items: center;
}
.landmark-modal-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.landmark-modal-body {
  flex: 1;
  padding: 32px 28px 32px 28px;
  overflow-y: auto;
}
.landmark-modal-title {
  font-family: "Ma Shan Zheng", "Noto Serif SC", cursive, serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--black-tile);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 4px solid var(--ochre);
}
.landmark-modal-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(45,45,43,0.78);
  text-indent: 2em;
  letter-spacing: 0.03em;
}

/* ========== 子页面框架 ========== */
.sub-page {
  justify-content: flex-start;
  padding-top: 120px;
  min-height: 100vh;
}
.sub-page-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease both;
}
.sub-page-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ochre-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(140,107,72,0.1);
}
.sub-page-icon svg {
  width: 32px; height: 32px;
  color: var(--ochre);
}
.sub-page-title {
  font-family: "Ma Shan Zheng", "Noto Serif SC", cursive, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--black-tile);
  letter-spacing: 0.08em;
}
.sub-page-en {
  font-size: 0.78rem;
  color: var(--stone);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 8px;
}
.sub-page-divider {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ochre), transparent);
  margin: 24px auto 0;
  border-radius: 1px;
}
.sub-page-content {
  width: 100%;
  max-width: 1200px;
  min-height: 300px;
  border: 2px dashed rgba(140,107,72,0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(140,107,72,0.2);
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.sub-page-content::after {
  content: '内容待补充';
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

/* ========== 数据可视化区 ========== */
.viz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1200px;
  width: 100%;
}
.viz-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(140,107,72,0.06);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}
.viz-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.viz-card:hover {
  box-shadow: var(--shadow-lg);
}
.viz-card.visible:hover {
  transform: translateY(-3px);
}
.viz-card-wide { grid-column: 1 / -1; }
.viz-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black-tile);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--ochre);
  letter-spacing: 0.04em;
}
.chart-container { width: 100%; height: 320px; }
.chart-wide { height: 280px; }

/* ========== 页脚 ========== */
.site-footer {
  background: rgba(45,45,43,0.04);
  border-top: 1px solid rgba(140,107,72,0.08);
  padding: 36px 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-location {
  font-size: 0.9rem;
  color: var(--ochre);
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-text {
  color: var(--stone);
  font-size: 0.82rem;
}

/* ===== 画卷卡片基础与动画 ===== */
.scroll-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 封面图片平滑放大 */
.scroll-cover-img {
    transition: transform 0.8s ease;
}
.scroll-card:hover .scroll-cover-img {
    transform: scale(1.05);
}

/* 隐藏的文本主体 */
.scroll-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.8s ease, opacity 0.6s ease 0.2s; /* 延迟透明度动画，等高度先撑开 */
    padding: 0 20px;
}

/* 展开状态的类名（通过JS添加） */
.scroll-card.open .scroll-body {
    max-height: 500px; /* 根据实际内容调整，要足够大 */
    opacity: 1;
    padding: 20px;
}

.scroll-card.open .scroll-cover-hint {
    opacity: 0; /* 展开后隐藏提示语 */
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .home-body { grid-template-columns: 1fr; }
  .home-cards { flex-direction: row; }
  .scroll-card { flex: 1; }
  .viz-grid { grid-template-columns: 1fr; }
  .viz-card-wide { grid-column: auto; }
  .page { padding: 90px 24px 48px; }
  .landmark-bar { flex-wrap: wrap; }
  .landmark-btn { max-width: none; }
}
@media (max-width: 768px) {
  .circle-btn { width: 64px; height: 64px; }
  .circle-btn svg { width: 22px; height: 22px; }
  .circle-btn span { font-size: 0.6rem; }
  .home-title { font-size: clamp(2rem, 8vw, 3rem); }
  .home-cards { flex-direction: column; }
  .page { padding: 80px 16px 80px; }
  .chart-container { height: 260px; }
  .chart-wide { height: 220px; }
  .sub-page-content { min-height: 200px; }
  .scroll-cover { height: 80px; }
  .scroll-cover-title { font-size: 1.1rem; }
  .landmark-bar { gap: 10px; }
  .landmark-btn span { font-size: 1rem; }
  .landmark-modal { flex-direction: column; }
  .landmark-modal-img { width: 100%; max-height: 220px; }
  .landmark-modal-body { padding: 20px 20px 24px; }
  .landmark-modal-title { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .circle-btn { width: 44px; height: 44px; }
  .circle-btn span { display: none; }
  .circle-btn svg { width: 20px; height: 20px; }
  .scroll-cover { height: 70px; }
  .scroll-body p { font-size: 0.78rem; }
}/* 按钮容器布局 */
.rub-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 240px; /* 紧凑设计 */
    margin: 20px auto;
}

/* 基础按钮样式 - 拟真书签感 */
.rub-btn {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(184, 134, 11, 0.15); /* 淡淡的金棕色边框 */
    border-left: 3px solid var(--ink-faint); /* 默认左侧为淡墨色 */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
    overflow: hidden;
}

/* 按钮文字样式 */
.btn-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    color: var(--ink-medium);
    letter-spacing: 0.1em;
    z-index: 2;
}

/* 按钮编号样式 - 书法感 */
.btn-index {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.1rem;
    color: var(--ink-light);
    margin-right: 12px;
    opacity: 0.6;
}

/* 鼠标悬停效果 */
.rub-btn:hover {
    background: rgba(252, 249, 242, 0.8);
    border-color: var(--cinnabar);
    transform: translateX(5px); /* 悬停时轻微向右滑动，增强交互感 */
}

/* 激活状态 - 朱砂红印章感 */
.rub-btn.active {
    background: linear-gradient(to right, rgba(167, 45, 35, 0.08), transparent);
    border-color: rgba(167, 45, 35, 0.3);
    border-left: 4px solid var(--cinnabar); /* 侧边变为醒目的朱砂红 */
    box-shadow: -5px 5px 15px rgba(20, 17, 14, 0.05);
}

.rub-btn.active .btn-text {
    color: var(--cinnabar);
    font-weight: 600;
}

.rub-btn.active .btn-index {
    color: var(--cinnabar);
    opacity: 1;
}

/* 按钮背景水墨装饰点缀 (可选) */
.rub-btn::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(167, 45, 35, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}