/* === 玉莲之剑 - Jade Lotus Sword Theme === */
:root {
  --jade: #5a9e82;
  --jade-dark: #3d7a62;
  --jade-light: #8bc4aa;
  --jade-pale: #d4ede2;
  --lotus: #e8a0b4;
  --lotus-dark: #c4788a;
  --lotus-light: #f4c8d4;
  --lotus-pale: #fce8ee;
  --silver: #bcc5d0;
  --silver-dark: #8e98a5;
  --silver-light: #dce2e9;
  --silver-gleam: #e8ecf2;
  --ink: #2c2420;
  --ink-light: #5c5450;
  --bg: #faf7f3;
  --bg-card: #ffffff;
  --bg-header: rgba(255,255,255,0.92);
  --text: #3a3430;
  --text-muted: #7a726e;
  --shadow: 0 2px 16px rgba(44,36,32,0.06);
  --shadow-lg: 0 8px 40px rgba(44,36,32,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: 'Georgia', 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --max-width: 1100px;
  --header-height: 64px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Watercolor background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(90,158,130,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(232,160,180,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(188,197,208,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 80%, rgba(90,158,130,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 75% 70%, rgba(232,160,180,0.05) 0%, transparent 45%);
  pointer-events: none;
}

/* === HEADER === */
.site-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(--jade-pale);
  height: var(--header-height);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--jade-dark);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.logo:hover { color: var(--jade); }
.logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}
.nav-main { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-main a {
  text-decoration: none; color: var(--ink-light); font-size: 0.95rem;
  font-weight: 500; transition: color 0.2s; position: relative;
}
.nav-main a:hover, .nav-main a.active { color: var(--jade); }
.nav-main a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--jade); border-radius: 1px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  color: #fff !important; border-radius: 20px; font-weight: 600;
  font-size: 0.9rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(90,158,130,0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(90,158,130,0.4);
}
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink);
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: currentColor;
  margin: 5px 0; border-radius: 1px; transition: 0.3s;
}

/* === HERO === */
.hero {
  position: relative;
  padding: 80px 24px 72px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(212,237,226,0.35) 0%, var(--bg) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(90,158,130,0.08) 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(232,160,180,0.08) 0%, transparent 55%),
    radial-gradient(circle at 50% 30%, rgba(188,197,208,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 4px 16px;
  background: linear-gradient(135deg, var(--jade-pale), var(--lotus-pale));
  color: var(--jade-dark); border-radius: 20px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 20px;
  border: 1px solid var(--jade-light);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--jade-dark) 30%, var(--lotus-dark) 70%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px; letter-spacing: 0.06em;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-muted);
  margin-bottom: 32px; font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  color: #fff; border-radius: 28px; font-size: 1.05rem;
  font-weight: 600; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(90,158,130,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(90,158,130,0.45);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  background: var(--bg-card); color: var(--jade-dark);
  border: 2px solid var(--jade-light); border-radius: 28px;
  font-size: 1.05rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--jade); background: var(--jade-pale);
}
.hero-visual {
  margin-top: 40px; max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero-visual img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.page-hero {
  padding: 48px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(212,237,226,0.3) 0%, var(--bg) 100%);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--jade-dark), var(--lotus-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 0.04em; margin-bottom: 8px;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* === SECTIONS === */
.section {
  max-width: var(--max-width); margin: 0 auto; padding: 60px 24px;
}
.section-alt { background: rgba(212,237,226,0.15); }
.section-title {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700;
  color: var(--ink); text-align: center; margin-bottom: 12px; letter-spacing: 0.03em;
}
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; font-size: 1rem; }

/* === JADE-LOTUS DIVIDER === */
.jade-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 40px 0;
}
.jade-divider::before, .jade-divider::after {
  content: ''; flex: 1; height: 1px; max-width: 60px;
  background: linear-gradient(90deg, transparent, var(--jade-light));
}
.jade-divider::after {
  background: linear-gradient(90deg, var(--jade-light), transparent);
}
.jade-divider span { color: var(--lotus); font-size: 1.1rem; }
.lotus-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 40px 0;
}
.lotus-divider::before, .lotus-divider::after {
  content: ''; flex: 1; height: 1px; max-width: 60px;
  background: linear-gradient(90deg, transparent, var(--lotus-light));
}
.lotus-divider::after {
  background: linear-gradient(90deg, var(--lotus-light), transparent);
}
.lotus-divider span { color: var(--jade); font-size: 1.1rem; }

/* === INFO CARDS === */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.info-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(90,158,130,0.08);
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.info-card-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 {
  font-family: var(--font-heading); font-size: 1.15rem; color: var(--jade-dark); margin-bottom: 6px;
}
.info-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === FEATURE CARDS === */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border-left: 3px solid var(--jade);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--lotus);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--jade-pale), var(--lotus-pale));
}
.feature-card h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--ink); margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }

