:root {
  --bg: #f7f1ea;
  --bg-strong: #efe3d6;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-solid: #fffaf5;
  --surface-deep: #211718;
  --text: #2e2224;
  --muted: #725b5a;
  --line: rgba(119, 63, 63, 0.14);
  --line-strong: rgba(119, 63, 63, 0.26);
  --primary: #7f1226;
  --primary-strong: #650d1f;
  --primary-soft: rgba(127, 18, 38, 0.08);
  --gold: #b9914c;
  --gold-soft: rgba(185, 145, 76, 0.18);
  --shadow: 0 18px 40px rgba(57, 31, 32, 0.08);
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 18px;
  --content: 1060px;
  --nav-height: 70px;
  --font-heading: "Source Han Serif SC", "Noto Serif SC", "STSong", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(127, 18, 38, 0.1), transparent 34%),
    linear-gradient(180deg, #fbf6f0 0%, #f7f1ea 38%, #f4ede5 100%);
  line-height: 1.75;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url("img/mountain-pattern.svg") center 140px / min(1600px, 100%) no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2));
  opacity: 0.2;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 30vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 250, 245, 0.76));
  pointer-events: none;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a.button,
.button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: #fff;
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  z-index: 30;
  transition: top 0.2s ease;
  cursor: pointer;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(248, 242, 235, 0.84);
  border-bottom: 1px solid rgba(127, 18, 38, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(185, 145, 76, 0.8), transparent);
}

.header-inner,
.container {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.brand img {
  width: 164px;
  height: auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-toggle {
  display: none;
  min-width: 68px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-toggle-label {
  line-height: 1;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav :is(a, button) {
  position: relative;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 14px;
  border: 0;
  background: none;
  transition: color 0.2s ease, background-color 0.2s ease, font-weight 0.2s ease;
  cursor: pointer;
}

.site-nav :is(a, button)::after {
  content: none;
}

.site-nav :is(a, button):is(:hover, :focus-visible),
.site-nav :is(a, button)[aria-current="page"],
.site-nav :is(a, button).is-active {
  color: var(--primary);
  background: rgba(127, 18, 38, 0.06);
  font-weight: 700;
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(127, 18, 38, 0.92), rgba(185, 145, 76, 0.9));
  opacity: 0;
  transform: translateX(0);
  transition:
    transform 0.24s ease,
    width 0.24s ease,
    opacity 0.18s ease;
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #8d132b 0%, #6b1021 100%);
  box-shadow: 0 12px 24px rgba(127, 18, 38, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #991730 0%, #741223 100%);
  box-shadow: 0 16px 28px rgba(127, 18, 38, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(127, 18, 38, 0.38);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #fff;
}

.button-quiet {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(127, 18, 38, 0.12);
  font-weight: 600;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 42px 0 20px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  right: -140px;
  top: -180px;
  background:
    radial-gradient(circle at center, rgba(127, 18, 38, 0.14), rgba(127, 18, 38, 0.04) 42%, transparent 68%),
    url("img/ui-sprite.svg") 0 0 / 460px auto no-repeat;
  opacity: 0.86;
}

.hero::after {
  left: 0;
  right: 0;
  bottom: 10px;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 245, 236, 0), rgba(241, 231, 219, 0.9));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 30px;
  align-items: center;
  z-index: 1;
}

.hero-copy {
  padding: 28px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(127, 18, 38, 0.08);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--primary));
  box-shadow: 0 0 0 4px rgba(127, 18, 38, 0.08);
}

.hero h1,
.section-heading h2,
.page-hero h1,
.guide-card h2,
.article h2,
.timeline h3,
.faq-item h3 {
  font-family: var(--font-heading);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(1.96rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.hero h1 span {
  display: block;
  color: var(--primary);
}

.lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-slogan {
  margin: 0 0 16px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.6vw, 1.12rem);
  letter-spacing: 0.08em;
}

.lead strong,
.keyword,
.stat strong,
.text-strong {
  color: var(--primary);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.hero-download {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.72);
  border: 1px solid rgba(127, 18, 38, 0.08);
  box-shadow: 0 10px 20px rgba(57, 31, 32, 0.05);
}

.hero-download-copy {
  display: grid;
  gap: 6px;
}

.hero-download-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.hero-download-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-qr {
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 240, 233, 0.9));
  border: 1px solid rgba(127, 18, 38, 0.1);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(127, 18, 38, 0.12);
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(43, 19, 22, 0.96), rgba(55, 24, 27, 0.9));
  box-shadow: var(--shadow);
  min-height: 500px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%, rgba(127, 18, 38, 0.38) 100%),
    radial-gradient(circle at top right, rgba(185, 145, 76, 0.32), transparent 34%);
  z-index: 1;
  transition: opacity 0.28s ease, background 0.28s ease;
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform 0.5s ease, filter 0.5s ease;
  will-change: transform;
}

