/* ============================================================
   Rural Countryside Healing Theme
   Wildflower meadow + gentle sunlight + vintage farmhouse
   Pastoral healing on light sky blue background
   Trigger: "rural countryside", "wildflower meadow", "vintage farmhouse",
           "pastoral healing", "田园治愈", "乡村", "乡间", "wildflower"
   ============================================================ */

:root {
  --bg: #f0f5fa;
  --bg-alt: #faf7f2;
  --bg-header: rgba(240, 245, 250, 0.95);
  --accent: #e8a840;
  --accent-hover: #d49530;
  --accent-light: #fef6e8;
  --meadow: #7a9a5c;
  --meadow-light: #e8f0e0;
  --lavender: #b8a0c8;
  --lavender-light: #f4eff8;
  --sky: #a8c8e8;
  --sky-light: #e8f0f8;
  --farmhouse: #faf7f2;
  --text: #4a3f35;
  --text-light: #7a7065;
  --text-muted: #a09888;
  --border: #e0d8cc;
  --border-light: #efe8dc;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 12px rgba(120, 100, 70, 0.08);
  --card-shadow-hover: 0 4px 20px rgba(120, 100, 70, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', 'KaiTi', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* Four-corner radial glow overlay — wildflower meadow + sky + sun + green */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(184, 160, 200, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(168, 200, 232, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(232, 168, 64, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(122, 154, 92, 0.04) 0%, transparent 60%);
}

/* ---- Header ---- */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.logo-icon { width: 32px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, var(--meadow), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
nav { display: flex; align-items: center; gap: 0.3rem; }
nav a { text-decoration: none; color: var(--text-light); padding: 0.4rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.9rem; transition: color 0.2s, background 0.2s; }
nav a:hover, nav a.active { color: var(--accent); background: var(--accent-light); }
.nav-cta { background: linear-gradient(135deg, var(--accent), #d49530) !important; color: #fff !important; font-weight: 600; padding: 0.45rem 1.1rem !important; border-radius: 20px !important; box-shadow: 0 2px 8px rgba(232, 168, 64, 0.3); transition: transform 0.2s, box-shadow 0.2s !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232, 168, 64, 0.4); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); padding: 0.4rem; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 5rem 2rem 4rem; text-align: center; background: linear-gradient(180deg, var(--sky-light) 0%, var(--bg) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 50% 30%, rgba(232, 168, 64, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(184, 160, 200, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 50%, rgba(122, 154, 92, 0.06) 0%, transparent 60%);
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--meadow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; line-height: 1.3; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto 1.8rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.hero-tag { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 20px; font-size: 0.82rem; font-weight: 500; backdrop-filter: blur(8px); background: rgba(255,255,255,0.7); border: 1px solid var(--border-light); color: var(--text-light); }
.btn-hero { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--meadow)); color: #fff; text-decoration: none; padding: 0.75rem 2.5rem; border-radius: 28px; font-size: 1.05rem; font-weight: 600; box-shadow: 0 4px 16px rgba(232, 168, 64, 0.35); transition: transform 0.2s, box-shadow 0.2s; }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(232, 168, 64, 0.45); }

/* ---- Page Hero (sub-pages) ---- */
.page-hero { position: relative; overflow: hidden; padding: 3.5rem 2rem; text-align: center; background: linear-gradient(180deg, var(--sky-light) 0%, var(--bg) 100%); }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 50% at 50% 40%, rgba(232, 168, 64, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse 30% 40% at 70% 50%, rgba(184, 160, 200, 0.06) 0%, transparent 60%);
}
.page-hero h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--text); position: relative; z-index: 1; }
.page-hero p { color: var(--text-light); font-size: 1rem; max-width: 600px; margin: 0.5rem auto 0; position: relative; z-index: 1; }

/* ---- Sections ---- */
section { padding: 3.5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; text-align: center; color: var(--text); margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.5rem; }
.section-alt { background: var(--farmhouse); }

/* ---- Meadow Divider ---- */
.meadow-divider { text-align: center; padding: 0.5rem 0; font-size: 1.2rem; color: var(--accent); letter-spacing: 0.5rem; }
.meadow-divider::before, .meadow-divider::after {
  content: ''; display: inline-block; width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); vertical-align: middle; margin: 0 1rem;
}

