/* ============================================
   张山营镇宣传官网 — 共享样式 v2
   视觉风格：冰雪蓝 + 森林绿，自然大气
   字体：DM Serif Display + Noto Serif SC + PingFang SC
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

/* ----- CSS Variables ----- */
:root {
  --color-blue: #1a73e8;
  --color-blue-dark: #1557b0;
  --color-blue-deeper: #0e3d80;
  --color-blue-light: #e8f0fe;
  --color-green: #2d8a4e;
  --color-green-dark: #1f6b37;
  --color-green-light: #e6f4ea;
  --color-gold: #c7923e;
  --color-gold-dark: #a07630;
  --color-gold-light: #fef8ee;
  --color-white: #ffffff;
  --color-bg: #f5f7fa;
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a7a;
  --color-text-light: #8888a8;
  --color-border: #e0e4e8;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "STSong", "Songti SC", serif;
  --font-display: "DM Serif Display", serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Typography ----- */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 12px;
  font-family: var(--font-cn);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.section-title-en {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-blue);
  opacity: 0.1;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ----- Scroll Reveal ----- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* ----- Navigation ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-blue);
  font-family: var(--font-serif);
}

.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-green));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex; list-style: none; gap: 4px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 15px; font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-blue);
  background: var(--color-blue-light);
}

.subpage .nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

/* Sub-pages: explicit dark text (override any homepage leakage) */
.subpage .nav .nav-logo { color: var(--color-blue); }
.subpage .nav .nav-links a { color: var(--color-text); }
.subpage .nav .nav-links a:hover,
.subpage .nav .nav-links a.active { color: var(--color-blue); background: var(--color-blue-light); }
.subpage .nav .nav-toggle span { background: var(--color-text); }

/* Homepage nav: white text over dark hero, dark text after scroll */
html:not(.subpage) .nav:not(.scrolled) .nav-logo { color: rgba(255,255,255,0.9); }
html:not(.subpage) .nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
html:not(.subpage) .nav:not(.scrolled) .nav-links a:hover,
html:not(.subpage) .nav:not(.scrolled) .nav-links a.active { color: white; background: rgba(255,255,255,0.15); }
html:not(.subpage) .nav:not(.scrolled) .nav-toggle span { background: rgba(255,255,255,0.9); }

/* Scrolled state: revert to dark */
html:not(.subpage) .nav.scrolled .nav-logo { color: var(--color-blue); }
html:not(.subpage) .nav.scrolled .nav-links a { color: var(--color-text); }
html:not(.subpage) .nav.scrolled .nav-links a:hover,
html:not(.subpage) .nav.scrolled .nav-links a.active { color: var(--color-blue); background: var(--color-blue-light); }
html:not(.subpage) .nav.scrolled .nav-toggle span { background: var(--color-text); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer;
  background: none; border: none; padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

/* ----- Hero Section (Homepage) ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(10,22,40,0.7) 0%, rgba(21,42,74,0.65) 40%, rgba(26,58,92,0.65) 70%, rgba(13,59,46,0.7) 100%),
              url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80') center/cover no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%; right: -10%; bottom: -10%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(26,115,232,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(45,138,78,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(199,146,62,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 35%;
  pointer-events: none; opacity: 0.15;
  background:
    linear-gradient(2deg, transparent 33%, rgba(255,255,255,0.3) 33%, rgba(255,255,255,0.3) 34%, transparent 34%),
    linear-gradient(-3deg, transparent 40%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.15) 41%, transparent 41%),
    linear-gradient(5deg, transparent 50%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.08) 51%, transparent 51%);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px; border-radius: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 56px; font-weight: 800;
  line-height: 1.2; color: white;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  font-family: var(--font-serif);
}

.hero h1 .accent {
  color: var(--color-gold);
}

.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px; font-weight: 400;
}

.hero-buttons {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 28px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: var(--font-cn);
}

.btn-primary {
  background: var(--color-blue); color: white;
}
.btn-primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,115,232,0.35);
}

.btn-outline {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ----- Snowflake Animation ----- */
.snowflakes {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 1; overflow: hidden;
}
.snowflake {
  position: absolute; top: -10%;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  animation: snowfall linear infinite;
}
.snowflake:nth-child(1)  { left: 5%;  animation-duration: 12s; animation-delay: 0s; font-size: 12px; }
.snowflake:nth-child(2)  { left: 15%; animation-duration: 15s; animation-delay: 2s; font-size: 10px; }
.snowflake:nth-child(3)  { left: 25%; animation-duration: 10s; animation-delay: 4s; font-size: 16px; }
.snowflake:nth-child(4)  { left: 35%; animation-duration: 18s; animation-delay: 1s; font-size: 11px; }
.snowflake:nth-child(5)  { left: 45%; animation-duration: 13s; animation-delay: 6s; font-size: 14px; }
.snowflake:nth-child(6)  { left: 55%; animation-duration: 16s; animation-delay: 3s; font-size: 9px; }
.snowflake:nth-child(7)  { left: 65%; animation-duration: 11s; animation-delay: 5s; font-size: 15px; }
.snowflake:nth-child(8)  { left: 75%; animation-duration: 14s; animation-delay: 7s; font-size: 10px; }
.snowflake:nth-child(9)  { left: 85%; animation-duration: 17s; animation-delay: 2s; font-size: 13px; }
.snowflake:nth-child(10) { left: 92%; animation-duration: 9s;  animation-delay: 8s; font-size: 12px; }

@keyframes snowfall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .snowflake { animation: none; display: none; }
}