.hero-card-badge {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(20, 10, 11, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 249, 244, 0.94);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: background-color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.hero-card:hover,
.hero-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(57, 31, 32, 0.18);
}

.hero-card:hover::before,
.hero-card:focus-within::before {
  opacity: 0.82;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%, rgba(127, 18, 38, 0.45) 100%),
    radial-gradient(circle at top right, rgba(185, 145, 76, 0.38), transparent 34%);
}

.hero-card:hover img,
.hero-card:focus-within img {
  transform: scale(1.09);
  filter: saturate(1.08) contrast(1.03);
}

.hero-card:hover .hero-card-badge,
.hero-card:focus-within .hero-card-badge {
  transform: translateY(-4px);
  background: rgba(20, 10, 11, 0.66);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-card-badge strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.floating-panel {
  position: absolute;
  top: 24px;
  left: -16px;
  width: min(260px, 72%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 251, 247, 0.92);
  border: 1px solid rgba(127, 18, 38, 0.12);
  box-shadow: var(--shadow);
}

.floating-panel::before {
  content: "";
  position: absolute;
  inset: auto 18px -1px 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(185, 145, 76, 0.9), transparent);
}

.floating-panel h2,
.floating-panel p {
  margin: 0;
}

.floating-panel h2 {
  font-size: 0.94rem;
  color: var(--primary);
}

.floating-panel p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  position: relative;
  padding: 52px 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(239, 227, 214, 0.35), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 780px;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker::after {
  content: "";
  width: 72px;
  height: 10px;
  background: url("img/ui-sprite.svg") 0 -90px / 260px auto no-repeat;
  opacity: 0.9;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.16rem);
  line-height: 1.12;
}

.split-grid,
.feature-grid,
.guide-grid,
.gallery-grid,
.facts-grid,
.faq-grid,
.article-grid {
  display: grid;
  gap: 20px;
}

.split-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.panel,
.feature-card,
.guide-card,
.gallery-card,
.fact-card,
.faq-item,
.timeline-item,
.notice,
.article-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(127, 18, 38, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel,
.notice,
.article-card {
  padding: 22px;
}

.panel::before,
.feature-card::before,
.guide-card::before,
.gallery-card::before,
.fact-card::before,
.faq-item::before,
.timeline-item::before,
.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 145, 76, 0.96), transparent 50%);
}

.panel p:last-child,
.feature-card p:last-child,
.guide-card p:last-child,
.article-card p:last-child {
  margin-bottom: 0;
}

.facts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-card {
  padding: 22px;
}

.fact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.guide-card,
.gallery-card,
.faq-item,
.timeline-item {
  padding: 20px;
}

.feature-card h3,
.guide-card h3,
.gallery-card h3,
.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.feature-card p,
.guide-card p,
.gallery-card p,
.timeline-item p,
.faq-item p,
.fact-card p,
.panel p,
.notice p,
.article-card p,
.article-card li {
  margin: 0;
  color: var(--muted);
}

.feature-card ul,
.guide-card ul,
.article-card ul,
.article-card ol {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.guide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-card {
  min-height: 100%;
}

.guide-card .guide-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.guide-card .guide-link::after {
  content: "→";
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.keyword-cloud span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(127, 18, 38, 0.06);
  border: 1px solid rgba(127, 18, 38, 0.1);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  padding: 0;
}

.gallery-media {
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.gallery-card:hover .gallery-media img,
.gallery-card:focus-within .gallery-media img {
  transform: scale(1.035);
}

.gallery-copy {
  padding: 20px 24px 24px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline-date {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-item ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.section-dark {
  background:
    radial-gradient(circle at top left, rgba(127, 18, 38, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(245, 235, 226, 0.92), rgba(239, 227, 214, 0.62));
}

.role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.role-rail {
  display: grid;
  gap: 18px;
}

.role-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 250, 245, 0.78);
  border: 1px solid rgba(127, 18, 38, 0.1);
  box-shadow: var(--shadow);
}

.role-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 145, 76, 0.96), transparent 54%);
}

