:root {
  --bg: #efe6d8;
  --paper: #f8f1e5;
  --paper-2: #fffaf2;
  --ink: #172320;
  --ink-soft: #4a5953;
  --line: #d6c5ac;
  --accent: #8f2f1f;
  --accent-2: #1f5f52;
  --shadow: 0 12px 36px rgba(37, 25, 14, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
}

.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    radial-gradient(rgba(32, 22, 12, 0.18) 0.5px, transparent 0.5px),
    radial-gradient(rgba(32, 22, 12, 0.12) 0.5px, transparent 0.5px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  z-index: 0;
}

.ink-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 9%, rgba(122, 41, 20, 0.2), transparent 30%),
    radial-gradient(circle at 8% 20%, rgba(31, 95, 82, 0.16), transparent 30%),
    radial-gradient(circle at 90% 85%, rgba(31, 95, 82, 0.12), transparent 28%);
  z-index: 0;
}

.topbar,
main,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.brand-tag {
  margin: 0 0 3px;
  color: var(--accent-2);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand {
  margin: 0;
  font-family: "ZCOOL XiaoWei", serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.topnav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.topnav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px dashed transparent;
}

.topnav a:hover {
  border-color: var(--ink);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 60px;
}

section {
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(125deg, rgba(255, 248, 236, 0.92), rgba(245, 234, 219, 0.9));
  box-shadow: var(--shadow);
  padding: 30px;
}

.label {
  margin: 0 0 8px;
  font-size: 0.84rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.2;
}

h1 span {
  color: var(--accent);
}

.lead {
  margin-top: 16px;
  max-width: 720px;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
  font: inherit;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #0f1816;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.hero-card {
  height: 100%;
  border: 1px solid #d2c2a8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  padding: 18px;
}

.hero-card-label {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.hero-card h3 {
  font-family: "Noto Serif SC", serif;
  margin-top: 10px;
  line-height: 1.45;
}

.hero-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-strip article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  padding: 16px;
}

.stat-strip h3 {
  font-family: "Noto Serif SC", serif;
  color: var(--accent);
  font-size: 1.8rem;
}

.stat-strip p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.paper-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  padding: 18px;
}

.paper-card h2 {
  font-family: "Noto Serif SC", serif;
  margin-bottom: 8px;
}

.paper-card p {
  margin: 0;
  color: var(--ink-soft);
}

.models,
.assets,
.creator,
.buy,
.qr,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 22px;
}

.atlas-wrap {
  border: 1px solid #d5c6b0;
  border-radius: 12px;
  background: #fffdf8;
  padding: 10px;
}

.atlas-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.chapter-gallery {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chapter-item {
  border: 1px solid #d5c6b0;
  border-radius: 12px;
  background: #fffdf8;
  padding: 8px;
}

.chapter-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.chapter-item p {
  margin: 8px 4px 2px;
  font-size: 0.92rem;
  color: #3f4f49;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  line-height: 1.35;
}

.model-grid,
.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.model-grid article,
.creator-grid article {
  border: 1px solid #d5c6b0;
  border-radius: 12px;
  background: #fffdf8;
  padding: 14px;
}

.model-grid h3,
.creator-grid h3 {
  font-family: "Noto Serif SC", serif;
  margin-bottom: 6px;
}

.model-grid p,
.creator-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.buy-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buy-links .btn {
  background: #14342f;
  color: #fff;
}

.buy-links .btn:hover {
  background: #0f2622;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qr-card {
  border: 1px solid #d5c6b0;
  border-radius: 12px;
  background: #fffdf8;
  padding: 14px;
}

.qr-card h3 {
  font-family: "Noto Serif SC", serif;
  margin-bottom: 8px;
}

.qr-card img {
  width: 210px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #d5c6b0;
  background: #fff;
}

.qr-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form label {
  display: grid;
  gap: 5px;
  font-weight: 700;
}

.form input,
.form select {
  width: 100%;
  border: 1px solid #ccbca6;
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  background: #fff;
}

.form button,
.form-msg {
  grid-column: 1 / -1;
}

.form button {
  width: fit-content;
}

.form-msg {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 20px 30px;
  color: #596760;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .stat-strip,
  .content-grid,
  .model-grid,
  .chapter-gallery,
  .creator-grid,
  .qr-grid,
  .form {
    grid-template-columns: 1fr;
  }

  .form button {
    width: 100%;
  }
}
