:root {
  --paper: #f2eee5;
  --paper-deep: #e8e1d4;
  --ink: #252a28;
  --ink-soft: #626861;
  --line: rgba(37, 42, 40, 0.16);
  --cinnabar: #a94a3a;
  --cinnabar-dark: #87392e;
  --moss: #68716b;
  --shadow: 0 28px 70px rgba(41, 36, 30, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 6%, rgba(169, 74, 58, 0.09), transparent 28rem),
    linear-gradient(118deg, rgba(255, 255, 255, 0.44), transparent 38%);
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(37, 42, 40, 0.018) 3px 4px),
    repeating-linear-gradient(93deg, transparent 0 11px, rgba(255, 255, 255, 0.22) 11px 12px);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand img {
  object-fit: contain;
}

.release-chip,
.eyebrow,
.file-meta,
.section-number,
.unsigned-tag,
.card-topline,
.release-facts dt,
.release-facts dd,
button,
.download-button,
.purchase-link {
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.release-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.78fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: center;
  min-height: 610px;
  padding: 76px 0 88px;
}

.eyebrow {
  margin: 0 0 23px;
  color: var(--cinnabar);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 30px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(3.25rem, 6vw, 6.35rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--cinnabar);
  font-style: normal;
  white-space: nowrap;
}

.intro {
  max-width: 620px;
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.95;
}

.release-facts {
  display: flex;
  gap: 0;
  margin: 0;
}

.release-facts div {
  min-width: 112px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.release-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.release-facts dt {
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.release-facts dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.download-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(37, 42, 40, 0.2);
  border-radius: 3px 38px 3px 3px;
  background: rgba(250, 247, 240, 0.9);
  box-shadow: var(--shadow);
}

.download-card::after {
  content: "墨";
  position: absolute;
  right: -25px;
  bottom: -70px;
  color: rgba(37, 42, 40, 0.035);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 14rem;
  line-height: 1;
  pointer-events: none;
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 5px rgba(169, 74, 58, 0.11);
}

.unsigned-tag {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(169, 74, 58, 0.35);
  border-radius: 999px;
  color: var(--cinnabar-dark);
  font-size: 0.7rem;
  font-weight: 700;
}

.download-card h2 {
  position: relative;
  z-index: 1;
  margin: 42px 0 9px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 2.25rem;
  font-weight: 700;
}

.file-meta {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.download-button,
.purchase-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.download-button {
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid var(--cinnabar);
  background: var(--cinnabar);
  color: #fffaf2;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-2px);
  background: var(--cinnabar-dark);
  box-shadow: 0 12px 24px rgba(135, 57, 46, 0.22);
}

.purchase-link {
  width: max-content;
  margin: 16px 0 30px;
  color: var(--cinnabar-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.warning-box {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
  border-left: 3px solid var(--cinnabar);
  background: rgba(169, 74, 58, 0.065);
}

.warning-box strong {
  font-size: 0.88rem;
}

.warning-box p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.75;
}

.verify,
.notes {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 110px);
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.section-number {
  margin-bottom: 14px;
  color: var(--cinnabar);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.verify h2,
.notes h2 {
  margin-bottom: 14px;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 2rem;
}

.verify > div:first-child > p:last-child {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.75;
}

.hash-panel {
  min-width: 0;
}

.hash-panel > code {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 16px;
  font-size: clamp(0.86rem, 1.7vw, 1.12rem);
  line-height: 1.7;
}

.hash-panel button {
  margin-bottom: 20px;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
}

.hash-panel button:hover,
.hash-panel button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.hash-panel pre {
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

.hash-panel > a,
.notes a,
footer a {
  color: var(--cinnabar-dark);
  font-size: 0.82rem;
  text-underline-offset: 4px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.notes-grid article {
  padding: 25px;
  background: var(--paper);
}

.notes-grid h3 {
  font-size: 0.92rem;
}

.notes-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.8;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 850px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 58px 0 72px;
  }

  .download-card {
    max-width: 560px;
  }

  .verify,
  .notes {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .release-chip {
    display: none;
  }

  h1 {
    font-size: clamp(2.85rem, 15vw, 4.25rem);
  }

  .release-facts {
    flex-wrap: wrap;
  }

  .release-facts div {
    min-width: 96px;
    padding-inline: 16px;
  }

  .download-card {
    padding: 26px 22px;
    border-radius: 3px 28px 3px 3px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
