/* ============================================================
   雪山之书 — 主样式表 (style.css)
   设计系统：冰蓝 + 雪白 + 岩灰 + 极少量暖黄
   美学：清冷、静谧、高海拔、大留白、毛玻璃
   避坑：遵循 PBootCMS 开发规范全部 26 条陷阱
   ============================================================ */

/* ===== Fonts — 系统字体栈，无需外部加载 ===== */
/* 中文字体优先级：苹方(Mac) > 雅黑(Win) > 思源黑体 > 系统默认
   英文/数字：使用 Inter 风格的系统字体栈 */

/* ================================================================
   CSS Variables — 冰蓝雪山设计令牌
   ================================================================ */
:root {
  /* === 主色系：冰蓝 === */
  --color-primary: #4A90B8;
  --color-primary-dark: #357299;
  --color-primary-light: #8EC1DD;
  --color-primary-bg: #EBF4FA;
  --color-primary-glow: rgba(74, 144, 184, 0.12);

  /* === 点缀色：暖黄（日出日落） === */
  --color-warm: #E8A850;
  --color-warm-light: #F0C880;
  --color-warm-dark: #C88930;

  /* === 背景色：雪白 → 浅灰 === */
  --color-bg: #FAFCFF;
  --color-bg-alt: #F2F5F9;
  --color-bg-dark: #E8ECF2;

  /* === 表面/卡片 === */
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-surface-hover: rgba(255, 255, 255, 0.92);

  /* === 岩灰 === */
  --color-rock: #3D444C;
  --color-rock-light: #5A626B;
  --color-rock-dark: #2A3037;

  /* === 文字 === */
  --color-text: #2A3037;
  --color-text-secondary: #5A626B;
  --color-text-muted: #8B939C;
  --color-text-light: #B8BFC7;

  /* === 边框 === */
  --color-border: rgba(74, 144, 184, 0.12);
  --color-border-light: rgba(74, 144, 184, 0.06);

  /* === 阴影 — 极轻 === */
  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgba(42, 48, 55, 0.03);
  --shadow-sm: 0 2px 8px rgba(42, 48, 55, 0.05);
  --shadow: 0 4px 16px rgba(42, 48, 55, 0.06);
  --shadow-lg: 0 8px 32px rgba(42, 48, 55, 0.08);

  /* === 圆角 — 极小/直角 === */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;

  /* === 间距 === */
  --section-gap: 100px;
  --section-gap-mobile: 60px;

  /* === 字体 === */
  --font-heading: -apple-system, BlinkMacSystemFont, 'PingFang SC', '苹方', 'Microsoft YaHei UI', '微软雅黑', 'Noto Sans SC', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', '苹方', 'Microsoft YaHei UI', '微软雅黑', 'Noto Sans SC', sans-serif;

  /* === 过渡 === */
  --transition-fast: 0.2s ease;
  --transition: 0.35s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* === 容器 === */
  --container-max: 1200px;
  --container-padding: 28px;

  /* === 毛玻璃 === */
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: blur(20px);
}

/* ================================================================
   Reset & Base
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.02em;
}

::selection {
  background: rgba(74, 144, 184, 0.18);
  color: var(--color-text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-text-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ================================================================
   Typography
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-rock-dark);
  letter-spacing: 0.03em;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; color: var(--color-text-secondary); }
p:last-child { margin-bottom: 0; }

/* ================================================================
   Section Title — 极简留白风格
   ================================================================ */
.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title .subtitle {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-rock-dark);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.section-title p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

/* Thin line divider under title */
.section-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  margin: 20px auto 0;
  background: var(--color-primary-light);
  opacity: 0.5;
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(74, 144, 184, 0.2);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(74, 144, 184, 0.3);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
}
.btn--ghost:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.btn--warm {
  background: var(--color-warm);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 168, 80, 0.2);
}
.btn--warm:hover {
  background: var(--color-warm-dark);
  box-shadow: 0 4px 16px rgba(232, 168, 80, 0.3);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 15px 36px;
  font-size: 0.95rem;
}

.btn--sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ================================================================
   Container & Grid
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.grid { display: grid; gap: 24px; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.section {
  padding: var(--section-gap) 0;
}
.section--alt {
  background-color: var(--color-bg-alt);
}
.section--dark {
  background: var(--color-rock-dark);
  color: rgba(255,255,255,0.85);
}
.section--dark .section-title h2,
.section--dark .section-title p { color: rgba(255,255,255,0.9); }
.section--dark .section-title::after { background: rgba(255,255,255,0.2); }

/* ================================================================
   Header — 透明→毛玻璃滚动效果 (避坑 13.3/13.4/13.11)
   ================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  transition: color 0.4s ease;
}

.header__logo-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

/* Scrolled state — logo text turns dark */
.header.scrolled .header__logo-name { color: var(--color-rock-dark); }
.header.scrolled .header__logo-sub { color: var(--color-text-muted); }

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.header.scrolled .nav__link {
  color: var(--color-text-secondary);
}

.nav__link:hover,
.nav__link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
  color: var(--color-primary) !important;
  background: var(--color-primary-bg);
}

