:root {
  --bg-day: #f7f5f0;
  --text-day: #2c2a26;
  --bg-night: #121212;
  --text-night: #e0e0e0;
  --brand: #c24633; /* 朱砂红 */
  --brand-hover: #a33a2a;
  --gold: #d4af37;
  --focus: #c24633;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; }
body.day-mode { background-color: var(--bg-day); color: var(--text-day); transition: background-color 0.5s, color 0.5s; }
body.night-mode { background-color: var(--bg-night); color: var(--text-night); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 焦点可见 */
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* 游园路线 (阅读进度) */
.progress-bar { position: fixed; top: 0; left: 0; height: 4px; background: var(--brand); width: 0%; z-index: 9999; transition: width 0.1s; }

/* Header */
header { position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: rgba(247,245,240,0.9); backdrop-filter: blur(10px); transition: background 0.5s; border-bottom: 1px solid rgba(0,0,0,0.05); }
body.night-mode header { background: rgba(18,18,18,0.9); border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo-wrap { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: bold; }
.logo-wrap img { height: 32px; width: auto; }
.header-nav { display: none; gap: 24px; font-size: 15px; }
.header-nav a:hover { color: var(--brand); }
.btn-download { background: var(--brand); color: #fff; padding: 10px 20px; border-radius: 24px; font-weight: bold; display: flex; align-items: center; gap: 8px; min-height: 44px; transition: background 0.3s; }
.btn-download:hover { background: var(--brand-hover); color: #fff; }
.btn-download svg { width: 18px; height: 18px; fill: currentColor; }

/* 首屏月洞门 */
.hero { min-height: 85vh; display: flex; justify-content: center; align-items: center; padding: 40px 20px; position: relative; overflow: hidden; }
.moon-gate { width: 100%; max-width: 600px; aspect-ratio: 1/1; border-radius: 50%; background: #fff; border: 8px solid #e0ddd5; box-shadow: 0 20px 40px rgba(0,0,0,0.08), inset 0 0 0 10px var(--bg-day); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; transition: background 0.5s, border-color 0.5s; }
body.night-mode .moon-gate { background: #1e1e1e; border-color: #333; box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 0 10px var(--bg-night); }
.moon-gate h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 20px; line-height: 1.3; color: var(--brand); }
.moon-gate p { font-size: 16px; margin-bottom: 30px; line-height: 1.6; opacity: 0.9; }
.moon-gate .btn-download { font-size: 18px; padding: 14px 32px; border-radius: 30px; }

/* 花窗 / 团扇 / 框景版式 (功能与剧集) */
.frame-section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: var(--brand); margin-bottom: 10px; }
.section-title p { font-size: 16px; opacity: 0.7; }

/* 一科一花 (题材) */
.flower-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.flower-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-top: 4px solid var(--brand); transition: transform 0.3s; }
body.night-mode .flower-card { background: #1e1e1e; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.flower-card:hover { transform: translateY(-5px); }
.flower-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--gold); }
.flower-card p { font-size: 14px; line-height: 1.5; opacity: 0.8; }

/* 框景版式 (观看体验) */
.frame-boxes { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.frame-item { flex: 1 1 300px; max-width: 400px; text-align: center; }
.frame-content { aspect-ratio: 16/9; background: #e0ddd5; border-radius: 20px; display: flex; align-items: center; justify-content: center; padding: 20px; margin-bottom: 15px; }
body.night-mode .frame-content { background: #2a2a2a; }
.frame-content p { font-size: 14px; font-weight: bold; color: var(--text-day); }
body.night-mode .frame-content p { color: var(--text-night); }

/* 剧照墙 (海报) */
.poster-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; padding: 20px; }
.poster-wall img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* 日夜两幕 切换标识 */
.divider { text-align: center; padding: 40px 0; opacity: 0.5; }
.divider svg { width: 40px; height: 40px; fill: currentColor; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); padding: 20px 0; }
body.night-mode .faq-item { border-bottom-color: rgba(255,255,255,0.1); }
.faq-item h3 { font-size: 18px; margin-bottom: 10px; }
.faq-item p { font-size: 15px; line-height: 1.6; opacity: 0.8; }

/* 下载区块 */
.download-area { text-align: center; padding: 60px 20px; background: #e8ebe8; border-radius: 24px; margin: 40px 20px; transition: background 0.5s; }
body.night-mode .download-area { background: #1a1a1a; }
.download-area h2 { font-size: 24px; margin-bottom: 20px; color: var(--brand); }
.qr-code { width: 150px; height: 150px; background: #ccc; margin: 20px auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #666; }
.qr-code img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* Footer */
footer { padding: 40px 20px 80px; text-align: center; font-size: 12px; opacity: 0.6; line-height: 1.8; }
footer a { color: inherit; text-decoration: underline; }
footer a:hover { color: var(--brand); }

/* 移动端底部吸浮按钮 */
.mobile-sticky { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 400px; z-index: 999; display: flex; justify-content: center; }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  header { padding: 16px 40px; }
  .mobile-sticky { display: none; }
  .moon-gate { max-width: 800px; padding: 60px; }
}
@media (min-width: 1024px) {
  .frame-section { padding: 80px 40px; }
  .hero { min-height: 90vh; }
  .moon-gate { max-width: 900px; }
}