@font-face {
  font-family: Inter;
  src: url("../template/fonts/inter.woff2") format("woff2");
  font-display: swap;
}
/* 画廊与主题预览分开：中性纸色衬托各套实际截图。 */
:root {
  color-scheme: light;
  --paper: #f4f2eb;
  --ink: #21221e;
  --muted: #67685f;
  --rule: #d9d8ce;
  --accent: #af4429;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
header,
main,
footer {
  max-width: 1440px;
  margin: auto;
  padding-inline: 64px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  font-size: 14px;
}
.wordmark {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
}
.wordmark span {
  margin-left: 22px;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 400;
  color: var(--muted);
}
.hero {
  padding: 78px 0 72px;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
}
h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(48px, 6.3vw, 88px);
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: -2px;
  margin: 30px 0 46px;
}
h1 span {
  color: var(--accent);
}
.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.hero-bottom p,
.section-heading p,
.how p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.facts {
  display: flex;
  gap: 45px;
}
.facts span {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.facts b {
  font-weight: 400;
  font-size: 36px;
  color: var(--ink);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 66px 0 32px;
}
.section-heading .eyebrow {
  font-size: 11px;
}
.section-heading h2,
.how h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 36px;
  font-weight: 500;
  margin: 12px 0 0;
}
.section-heading > p {
  font-size: 14px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 30px;
}
.theme-card {
  min-width: 0;
  display: block;
}
.preview {
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #e7e6df;
  aspect-ratio: 16/9;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.theme-card:hover img {
  transform: scale(1.025);
}
.card-info {
  display: flex;
  justify-content: space-between;
  padding: 20px 2px 0;
}
.card-info h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 8px 0 10px;
}
.card-info p {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0;
}
.card-info .use {
  font-size: 12px;
}
.open {
  font-size: 26px;
}
.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--rule);
  margin-top: 76px;
  padding: 64px 0;
}
.how h2 {
  margin-bottom: 22px;
}
.how h3 {
  font-size: 18px;
  margin: 0 0 24px;
  font-weight: 500;
}
pre {
  border-left: 2px solid var(--accent);
  padding: 10px 0 10px 22px;
  line-height: 1.8;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dl {
  margin: 0;
}
dl div {
  display: grid;
  grid-template-columns: 145px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  gap: 16px;
}
dd {
  margin: 0;
  color: var(--muted);
}
.how .fine {
  font-size: 12px;
  margin-top: 22px;
}
footer {
  min-height: 100px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 800px) {
  header,
  main,
  footer {
    padding-inline: 24px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-bottom,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .facts {
    gap: 40px;
  }
  .how {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .theme-grid {
    gap: 32px 20px;
  }
  .wordmark span {
    display: none;
  }
}
@media (max-width: 520px) {
  header {
    min-height: 84px;
  }
  .theme-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 45px;
    letter-spacing: -1px;
  }
  .section-heading h2,
  .how h2 {
    font-size: 30px;
  }
  footer {
    gap: 16px;
    line-height: 1.8;
  }
  dl div {
    grid-template-columns: 120px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .preview img {
    transition: none;
  }
}
