:root {
  --paper: #f7f4ec;
  --ink: #2b2b2b;
  --ink-light: #5a5a5a;
  --brand: #c8342e;
  --brand-dark: #9e1f1a;
  --gold: #c79a56;
  --night-bg: #14171c;
  --night-ink: #e8e6e1;
  --night-ink-light: #a3a49f;
  --wood: #8b5a2b;
  --radius-l: 24px;
  --radius-m: 16px;
  --radius-s: 8px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.8s ease, color 0.8s ease;
}
body.is-night {
  background-color: var(--night-bg);
  color: var(--night-ink);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: none; }
ul { list-style: none; }

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.8s ease;
}
body.is-night h1, body.is-night h2, body.is-night h3 { color: var(--night-ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 2px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; letter-spacing: 1px; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--ink-light); transition: color 0.8s ease; }
body.is-night p { color: var(--night-ink-light); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 80px 0;
  position: relative;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.8s ease, border-color 0.8s ease;
}
body.is-night .site-header {
  background: rgba(20, 23, 28, 0.85);
  border-bottom-color: rgba(255,255,255,0.05);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}
.brand-link img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand);
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-height: 44px;
}
.btn-download:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
}
.btn-download svg {
  margin-right: 6px;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.nav-links {
  display: none;
  gap: 24px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }
body.is-night .nav-links a { color: var(--night-ink); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.moon-gate {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  background: var(--paper);
  border-radius: 400px 400px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 12px solid #e5dfd1;
  text-align: center;
  z-index: 2;
  transition: background 0.8s ease, border-color 0.8s ease;
}
body.is-night .moon-gate {
  background: var(--night-bg);
  border-color: #2a2e35;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  font-size: 1.1rem;
  padding: 14px 36px;
}

/* Flower Grid */
.flower-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.flower-card {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s, box-shadow 0.3s, background 0.8s ease;
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
body.is-night .flower-card {
  background: #1c2128;
  border-color: rgba(255,255,255,0.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.flower-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.flower-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background-color: #eee;
}
.flower-info {
  padding: 20px;
  flex-grow: 1;
}
.flower-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--brand);
  background: rgba(200,52,46,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}
body.is-night .flower-tag { background: rgba(200,52,46,0.2); color: #ff7b75; }
.flower-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Feature Section */
.feature-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 768px) {
  .feature-split {
    flex-direction: row;
    align-items: center;
  }
  .feature-text { flex: 1; }
  .feature-visual { flex: 1; }
}
.feature-visual img {
  border-radius: var(--radius-l);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.feature-list {
  margin-top: 20px;
}
.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--ink-light);
}
body.is-night .feature-list li { color: var(--night-ink-light); }
.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-size: 1.5rem;
  line-height: 1;
}

/* Night Section */
.night-section {
  background-color: var(--night-bg);
  color: var(--night-ink);
}
.night-section h2 { color: var(--night-ink); }
.night-section p { color: var(--night-ink-light); }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
.testimonial-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-m);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
body.is-night .testimonial-card {
  background: #1c2128;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 12px;
  color: var(--ink);
  transition: color 0.8s ease;
}
body.is-night .testimonial-text { color: var(--night-ink); }
.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 20px 0;
}
body.is-night .faq-item { border-bottom-color: rgba(255,255,255,0.1); }
.faq-q {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-a {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Download Section */
.download-section {
  text-align: center;
  padding: 100px 20px;
}
.qr-code-placeholder {
  width: 160px;
  height: 160px;
  background: #fff;
  margin: 30px auto;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
body.is-night .qr-code-placeholder { background: #2a2e35; }
.qr-code-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.8rem;
  color: #999;
  text-align: center;
}
body.is-night .site-footer {
  border-top-color: rgba(255,255,255,0.05);
}
.footer-links {
  margin-bottom: 16px;
}
.footer-links a {
  color: #999;
  margin: 0 8px;
}
.footer-links a:hover { color: var(--ink); }
body.is-night .footer-links a:hover { color: var(--night-ink); }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Responsive adjustments */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hero { padding-top: 120px; }
  section { padding: 100px 0; }
}
@media (max-width: 767px) {
  .moon-gate {
    border-radius: 200px 200px 0 0;
    padding: 40px 15px;
  }
  .feature-visual img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }
}