/* === 我的反乌托邦机器人女友 - Cyberpunk/Tech Theme ===
   Neon blues/pinks on dark grays, light main background,
   circuit board accents, modern tech feel. */
:root {
  --bg: #f0f0f5;
  --bg-alt: #e8e8ee;
  --bg-card: #ffffff;
  --bg-dark-card: #12121f;
  --bg-hero: linear-gradient(135deg, #e8ecf1 0%, #dce0e8 50%, #eef0f6 100%);
  --text: #1a1a2e;
  --text-muted: #555;
  --text-light: #888;
  --text-dark-card: #e0e0f0;
  --text-muted-dark: #8888aa;
  --accent: #00d4ff;
  --accent-hover: #00b8e6;
  --accent-secondary: #ff2d95;
  --accent-secondary-hover: #e62680;
  --accent-glow: rgba(0,212,255,0.25);
  --accent-glow-pink: rgba(255,45,149,0.25);
  --accent-light: rgba(0,212,255,0.08);
  --border: #dcdce0;
  --border-light: #ececf0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1100px;
  --header-h: 64px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Noto Sans SC', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Noto Sans SC', monospace;
}

*, *::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; }

/* === Circuit Board Decorative Elements === */
.circuit-line {
  position: relative;
}
.circuit-line::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #0d0d1a;
  border-bottom: 2px solid var(--accent);
  height: var(--header-h);
  box-shadow: 0 2px 16px rgba(0,212,255,0.15);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: #e0e0f0;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.logo .logo-icon {
  color: var(--accent); font-size: 1.4rem;
}
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a {
  color: #9999bb; font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.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(--accent); border-radius: 2px; transition: 0.3s; }

/* Nav CTA (前往下载) */
.nav-cta {
  display: inline-block; background: var(--accent-secondary); color: #fff !important;
  padding: 8px 22px; border-radius: 4px; font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-glow-pink);
  transition: all 0.3s;
}
.nav-cta:hover {
  background: var(--accent-secondary-hover);
  box-shadow: 0 0 20px rgba(255,45,149,0.5);
  transform: translateY(-1px);
  color: #fff !important;
}
.nav-cta::after { display: none !important; }

/* === Hero === */
.hero {
  background: var(--bg-hero);
  padding: 70px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,45,149,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero-banner {
  width: 100%; max-width: var(--max-width); margin: 0 auto 32px;
  border-radius: var(--radius); box-shadow: 0 0 40px var(--accent-glow);
  display: block;
  position: relative; z-index: 1;
}
.hero h1 {
  font-size: 2.8rem; font-weight: 800; margin-bottom: 12px;
  letter-spacing: -0.02em; color: #0d0d1a;
  text-shadow: 0 0 40px rgba(0,212,255,0.15);
}
.hero h1 .accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 1.15rem; color: var(--text-muted); margin-bottom: 20px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px;
}
.hero-tags span {
  background: #ffffff; color: var(--accent);
  padding: 5px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--accent);
  box-shadow: 0 0 8px rgba(0,212,255,0.1);
}

/* Hero CTA Button */
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #0d0d1a !important;
  padding: 14px 44px; border-radius: 4px; font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s;
  border: 1px solid var(--accent);
}
.hero-cta:hover {
  box-shadow: 0 0 40px rgba(0,212,255,0.45), 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
  color: #0d0d1a !important;
}

/* === Sections === */
section { padding: 64px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title {
  font-size: 2rem; font-weight: 700; margin-bottom: 8px;
  letter-spacing: -0.01em; text-align: center; color: #0d0d1a;
}
.section-title .accent-dot {
  color: var(--accent-secondary);
}
.section-subtitle {
  text-align: center; color: var(--text-muted); max-width: 620px;
  margin: 0 auto 40px; font-size: 1.02rem;
}

/* === 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; position: relative; overflow: hidden;
  transition: all 0.3s;
}
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 40px;
  background: var(--accent); border-radius: 0 0 3px 0;
}
.info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.info-card .card-icon {
  font-size: 1.6rem; margin-bottom: 12px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; color: #0d0d1a; }
.info-card p { color: var(--text-muted); font-size: 0.92rem; }

/* === Feature Cards (dark accent 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;
  transition: all 0.3s; position: relative;
}
.feature-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent var(--accent) transparent transparent;
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-card:hover::after { opacity: 1; }
.feature-card .feature-icon {
  font-size: 2rem; margin-bottom: 16px; color: var(--accent);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }

/* === Screenshot Grid === */
.screenshot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.screenshot-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s;
}
.screenshot-card:hover {
  box-shadow: var(--shadow-lg); border-color: var(--accent);
  transform: translateY(-2px);
}
.screenshot-card img {
  width: 100%; height: auto; display: block;
}

/* === Gameplay GIFs === */
.gameplay-gifs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px; margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.gameplay-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s;
}
.gameplay-item:hover {
  box-shadow: var(--shadow-lg); border-color: var(--accent-secondary);
  transform: translateY(-2px);
}
.gameplay-item img { width: 100%; height: auto; display: block; }
.gameplay-item p {
  padding: 12px 16px; font-size: 0.9rem; color: var(--text-muted);
  text-align: center; margin: 0;
}

