:root {
    --bg-day: #f5f0e6;
    --bg-night: #121418;
    --text-day: #2c2a26;
    --text-night: #e0e0e0;
    --primary: #b33e3e; /* 主花：红梅/海棠色调 */
    --primary-hover: #8f2d2d;
    --accent: #d4a373;
    --border: #d1c7b7;
    --font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-family);
    background-color: var(--bg-day);
    color: var(--text-day);
    line-height: 1.6;
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden;
  }
  body.is-night {
    background-color: var(--bg-night);
    color: var(--text-night);
  }

  /* Typography */
  h1, h2, h3 { font-weight: 600; line-height: 1.3; }
  h1 { font-size: 2.5rem; margin-bottom: 1rem; }
  h2 { font-size: 2rem; margin-bottom: 1.5rem; }
  h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
  p { margin-bottom: 1rem; }
  a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
  a:hover { color: var(--primary-hover); }
  body.is-night a { color: var(--accent); }

  /* Header */
  header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(245, 240, 230, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.5s, border-color 0.5s;
  }
  body.is-night header {
    background: rgba(18, 20, 24, 0.9);
    border-bottom-color: #333;
  }
  .logo-area { display: flex; align-items: center; gap: 0.5rem; }
  .logo-area img { height: 32px; width: auto; }
  .logo-area span { font-weight: bold; font-size: 1.2rem; }
  .header-download {
    background: var(--primary); color: #fff !important;
    padding: 0.5rem 1.2rem; border-radius: 20px;
    font-weight: bold; display: flex; align-items: center; gap: 0.5rem;
    min-height: 44px;
  }
  .header-download:hover { background: var(--primary-hover); color: #fff !important; }

  /* Progress Track */
  .progress-track {
    position: fixed; left: 10px; top: 50%; transform: translateY(-50%);
    height: 200px; width: 4px; background: var(--border);
    border-radius: 2px; z-index: 90; display: none;
  }
  .progress-bar {
    width: 100%; background: var(--primary);
    border-radius: 2px; height: 0%;
    transition: height 0.1s;
  }
  @media (min-width: 1024px) { .progress-track { display: block; } }

  /* Hero Section */
  .hero {
    min-height: 80vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 4rem 1rem;
    position: relative;
  }
  .moon-gate {
    border: 2px solid var(--border); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    padding: 4rem 2rem; max-width: 600px; width: 100%;
    background: rgba(255,255,255,0.3); backdrop-filter: blur(5px);
    box-shadow: 0 0 0 20px rgba(245,240,230,0.5);
    transition: all 0.5s;
  }
  body.is-night .moon-gate {
    background: rgba(0,0,0,0.4); box-shadow: 0 0 0 20px rgba(18,20,24,0.5);
  }
  .hero p { font-size: 1.1rem; color: #555; max-width: 400px; margin: 0 auto 2rem; }
  body.is-night .hero p { color: #aaa; }

  /* Common Section Styles */
  section { padding: 4rem 1rem; max-width: 1000px; margin: 0 auto; }
  .section-title { text-align: center; margin-bottom: 3rem; }

  /* Framing Devices */
  .frame-fan {
    border-radius: 20px 20px 0 0;
    overflow: hidden; background: #fff; padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  body.is-night .frame-fan { background: #222; }

  /* Category / Mural */
  .mural-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  .mural-item { display: flex; flex-direction: column; }
  .mural-item img {
    width: 100%; height: auto; border-radius: 8px; object-fit: cover;
    aspect-ratio: 3/4; background: #ccc;
  }
  .mural-info { padding-top: 1rem; }
  .mural-info span { display: block; font-size: 0.9rem; color: #666; }
  body.is-night .mural-info span { color: #999; }

  /* Feature List */
  .feature-list { display: flex; flex-direction: column; gap: 2rem; }
  .feature-item {
    display: flex; gap: 1.5rem; align-items: flex-start;
  }
  .feature-icon {
    font-size: 2rem; background: var(--border); width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; flex-shrink: 0;
  }
  body.is-night .feature-icon { background: #333; }

  /* Screenshot Gallery */
  .gallery-scroll {
    display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 0;
    scroll-snap-type: x mandatory;
  }
  .gallery-scroll img {
    height: 300px; width: auto; border-radius: 12px;
    scroll-snap-align: start; object-fit: cover;
  }

  /* Jitter Bug Fixes */
  img { max-width: 100%; height: auto; }
  @media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    .feature-list { flex-direction: row; flex-wrap: wrap; }
    .feature-item { width: calc(50% - 1rem); }
  }
  @media (min-width: 1024px) {
    .hero { min-height: 90vh; }
  }

  /* Footer */
  footer {
    text-align: center; padding: 2rem 1rem; font-size: 0.85rem;
    color: #888; border-top: 1px solid var(--border);
  }
  body.is-night footer { border-top-color: #333; }
  footer a { color: #888; }