/* ============================================
   影色渐染~阿斯林顿的妹神官~
   Stained Glass Cathedral Theme
   Sapphire & Amethyst Jewel Tones
   ============================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Noto+Serif+SC:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* --- CSS VARIABLES --- */
:root {
  /* Jewel Tones */
  --sapphire: #0f3d8a;
  --sapphire-light: #1a56db;
  --sapphire-glow: #3b82f6;
  --amethyst: #6b21a8;
  --amethyst-light: #8b5cf6;
  --amethyst-glow: #a78bfa;
  
  /* Cathedral Palette */
  --gold: #b8860b;
  --gold-light: #d4a843;
  --gold-glow: #e8c96a;
  --rose-gold: #c97b5b;
  
  /* Light Ethereal Background */
  --bg: #f8f4fc;
  --bg-alt: #f0ebf8;
  --bg-card: #ffffff;
  --bg-header: rgba(15, 37, 86, 0.95);
  --bg-hero-overlay: rgba(15, 61, 138, 0.08);
  
  /* Text */
  --text: #1e1b2e;
  --text-light: #4a4568;
  --text-muted: #7a7598;
  --text-on-dark: #e8e4f0;
  
  /* Accents */
  --accent: var(--sapphire);
  --accent-hover: var(--sapphire-light);
  --accent-light: rgba(15, 61, 138, 0.08);
  --accent-second: var(--amethyst);
  --accent-second-hover: var(--amethyst-light);
  
  /* Divider */
  --divider: rgba(107, 33, 168, 0.15);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 37, 86, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 37, 86, 0.10);
  --shadow-lg: 0 8px 30px rgba(15, 37, 86, 0.12);
  --shadow-glow-sapphire: 0 0 20px rgba(26, 86, 219, 0.15);
  --shadow-glow-amethyst: 0 0 20px rgba(139, 92, 246, 0.15);
  
  /* Layout */
  --max-width: 1100px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition: 0.25s ease;
}

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

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

body {
  font-family: 'Noto Sans SC', 'Noto Serif SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- DIVINE LIGHT RAYS (ethereal background) --- */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background:
    /* Main divine light from top-center */
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(26, 86, 219, 0.04) 0%, transparent 40%),
    /* Side rays */
    radial-gradient(ellipse at 20% 10%, rgba(139, 92, 246, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 10%, rgba(26, 86, 219, 0.04) 0%, transparent 45%),
    /* Warm golden glow */
    radial-gradient(ellipse at 50% 5%, rgba(212, 168, 67, 0.05) 0%, transparent 30%),
    /* Subtle rose window glow bottom */
    radial-gradient(circle at 50% 90%, rgba(107, 33, 168, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

/* Decorative light ray streaks */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    /* Light ray 1 */
    linear-gradient(175deg, transparent 30%, rgba(26, 86, 219, 0.03) 31%, transparent 33%),
    /* Light ray 2 */
    linear-gradient(185deg, transparent 35%, rgba(139, 92, 246, 0.03) 36%, transparent 38%),
    /* Light ray 3 */
    linear-gradient(165deg, transparent 25%, rgba(212, 168, 67, 0.02) 26%, transparent 28%);
  pointer-events: none;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 2px 20px rgba(15, 37, 86, 0.2);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-on-dark);
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold));
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 0 4px rgba(184, 134, 11, 0.6);
  box-shadow: 0 0 12px rgba(184, 134, 11, 0.3);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .logo-zh {
  font-size: 0.85rem;
  font-family: 'Noto Serif SC', serif;
}

.logo-text .logo-en {
  font-size: 0.6rem;
  opacity: 0.65;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-on-dark);
  opacity: 0.8;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 1;
  background: rgba(139, 92, 246, 0.15);
}

.nav-menu a.active {
  background: rgba(139, 92, 246, 0.2);
  box-shadow: inset 0 -2px 0 var(--amethyst-light);
}

