:root {
  --bg-page: #f7f1e7;
  --bg-soft: #efe4d5;
  --bg-panel: rgba(255, 252, 247, 0.94);
  --bg-panel-strong: #fffdfa;
  --line-soft: rgba(98, 74, 42, 0.12);
  --line-strong: rgba(98, 74, 42, 0.2);
  --text-dark: #2c241d;
  --text-mid: #5f5549;
  --text-soft: #857868;
  --brand: #6d5538;
  --brand-strong: #463321;
  --accent: #c58b45;
  --accent-soft: rgba(197, 139, 69, 0.14);
  --accent-dark: #8d6230;
  --shadow-lg: 0 28px 60px rgba(60, 44, 24, 0.12);
  --shadow-md: 0 16px 34px rgba(60, 44, 24, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1180px, calc(100vw - 40px));
  --font-display: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  --font-body: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-dark);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(197, 139, 69, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(109, 85, 56, 0.08), transparent 24%),
    linear-gradient(180deg, #faf5ec 0%, #f3eadf 52%, #eee2d5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(109, 85, 56, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(109, 85, 56, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.34), transparent 84%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 32px 0 40px;
}

.download-hero,
.panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background: var(--bg-panel);
  box-shadow: var(--shadow-md);
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(70, 51, 33, 0.66);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--brand-strong);
}

.download-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 44rem;
  color: var(--text-mid);
  line-height: 1.9;
  font-size: 1.05rem;
}

.status-banner {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(197, 139, 69, 0.1);
  color: var(--brand-strong);
  line-height: 1.7;
}

.status-banner.warning {
  background: rgba(196, 134, 65, 0.12);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #ddb27b, #c58943);
  color: #2c241d;
  box-shadow: 0 18px 36px rgba(197, 137, 67, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.66);
  color: var(--brand-strong);
  border-color: rgba(98, 74, 42, 0.14);
}

.hero-points {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li,
.detail-list li,
.ordered-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-mid);
  line-height: 1.85;
}

.hero-points li::before,
.detail-list li::before,
.ordered-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(197, 139, 69, 0.1);
  transform: translateY(-50%);
}

.hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(78, 55, 31, 0.96), rgba(56, 40, 24, 0.98)),
    #4b3522;
  color: #fff8ef;
  box-shadow: var(--shadow-lg);
}

.hero-card h2,
.hero-card h3 {
  color: #fff6ea;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ef;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill.highlight {
  background: rgba(236, 190, 127, 0.2);
}

.qr-block {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-image {
  display: block;
  width: min(220px, 100%);
  height: auto;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
}

.qr-caption,
.hero-card-copy,
.hero-card-note {
  margin: 0;
  color: rgba(255, 248, 239, 0.78);
  line-height: 1.7;
  text-align: center;
}

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

.summary-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.summary-item span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 248, 239, 0.72);
  font-size: 0.78rem;
}

.summary-item strong {
  display: block;
  line-height: 1.55;
  word-break: break-word;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 24px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-subcopy {
  margin: 12px 0 0;
  color: var(--text-mid);
  line-height: 1.85;
}

.ordered-list,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ordered-list {
  display: grid;
  gap: 12px;
}

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

.detail-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--bg-panel-strong);
}

.detail-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.detail-card strong {
  display: block;
  line-height: 1.6;
  word-break: break-word;
}

.note-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(197, 139, 69, 0.08);
  border: 1px solid rgba(197, 139, 69, 0.14);
}

.note-card h3 {
  font-size: 1.05rem;
}

.note-copy {
  margin: 10px 0 0;
  color: var(--text-mid);
  line-height: 1.85;
  white-space: pre-wrap;
}

.mono-wrap {
  word-break: break-all;
}

.notice {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(197, 139, 69, 0.08);
  color: var(--text-mid);
  line-height: 1.8;
}

.site-footer {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background: rgba(244, 236, 223, 0.9);
  box-shadow: var(--shadow-md);
}

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

.footer-title {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-weight: 700;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.8;
}

@media (max-width: 1040px) {
  .download-hero,
  .section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 16px;
  }

  .download-hero,
  .panel {
    padding: 20px;
    border-radius: 22px;
  }

  .download-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
