:root {
  --paper: #fef4ef;
  --surface: #ffffff;
  --surface-soft: #f0eff0;
  --ink: #252224;
  --muted: #665a5d;
  --line: #e3d7d6;
  --primary: #7a4743;
  --primary-strong: #5d302d;
  --accent: #b69e9c;
  --rose: #e5c3b4;
  --lilac: #c8c3cd;
  --teal: #286f72;
  --gold: #9a6c23;
  --shadow: 0 18px 48px rgba(64, 42, 39, 0.14);
  --radius: 8px;
  color-scheme: light;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

code {
  padding: 0.08em 0.28em;
  border-radius: 4px;
  background: rgba(122, 71, 67, 0.1);
  color: var(--primary-strong);
  font-family: Consolas, "SFMono-Regular", monospace;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(254, 244, 239, 0.94);
  border-bottom: 1px solid rgba(122, 71, 67, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.top-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a.active {
  background: rgba(40, 111, 114, 0.1);
  color: var(--teal);
}

.hero {
  min-height: min(780px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  padding: clamp(42px, 7vw, 94px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(115deg, rgba(254, 244, 239, 0.98) 0%, rgba(240, 239, 240, 0.94) 52%, rgba(200, 195, 205, 0.7) 100%);
  overflow: hidden;
}

.hero-media {
  order: 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #211;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 700 / 370;
  object-fit: cover;
}

.hero-copy {
  order: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

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

.hero-summary {
  max-width: 700px;
  margin-top: 18px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

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

.button.secondary {
  border-color: rgba(122, 71, 67, 0.32);
  color: var(--primary-strong);
  background: rgba(255, 255, 255, 0.54);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0;
}

.hero-meta div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(122, 71, 67, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.hero-meta dt,
.facts dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-meta dd,
.facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.seo-strip {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: -32px auto 0;
  position: relative;
  z-index: 3;
}

.seo-strip div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(122, 71, 67, 0.08);
}

.seo-strip strong {
  display: block;
  color: var(--primary-strong);
}

.seo-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 86px) 0 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-head p:last-child {
  margin-top: 12px;
}

.profile-grid,
.split-section,
.version-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-card,
.split-section article,
.channel-section,
.version-list article,
.guide-card,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(122, 71, 67, 0.08);
}

.profile-card,
.split-section article,
.version-list article {
  padding: clamp(20px, 3vw, 28px);
}

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

.facts div {
  min-height: 78px;
  padding: 12px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.check-list,
.ordered {
  margin: 18px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.check-list li + li,
.ordered li + li {
  margin-top: 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.media-item {
  position: relative;
  min-height: 220px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1f1818;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.media-item:first-child {
  grid-row: span 2;
}

.media-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.media-item:hover img {
  transform: scale(1.03);
}

.media-item span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(37, 34, 36, 0.78);
  color: #fff;
  font-size: 0.9rem;
}

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

.guide-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.guide-card span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(40, 111, 114, 0.12);
  color: var(--teal);
  font-weight: 900;
}

.guide-card p {
  margin-top: 10px;
}

.guide-card a {
  margin-top: auto;
  font-weight: 900;
}

.split-section {
  align-items: stretch;
}

.channel-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(122, 71, 67, 0.09), rgba(40, 111, 114, 0.1)),
    #fff;
}

.channel-section div {
  max-width: 760px;
}

.version-list time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  overflow: hidden;
}

summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.25rem;
}

details[open] summary::after {
  content: "−";
}

details p {
  padding: 0 16px 16px;
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(54px, 8vw, 86px) auto 0;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  max-width: 760px;
}

.site-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 18, 18, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
}

.lightbox p {
  margin-top: 12px;
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.8rem;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 12px 28px rgba(40, 111, 114, 0.32);
}

.back-to-top.visible {
  display: inline-grid;
  place-items: center;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: 1;
  }

  .hero-copy {
    order: 2;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-meta,
  .seo-strip,
  .profile-grid,
  .split-section,
  .version-list,
  .guide-grid,
  .media-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .seo-strip {
    margin-top: 18px;
  }

  .media-item:first-child {
    grid-row: auto;
  }

  .channel-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
