:root {
  --bg-warm: #fcf9f4;
  --bg-mild: #faf6e5;
  --bg-grad-end: #f3e5b5;
  --main-red: #bc3500;
  --deep-red: #480400;
  --accent-orange: #ff6600;
  --gold-brown: #7f653f;
  --leaf-green: #c8d96b;
  --sakura-pink: #f2a0b5;
  --text-main: #332211;
  --text-light: #665544;
  --card-bg: #ffffff;
  --border-color: #e8d5b0;
  --shadow-soft: 0 4px 16px rgba(72, 4, 0, 0.06);
  --font-main: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Courier New", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-warm); color: var(--text-main); font-family: var(--font-main); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 28px; color: var(--deep-red); text-align: center; margin-bottom: 10px; letter-spacing: 2px; font-weight: bold; }
.section-subtitle { text-align: center; color: var(--gold-brown); font-size: 14px; margin-bottom: 40px; font-family: var(--font-mono); }
.btn-primary { display: inline-block; background: var(--main-red); color: #fff; padding: 12px 32px; border-radius: 30px; font-weight: bold; font-size: 16px; border: 2px solid var(--main-red); transition: 0.3s; text-align: center; cursor: pointer; }
.btn-primary:hover { background: var(--deep-red); border-color: var(--deep-red); transform: translateY(-2px); }
.btn-outline { display: inline-block; background: transparent; color: var(--main-red); padding: 10px 28px; border-radius: 30px; font-weight: bold; font-size: 15px; border: 2px solid var(--main-red); transition: 0.3s; text-align: center; cursor: pointer; }
.btn-outline:hover { background: var(--main-red); color: #fff; transform: translateY(-2px); }
header.site-header { position: sticky; top: 0; z-index: 100; background: linear-gradient(to bottom, var(--bg-mild), var(--bg-grad-end)); border-bottom: 2px solid var(--border-color); box-shadow: var(--shadow-soft); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo-area { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: bold; color: var(--deep-red); }
.logo-area img { height: 36px; width: auto; border-radius: 4px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 15px; color: var(--deep-red); font-weight: 500; transition: 0.2s; padding: 5px 0; position: relative; }
.nav-links a:hover { color: var(--main-red); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--main-red); transition: 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.nav-dl-btn { background: var(--main-red); color: #fff !important; padding: 8px 20px; border-radius: 20px; font-size: 14px !important; margin-left: 10px; white-space: nowrap; }
.nav-dl-btn::after { display: none !important; }
.nav-dl-btn:hover { background: var(--deep-red); color: #fff !important; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; color: var(--main-red); cursor: pointer; }
.hero-section { position: relative; background: var(--bg-warm); padding: 40px 0; overflow: hidden; }
.hero-bg-img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-soft); object-fit: cover; max-height: 500px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: -80px; position: relative; z-index: 2; }
.hero-text-area { background: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 16px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.hero-text-area h1 { font-size: 36px; color: var(--deep-red); margin-bottom: 10px; font-weight: 900; }
.hero-subtitle-en { font-family: var(--font-mono); color: var(--main-red); font-size: 14px; margin-bottom: 15px; letter-spacing: 1px; }
.hero-desc { font-size: 16px; color: var(--text-light); margin-bottom: 20px; line-height: 1.8; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-tag { background: var(--bg-mild); color: var(--gold-brown); padding: 4px 12px; border-radius: 12px; font-size: 12px; border: 1px solid var(--border-color); }
.visual-novel-box { background: rgba(0, 0, 0, 0.75); border-radius: 12px; padding: 20px; color: #fff; position: relative; box-shadow: 0 8px 24px rgba(0,0,0,0.3); min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; border: 2px solid rgba(255,255,255,0.2); }
.vn-dialog-container { position: relative; }
.vn-name { display: inline-block; background: var(--main-red); padding: 4px 16px; border-radius: 8px 8px 0 0; font-weight: bold; font-size: 14px; margin-bottom: 8px; }
.vn-text { font-size: 16px; line-height: 1.8; margin-bottom: 20px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.vn-next-hint { text-align: right; font-size: 12px; color: var(--leaf-green); animation: blink 1.5s infinite; font-family: var(--font-mono); cursor: pointer; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.vn-chara-img { position: absolute; bottom: 0; left: 20px; height: 80px; opacity: 0.8; pointer-events: none; z-index: -1; }
.data-bar { display: flex; justify-content: space-around; background: #fff; border-radius: 12px; padding: 20px; margin-top: 30px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.data-item { text-align: center; }
.data-num { display: block; font-size: 24px; font-weight: bold; color: var(--main-red); font-family: var(--font-mono); }
.data-label { font-size: 14px; color: var(--gold-brown); margin-top: 5px; }
.section { padding: 60px 0; }
.section.alt-bg { background: var(--bg-mild); }
.chara-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.chara-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); transition: 0.3s; position: relative; }
.chara-card:hover { transform: translateY(-5px); border-color: var(--main-red); }
.chara-img-wrapper { aspect-ratio: 4/3; overflow: hidden; background: #f0f0f0; }
.chara-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: 0.3s; }
.chara-card:hover .chara-img-wrapper img { transform: scale(1.03); }
.chara-info { padding: 20px; text-align: center; }
.chara-num { font-family: var(--font-mono); color: var(--sakura-pink); font-size: 14px; font-weight: bold; margin-bottom: 5px; }
.chara-name { font-size: 20px; color: var(--deep-red); font-weight: bold; margin-bottom: 5px; }
.chara-role { font-size: 14px; color: var(--gold-brown); margin-bottom: 10px; }
.chara-cv { font-family: var(--font-mono); font-size: 12px; color: var(--text-light); background: var(--bg-mild); display: inline-block; padding: 2px 10px; border-radius: 10px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.screenshot-item { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); cursor: pointer; border: 1px solid var(--border-color); aspect-ratio: 16/9; background: #e0d8c8; }
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.screenshot-item:hover img { transform: scale(1.02); }
.screenshot-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; padding: 20px 15px 10px; font-size: 14px; pointer-events: none; }
.screenshot-num { font-family: var(--font-mono); color: var(--leaf-green); margin-right: 5px; }
.step-flow { display: flex; justify-content: space-between; align-items: flex-start; position: relative; margin-top: 40px; gap: 20px; }
.step-flow::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: var(--border-color); z-index: 0; }
.step-item { position: relative; z-index: 1; text-align: center; flex: 1; background: var(--bg-warm); padding: 20px 10px; border-radius: 12px; }
.step-num { width: 60px; height: 60px; margin: 0 auto 15px; background: var(--bg-mild); border: 2px solid var(--main-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; font-family: var(--font-mono); color: var(--main-red); }
.step-title { font-size: 18px; font-weight: bold; color: var(--deep-red); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--text-light); padding: 15px; border-radius: 12px; position: relative; }
.step-desc::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid var(--bg-mild); }
.step-desc.yellow { background: var(--bg-mild); }
.step-desc.green { background: rgba(200, 217, 107, 0.2); }
.step-desc.green::before { border-bottom-color: rgba(200, 217, 107, 0.2); }
.step-desc.pink { background: rgba(242, 160, 181, 0.15); }
.step-desc.pink::before { border-bottom-color: rgba(242, 160, 181, 0.15); }
.popular-list { max-width: 800px; margin: 0 auto; }
.popular-row { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 15px 20px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid var(--border-color); transition: 0.2s; }
.popular-row:hover { transform: translateX(5px); border-color: var(--main-red); }
.rank-num { font-family: var(--font-mono); font-size: 24px; font-weight: bold; color: var(--main-red); width: 40px; text-align: center; }
.popular-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0 20px; border: 2px solid var(--bg-mild); }
.popular-name { flex: 1; font-size: 18px; font-weight: bold; color: var(--deep-red); }
.popular-bar-wrap { flex: 2; background: var(--bg-mild); height: 12px; border-radius: 6px; overflow: hidden; margin: 0 20px; }
.popular-bar { height: 100%; background: linear-gradient(90deg, var(--sakura-pink), var(--main-red)); border-radius: 6px; }
.endings-list { max-width: 800px; margin: 0 auto; }
.ending-row { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 15px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); gap: 20px; }
.ending-info { flex: 1; }
.ending-title { font-size: 18px; font-weight: bold; color: var(--deep-red); margin-bottom: 5px; }
.ending-desc { font-size: 14px; color: var(--text-light); }
.ending-stats { text-align: center; min-width: 100px; }
.ending-people { font-family: var(--font-mono); font-size: 14px; color: var(--gold-brown); margin-bottom: 5px; }
.ending-progress-wrap { background: var(--bg-mild); height: 8px; border-radius: 4px; overflow: hidden; width: 100px; margin: 0 auto; }
.ending-progress { height: 100%; background: var(--leaf-green); border-radius: 4px; width: 40%; transition: 0.3s; }
.ending-btn { background: none; border: 2px solid var(--border-color); color: var(--gold-brown); padding: 6px 16px; border-radius: 20px; cursor: pointer; font-size: 14px; transition: 0.3s; white-space: nowrap; }
.ending-btn:hover { border-color: var(--sakura-pink); color: var(--sakura-pink); }
.ending-btn.joined { background: var(--sakura-pink); border-color: var(--sakura-pink); color: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: rgba(255,255,255,0.6); padding: 25px; border-radius: 16px; ackground: #fff; border: 1px solid var(--border-color); box-shadow: 0 4px 12px rgba(0,0,0,0.03); text-align: center; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--leaf-green); background: #fff; }
.feature-icon { font-size: 32px; margin-bottom: 15px; }
.feature-title { font-size: 18px; font-weight: bold; color: var(--deep-red); margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-light); }
.review-header { text-align: center; margin-bottom: 40px; }
.review-score { font-size: 48px; font-weight: bold; color: var(--main-red); font-family: var(--font-mono); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow-soft); }
.review-user { font-weight: bold; color: var(--deep-red); margin-bottom: 5px; display: flex; justify-content: space-between; }
.review-date { font-size: 12px; color: #999; font-family: var(--font-mono); font-weight: normal; }
.review-text { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.download-section { background: linear-gradient(135deg, var(--bg-mild), var(--bg-warm)); padding: 60px 0; text-align: center; border-top: 1px solid var(--border-color); }
.download-card { background: #fff; padding: 40px; border-radius: 20px; max-width: 800px; margin: 0 auto; box-shadow: 0 8px 32px rgba(188, 53, 0, 0.08); border: 1px solid var(--border-color); }
.download-card h2 { color: var(--deep-red); margin-bottom: 15px; font-size: 26px; }
.download-card p { color: var(--text-light); margin-bottom: 30px; }
.dl-main-btn { display: inline-block; background: var(--main-red); color: #fff; font-size: 20px; font-weight: bold; padding: 15px 60px; border-radius: 40px; box-shadow: 0 6px 20px rgba(188, 53, 0, 0.3); transition: 0.3s; }
.dl-main-btn:hover { background: var(--deep-red); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(188, 53, 0, 0.4); }
.download-note { font-size: 12px; color: var(--gold-brown); margin-top: 15px; }
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; display: none; justify-content: center; align-items: center; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90%; max-height: 80vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; background: none; border: none; z-index: 1001; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: #fff; border: none; font-size: 30px; padding: 10px 15px; cursor: pointer; border-radius: 4px; z-index: 1001; }
.lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
footer.site-footer { background: var(--deep-red); color: #ffe; padding: 40px 0 30px; font-size: 13px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-info p { margin-bottom: 8px; opacity: 0.8; }
.footer-info a { color: #fff; text-decoration: underline; opacity: 0.8; }
.footer-info a:hover { opacity: 1; }
.about-details { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.about-details summary { cursor: pointer; opacity: 0.7; font-size: 13px; outline: none; list-style: none; }
.about-details summary::-webkit-details-marker { display: none; }
.about-details summary:hover { opacity: 1; }
.about-content { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; opacity: 0.6; }
.about-content a { color: #fff; text-decoration: none; }
.about-content a:hover { text-decoration: underline; }
@media (max-width: 1023px) {
  .container { padding: 0 15px; }
  .hero-content { grid-template-columns: 1fr; margin-top: 20px; gap: 20px; }
  .hero-bg-img { max-height: 300px; }
  .hero-text-area { padding: 20px; }
  .chara-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .step-flow { flex-direction: column; }
  .step-flow::before { display: none; }
  .step-item { width: 100%; margin-bottom: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: var(--bg-mild); flex-direction: column; padding: 20px; box-shadow: var(--shadow-soft); border-bottom: 2px solid var(--border-color); }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .nav-actions { display: none; }
  .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
  .nav-links a::after { display: none; }
}
@media (max-width: 767px) {
  .chara-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .data-bar { flex-wrap: wrap; gap: 15px; }
  .data-item { width: 45%; }
  .hero-text-area h1 { font-size: 28px; }
  .ending-row { flex-direction: column; text-align: center; gap: 15px; }
  .ending-stats { width: 100%; }
  .ending-progress-wrap { width: 100%; }
  .download-card { padding: 25px 15px; }
  .dl-main-btn { width: 100%; padding: 15px 0; }
  .footer-content { flex-direction: column; text-align: center; }
  .about-content { justify-content: center; }
}