/* ---- Info Cards, Feature Cards, Story Blocks, Character Cards ---- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.info-card { background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--card-shadow); border-left: 3px solid var(--accent); transition: box-shadow 0.2s, transform 0.2s; }
.info-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.info-card-label { font-size: 0.78rem; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.info-card-value { font-size: 1rem; color: var(--text); font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--card-bg); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--card-shadow); border-left: 3px solid var(--meadow); transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.feature-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.feature-card-icon.green { background: var(--meadow-light); }
.feature-card-icon.gold { background: var(--accent-light); }
.feature-card-icon.lavender { background: var(--lavender-light); }
.feature-card-icon.sky { background: var(--sky-light); }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

.story-block { background: var(--card-bg); border-radius: var(--radius); padding: 2rem; box-shadow: var(--card-shadow); margin-bottom: 1.5rem; border-left: 4px solid var(--accent); }
.story-block h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.6rem; color: var(--text); }
.story-block p { color: var(--text-light); line-height: 1.8; }
.story-chapter { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.char-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); transition: box-shadow 0.2s, transform 0.2s; }
.char-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.char-card-header { background: linear-gradient(135deg, var(--sky), var(--lavender)); padding: 1.5rem; text-align: center; }
.char-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 0.8rem; background: linear-gradient(135deg, var(--accent), var(--meadow)); display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 3px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.char-card-header h3 { font-family: var(--font-heading); font-size: 1.15rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.char-role { font-size: 0.8rem; color: rgba(255,255,255,0.85); margin-top: 0.2rem; }
.char-card-body { padding: 1.2rem 1.5rem; }
.char-card-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.char-traits { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.char-trait { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 14px; font-size: 0.75rem; font-weight: 500; background: var(--accent-light); color: var(--accent); }
.char-trait.green { background: var(--meadow-light); color: var(--meadow); }
.char-trait.lavender { background: var(--lavender-light); color: var(--lavender); }

/* ---- Guide Steps ---- */
.guide-step { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
.step-number { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #d49530); color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(232, 168, 64, 0.25); }
.step-content { flex: 1; }
.step-content h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--text); }
.step-content p { color: var(--text-light); line-height: 1.7; }

/* ---- FAQ Accordion ---- */
.faq-item { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--card-shadow); margin-bottom: 0.8rem; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 1.2rem 1.5rem; background: none; border: none; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); }
.faq-toggle { font-size: 1.3rem; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 1.5rem 1.2rem; color: var(--text-light); line-height: 1.7; }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: var(--card-shadow); }
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--card-shadow-hover); }

/* ---- CTA Banner ---- */
.cta-banner { position: relative; overflow: hidden; text-align: center; padding: 3.5rem 2rem; background: linear-gradient(135deg, var(--sky-light), var(--lavender-light), var(--accent-light)); border-radius: var(--radius); margin: 0 2rem 3rem; }
.cta-banner::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 50% at 30% 50%, rgba(232, 168, 64, 0.1) 0%, transparent 60%),
              radial-gradient(ellipse 30% 40% at 70% 40%, rgba(122, 154, 92, 0.08) 0%, transparent 60%);
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-banner h2 { font-family: var(--font-heading); font-size: 1.7rem; margin-bottom: 0.8rem; color: var(--text); }
.cta-banner p { color: var(--text-light); margin-bottom: 1.5rem; }
.cta-btn { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--meadow)); color: #fff; text-decoration: none; padding: 0.7rem 2.2rem; border-radius: 24px; font-size: 1rem; font-weight: 600; box-shadow: 0 4px 14px rgba(232, 168, 64, 0.3); transition: transform 0.2s, box-shadow 0.2s; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232, 168, 64, 0.4); }

/* ---- Tags ---- */
.tag { display: inline-block; padding: 0.25rem 0.8rem; border-radius: 14px; font-size: 0.78rem; font-weight: 500; }
.tag-gold { background: var(--accent-light); color: var(--accent); }
.tag-green { background: var(--meadow-light); color: var(--meadow); }
.tag-lavender { background: var(--lavender-light); color: var(--lavender); }
.tag-sky { background: var(--sky-light); color: #6a9ab8; }

/* ---- Stats Row ---- */
.stats-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; text-align: center; }
.stat-item { min-width: 100px; }
.stat-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Download Card ---- */
.download-card { background: var(--card-bg); border-radius: var(--radius); padding: 2rem; box-shadow: var(--card-shadow); border: 2px solid var(--accent); text-align: center; max-width: 500px; margin: 0 auto; }
.download-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 0.5rem; }
.download-card .version { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ---- Info Table + Table Section Headers ---- */
.table-section-header { text-align: center !important; }
.table-section-header.meadow-header { background: var(--meadow-light) !important; color: var(--meadow) !important; }
.table-section-header.accent-header { background: var(--accent-light) !important; color: var(--accent) !important; }
.info-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.info-table th, .info-table td { padding: 0.9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border-light); }
.info-table th { background: var(--accent-light); color: var(--accent); font-weight: 700; font-size: 0.85rem; width: 30%; }
.info-table td { color: var(--text-light); font-size: 0.92rem; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); padding: 1rem 2rem 0; max-width: 1100px; margin: 0 auto; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---- Lightbox ---- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 200; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm); box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.8rem; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ---- Tip Box ---- */
.tip-box { background: var(--meadow-light); border-left: 4px solid var(--meadow); padding: 1.2rem 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; color: var(--text); font-size: 0.92rem; }
.tip-box strong { color: var(--meadow); }

/* ---- Blockquote ---- */
blockquote { background: var(--accent-light); border-left: 4px solid var(--accent); padding: 1.2rem 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; color: var(--text-light); font-style: italic; }

/* ---- Footer ---- */
footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border-light); background: var(--farmhouse); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.pb-0 { padding-bottom: 0; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-header); backdrop-filter: blur(12px); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border-light); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 0.7rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.5rem; }
  .stats-row { gap: 1.2rem; }
  .stat-value { font-size: 1.5rem; }
  .cta-banner { margin: 0 1rem 2rem; padding: 2.5rem 1.5rem; }
}