.nav__link i {
  font-size: 0.6rem;
  margin-left: 4px;
  transition: transform var(--transition-fast);
  opacity: 0.6;
}

/* Dropdown (避坑 13.3: z-index 足够高) */
.nav__item { position: relative; }
.nav__item:hover .nav__link i { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 150px;
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 4px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 60;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav__dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav__dropdown a:hover {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

/* Nav actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.nav__search {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.header.scrolled .nav__search { color: var(--color-text-secondary); }

.nav__search:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.header.scrolled .nav__search:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Hamburger (避坑 13.4: 独立于 nav__actions) */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: 8px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.header.scrolled .hamburger span { background: var(--color-rock-dark); }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 80%; max-width: 340px;
  background: var(--color-bg);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .container-inner { padding: 24px; padding-top: 80px; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}
.mobile-nav__link:hover,
.mobile-nav__link.active {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.mobile-nav__sub { padding-left: 12px; display: none; }
.mobile-nav__sub.open { display: block; }
.mobile-nav__sub a {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}
.mobile-nav__sub a:hover {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.mobile-nav__cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 48, 55, 0.4);
  z-index: 115;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav__overlay.show { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ================================================================
   Hero — 全屏视频背景
   ================================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-rock-dark);
}

/* Video background */
.hero__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  animation: heroZoom 20s linear infinite;
}

@keyframes heroZoom {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Fallback image for mobile */
.hero__fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
}

/* Overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42, 48, 55, 0.35) 0%,
    rgba(42, 48, 55, 0.15) 40%,
    rgba(42, 48, 55, 0.55) 85%,
    rgba(42, 48, 55, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--container-padding) 100px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-warm-light);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
  max-width: 700px;
  letter-spacing: 0.05em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 480px;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  right: var(--container-padding);
  z-index: 10;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll::before {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.8; }
}

/* ================================================================
   Stats Bar — 海拔数据数字区
   ================================================================ */
.stats-section {
  background: var(--color-bg);
  padding: 64px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item__icon {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: block;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-rock-dark);
  line-height: 1.1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-item__number sup {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.stat-item__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  font-weight: 400;
}

/* ================================================================
   Peak Cards — 半透白毛玻璃 (避坑 13.14: 对称 / 13.24: 容器在循环外)
   ================================================================ */
.peak-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: pointer;
  display: block;
}

.peak-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(74, 144, 184, 0.2);
}

.peak-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.peak-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.peak-card:hover .peak-card__image img {
  transform: scale(1.04);
}

.peak-card__body {
  padding: 20px 22px 24px;
}

.peak-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-rock-dark);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.peak-card__altitude {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.peak-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover reveal — difficulty badge */
.peak-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #fff;
  background: rgba(42, 48, 55, 0.6);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition);
}

.peak-card:hover .peak-card__badge {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   Gallery — 极简网格
   ================================================================ */
.gallery-grid-item {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--color-bg-alt);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-grid-item:hover img {
  transform: scale(1.05);
}

.gallery-grid-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 48, 55, 0.25);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-grid-item:hover .gallery-grid-item__overlay {
  opacity: 1;
}

.gallery-grid-item__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

/* ================================================================
   Video Placeholder
   ================================================================ */
.video-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-rock-dark);
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-placeholder {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, rgba(42,48,55,0.9), rgba(58,66,76,0.7)),
    radial-gradient(ellipse at 30% 50%, rgba(74,144,184,0.15) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.video-placeholder__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 16px;
  transition: all 0.5s ease;
  cursor: pointer;
}

.video-placeholder__icon:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.06);
}

.video-placeholder__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}

/* ================================================================
   Quote Block — 行者笔记
   ================================================================ */
.quote-section {
  background: var(--color-bg);
  padding: 100px 0;
  text-align: center;
}

.quote-section blockquote {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-rock-dark);
  line-height: 1.8;
  letter-spacing: 0.04em;
  position: relative;
}

.quote-section blockquote::before {
  content: '"';
  font-size: 5rem;
  position: absolute;
  top: -40px;
  left: 0;
  color: var(--color-border);
  font-family: var(--font-heading);
  line-height: 1;
}

.quote-section .quote-author {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* ================================================================
   Climate Data Block
   ================================================================ */
.climate-section {
  background: var(--color-bg-alt);
  padding: 80px 0;
}

.climate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.climate-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.climate-icon-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.climate-icon-card i {
  font-size: 1.75rem;
  color: var(--color-primary-light);
  margin-bottom: 12px;
  display: block;
}

.climate-icon-card__value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-rock-dark);
  display: block;
  margin-bottom: 4px;
}

.climate-icon-card__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.climate-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.climate-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.climate-list__item:last-child { border-bottom: none; }

.climate-list__item i {
  color: var(--color-primary-light);
  font-size: 1rem;
  width: 24px;
  text-align: center;
}

/* ================================================================
   CTA Section
   ================================================================ */
