/* =============================================
   夏色四叶草 Summer Clover - Lucky Theme
   Clover greens, summer-sky blues, four-leaf motifs
   ============================================= */

/* --- Custom Properties --- */
:root {
  --clover-green: #3a7d44;
  --clover-dark: #2a5c32;
  --clover-light: #6dbd6e;
  --clover-pale: #d4eed4;
  --sky-blue: #5b9bd5;
  --sky-dark: #3a78b4;
  --sky-light: #a8d4f0;
  --sky-pale: #e8f4fc;
  --sunshine: #e8a840;
  --sunshine-light: #fef3d0;
  --bg: #fafdf7;
  --bg-card: #ffffff;
  --bg-alt: #f2f8f0;
  --text: #2d3a2d;
  --text-light: #5a6b5a;
  --text-muted: #8a9a8a;
  --header-bg: #2d5a3d;
  --header-text: #eaf7ea;
  --border: #dde8da;
  --shadow: rgba(42, 92, 50, 0.08);
  --shadow-md: rgba(42, 92, 50, 0.12);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --font-heading: 'Noto Serif SC', 'STSong', 'Songti SC', 'SimSun', 'KaiTi', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

/* Lucky clover + summer-sky ambient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(106, 189, 110, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(91, 155, 213, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(232, 168, 64, 0.04) 0%, transparent 55%);
}

a { color: var(--clover-green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--clover-dark); }
img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--clover-dark); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1rem; }

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 3px solid var(--clover-light);
  box-shadow: 0 2px 12px var(--shadow-md);
}

header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clover-light), var(--sky-light), var(--sunshine), var(--sky-light), var(--clover-light), transparent);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--header-text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand img { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(234, 247, 234, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--sunshine), #d4951c);
  color: #2d2d1a !important;
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(232, 168, 64, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232, 168, 64, 0.35); }

/* Four-leaf clover icon on nav-cta */
.nav-cta::before { content: '🍀'; font-size: 0.9rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--header-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(170deg, #e8f4e8 0%, var(--sky-pale) 40%, var(--bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(58, 125, 68, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(91, 155, 213, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(232, 168, 64, 0.05) 0%, transparent 40%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--clover-dark) 0%, var(--clover-green) 50%, var(--sky-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-content .hero-desc {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tag-green { background: var(--clover-pale); color: var(--clover-dark); }
.tag-blue { background: var(--sky-pale); color: var(--sky-dark); }
.tag-gold { background: var(--sunshine-light); color: #8b6914; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--clover-green), var(--clover-dark));
  color: #fff;
  padding: 0.65rem 1.6rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 3px 12px rgba(42, 92, 50, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42, 92, 50, 0.35); color: #fff; }

.btn-primary::before { content: '🍀'; font-size: 1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  color: var(--clover-green);
  border: 2px solid var(--clover-pale);
  padding: 0.6rem 1.5rem;
  border-radius: 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-secondary:hover { border-color: var(--clover-green); background: var(--clover-pale); color: var(--clover-dark); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-md);
}

.hero-visual img { width: 100%; display: block; }

/* --- Page Hero (sub-pages) --- */
.page-hero {
  background: linear-gradient(170deg, #e8f4e8 0%, var(--bg) 100%);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(58, 125, 68, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(91, 155, 213, 0.05) 0%, transparent 50%);
}

.page-hero h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--clover-dark), var(--clover-green), var(--sky-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
  position: relative;
  z-index: 1;
}

/* --- Main Content --- */
main { position: relative; z-index: 1; }

section { padding: 3rem 1.5rem; }

.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.75rem;
  color: var(--clover-dark);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* --- Clover Divider --- */
.clover-divider {
  text-align: center;
  margin: 0.5rem 0 1.5rem;
  font-size: 1.2rem;
  color: var(--clover-light);
  letter-spacing: 0.5rem;
  user-select: none;
}

/* --- Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px var(--shadow-md); }

.info-card .info-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.info-card .info-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.info-card .info-value { font-size: 1.1rem; font-weight: 700; color: var(--clover-dark); }

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--clover-green);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow-md); border-left-color: var(--sky-blue); }

.feature-card h3 { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.feature-card h3 .fc-icon { font-size: 1.4rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 0; }

/* --- Story Blocks --- */
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--sky-blue);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.story-block h3 { color: var(--sky-dark); margin-bottom: 0.5rem; }
.story-block p { color: var(--text-light); margin-bottom: 0; }

/* --- Character Cards --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.char-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow-md); }

.char-card-header {
  background: linear-gradient(135deg, var(--clover-dark), var(--clover-green));
  padding: 1rem 1.25rem;
  color: #fff;
}

.char-card-header h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.15rem; }
.char-card-header .char-role { font-size: 0.85rem; opacity: 0.9; }

.char-card-body {
  padding: 1.25rem;
}

.char-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clover-pale), var(--sky-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: -2.5rem 0 0.75rem;
  border: 3px solid var(--bg-card);
  box-shadow: 0 2px 8px var(--shadow);
}

.char-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.75rem; }

.char-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.char-stats span { color: var(--clover-dark); font-weight: 600; }

.char-cv { 
  margin-top: 0.75rem;
  font-size: 0.85rem; 
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.char-cv span { color: var(--sky-dark); }

/* --- Guide Steps --- */
.guide-steps { counter-reset: step; }

.guide-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.guide-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--clover-green), var(--clover-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(42, 92, 50, 0.2);
}

.guide-step-content {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex: 1;
  box-shadow: 0 2px 6px var(--shadow);
}

.guide-step-content h3 { margin-bottom: 0.35rem; }
.guide-step-content p { color: var(--text-light); margin-bottom: 0; }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover { transform: scale(1.02); box-shadow: 0 6px 20px var(--shadow-md); }

.gallery-item img { width: 100%; display: block; }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 4px var(--shadow);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.faq-question:hover { background: var(--clover-pale); }

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--clover-green);
  transition: transform 0.3s;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem;
}

