/* ============================================================
   Mad Island 疯狂岛 中文官网 — 热带荒岛主题
   色彩方案：珊瑚橙 #FF7043 / 海洋蓝 #0288D1 / 沙滩米 #FFF3E0 / 棕榈绿 #66BB6A
   ============================================================ */

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

/* ========== CSS VARIABLES ========== */
:root {
  --coral: #FF7043;
  --coral-dark: #E64A19;
  --coral-light: #FFAB91;
  --ocean: #0288D1;
  --ocean-dark: #01579B;
  --ocean-light: #4FC3F7;
  --sand: #FFF3E0;
  --sand-dark: #F5E1C8;
  --palm: #66BB6A;
  --palm-dark: #388E3C;
  --palm-light: #A5D6A7;
  --bg: #FFFDF7;
  --bg-warm: #FFF8F0;
  --bg-card: #FFFFFF;
  --text: #2C2416;
  --text-soft: #5D5140;
  --text-muted: #8B7E6B;
  --text-light: #B0A595;
  --header-bg: #1A1510;
  --header-text: #FFFFFF;
  --header-accent: #FF7043;
  --border: #E8DDD0;
  --border-light: #F0E8DC;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  --max-width: 1200px;
  --header-h: 64px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ========== HEADER & NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 3px solid var(--header-accent);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--header-text);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 400;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-cta {
  background: var(--coral) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  margin-left: 8px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--coral-dark) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,112,67,0.4); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 6px; }

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 520px;
  padding: 80px 24px 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26,21,16,0.65) 0%,
    rgba(26,21,16,0.35) 50%,
    rgba(255,253,247,0.90) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg,
    rgba(26,21,16,0.90) 0%,
    transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-kicker {
  display: inline-block;
  background: rgba(255,112,67,0.20);
  color: var(--coral-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,112,67,0.30);
  margin-bottom: 24px;
}
.hero-title-main {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.70);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.hero-badge {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ========== HERO SUB-PAGE ========== */
.hero-subpage {
  min-height: 280px;
  padding: 40px 24px 48px;
}
.hero-subpage .hero-title-main {
  font-size: 2.4rem;
}
.hero-subpage-title {
  font-size: 2.4rem !important;
}
.hero-subpage .hero-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
}

/* ========== PAGE-SPECIFIC HERO BACKGROUNDS ========== */
.hero-home .hero-bg { background-image: url('../img/mad-island-survival.webp'); }
.hero-guide .hero-bg { background-image: url('../img/mad-island-craft.webp'); }
.hero-story .hero-bg { background-image: url('../img/mad-island-base.webp'); }
.hero-characters .hero-bg { background-image: url('../img/mad-island-characters.webp'); }
.hero-faq .hero-bg { background-image: url('../img/mad-island-survival.webp'); }

/* ========== COMMON SECTION STYLES ========== */
.section {
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-alt { background: var(--bg-warm); padding: 64px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-desc {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ========== CONTENT SECTION (for sub-pages) ========== */
.content-section {
  padding: 48px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.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 {
  color: var(--text-soft);
  margin-bottom: 18px;
  line-height: 1.85;
  font-size: 1rem;
}

/* ========== INFO CARD GRID ========== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.info-card .info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--coral);
  margin-bottom: 6px;
}
.info-card .info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

/* ========== FEATURE CARDS ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-left: 4px solid var(--coral);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== SCREENSHOT GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid var(--border-light);
}
.gallery-grid img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ========== REVIEWS ========== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.review-stars { color: var(--coral); font-size: 1.1rem; margin-bottom: 10px; }
.review-text {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
  font-style: italic;
}
.review-source {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== CTA BANNER (index only) ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  background: var(--sand);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--header-bg);
  color: var(--text-muted);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.88rem;
  border-top: 3px solid var(--coral-dark);
}
.site-footer p { margin: 0; line-height: 1.6; }

/* ========== FAQ ACCORDION ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--bg-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after { content: '−'; }
.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 20px 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========== GUIDE PAGE ========== */
.guide-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.85;
}
.route-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ocean-dark);
  margin-top: 32px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ocean-light);
}
.route-desc {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ========== CHAPTERS (story page) ========== */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--palm-dark);
  margin-top: 32px;
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 4px solid var(--palm);
}

/* ========== CHARACTER CARDS ========== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.char-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  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: 200px;
  object-fit: cover;
}
.char-card-body { padding: 20px; }
.char-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.char-role {
  display: inline-block;
  background: rgba(2,136,209,0.10);
  color: var(--ocean);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.char-card-body p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}
.char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.char-tag {
  font-size: 0.75rem;
  background: var(--sand);
  color: var(--text-soft);
  padding: 3px 10px;
  border-radius: 10px;
}

/* ========== TABLE SCROLL ========== */
.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 600px;
}
.table-scroll th {
  background: var(--coral);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.table-scroll td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-soft);
  vertical-align: top;
}
.table-scroll tr:last-child td { border-bottom: none; }
.table-scroll tr:nth-child(even) td { background: var(--bg-warm); }