/* ----- Page Banner (Sub Pages) ----- */
.page-banner {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
}

.page-banner.olympic  { background: linear-gradient(135deg, rgba(10,22,40,0.85), rgba(21,42,74,0.8), rgba(26,58,92,0.8)), url('https://images.unsplash.com/photo-1605540436563-5bca919ae766?w=1600&q=80') center/cover no-repeat; }
.page-banner.nature   { background: linear-gradient(135deg, rgba(10,31,18,0.85), rgba(21,58,37,0.8), rgba(26,74,48,0.8)), url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1600&q=80') center/cover no-repeat; }
.page-banner.culture  { background: linear-gradient(135deg, rgba(26,15,8,0.85), rgba(58,37,21,0.8), rgba(74,48,26,0.8)), url('https://images.unsplash.com/photo-1523875194681-bedd468c58bf?w=1600&q=80') center/cover no-repeat; }
.page-banner.fruit    { background: linear-gradient(135deg, rgba(26,10,21,0.85), rgba(58,21,37,0.8), rgba(74,26,48,0.8)), url('https://picsum.photos/id/488/1600/600') center/cover no-repeat; }
.page-banner.homestay { background: linear-gradient(135deg, rgba(8,26,32,0.85), rgba(21,58,58,0.8), rgba(26,74,74,0.8)), url('https://picsum.photos/id/535/1600/600') center/cover no-repeat; }
.page-banner.village  { background: linear-gradient(135deg, rgba(10,26,16,0.85), rgba(21,58,40,0.8), rgba(26,74,53,0.8)), url('https://picsum.photos/id/1043/1600/600') center/cover no-repeat; }
.page-banner.season   { background: linear-gradient(135deg, rgba(26,10,32,0.85), rgba(42,21,53,0.8), rgba(58,26,74,0.8)), url('https://images.unsplash.com/photo-1507901747481-84a4f64fda6d?w=1600&q=80') center/cover no-repeat; }

.page-banner h1 {
  font-size: 44px; font-weight: 800;
  color: white; line-height: 1.3;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.page-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 600px; margin: 0 auto;
}

/* ----- Stats Section ----- */
.stats-section {
  padding: 64px 0;
  background: var(--color-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 24px 10px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1.1;
  font-family: var(--font-display);
  white-space: nowrap;
}

.stat-number.green { color: var(--color-green); }
.stat-number.gold  { color: var(--color-gold); }

.stat-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 6px;
  white-space: nowrap;
}

/* ----- Common Section ----- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}

.section-header .section-title {
  margin-bottom: 12px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-light {
  background: var(--color-bg);
}

/* ----- Nav Cards (Homepage) - Staggered Grid ----- */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (min-width: 769px) {
  .nav-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .nav-cards .nav-card:nth-child(1) { margin-top: 0; }
  .nav-cards .nav-card:nth-child(2) { margin-top: 20px; }
  .nav-cards .nav-card:nth-child(3) { margin-top: 40px; }
  .nav-cards .nav-card:nth-child(4) { margin-top: 40px; }
  .nav-cards .nav-card:nth-child(5) { margin-top: 20px; }
  .nav-cards .nav-card:nth-child(6) { margin-top: 0; }
}

.nav-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px 40px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all 0.35s ease;
  cursor: pointer; text-align: center; overflow: hidden;
}

.nav-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 3;
  transition: height 0.3s ease;
}

.nav-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.nav-card:hover::before { height: 6px; }