/* === STORY BLOCKS === */
.story-block {
  background: var(--bg-card); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border-left: 4px solid var(--jade);
  margin-bottom: 24px;
}
.story-chapter {
  font-family: var(--font-heading); font-size: 0.85rem; color: var(--lotus-dark);
  font-weight: 600; margin-bottom: 6px; letter-spacing: 0.05em;
}
.story-block h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.story-block p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

/* === CHARACTER CARDS === */
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.char-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.char-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.char-card-img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.char-card-body { padding: 20px 22px; }
.char-card-body h3 {
  font-family: var(--font-heading); font-size: 1.15rem; color: var(--ink); margin-bottom: 4px;
}
.char-role { font-size: 0.85rem; color: var(--jade); font-weight: 600; margin-bottom: 8px; }
.char-card-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* === GUIDE STEPS === */
.guide-steps { counter-reset: step; }
.guide-step {
  position: relative; padding: 28px 24px 28px 72px;
  background: var(--bg-card); border-radius: var(--radius); margin-bottom: 20px;
  box-shadow: var(--shadow); counter-increment: step;
}
.guide-step::before {
  content: counter(step);
  position: absolute; left: 20px; top: 28px;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(90,158,130,0.3);
}
.guide-step h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.guide-step p { color: var(--text-muted); font-size: 0.93rem; }
.tip-box {
  background: var(--jade-pale); border-left: 4px solid var(--jade);
  border-radius: var(--radius-sm); padding: 18px 22px; margin-top: 16px;
}
.tip-box strong { color: var(--jade-dark); }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-grid img {
  width: 100%; border-radius: var(--radius); cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, rgba(212,237,226,0.4), rgba(252,232,238,0.4));
  border-radius: var(--radius); padding: 48px 32px; text-align: center;
  margin-top: 40px; border: 1px solid var(--jade-light);
}
.cta-banner h3 {
  font-family: var(--font-heading); font-size: 1.5rem; color: var(--ink); margin-bottom: 8px;
}
.cta-banner p { color: var(--text-muted); margin-bottom: 24px; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border-radius: var(--radius); margin-bottom: 12px;
  box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(90,158,130,0.06);
}
.faq-q {
  width: 100%; padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--ink); text-align: left; transition: color 0.2s;
}
.faq-q:hover { color: var(--jade-dark); }
.faq-q::after {
  content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--jade);
  transition: transform 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '×'; transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* === STATS ROW === */
.stats-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 48px;
  padding: 32px 24px;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  color: var(--jade-dark);
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* === BREADCRUMBS === */
.breadcrumbs {
  max-width: var(--max-width); margin: 0 auto; padding: 20px 24px 0;
  font-size: 0.9rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--jade); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* === TABLE === */
.info-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.info-table th, .info-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--jade-pale);
}
.info-table th {
  font-weight: 600; color: var(--jade-dark); background: rgba(212,237,226,0.2);
  width: 140px; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.info-table td { color: var(--text); }

/* === TAG PILLS === */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag { padding: 4px 14px; border-radius: 16px; font-size: 0.85rem; font-weight: 500; }
.tag-jade { background: var(--jade-pale); color: var(--jade-dark); }
.tag-lotus { background: var(--lotus-pale); color: var(--lotus-dark); }
.tag-silver { background: var(--silver-gleam); color: var(--silver-dark); }
.tag-ink { background: rgba(44,36,32,0.06); color: var(--ink-light); }

/* === BLOCKQUOTE === */
blockquote {
  border-left: 3px solid var(--jade); padding: 12px 20px;
  background: var(--jade-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-light); font-style: italic; margin: 20px 0;
}

/* === FOOTER === */
.site-footer {
  text-align: center; padding: 32px 24px;
  border-top: 1px solid var(--jade-pale);
  color: var(--text-muted); font-size: 0.88rem;
  margin-top: 40px;
}

/* === LIGHTBOX === */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(44,36,32,0.92); justify-content: center; align-items: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; opacity: 0.8; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.pb-0 { padding-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }
.img-responsive { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root { --header-height: 56px; }
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .section { padding: 40px 20px; }
  .section-title { font-size: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .btn-primary, .btn-secondary { padding: 12px 28px; font-size: 0.95rem; }
  .nav-main {
    display: none; position: fixed; top: var(--header-height); left: 0; right: 0;
    background: var(--bg-header); backdrop-filter: blur(12px);
    flex-direction: column; padding: 16px 24px; gap: 12px;
    border-bottom: 1px solid var(--jade-pale); box-shadow: var(--shadow);
  }
  .nav-main.open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .info-grid { grid-template-columns: 1fr; }
  .guide-step { padding-left: 60px; }
  .guide-step::before { left: 14px; width: 30px; height: 30px; font-size: 0.85rem; }
}