.role-card-featured {
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  padding: 0;
}

.role-media {
  min-height: 100%;
}

.role-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.role-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px 32px;
}

.role-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(127, 18, 38, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.role-card h3,
.download-copy h2,
.download-card strong {
  margin: 0;
  font-family: var(--font-heading);
}

.role-card p,
.download-copy p,
.download-card span {
  margin: 0;
  color: var(--muted);
}

.section-download {
  padding-top: 18px;
}

.download-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) 220px;
  gap: 20px;
  padding: 24px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(33, 23, 24, 0.98), rgba(73, 29, 35, 0.96)),
    radial-gradient(circle at top right, rgba(185, 145, 76, 0.25), transparent 34%);
  color: rgba(255, 247, 240, 0.96);
  box-shadow: 0 28px 48px rgba(40, 18, 20, 0.18);
}

.download-copy p {
  color: rgba(255, 242, 234, 0.74);
}

.download-shell .section-kicker,
.download-shell .pill {
  color: rgba(255, 246, 239, 0.92);
}

.download-shell .pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

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

.download-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.download-card:hover,
.download-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.download-card strong,
.download-card span {
  color: rgba(255, 247, 240, 0.94);
}

.download-qr-board {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-qr-large {
  width: 136px;
  border-radius: 28px;
}

.download-qr-board p {
  margin: 0;
  color: rgba(255, 242, 234, 0.74);
  text-align: center;
  font-size: 0.92rem;
}

.mobile-download-bar {
  display: none;
}

.cta-band {
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(127, 18, 38, 0.96), rgba(59, 16, 20, 0.95)),
    url("img/ui-sprite.svg") right 18px top 18px / 260px auto no-repeat;
  box-shadow: var(--shadow);
  color: rgba(255, 248, 241, 0.96);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.36rem, 2.2vw, 1.9rem);
}

.cta-band p {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 244, 235, 0.82);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.cta-band .button-secondary {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.26);
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  border-top: 1px solid rgba(127, 18, 38, 0.08);
  padding-top: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-links :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--primary);
  font-weight: 700;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.page-hero {
  padding: 52px 0 22px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 700;
}

.article-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.article {
  display: grid;
  gap: 20px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 1.7rem;
}

.article-card h3 {
  margin: 24px 0 10px;
  font-size: 1.16rem;
  color: var(--primary);
}

.article-card li + li,
.timeline-item li + li,
.guide-card li + li {
  margin-top: 8px;
}

.article-card .summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.article-card .summary-list li {
  padding: 16px;
  border-radius: 18px;
  background: rgba(127, 18, 38, 0.05);
  border: 1px solid rgba(127, 18, 38, 0.08);
}

.side-stack {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.toc {
  display: grid;
  gap: 10px;
}

.toc a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(127, 18, 38, 0.08);
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--primary);
  background: rgba(127, 18, 38, 0.05);
}

.notice {
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.95), rgba(248, 240, 233, 0.95));
}

.notice strong {
  color: var(--primary);
}

.cover-card {
  overflow: hidden;
  border-radius: 28px;
  background: #2f1719;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.error-page {
  min-height: calc(100vh - var(--nav-height) - 120px);
  display: grid;
  place-items: center;
  padding: 48px 0 80px;
}

