/* === 造星者物语 - Star/Idol Theme ===
   Twinkling golds, cosmic purples, stage-spotlight soft whites, star motifs */

:root {
  --accent: #d4a843;
  --accent-hover: #b8912e;
  --accent-light: rgba(212, 168, 67, 0.12);
  --accent-glow: rgba(212, 168, 67, 0.3);
  --cosmic: #6b3fa0;
  --cosmic-light: #8e5cc7;
  --cosmic-glow: rgba(107, 63, 160, 0.15);
  --star-gold: #f0c060;
  --star-light: #fceabb;
  --spotlight: #faf8f3;
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.95);
  --text: #2d2438;
  --text-muted: #6b5e7a;
  --text-light: #8a7d96;
  --border: #e8e0ee;
  --border-gold: rgba(212, 168, 67, 0.3);
  --shadow-sm: 0 2px 8px rgba(107, 63, 160, 0.06);
  --shadow: 0 4px 20px rgba(107, 63, 160, 0.08);
  --shadow-gold: 0 4px 24px rgba(212, 168, 67, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-heading: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Star sparkle background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(212,168,67,0.4), transparent),
    radial-gradient(1px 1px at 25% 55%, rgba(240,192,96,0.3), transparent),
    radial-gradient(1.5px 1.5px at 40% 15%, rgba(212,168,67,0.35), transparent),
    radial-gradient(1px 1px at 55% 70%, rgba(107,63,160,0.25), transparent),
    radial-gradient(1.5px 1.5px at 70% 35%, rgba(240,192,96,0.3), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(212,168,67,0.35), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(107,63,160,0.2), transparent),
    radial-gradient(1.5px 1.5px at 60% 85%, rgba(212,168,67,0.25), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(240,192,96,0.3), transparent),
    radial-gradient(2px 2px at 35% 45%, rgba(212,168,67,0.2), transparent),
    radial-gradient(1px 1px at 50% 5%, rgba(107,63,160,0.25), transparent),
    radial-gradient(1.5px 1.5px at 75% 50%, rgba(212,168,67,0.3), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 1px 12px rgba(107, 63, 160, 0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cosmic);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo::before { content: '\2B50'; font-size: 1.3rem; }
.logo:hover { color: var(--accent); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--star-gold)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 12px var(--accent-glow);
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent)) !important;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.45);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Main */
main { position: relative; z-index: 1; }

/* Hero */
.hero {
  background: linear-gradient(170deg, #faf8f3 0%, #f3edf8 40%, #faf6e8 70%, #faf8f3 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(240,192,96,0.25) 0%, rgba(212,168,67,0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,63,160,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cosmic) 0%, var(--accent) 50%, var(--star-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.hero-tags span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Section */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--cosmic);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--star-gold));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.section-alt {
  background: rgba(107, 63, 160, 0.03);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

/* Star divider */
.star-divider {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  color: var(--star-gold);
  padding: 1rem 0;
  opacity: 0.7;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.info-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}
.info-card .info-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.info-card h3 {
  font-size: 1rem;
  color: var(--cosmic);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--star-gold), var(--cosmic));
  border-radius: 4px 0 0 4px;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.feature-card .feat-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.feature-card h3 {
  font-size: 1.15rem;
  color: var(--cosmic);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Screenshot Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 2px solid transparent;
}
.gallery a:hover {
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
  transform: translateY(-3px);
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--cosmic), var(--cosmic-light));
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(240,192,96,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(212,168,67,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner h2 {
  position: relative;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  position: relative;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.btn-gold {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--star-gold));
  color: #fff;
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
  transition: all 0.3s;
}
.btn-gold:hover {
  box-shadow: 0 6px 30px rgba(212, 168, 67, 0.55);
  transform: translateY(-2px);
}

/* Guide Steps */
.guide-steps { display: flex; flex-direction: column; gap: 0; }
.guide-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 2.5rem;
}
.guide-step:last-child { padding-bottom: 0; }
.guide-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.25rem; top: 3rem;
  width: 2px;
  height: calc(100% - 1.5rem);
  background: linear-gradient(180deg, var(--border-gold), var(--border));
}
.step-num {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--star-gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px var(--accent-glow);
  z-index: 1;
}
.step-content h3 {
  font-size: 1.1rem;
  color: var(--cosmic);
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.step-content .tip-box {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}

/* Story Blocks */
.story-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.story-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--star-gold), var(--cosmic));
  border-radius: 4px 0 0 4px;
}
.story-block h3 {
  font-size: 1.15rem;
  color: var(--cosmic);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.story-block p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Character Cards */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.char-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
  transform: translateY(-3px);
}
.char-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cosmic-light), var(--cosmic));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 1.75rem auto 0;
  box-shadow: 0 0 0 4px var(--accent-light), 0 2px 12px rgba(107,63,160,0.15);
}
.char-card h3 {
  text-align: center;
  font-size: 1.15rem;
  color: var(--cosmic);
  margin: 0.75rem 0 0.25rem;
  font-weight: 700;
}
.char-role {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.char-card p {
  padding: 0 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}
.char-traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 1.5rem 1.5rem;
}
.char-traits span {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.88rem;
  color: var(--text-light);
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }

/* Blockquote */
blockquote {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text);
  font-style: italic;
}

/* Tag list */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag-list span {
  background: var(--cosmic-glow);
  color: var(--cosmic);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}
.tag-gold { background: var(--accent-light) !important; color: var(--accent) !important; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 15, 30, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* Footer */
footer {
  background: linear-gradient(180deg, var(--bg), #f3edf8);
  border-top: 1px solid var(--border-gold);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 2.5rem 1rem; }
  .section-title { font-size: 1.6rem; }
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-header);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-gold);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }
  .nav-menu.open { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-step { flex-direction: column; gap: 0.75rem; }
  .guide-step:not(:last-child)::after { left: 1.25rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