.faq-answer p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--clover-pale), var(--sky-pale));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, rgba(58, 125, 68, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(91, 155, 213, 0.08) 0%, transparent 40%);
}

.cta-banner h2 { color: var(--clover-dark); margin-bottom: 0.75rem; position: relative; z-index: 1; }
.cta-banner p { color: var(--text-light); margin-bottom: 1.5rem; position: relative; z-index: 1; }

.cta-banner .btn-primary { position: relative; z-index: 1; }

/* --- Reviews --- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px var(--shadow);
}

.review-card .review-text {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.review-card .review-author {
  font-weight: 600;
  color: var(--clover-dark);
  font-size: 0.9rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumbs a { color: var(--clover-green); }
.breadcrumbs span { color: var(--text-muted); }

/* --- Footer --- */
footer {
  background: var(--header-bg);
  color: rgba(234, 247, 234, 0.7);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  border-top: 3px solid var(--clover-light);
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clover-green);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Tip Box --- */
.tip-box {
  background: var(--sky-pale);
  border-left: 4px solid var(--sky-blue);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.tip-box p { margin-bottom: 0; color: var(--text-light); font-size: 0.95rem; }

/* --- Blockquote --- */
blockquote {
  background: var(--clover-pale);
  border-left: 4px solid var(--clover-green);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.bg-alt { background: var(--bg-alt); }

/* --- Lightbox Overlay --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Desktop-only page-hero visual --- */
@media (min-width: 769px) {
  .hero-home .hero-visual { display: block; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.25rem 2rem;
  }

  .hero-content h1 { font-size: 1.8rem; }
  .hero-tags { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 400px; margin: 0 auto; }

  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 3px solid var(--clover-light);
    box-shadow: 0 4px 12px var(--shadow-md);
  }

  .nav-links.active { display: flex; }

  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }

  section { padding: 2rem 1.25rem; }
  .page-hero { padding: 2rem 1.25rem 1.5rem; }
  .page-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.5rem; }
  .stats-row { gap: 1rem; }
  .stat-value { font-size: 1.5rem; }
  .cta-banner { padding: 1.5rem 1rem; }
}
