/* === 幸福岛幻想 - Island Paradise Theme CSS ===
   Tropical blues/greens, sandy beige, sunset coral accents, light bg */
:root {
  --bg: #faf7f0;
  --bg-card: #ffffff;
  --bg-warm: #fef9f3;
  --bg-hero: linear-gradient(170deg, #d4f0f7 0%, #e8f4e8 25%, #fdf6eb 55%, #fce8d5 85%, #fad4b8 100%);
  --text: #2c2416;
  --text-muted: #6b5e4a;
  --text-light: #998c70;
  --accent: #e8734a;
  --accent-hover: #d05a30;
  --accent-light: #fef2ea;
  --accent-soft: #fde8d8;
  --ocean: #0ea5a9;
  --ocean-hover: #089194;
  --ocean-light: #e0f7f7;
  --coral: #f4845f;
  --coral-light: #fef0ea;
  --sand: #f5e6d3;
  --palm: #2d8a4e;
  --palm-light: #e8f5e9;
  --sunset: #f7936f;
  --border: #e8dcc8;
  --border-light: #f2ebdd;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-h: 72px;
  --font: 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s; }
img[loading="lazy"].loaded { opacity: 1; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light); height: var(--header-h);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--text);
}
.logo-icon { font-size: 1.6rem; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 22px; border-radius: 24px; font-weight: 600 !important;
  transition: all 0.25s !important; font-size: 0.9rem !important;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* === Hero === */
.hero {
  background: var(--bg-hero);
  padding: 72px 24px 100px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 2;
}
.hero-waves {
  position: absolute; bottom: -2px; left: 0; right: 0; z-index: 1;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 3; }
.hero-badge {
  display: inline-block; background: var(--ocean-light); color: var(--ocean);
  padding: 6px 18px; border-radius: 20px; font-size: 0.85rem;
  font-weight: 600; margin-bottom: 20px; letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 3rem; font-weight: 800; margin-bottom: 14px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, #d4843a 50%, var(--ocean) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.hero-tags span {
  background: rgba(255,255,255,0.75); color: var(--text-muted);
  padding: 7px 18px; border-radius: 22px; font-size: 0.88rem;
  font-weight: 500; border: 1px solid var(--border-light);
}
.hero-cta { margin-bottom: 24px; }
.cta-btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 15px 44px; border-radius: 50px; font-size: 1.15rem; font-weight: 700;
  box-shadow: 0 6px 24px rgba(232,115,74,0.35);
  transition: all 0.3s; letter-spacing: 0.01em;
}
.cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,115,74,0.45); }
.hero-img { margin: 40px auto 0; max-width: 850px; }
.hero-img img, .hero-placeholder {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hero-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #d4f0f7 0%, #fdf6eb 40%, #fce8d5 70%, #fad4b8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; border: 2px dashed var(--border);
}

/* === Sections === */
section { padding: 72px 24px; }
section.alt { background: var(--bg-warm); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; text-align: center; }
.section-desc { text-align: center; color: var(--text-muted); max-width: 640px; margin: 0 auto 44px; font-size: 1.05rem; line-height: 1.8; }
.section-divider {
  width: 60px; height: 3px; background: var(--accent);
  margin: 0 auto 16px; border-radius: 2px;
}

/* === Info Cards === */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: box-shadow 0.3s, transform 0.2s;
  text-align: center;
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.info-card .card-icon { font-size: 2.4rem; margin-bottom: 14px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.info-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }

/* === Feature Cards === */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: box-shadow 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-card .feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }

/* === Story / Lore blocks === */
.story-block {
  max-width: 800px; margin: 0 auto 32px;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 36px 40px; border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.story-block h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--accent); }
.story-block p { color: var(--text-muted); font-size: 1rem; line-height: 1.9; }
.story-block .story-icon { font-size: 1.8rem; margin-bottom: 10px; }

/* === Character Cards === */
.character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.character-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
}
.character-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.character-header {
  padding: 32px 28px 20px; text-align: center;
  position: relative;
}
.character-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; border: 3px solid var(--border-light);
}
.avatar-ocean { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }
.avatar-sand { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.avatar-blossom { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.avatar-forest { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.avatar-sunset { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.avatar-starry { background: linear-gradient(135deg, #ede7f6, #d1c4e9); }
.character-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.character-role { color: var(--accent); font-size: 0.9rem; font-weight: 500; margin-bottom: 12px; }
.character-body { padding: 0 28px 28px; }
.character-body p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.75; }
.character-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.character-traits span {
  background: var(--accent-light); color: var(--accent);
  padding: 4px 12px; border-radius: 14px; font-size: 0.8rem;
  font-weight: 500;
}

/* === Gallery / Screenshots === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; display: block; transition: transform 0.3s; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item .gallery-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #d4f0f7, #fdf6eb, #fce8d5);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* === Guide Steps === */
.guide-steps { max-width: 720px; margin: 0 auto; }
.guide-step {
  display: flex; gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.guide-step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--coral));
  color: #fff; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; box-shadow: 0 3px 12px rgba(232,115,74,0.25);
}
.step-content h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }
.step-tip {
  margin-top: 8px; padding: 10px 16px;
  background: var(--palm-light); border-radius: 8px;
  font-size: 0.88rem; color: var(--palm); border-left: 3px solid var(--palm);
}

/* === FAQ Accordion === */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; padding: 20px 24px; text-align: left; font-size: 1rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; font-family: var(--font); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--accent); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 24px; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p, .faq-answer ul { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }
.faq-answer ul { padding-left: 20px; }
.faq-answer li { margin-bottom: 6px; }

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--accent-light) 0%, #fef0ea 40%, #fef9f3 100%);
  text-align: center; padding: 64px 24px; position: relative; overflow: hidden;
}
.cta-section h2 { font-size: 1.9rem; margin-bottom: 8px; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }

/* === Tables === */
.info-table {
  width: 100%; max-width: 700px; margin: 0 auto;
  border-collapse: collapse;
}
.info-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.info-table td:first-child {
  font-weight: 600; color: var(--text); width: 140px;
  white-space: nowrap;
}
.info-table td:last-child { color: var(--text-muted); }

/* === Breadcrumbs === */
.breadcrumbs {
  max-width: var(--max-width); margin: 0 auto; padding: 20px 24px 0;
  font-size: 0.88rem; color: var(--text-light);
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; color: var(--border); }

/* === Tags list === */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.tag-list span { background: var(--ocean-light); color: var(--ocean); padding: 5px 14px; border-radius: 16px; font-size: 0.85rem; font-weight: 500; }

/* === Footer === */
.site-footer {
  background: linear-gradient(180deg, #3d3628 0%, #2c2416 100%);
  color: #b8a88c; padding: 36px 24px; text-align: center;
  font-size: 0.9rem; border-top: 3px solid var(--accent);
}
.site-footer .footer-brand { font-size: 1.1rem; font-weight: 600; color: #d4c4a8; margin-bottom: 8px; }
.site-footer .disclaimer { font-size: 0.8rem; color: #887a60; margin-top: 12px; line-height: 1.6; }

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

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-card); flex-direction: column; gap: 0; border-bottom: 1px solid var(--border); padding: 12px 24px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
  .nav-links a:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
  .character-grid { grid-template-columns: 1fr; }
  .story-block { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .info-grid, .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px 72px; }
  section { padding: 48px 16px; }
}