/* Header CTA Button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: #1a0a00 !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 25px !important;
  font-size: 0.85rem !important;
  opacity: 1 !important;
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.35);
  transition: all var(--transition) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.5) !important;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-glow) 50%, var(--gold-light) 100%) !important;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

/* --- HERO --- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 37, 86, 0.95) 0%, rgba(15, 61, 138, 0.7) 40%, rgba(139, 92, 246, 0.25) 70%, var(--bg) 100%);
  padding: 80px 20px 100px;
  text-align: center;
  overflow: hidden;
}

/* Hero rose window decoration */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background:
    /* Outer ring */
    radial-gradient(circle, transparent 38%, rgba(184, 134, 11, 0.08) 39%, rgba(184, 134, 11, 0.08) 41%, transparent 42%),
    radial-gradient(circle, transparent 44%, rgba(139, 92, 246, 0.06) 45%, rgba(139, 92, 246, 0.06) 47%, transparent 48%),
    /* Petals */
    radial-gradient(circle at 50% 20%, rgba(26, 86, 219, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 78% 35%, rgba(26, 86, 219, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 78% 65%, rgba(26, 86, 219, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(26, 86, 219, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 22% 65%, rgba(26, 86, 219, 0.06) 0%, transparent 20%),
    radial-gradient(circle at 22% 35%, rgba(26, 86, 219, 0.06) 0%, transparent 20%),
    /* Center */
    radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.08) 0%, transparent 12%);
  pointer-events: none;
  z-index: 0;
}

/* Divine light rays in hero */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 140%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(170deg, transparent 40%, rgba(139, 92, 246, 0.04) 43%, transparent 46%),
    linear-gradient(180deg, rgba(26, 86, 219, 0.05) 0%, transparent 30%),
    linear-gradient(190deg, transparent 38%, rgba(212, 168, 67, 0.04) 41%, transparent 44%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-visual {
  width: 100%;
  max-width: 550px;
  margin: 0 auto 32px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(184, 134, 11, 0.3);
  box-shadow:
    0 0 40px rgba(26, 86, 219, 0.2),
    0 0 80px rgba(139, 92, 246, 0.15);
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Stained glass pattern inside hero visual */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* Cross shape */
    linear-gradient(90deg, transparent 48%, rgba(184, 134, 11, 0.08) 49%, rgba(184, 134, 11, 0.08) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(184, 134, 11, 0.08) 49%, rgba(184, 134, 11, 0.08) 51%, transparent 52%),
    /* Quadrant colors */
    conic-gradient(
      from 0deg,
      rgba(26, 86, 219, 0.04) 0deg 90deg,
      rgba(139, 92, 246, 0.04) 90deg 180deg,
      rgba(15, 61, 138, 0.04) 180deg 270deg,
      rgba(107, 33, 168, 0.04) 270deg 360deg
    );
  pointer-events: none;
  z-index: 1;
}

.hero h1 {
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3), 0 0 60px rgba(26, 86, 219, 0.2);
  letter-spacing: 0.04em;
}

.hero h1 .subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 6px;
  font-family: 'Noto Sans SC', sans-serif;
  text-shadow: none;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-tags span {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

.tag-sapphire {
  background: rgba(26, 86, 219, 0.2);
  color: #a5c8ff;
  border: 1px solid rgba(26, 86, 219, 0.3);
}

.tag-amethyst {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag-gold {
  background: rgba(184, 134, 11, 0.2);
  color: #f5d78c;
  border: 1px solid rgba(184, 134, 11, 0.3);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: #1a0a00;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 40px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(184, 134, 11, 0.4);
  transition: all var(--transition);
  letter-spacing: 0.05em;
  font-family: 'Noto Serif SC', serif;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(184, 134, 11, 0.55);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-glow) 50%, var(--gold-light) 100%);
}

/* --- PAGE HERO (sub-pages) --- */
.page-hero {
  background: linear-gradient(180deg, rgba(15, 37, 86, 0.95) 0%, rgba(15, 61, 138, 0.6) 60%, var(--bg) 100%);
  padding: 60px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background:
    radial-gradient(circle, transparent 38%, rgba(184, 134, 11, 0.06) 39%, rgba(184, 134, 11, 0.06) 41%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 300;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--amethyst);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 6px;
}

/* --- CONTENT SECTIONS --- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 60px;
}

section {
  margin: 48px 0;
}

.section-title {
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sapphire);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  letter-spacing: 0.03em;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--sapphire), var(--amethyst));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* --- ROSE WINDOW DIVIDER --- */
.rose-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--amethyst-light);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.rose-divider::before,
.rose-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amethyst-light), transparent);
}

/* --- STAINED GLASS PATTERN DIVIDER --- */
.stained-divider {
  height: 4px;
  margin: 40px 0;
  background: repeating-linear-gradient(
    90deg,
    var(--sapphire) 0px,
    var(--sapphire) 8px,
    var(--sapphire-light) 8px,
    var(--sapphire-light) 12px,
    var(--amethyst) 12px,
    var(--amethyst) 16px,
    var(--amethyst-light) 16px,
    var(--amethyst-light) 20px,
    var(--gold) 20px,
    var(--gold) 24px,
    var(--rose-gold) 24px,
    var(--rose-gold) 28px
  );
  border-radius: 2px;
  opacity: 0.35;
}

/* --- INFO CARDS --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--sapphire), var(--amethyst));
  opacity: 0;
  transition: opacity var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 92, 246, 0.2);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.info-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  color: var(--sapphire);
  margin-bottom: 6px;
}

.info-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- FEATURE CARDS --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  transition: all var(--transition);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--sapphire), var(--amethyst));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 92, 246, 0.25);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  color: var(--sapphire);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- STORY BLOCKS --- */
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--sapphire);
  position: relative;
}

.story-block.chapter-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--amethyst);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.story-block h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--sapphire);
  margin-bottom: 10px;
}

