/* ============================================================
   夏日海滩 Summer Beach — Summer Beach Ocean Theme
   Color Palette: ocean-wave turquoises + sandy-gold tans
   Motif: seashells on light sunny background
   ============================================================ */

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

/* ========== CSS VARIABLES ========== */
:root {
  /* Backgrounds */
  --bg: #fefaf3;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #0d9488 0%, #0891b2 40%, #f59e0b 100%);

  /* Header */
  --header-bg: #0a2e3d;
  --header-accent: #e8b45a;

  /* Primary (teal/turquoise) */
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;

  /* Accent (sandy gold) */
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-light: #fef3c7;

  /* Text */
  --text: #1e293b;
  --text-soft: #64748b;
  --text-muted: #94a3b8;

  /* Semantic */
  --danger-red: #dc2626;
  --success-green: #16a34a;

  /* Card border accent */
  --card-accent: #0d9488;

  /* Fonts */
  --font-sans: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', serif;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  /* Subtle seashell body pattern via pseudo-element on html */
}

/* Seashell body pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(13, 148, 136, 0.02) 0%, transparent 40%);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

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

/* ========== SR-ONLY (screen reader) ========== */
.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;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  border-bottom: 3px solid var(--header-accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.header-logo .logo-accent {
  color: var(--header-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--header-accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
  color: #1a1a1a;
}

.header-cta::after {
  content: '↗';
  font-size: 0.75rem;
}

/* ========== HERO SECTION ========== */
.hero {
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  padding: 60px 24px 80px;
  text-align: center;
}

.hero-subpage {
  padding: 40px 24px 48px;
}

.hero-subpage-title {
  font-size: 2rem;
  font-weight: 700;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(232, 180, 90, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Seashell decorative pseudo-element */
.hero::after {
  content: '🐚';
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 3rem;
  opacity: 0.2;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.hero-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px;
  letter-spacing: 0.15em;
}

.hero-img {
  max-width: 700px;
  margin: 32px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  color: #ffffff;
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.section-intro {
  text-align: center;
  color: var(--text-soft);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* Content section for sub-pages */
.content-section {
  padding: 48px 24px 64px;
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
}

.content-section p {
  margin-bottom: 16px;
  color: var(--text-soft);
  line-height: 1.85;
}

/* ========== CARD GRID ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  border-left: 4px solid var(--card-accent);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
}

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

.char-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.char-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.char-card-img::after {
  content: '🐚';
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 1.5rem;
  opacity: 0.4;
}

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

.char-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.char-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.char-name-en {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.char-trait {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.char-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
}

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

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ========== REVIEWS ========== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.review-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--primary-light);
  line-height: 1;
  pointer-events: none;
}

.review-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  font-style: italic;
}

.review-author {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), #0a2e3d);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(232, 180, 90, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 70% 20%, rgba(13, 148, 136, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner::after {
  content: '🌊';
  position: absolute;
  bottom: 16px;
  left: 30px;
  font-size: 2.5rem;
  opacity: 0.2;
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 40px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  color: #1a1a1a;
}

.cta-btn::after {
  content: '↗';
  font-size: 0.8rem;
}

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

.faq-item {
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.8;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* ========== SYSTEM REQUIREMENTS TABLE ========== */
.sys-reqs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.9rem;
}

.sys-reqs-table th,
.sys-reqs-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.sys-reqs-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sys-reqs-table td {
  color: var(--text-soft);
}

.sys-reqs-table tr:hover td {
  background: #f8fafc;
}

/* ========== GUIDE STEPS ========== */
.guide-step {
  background: var(--bg-card);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.guide-step-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.guide-step-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.guide-step p {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 8px;
}

.tip-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 16px 0;
  font-size: 0.9rem;
}

.tip-box strong {
  color: var(--accent-gold-dark);
}

/* ========== STORY CHAPTER ========== */
.chapter-block {
  margin-bottom: 40px;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--header-bg);
  text-align: center;
  padding: 28px 24px;
  border-top: 3px solid var(--header-accent);
}

.site-footer p {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ========== UTILITY CLASSES (anti-inline) ========== */

/* Content List Classes */
.content-list {
  list-style: disc;
  padding-left: 20px;
}

.content-list-num {
  list-style: decimal;
  padding-left: 24px;
}

.content-li {
  margin-bottom: 5px;
  color: var(--text-soft);
}

.content-li-sm {
  margin-bottom: 4px;
  color: var(--text-soft);
}

.content-li-md {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.content-li-lg {
  margin-bottom: 10px;
  color: var(--text-soft);
}

/* Colored Strong Tags */
.strong-gold {
  color: var(--accent-gold-dark);
}

.strong-red {
  color: var(--danger-red);
}

.strong-muted {
  color: var(--text-muted);
}

.strong-navy {
  color: var(--header-bg);
}

.strong-teal {
  color: var(--primary-dark);
}

/* Table Highlight */
.td-highlight {
  color: var(--accent-gold-dark);
  font-weight: 700;
}

/* System Requirements Headings */
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--header-bg);
  margin-top: 24px;
  margin-bottom: 12px;
}

.sys-reqs-h3:first-of-type {
  margin-top: 8px;
}

/* Section Subheading */
.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
}

/* Guide-specific */
.guide-intro {
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 20px;
}

.route-desc {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}

.route-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

/* Table scroll wrapper */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Chapter sub-heading */
.chapter-subtitle {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 24px;
  margin-bottom: 10px;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  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: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10000;
}

/* ========== DIVIDER with seashell motif ========== */
.section-divider {
  text-align: center;
  padding: 0;
  margin: 0;
  position: relative;
}

.section-divider::before {
  content: '🐚';
  font-size: 1.8rem;
  opacity: 0.4;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-nav {
    gap: 16px;
  }

  .header-nav a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 40px 16px 56px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  .section {
    padding: 48px 16px;
  }

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

  .content-section h2 {
    font-size: 1.7rem;
  }

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

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

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

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

  .cta-banner-title {
    font-size: 1.5rem;
  }

  .header-logo {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 12px;
    height: 56px;
  }

  .header-nav {
    gap: 10px;
  }

  .header-nav a {
    font-size: 0.75rem;
  }

  .header-cta {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .hero {
    padding: 32px 12px 48px;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

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

  .sys-reqs-table th,
  .sys-reqs-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}