.cta-section {
  position: relative;
  background: var(--color-rock-dark);
  text-align: center;
  padding: 90px 0;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74,144,184,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section .subtitle {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 440px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.cta-section .btn-group { justify-content: center; }

/* ================================================================
   Inner Banner — 内页顶部
   ================================================================ */
.inner-banner {
  position: relative;
  height: 340px;
  background: var(--color-rock-dark);
  overflow: hidden;
  margin-top: 0;
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42,48,55,0.3),
    rgba(42,48,55,0.55)
  );
}

.inner-banner__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  padding-top: 72px;
}

.inner-banner__category {
  font-size: 0.75rem;
  color: var(--color-warm-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.inner-banner__title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.inner-banner__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

/* ================================================================
   Breadcrumb
   ================================================================ */
.breadcrumb {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--color-text-light); }

/* ================================================================
   Peak Detail Page
   ================================================================ */
.detail-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.detail-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--color-rock-dark);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.detail-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.detail-cover img {
  width: 100%;
  height: auto;
}

/* Detail body content */
.detail-body {
  color: var(--color-text);
  line-height: 1.9;
  font-size: 0.98rem;
}

.detail-body p { margin-bottom: 1.25rem; }
.detail-body h2, .detail-body h3 { font-family: var(--font-heading); color: var(--color-rock-dark); margin-top: 2rem; margin-bottom: 0.8rem; }
.detail-body h2 { font-size: 1.4rem; }
.detail-body h3 { font-size: 1.15rem; }
.detail-body img { border-radius: var(--radius-xs); max-width: 100%; height: auto; margin: 1.5rem 0; }

/* Peak parameters grid */
.param-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.param-item {
  padding: 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xs);
  text-align: center;
}

.param-item__label {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.param-item__value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-rock-dark);
}

/* Prev/Next */
.prev-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.prev-next a { color: var(--color-text-secondary); }
.prev-next a:hover { color: var(--color-primary); }

/* ================================================================
   Peak List — Filter sidebar
   ================================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.filter-sidebar {
  position: sticky;
  top: 90px;
}

.filter-sidebar__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-rock-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
  letter-spacing: 0.05em;
}

.filter-sidebar a {
  display: block;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}

.filter-sidebar a:hover,
.filter-sidebar a.active {
  color: var(--color-primary);
}

.filter-sidebar a.active {
  font-weight: 500;
  padding-left: 8px;
  border-left: 2px solid var(--color-primary);
}

/* ================================================================
   Pagination (避坑 13.24: 分页在循环外)
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.pagination a,
.pagination .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination a.active,
.pagination .page-num.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ================================================================
   Contact / Form
   ================================================================ */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  font-size: 0.95rem;
}

.contact-card__info h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-rock-dark);
  margin-bottom: 4px;
}

.contact-card__info p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-label .required { color: var(--color-warm); }

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  outline: none;
  font-family: var(--font-body);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.checkcode-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkcode-box input { width: 130px !important; }
.checkcode-box img { height: 42px; border-radius: var(--radius-xs); cursor: pointer; }

/* ================================================================
   Search Section
   ================================================================ */
.search-section {
  background: var(--color-bg-alt);
  padding: 48px 0;
  margin-top: 0;
}

.search-section h1 {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 24px;
  font-weight: 600;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
}

.search-form__input-wrap {
  flex: 1;
  position: relative;
}

.search-form__input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.search-form__input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: all var(--transition-fast);
}

.search-form__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Search results */
.search-result-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.search-result-item:hover {
  border-color: rgba(74,144,184,0.2);
  box-shadow: var(--shadow-sm);
}

.search-result-item__image {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-alt);
}

.search-result-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__body { flex: 1; min-width: 0; }
.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.search-result-item:hover .search-result-item__title { color: var(--color-primary); }

/* ================================================================
   No Data
   ================================================================ */
.no-data {
  text-align: center;
  padding: 80px 0;
  color: var(--color-text-muted);
}

.no-data i {
  font-size: 2.5rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  display: block;
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
  background: var(--color-rock-dark);
  color: rgba(255,255,255,0.5);
  padding-top: 64px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
  max-width: 380px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.footer__contact i {
  color: var(--color-primary-light);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer__links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition-fast);
}

.footer__links a:hover { color: rgba(255,255,255,0.65); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a { color: rgba(255,255,255,0.2); }
.footer__bottom a:hover { color: rgba(255,255,255,0.5); }
.footer__bottom-links { display: flex; gap: 16px; align-items: center; }

/* ================================================================
   Lightbox
   ================================================================ */
.gallery-item {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--color-bg-alt);
  transition: all var(--transition);
}

.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,48,55,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: 1.25rem;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(42,48,55,0.94);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-xs); }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 201;
}
.lightbox__close:hover { background: var(--color-primary); }

/* ================================================================
   Back to Top
   ================================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 40px; height: 40px;
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ================================================================
   Utilities
   ================================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

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

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

@keyframes cloudDrift {
  0% { transform: translateX(-5%); }
  100% { transform: translateX(5%); }
}

/* ================================================================
   Accessibility
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================================
   Print
   ================================================================ */
@media print {
  .header, .footer, .back-top, .hamburger, .mobile-nav, .mobile-nav__overlay,
  .hero, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .inner-banner { margin-top: 0; height: auto; padding: 40px 0; }
}