.nav-card.card-blue::before   { background: var(--color-blue); }
.nav-card.card-green::before  { background: var(--color-green); }
.nav-card.card-gold::before   { background: var(--color-gold); }
.nav-card.card-coral::before  { background: #e25822; }
.nav-card.card-teal::before   { background: #0d9488; }
.nav-card.card-purple::before { background: #7c3aed; }

.nav-card-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.nav-card-icon.blue   { background: var(--color-blue-light); color: var(--color-blue); }
.nav-card-icon.green  { background: var(--color-green-light); color: var(--color-green); }
.nav-card-icon.gold   { background: var(--color-gold-light); color: var(--color-gold); }
.nav-card-icon.coral  { background: #fef2f2; color: #e25822; }
.nav-card-icon.teal   { background: #f0fdfa; color: #0d9488; }
.nav-card-icon.purple { background: #f5f3ff; color: #7c3aed; }

.nav-card h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
  font-family: var(--font-serif);
}

.nav-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ----- Homepage Highlights Banner ----- */
.highlights-banner {
  background: linear-gradient(135deg, var(--color-blue-deeper), var(--color-blue-dark));
  color: white;
  padding: 48px 0;
  text-align: center;
}

.highlights-banner h3 {
  font-size: 22px; font-weight: 600;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}

.highlight-list {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px;
}

.highlight-item i { font-size: 24px; opacity: 0.8; }

/* ----- Feature Cards (Sub Pages) ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card-image {
  height: 220px;
  background: var(--color-bg) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  position: relative;
  transition: transform 0.4s ease;
}

.feature-card-image[data-bg]:not(.bg-loaded) i { display: block; }

.feature-card-image[data-bg].bg-loaded i { display: none; }

.feature-card:hover .feature-card-image[data-bg].bg-loaded {
  transform: scale(1.05);
}

.feature-card-image.blue  { background-color: var(--color-blue-light); color: var(--color-blue); }
.feature-card-image.green { background-color: var(--color-green-light); color: var(--color-green); }
.feature-card-image.gold  { background-color: var(--color-gold-light); color: var(--color-gold); }
.feature-card-image.coral { background-color: #fef2f2; color: #e25822; }
.feature-card-image.teal  { background-color: #f0fdfa; color: #0d9488; }
.feature-card-image.ice   { background-color: #e0f0ff; color: #1a73e8; }

.feature-card-image[data-bg].bg-loaded.blue,
.feature-card-image[data-bg].bg-loaded.green,
.feature-card-image[data-bg].bg-loaded.gold,
.feature-card-image[data-bg].bg-loaded.coral,
.feature-card-image[data-bg].bg-loaded.teal,
.feature-card-image[data-bg].bg-loaded.ice {
  color: transparent;
}

.feature-card-body {
  padding: 28px;
}

.feature-card-body h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 10px; color: var(--color-text);
  font-family: var(--font-serif);
}

.feature-card-body p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.feature-card-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 500;
}

.tag-blue   { background: var(--color-blue-light); color: var(--color-blue); }
.tag-green  { background: var(--color-green-light); color: var(--color-green); }
.tag-gold   { background: var(--color-gold-light); color: var(--color-gold); }
.tag-teal   { background: #f0fdfa; color: #0d9488; }
.tag-coral  { background: #fef2f2; color: #e25822; }
.tag-purple { background: #f5f3ff; color: #7c3aed; }

/* ----- Content Block (Sub Pages) ----- */
.content-block {
  padding: 64px 0;
  border-bottom: 1px solid var(--color-border);
}

.content-block:last-child {
  border-bottom: none;
}

.content-row {
  display: flex; align-items: center; gap: 64px;
}

.content-row.reverse {
  flex-direction: row-reverse;
}

.content-text {
  flex: 1;
}

.content-text h2 {
  font-size: 28px; font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
  line-height: 1.4;
  font-family: var(--font-serif);
}

.content-text p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

.content-text ul {
  list-style: none; padding: 0;
}

.content-text ul li {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.9;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}

.content-text ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
}

.content-image {
  flex: 0 0 440px;
  height: 340px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-image:hover {
  transform: scale(1.02);
}

/* When data-bg is present but not yet loaded: keep colored bg + icon */
.content-image[data-bg]:not(.bg-loaded) i { display: block; }

/* When background loaded: hide icon, show image */
.content-image[data-bg].bg-loaded {
  /* bg loaded via inline style, hide fallback color if any */
}
.content-image[data-bg].bg-loaded i { display: none; }

.content-image.blue  { background-color: var(--color-blue-light); color: var(--color-blue); }
.content-image.green { background-color: var(--color-green-light); color: var(--color-green); }
.content-image.gold  { background-color: var(--color-gold-light); color: var(--color-gold); }
.content-image.ice   { background-color: #e0f0ff; color: #1a73e8; }
.content-image.teal  { background-color: #f0fdfa; color: #0d9488; }
.content-image.coral { background-color: #fef2f2; color: #e25822; }

/* When bg image is loaded, remove the colored fallback */
.content-image.blue.bg-loaded,
.content-image.green.bg-loaded,
.content-image.gold.bg-loaded,
.content-image.ice.bg-loaded,
.content-image.teal.bg-loaded,
.content-image.coral.bg-loaded {
  background-color: transparent;
  color: transparent;
}

/* Data highlight card inserts */
.data-highlight {
  display: flex; gap: 32px;
  margin: 32px 0; flex-wrap: wrap;
}
.data-highlight-item {
  flex: 1; min-width: 140px;
  text-align: center;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--color-bg);
}
.data-highlight-item .dh-number {
  font-size: 32px; font-weight: 800;
  font-family: var(--font-display);
}
.data-highlight-item .dh-number.blue  { color: var(--color-blue); }
.data-highlight-item .dh-number.green { color: var(--color-green); }
.data-highlight-item .dh-number.gold  { color: var(--color-gold); }
.data-highlight-item .dh-label {
  font-size: 13px; color: var(--color-text-light); margin-top: 6px;
}

/* Full-width image banner */
.image-banner {
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xl);
  margin: 48px 0;
  font-size: 48px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.image-banner:hover { transform: scale(1.01); }
.image-banner[data-bg].bg-loaded i { display: none; }
.image-banner[data-bg].bg-loaded { color: transparent; }

.image-banner.blue  { background-color: var(--color-blue-light); color: var(--color-blue); }
.image-banner.green { background-color: var(--color-green-light); color: var(--color-green); }
.image-banner.gold  { background-color: var(--color-gold-light); color: var(--color-gold); }
.image-banner.teal  { background-color: #f0fdfa; color: #0d9488; }

.image-banner[data-bg].bg-loaded.blue,
.image-banner[data-bg].bg-loaded.green,
.image-banner[data-bg].bg-loaded.gold,
.image-banner[data-bg].bg-loaded.teal { color: transparent; }

/* Quote block */
.quote-block {
  padding: 48px 0;
  text-align: center;
}
.quote-block blockquote {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 16px;
  font-family: var(--font-serif);
  font-style: italic;
  position: relative;
}
.quote-block blockquote::before {
  content: '\201C';
  font-size: 60px;
  color: var(--color-blue-light);
  position: absolute;
  left: -30px; top: -20px;
  font-family: serif;
}
.quote-block .quote-author {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ----- Timeline (Culture page) ----- */
.timeline {
  position: relative; padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--color-border);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex; align-items: flex-start;
  margin-bottom: 48px; position: relative;
}
.timeline-item:nth-child(odd)  { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute; left: 50%; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-blue);
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-blue-light);
  transform: translateX(-50%); z-index: 2;
}
.timeline-content {
  width: 44%;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.timeline-content h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  font-family: var(--font-serif);
}
.timeline-content p {
  font-size: 15px; color: var(--color-text-muted); line-height: 1.8;
}

/* ----- Story Card (Minsu/Houlongmiao) ----- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.story-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}
.story-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.story-card .story-icon {
  font-size: 32px; margin-bottom: 16px;
}
.story-card h3 {
  font-size: 19px; font-weight: 700; margin-bottom: 10px;
  font-family: var(--font-serif);
}
.story-card p {
  font-size: 15px; color: var(--color-text-muted); line-height: 1.8;
}

/* ----- Footer ----- */
.footer {
  background: #0a1628;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 22px; font-weight: 700;
  color: white; margin-bottom: 12px;
  font-family: var(--font-serif);
}

.footer-brand p {
  font-size: 14px; line-height: 1.8;
}

.footer-col h4 {
  font-size: 15px; font-weight: 600;
  color: white; margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  font-size: 14px; margin-bottom: 10px;
}

.footer-col ul li a:hover { color: white; }

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-honors {
  display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap;
}

.footer-honor {
  padding: 6px 14px; border-radius: 16px;
  background: rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.7);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .nav-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-cards .nav-card:nth-child(n) { margin-top: 0; }
  .content-row {
    flex-direction: column !important; gap: 32px;
  }
  .content-image {
    flex: 0 0 240px; width: 100%;
  }
  .image-banner { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .page-banner h1 { font-size: 30px; }
  .section-title { font-size: 26px; }
  .nav-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .highlight-list { flex-direction: column; gap: 16px; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: white; flex-direction: column;
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .content-block { padding: 40px 0; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) { flex-direction: row; }
  .timeline-dot { left: 20px; }
  .timeline-content { width: calc(100% - 50px); margin-left: 50px; }
  .story-grid { grid-template-columns: 1fr; }
  .data-highlight { gap: 12px; }
  .data-highlight-item { min-width: 100px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 24px; }
  .page-banner { padding: 120px 0 60px; }
  .page-banner h1 { font-size: 26px; }
}
