:root {
  --paper: #f5f2e9;
  --ink: #2c2a28;
  --ink-light: #5c5852;
  --petal: #c46259;
  --petal-dark: #a4493f;
  --gold: #b88e4c;
  --night: #1a1e24;
  --night-ink: #e4e0d8;
  --night-accent: #e88e7e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", system-ui, -apple-system, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: rgba(245, 242, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(44, 42, 40, 0.08);
  transition: background 0.4s ease, color 0.4s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand img { height: 32px; width: auto; border-radius: 4px; }

.nav-links {
  display: none;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--ink-light);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--petal);
  color: #fff;
  padding: 0 20px;
  height: 44px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(196, 98, 89, 0.3);
}
.download-btn:hover { background-color: var(--petal-dark); transform: translateY(-1px); }
.download-btn svg { width: 18px; height: 18px; }

/* Mobile Bar */
.mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 100;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}
.mobile-bar .download-btn { width: 100%; }

/* Main Structure */
main { padding-bottom: 80px; }

section { padding: 60px 20px; position: relative; overflow: hidden; }

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--petal);
  margin-top: 8px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 40px;
}

/* First Screen (Moon Gate) */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 40px;
  background: radial-gradient(circle at top, #faf7f0 0%, var(--paper) 100%);
}

.moon-gate {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(184, 142, 76, 0.4);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 0 40px rgba(184, 142, 76, 0.1) inset;
}
.moon-gate-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.moon-gate-inner img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--ink);
}
.hero p {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 600px;
  margin-bottom: 30px;
}

/* Framing Layout (Grid) */
.frame-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.frame-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
}
.frame-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 16px;
  object-fit: cover;
}
.frame-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.frame-card p {
  font-size: 0.95rem;
  color: var(--ink-light);
}

/* Typography / Text Sections */
.text-content {
  max-width: 800px;
  margin: 0 auto;
}
.text-content p {
  margin-bottom: 20px;
  text-indent: 2em;
}

/* Night Mode Section */
.night-section {
  background-color: var(--night);
  color: var(--night-ink);
}
.night-section .section-title { color: var(--night-accent); }
.night-section .section-title::after { background: var(--night-accent); }
.night-section .section-subtitle { color: #9e9a92; }
.night-section .frame-card {
  background: #232830;
  border-color: #333a44;
}
.night-section .frame-card p { color: #b0aba3; }
.night-section .download-btn { background-color: var(--night-accent); box-shadow: 0 4px 12px rgba(232, 142, 126, 0.3); }

/* Grid Systems */
.list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 20px 0;
}
.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.faq-item p {
  font-size: 0.95rem;
  color: var(--ink-light);
}

/* Footer */
.site-footer {
  background: var(--paper);
  padding: 40px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-light);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.site-footer a { color: var(--ink-light); margin: 0 4px; }
.site-footer a:hover { color: var(--petal); }
.footer-info { margin-bottom: 12px; }
.footer-time { margin-top: 8px; opacity: 0.7; }

/* Responsive */
@media (min-width: 768px) {
  .site-header { padding: 0 40px; height: 72px; }
  .nav-links { display: flex; }
  .mobile-bar { display: none; }
  
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.1rem; }
  .moon-gate { width: 360px; height: 360px; }
  
  .frame-grid { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  
  section { padding: 80px 40px; }
  main { padding-bottom: 0; }
  .footer-time { margin-top: 0; float: right; }
}

@media (min-width: 1024px) {
  .moon-gate { width: 420px; height: 420px; }
  .frame-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .list-grid { grid-template-columns: repeat(3, 1fr); }
  
  .hero { flex-direction: row; text-align: left; justify-content: space-around; gap: 40px; }
  .hero-text-wrapper { display: flex; flex-direction: column; align-items: flex-start; max-width: 500px; }
  .hero p { margin-bottom: 40px; }
  
  .section-title { font-size: 2.2rem; }
}

/* Progress Line */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--petal);
  z-index: 999;
  transition: width 0.1s;
}