.story-block p {
  color: var(--text-light);
  line-height: 1.8;
}

/* --- CHARACTER CARDS --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 32px 0;
}

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  transition: all var(--transition);
}

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

.char-card-header {
  background: linear-gradient(135deg, var(--sapphire), var(--amethyst));
  padding: 20px;
  text-align: center;
  position: relative;
}

.char-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  line-height: 0;
}

.char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.char-card-header h3 {
  color: #fff;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.char-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 300;
}

.char-card-body {
  padding: 20px;
}

.char-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.char-trait {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 500;
}

.char-trait.sapphire {
  background: rgba(26, 86, 219, 0.1);
  color: var(--sapphire-light);
  border: 1px solid rgba(26, 86, 219, 0.2);
}

.char-trait.amethyst {
  background: rgba(139, 92, 246, 0.1);
  color: var(--amethyst-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.char-trait.gold {
  background: rgba(184, 134, 11, 0.1);
  color: var(--gold);
  border: 1px solid rgba(184, 134, 11, 0.2);
}

/* --- GUIDE STEPS --- */
.guide-step {
  display: flex;
  gap: 20px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
}

.guide-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sapphire), var(--amethyst));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-sapphire);
  font-family: 'Cinzel', serif;
}

.guide-step-content h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  color: var(--sapphire);
  margin-bottom: 6px;
}

.guide-step-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --- TIP BOX --- */
.tip-box {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.04), rgba(139, 92, 246, 0.04));
  border-left: 4px solid var(--amethyst-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 24px;
  margin: 24px 0;
}

.tip-box strong {
  color: var(--amethyst);
  font-family: 'Noto Serif SC', serif;
}

.tip-box p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

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

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(139, 92, 246, 0.04);
}

.faq-icon {
  font-size: 0.8rem;
  color: var(--amethyst-light);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
  display: inline-block;
}

.faq-item.open .faq-icon {
  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: 600px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, rgba(15, 37, 86, 0.95), rgba(107, 33, 168, 0.8));
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 48px 0;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(26, 86, 219, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

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

.cta-banner h2 {
  font-family: 'Cinzel', 'Noto Serif SC', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-banner p {
  opacity: 0.8;
  font-size: 1rem;
  margin-bottom: 24px;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: #1a0a00;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 48px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(184, 134, 11, 0.4);
  transition: all var(--transition);
  font-family: 'Noto Serif SC', serif;
  letter-spacing: 0.05em;
}

.btn-cta-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(184, 134, 11, 0.55);
}

/* --- SCREENSHOT GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.gallery-grid a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.1), rgba(139, 92, 246, 0.1));
  aspect-ratio: 16/9;
  position: relative;
}

.gallery-grid a:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--amethyst-light);
  opacity: 0.4;
}

/* --- STATS ROW --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 24px 0;
  text-align: center;
}

.stat-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sapphire), var(--amethyst));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- TABLE --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  font-size: 0.9rem;
}

.info-table th {
  background: rgba(139, 92, 246, 0.06);
  color: var(--sapphire);
  font-weight: 600;
  font-family: 'Noto Serif SC', serif;
  width: 140px;
  white-space: nowrap;
}

.info-table td {
  color: var(--text-light);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* --- BLOCKQUOTE --- */
blockquote {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.03), rgba(139, 92, 246, 0.03));
  border-left: 4px solid var(--amethyst-light);
  padding: 16px 24px;
  margin: 20px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-light);
  font-style: italic;
}

/* --- TAG LIST --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid var(--divider);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--amethyst-light);
  color: var(--amethyst);
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  background: none;
  border: none;
}

.lightbox-close:hover {
  opacity: 1;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-header);
  color: var(--text-on-dark);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.82rem;
  opacity: 0.7;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.site-footer p {
  margin: 0;
}

/* --- SECTION ALT --- */
.section-alt {
  background: var(--bg-alt);
  padding: 48px 20px;
  margin: 48px calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

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

/* --- TIMELINE --- */
.timeline {
  position: relative;
  margin: 24px 0;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sapphire), var(--amethyst));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amethyst-light);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.timeline-item h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--sapphire);
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- UTILITY --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-header);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 8px;
    transition: right var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 50px 20px 70px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-visual {
    max-width: 100%;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .feature-grid,
  .char-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .guide-step {
    flex-direction: column;
    gap: 12px;
  }

  .info-table th {
    width: 100px;
  }

  .btn-hero {
    padding: 12px 32px;
    font-size: 0.95rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tags span {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo {
    font-size: 0.9rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .cta-banner {
    padding: 32px 20px;
  }

  .cta-banner h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 1.35rem;
  }

  .hero-visual {
    max-width: 100%;
  }

  .hero-tags {
    flex-direction: row;
    justify-content: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    margin: 32px 0;
  }

  .faq-question {
    padding: 14px 18px;
    font-size: 0.9rem;
  }
}