.error-card {
  width: min(720px, 100%);
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy[data-reveal] {
  transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-card:hover,
  .hero-card:focus-within {
    transform: none;
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .split-grid,
  .page-hero-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .role-grid,
  .download-shell {
    grid-template-columns: 1fr;
  }

  .download-platforms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-stack {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 6px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav :is(a, button) {
    padding: 12px 0;
    border-radius: 0;
  }

  .site-nav :is(a, button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    width: 68px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(127, 18, 38, 0.92), rgba(185, 145, 76, 0.9));
    transition: transform 0.2s ease;
  }

  .site-nav :is(a, button):is(:hover, :focus-visible)::after,
  .site-nav :is(a, button)[aria-current="page"]::after,
  .site-nav :is(a, button).is-active::after {
    transform: scaleX(1);
  }

  .nav-indicator {
    display: none;
  }

  .header-actions {
    width: 100%;
    margin-left: auto;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .header-actions .button {
    flex: 1 1 180px;
  }

  .brand img {
    width: 142px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card {
    min-height: 460px;
  }

  .floating-panel {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .role-card-featured {
    grid-template-columns: 1fr;
  }

  .role-media img {
    min-height: 280px;
  }

  .download-platforms {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .faq-grid,
  .article-card .summary-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 78px;
  }

  .container,
  .header-inner {
    width: min(var(--content), calc(100% - 22px));
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 40;
    background: linear-gradient(180deg, rgba(251, 246, 240, 0.96), rgba(251, 246, 240, 0.74));
    border-bottom: none;
    backdrop-filter: blur(10px);
  }

  .site-header::after {
    opacity: 0.35;
  }

  .header-inner {
    align-items: center;
    gap: 12px;
    padding: 10px 0 8px;
  }

  .brand {
    width: auto;
    flex: 0 0 auto;
    align-items: center;
  }

  .brand-copy {
    display: none;
  }

  .brand img {
    width: 116px;
  }

  .brand-copy strong {
    font-size: 0.98rem;
    line-height: 1.2;
    letter-spacing: 0.03em;
  }

  .brand-copy span {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .nav-toggle {
    min-width: 68px;
    height: 40px;
    padding: 0 14px;
    flex: 0 0 auto;
    align-self: center;
    position: relative;
    top: 0;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 22px rgba(75, 27, 33, 0.08);
  }

  .site-nav {
    margin-top: 6px;
    padding: 12px 16px 10px;
    background: rgba(255, 251, 247, 0.94);
    border: 1px solid rgba(127, 18, 38, 0.1);
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(55, 24, 27, 0.08);
  }

  .site-nav :is(a, button) {
    padding: 13px 0;
  }

  .header-actions {
    display: none;
  }

  .footer-grid {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .feature-grid,
  .guide-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cta-band,
  .panel,
  .feature-card,
  .guide-card,
  .faq-item,
  .article-card,
  .notice {
    padding: 20px;
  }

  .fact-card,
  .gallery-card,
  .timeline-item {
    padding: 20px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: clamp(1.34rem, 7vw, 1.72rem);
  }

  .hero {
    padding: 12px 0 18px;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-visual {
    order: 1;
  }

  .hero-copy {
    order: 2;
    margin-top: -34px;
    padding: 22px 18px 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(247, 239, 232, 0.94));
    border: 1px solid rgba(127, 18, 38, 0.08);
    box-shadow: 0 -8px 20px rgba(57, 31, 32, 0.04), 0 24px 40px rgba(57, 31, 32, 0.08);
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(1.52rem, 8.8vw, 2.12rem);
    line-height: 1.08;
  }

  .hero-slogan {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-download {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    margin-top: 18px;
  }

  .hero-meta {
    gap: 10px;
    margin-top: 18px;
  }

  .pill {
    width: 100%;
    justify-content: flex-start;
    min-height: 0;
    padding: 10px 14px;
    border-radius: 18px;
  }

  .hero-card {
    min-height: 420px;
    border-radius: 32px;
  }

  .hero-card img {
    aspect-ratio: 4 / 5;
  }

  .hero-card-badge {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 14px;
    border-radius: 18px;
  }

  .hero-card-badge strong {
    font-size: 0.92rem;
  }

  .floating-panel {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    margin-top: 0;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 248, 242, 0.88);
    backdrop-filter: blur(10px);
  }

  .role-grid,
  .download-shell {
    gap: 16px;
  }

  .role-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .role-rail .role-card {
    scroll-snap-align: start;
  }

  .download-shell {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .download-qr-board {
    display: none;
  }

  .download-card {
    min-height: 0;
  }

  .download-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-card-pc {
    display: none;
  }

  .mobile-download-bar {
    position: sticky;
    bottom: 0;
    display: block;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(247, 241, 234, 0), rgba(247, 241, 234, 0.94) 34%);
    z-index: 25;
  }

  .mobile-download-bar .button {
    min-height: 46px;
    border-radius: 16px;
    font-size: 0.98rem;
    box-shadow: 0 10px 18px rgba(127, 18, 38, 0.08);
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