/* === Story / Lore Cards === */
.story-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.story-card {
  background: var(--bg-dark-card); border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius); padding: 28px;
  color: var(--text-dark-card);
  transition: all 0.3s; position: relative;
}
.story-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0,212,255,0.15);
}
.story-card .chapter-num {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent);
  margin-bottom: 8px; letter-spacing: 0.08em;
}
.story-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #e0e0f0; }
.story-card p { color: var(--text-muted-dark); font-size: 0.92rem; line-height: 1.7; }

/* === Character Cards === */
.char-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.char-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all 0.3s;
}
.char-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
}
.char-card .char-avatar {
  width: 100%; aspect-ratio: 1/1; background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #12121f 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 2px solid var(--accent-secondary);
}
.char-card .char-avatar .avatar-emoji {
  font-size: 4rem; filter: drop-shadow(0 0 12px rgba(0,212,255,0.4));
}
.char-card .char-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.char-card .char-info { padding: 20px; }
.char-card .char-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.char-card .char-role {
  font-size: 0.82rem; color: var(--accent-secondary); margin-bottom: 8px;
  font-weight: 600; letter-spacing: 0.04em;
}
.char-card .char-info p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* === Guide Steps === */
.guide-steps { max-width: 740px; margin: 0 auto; }
.guide-step {
  display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border-light);
  transition: all 0.3s;
}
.guide-step:last-child { border-bottom: none; }
.guide-step:hover { padding-left: 8px; }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #0d0d1a; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; font-family: var(--font-mono);
  box-shadow: 0 0 16px var(--accent-glow);
}
.step-content h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: 0.93rem; }
.step-content .step-tip {
  margin-top: 8px; padding: 8px 14px;
  background: var(--accent-light); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem; color: var(--accent-hover);
}

/* === FAQ Accordion === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 18px 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; font-family: var(--font-mono);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.75; }

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #0d0d1a 100%);
  text-align: center; padding: 56px 24px; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,212,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(255,45,149,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner .cta-content { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: 1.8rem; margin-bottom: 8px; color: #e0e0f0; font-weight: 700;
}
.cta-banner p {
  color: var(--text-muted-dark); font-size: 1.02rem; margin-bottom: 24px;
}
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-secondary), #cc1a70);
  color: #fff !important;
  padding: 14px 44px; border-radius: 4px; font-size: 1.08rem; font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 24px var(--accent-glow-pink);
  transition: all 0.3s; border: 1px solid var(--accent-secondary);
}
.cta-button:hover {
  box-shadow: 0 0 40px rgba(255,45,149,0.5);
  transform: translateY(-2px);
  color: #fff !important;
}

/* === Breadcrumbs === */
.breadcrumbs {
  max-width: var(--max-width); margin: 0 auto 0; padding: 16px 24px 0;
  font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { color: var(--text-light); }

/* === Tags List === */
.tag-list {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px;
}
.tag-list .tag {
  background: var(--bg-card); color: var(--accent); border: 1px solid var(--accent);
  padding: 4px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
}

/* === Info Table === */
.info-table {
  width: 100%; max-width: 700px; margin: 0 auto; border-collapse: collapse;
}
.info-table th, .info-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border-light); font-size: 0.93rem;
}
.info-table th {
  color: var(--accent); font-weight: 600; width: 30%; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.82rem;
}
.info-table td { color: var(--text-muted); }

/* === Blockquote / Pull Quote === */
.pull-quote {
  max-width: 700px; margin: 32px auto; padding: 20px 28px;
  background: var(--accent-light); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted); font-size: 1rem; line-height: 1.8;
}

/* === Footer === */
.site-footer {
  background: #0d0d1a; color: #666688; padding: 24px 24px;
  text-align: center; font-size: 0.82rem;
  border-top: 1px solid rgba(0,212,255,0.1);
}
.site-footer .footer-brand {
  font-family: var(--font-mono); font-size: 0.88rem; color: #8888aa; margin-bottom: 4px;
}

/* === 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.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 60px rgba(0,212,255,0.2); }
.lightbox-close { position: absolute; top: 24px; right: 24px; color: var(--accent); font-size: 2rem; cursor: pointer; background: none; border: none; font-family: monospace; }

/* === Utility === */
.section-dark { background: var(--bg-dark-card); }
.section-dark .section-title { color: #e0e0f0; }
.section-dark .section-subtitle { color: var(--text-muted-dark); }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #0d0d1a; flex-direction: column; gap: 0; border-bottom: 2px solid var(--accent); padding: 8px 24px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(0,212,255,0.1); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .info-grid, .feature-grid, .char-grid, .story-grid { grid-template-columns: 1fr; }
  .guide-step { flex-direction: column; gap: 12px; }
  .info-table th { width: 35%; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero .subtitle { font-size: 0.95rem; }
  .cta-button, .hero-cta { padding: 12px 32px; font-size: 0.95rem; }
}
