:root {
  --rice: #f5f0e4;
  --rice-deep: #ebe4d4;
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --mist: #3d6b6b;
  --seal: #a83830;
  --line: rgba(28, 28, 28, 0.12);
  --panel: rgba(255, 252, 245, 0.78);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--rice);
  background-image:
    radial-gradient(rgba(28, 28, 28, 0.035) 0.8px, transparent 1px),
    linear-gradient(180deg, #f8f4ea 0%, var(--rice) 40%, #efe8d8 100%);
  background-size: 18px 18px, auto;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.font-brush { font-family: "Ma Shan Zheng", cursive; }
.font-serif { font-family: "Noto Serif SC", serif; }

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— 顶栏 —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--rice) 88%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(40, 25, 10, 0.12);
}
.brand-name {
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--mist); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--mist);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* —— 首屏：品牌 + 一句 + CTA + 主图 —— */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 8% 12% auto;
  height: 55%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(61, 107, 107, 0.12), transparent 62%),
    radial-gradient(ellipse at 70% 60%, rgba(28, 28, 28, 0.05), transparent 55%);
  pointer-events: none;
  animation: mistDrift 10s ease-in-out infinite alternate;
}
@keyframes mistDrift {
  from { transform: translateY(0) scale(1); opacity: 0.85; }
  to { transform: translateY(12px) scale(1.04); opacity: 1; }
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  animation: rise 0.9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-mark {
  width: min(220px, 52vw);
  height: min(220px, 52vw);
  border-radius: 28px;
  box-shadow:
    0 18px 50px rgba(40, 25, 10, 0.14),
    0 0 0 1px rgba(28, 28, 28, 0.12);
  animation: rise 1s 0.08s ease both;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 4.6rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1;
  margin-top: 0.4rem;
}
.hero-sub {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  letter-spacing: 0.18em;
}
.hero-desc {
  max-width: 28rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.98rem;
  margin-top: 0.35rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  padding: 0.78rem 1.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--rice);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.18);
}
.cta:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 28, 28, 0.22);
}
.cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(28, 28, 28, 0.35);
  box-shadow: none;
  margin-left: 0.6rem;
}
.cta-ghost:hover {
  background: var(--ink);
  color: var(--rice);
  box-shadow: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}
.download-actions {
  margin-top: 0.2rem;
}
.download-actions .cta {
  margin-top: 0;
  min-width: 8.5rem;
}
.download-actions .cta-ghost {
  margin-left: 0;
}

.ink-line {
  width: 100px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(28, 28, 28, 0.45), transparent);
}

/* —— 分区 —— */
section.block {
  padding: 4.2rem 0;
}
.block-title {
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
}
.block-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: -0.6rem auto 2rem;
  font-weight: 300;
}

.about-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  backdrop-filter: blur(6px);
}
.about-panel p {
  color: #333;
  font-size: 1.02rem;
  line-height: 1.95;
}
.about-panel strong { color: var(--ink); font-weight: 600; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.45rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 28, 28, 0.28);
  box-shadow: 0 14px 36px rgba(40, 25, 10, 0.1);
}
.feature-ico {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  color: var(--mist);
}
.feature h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.04em;
}
.feature p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
}

.idea {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}
.idea p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 2;
  font-weight: 300;
}
.seal {
  display: inline-block;
  margin-top: 1.4rem;
  border: 2px solid var(--seal);
  color: var(--seal);
  padding: 0.35rem 0.7rem;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  transform: rotate(-4deg);
  opacity: 0.9;
}

.download-panel {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.4rem 1.5rem;
}
.download-panel h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}
.download-panel .meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.download-panel .community {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.download-panel .community strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.download-count {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.download-count strong {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0 0.15em;
}
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.chip {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: rgba(255, 255, 255, 0.35);
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
footer .en {
  opacity: 0.7;
  margin-top: 0.25rem;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
  .cta-ghost { margin-left: 0; }
  .hero { min-height: auto; padding-top: 2.5rem; }
}