/* ========== SYSTEM REQUIREMENTS TABLE ========== */
.sys-reqs-table { margin: 24px 0; }
.sys-reqs-table th { background: var(--ocean); }
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ocean-dark);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ocean-light);
  display: inline-block;
}
.sys-reqs-h3:first-of-type { margin-top: 8px; }

/* ========== SECTION SUBHEADING ========== */
.section-subheading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 40px 0 24px;
}

/* ========== LIST UTILITY CLASSES ========== */
.content-list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}
.content-list-num {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 20px;
}
.content-li { margin-bottom: 5px; color: var(--text-soft); line-height: 1.8; }
.content-li-sm { margin-bottom: 4px; color: var(--text-soft); line-height: 1.7; }
.content-li-md { margin-bottom: 8px; color: var(--text-soft); line-height: 1.8; }
.content-li-lg { margin-bottom: 10px; color: var(--text-soft); line-height: 1.85; }

/* ========== STRONG COLOR UTILITY CLASSES ========== */
.strong-pink { color: var(--coral); font-weight: 700; }
.strong-red { color: #D32F2F; font-weight: 700; }
.strong-gold { color: #F9A825; font-weight: 700; }
.strong-muted { color: var(--text-muted); font-weight: 700; }
.strong-navy { color: var(--ocean-dark); font-weight: 700; }

/* ========== TABLE HIGHLIGHT ========== */
.td-highlight { color: var(--coral); font-weight: 700; }

/* ========== PROSE WRAPPER ========== */
.prose {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.85;
}
.prose p { margin-bottom: 18px; color: var(--text-soft); }

/* ========== TIP BOX ========== */
.tip-box {
  background: rgba(102,187,106,0.08);
  border: 1px solid rgba(102,187,106,0.30);
  border-left: 4px solid var(--palm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.tip-box .tip-label {
  font-weight: 700;
  color: var(--palm-dark);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.tip-box p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.75; }

/* ========== WARNING BOX ========== */
.warn-box {
  background: rgba(255,112,67,0.06);
  border: 1px solid rgba(255,112,67,0.25);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.warn-box .warn-label {
  font-weight: 700;
  color: var(--coral-dark);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.warn-box p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.75; }

/* ========== STEP LIST (guide page) ========== */
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 56px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.step-list li h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.step-list li p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ========== DECORATIVE ELEMENTS ========== */
.palm-divider {
  text-align: center;
  font-size: 1.5rem;
  margin: 16px 0;
  color: var(--palm);
  letter-spacing: 8px;
  user-select: none;
}

/* Body background pattern: subtle wave motif */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.015;
  background:
    radial-gradient(ellipse at 15% 20%, var(--ocean) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, var(--coral) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, var(--palm) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero section decorative palm leaves */
.hero::after {
  content: '🌴';
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 4rem;
  z-index: 2;
  opacity: 0.25;
  pointer-events: none;
}

/* Section divider: wave pattern */
.section::after {
  content: '';
  display: block;
  height: 8px;
  margin: 48px auto 0;
  max-width: 120px;
  background: linear-gradient(90deg,
    var(--ocean-light) 0%,
    var(--coral-light) 50%,
    var(--palm-light) 100%);
  border-radius: 4px;
  opacity: 0.5;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,112,67,0.35);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--coral-dark); transform: translateY(-2px); }

/* ========== RESPONSIVE: 768px ========== */
@media (max-width: 768px) {
  .hero-title-main { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-subpage .hero-title-main { font-size: 1.8rem; }
  .hero-subpage-title { font-size: 1.8rem !important; }
  .hero { min-height: 400px; padding: 56px 20px 80px; }
  .hero-subpage { min-height: 220px; padding: 32px 20px 40px; }

  .section-title { font-size: 1.7rem; }
  .content-section h2 { font-size: 1.7rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 160px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }

  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p { font-size: 0.95rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; border-radius: 0; }
  .nav-cta { margin: 8px 16px; border-radius: 8px !important; }
  .hamburger { display: block; }

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

/* ========== RESPONSIVE: 480px ========== */
@media (max-width: 480px) {
  .hero-title-main { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-subpage .hero-title-main { font-size: 1.5rem; }
  .hero-subpage-title { font-size: 1.5rem !important; }
  .hero-tagline { font-size: 0.9rem; }
  .hero { min-height: 340px; padding: 40px 16px 60px; }
  .hero-subpage { min-height: 180px; padding: 24px 16px 32px; }

  .header-inner { padding: 0 16px; }
  .site-logo { font-size: 1.05rem; }

  .section { padding: 40px 16px; }
  .section-title { font-size: 1.45rem; }
  .content-section { padding: 32px 16px; }
  .content-section h2 { font-size: 1.45rem; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 200px; }
  .info-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px 16px; }

  .cta-button { padding: 12px 32px; font-size: 0.95rem; }
  .faq-question { font-size: 0.92rem; padding: 14px 16px; }

  .back-to-top { bottom: 16px; right: 16px; }
}

/* ========== PRINT ========== */
@media print {
  .site-header, .back-to-top, .cta-banner, .lightbox { display: none; }
  body { font-size: 14px; }
}
