:root {
  --bg: #fffdf9;
  --paper: #fff7f1;
  --wood: #eadbc8;
  --peach: #fbc5b5;
  --berry: #ff8a98;
  --berry-dark: #df5f72;
  --sage: #7fa08b;
  --ink: #3b3132;
  --muted: #76696a;
  --line: rgba(102, 73, 66, 0.16);
  --shadow: 0 18px 52px rgba(115, 76, 63, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(251, 197, 181, 0.2), transparent 32rem),
    linear-gradient(180deg, var(--bg), #fff6f0 58%, var(--bg));
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.75;
}

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

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 56px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .95rem;
  color: #4c4041;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  padding: .58rem .72rem;
  border-radius: 999px;
  overflow: hidden;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .28rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(251, 197, 181, .42);
  color: #241b1c;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(115, 76, 63, .1);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  opacity: .28;
  transform: scaleX(1);
}

.main-nav .nav-download {
  color: #fff;
  background: var(--berry);
  box-shadow: 0 8px 24px rgba(255, 138, 152, .32);
}

.main-nav .nav-download:hover,
.main-nav .nav-download:focus-visible {
  color: #fff;
  background: #ff6f84;
  box-shadow: 0 12px 30px rgba(255, 138, 152, .44);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, margin .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(820px, calc(100vh - 72px));
  padding: clamp(3rem, 6vw, 6rem) 0 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(255, 253, 249, .94) 0%, rgba(255, 253, 249, .78) 47%, rgba(255, 253, 249, .22) 100%),
    url("img/webp/cover.webp") center right / cover no-repeat;
  filter: saturate(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--berry-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

h1 {
  max-width: 13em;
  color: var(--berry-dark);
  font-size: clamp(2.1rem, 4.7vw, 4.15rem);
  text-shadow: 0 8px 26px rgba(255, 138, 152, .18);
}

h2 {
  color: #7e514f;
  font-size: clamp(1.55rem, 2.45vw, 2.45rem);
}

h3 {
  color: #493636;
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
}

.hero-subtitle {
  max-width: 44rem;
  margin: 1.25rem 0 0;
  color: #554747;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 2rem 0 0;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .46rem;
  min-height: 46px;
  padding: .72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .42) 45%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .5s ease;
  pointer-events: none;
}

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

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--berry), #ff6f84);
  box-shadow: 0 14px 34px rgba(255, 138, 152, .36);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow: 0 18px 38px rgba(255, 138, 152, .45);
}

.btn.secondary {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(97, 75, 71, .18);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: rgba(255, 138, 152, .45);
  box-shadow: 0 12px 28px rgba(115, 76, 63, .12);
}

.btn.large {
  min-width: 150px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 560px;
  margin: 2.1rem 0 0;
}

.hero-facts div {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .64);
}

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

.hero-facts dd {
  margin: .15rem 0 0;
  font-weight: 800;
}

.hero-media {
  margin: 0;
  padding: .65rem;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}

.hero-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(115, 76, 63, .2);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 742 / 413;
  object-fit: cover;
  border-radius: 6px;
}

.hero-media figcaption {
  padding: .7rem .25rem .15rem;
  color: var(--muted);
  font-size: .9rem;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head.align-left {
  margin: 0;
  text-align: left;
}

.section-head.compact {
  max-width: 840px;
}

.section-head p:not(.eyebrow) {
  margin: .8rem 0 0;
  color: var(--muted);
}

.media-text {
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.media-text figure {
  margin: 0;
}

.media-text img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .32s ease, box-shadow .32s ease, filter .32s ease;
}

.media-text figure {
  overflow: hidden;
  border-radius: var(--radius);
}

.media-text figure:hover img {
  transform: scale(1.025);
  filter: saturate(1.06);
  box-shadow: 0 22px 58px rgba(115, 76, 63, .18);
}

.prose {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-left: 4px solid var(--peach);
  background: rgba(255, 255, 255, .54);
  border-radius: var(--radius);
}

.prose p {
  margin: .85rem 0 0;
  color: var(--muted);
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: .7rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(115, 76, 63, .08);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .32s ease, filter .32s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 138, 152, .36);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px rgba(115, 76, 63, .14);
}

.feature-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.feature-card h3 {
  margin: 1rem .35rem 0;
}

.feature-card p {
  margin: .55rem .35rem .35rem;
  color: var(--muted);
}

.guide-section {
  width: 100%;
  max-width: none;
  padding: clamp(3.5rem, 7vw, 6rem) max(1rem, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(135deg, rgba(234, 219, 200, .72), rgba(251, 197, 181, .42)),
    linear-gradient(180deg, #fff9f4, #fffdf9);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  margin-top: 1.15rem;
  color: var(--berry-dark);
  font-weight: 800;
  border-bottom: 2px solid rgba(223, 95, 114, .3);
}

.guide-download {
  margin-top: 1.25rem;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav .icon {
  width: 1em;
  height: 1em;
}

.guide-list {
  display: grid;
  gap: .85rem;
}

.guide-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: .9rem;
  padding: 1rem;
  background: rgba(255, 253, 249, .82);
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.guide-list article:hover {
  transform: translateX(5px);
  border-color: rgba(255, 138, 152, .32);
  background: rgba(255, 253, 249, .95);
  box-shadow: 0 14px 34px rgba(115, 76, 63, .1);
}

.guide-list span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--sage);
  border-radius: 50%;
  font-weight: 800;
}

.guide-list p {
  grid-column: 2;
  margin: .4rem 0 0;
  color: var(--muted);
}

.split-band {
  width: min(var(--max), calc(100% - 2rem));
}

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

.highlights article {
  min-height: 200px;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fff7f1);
  border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.highlights article::before {
  content: "";
  display: block;
  width: 32px;
  height: 5px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--berry);
}

.highlights p {
  margin: .65rem 0 0;
  color: var(--muted);
}

.highlights article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 138, 152, .34);
  box-shadow: 0 16px 38px rgba(115, 76, 63, .12);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery figure:hover img {
  transform: scale(1.025);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 1.4rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(115, 76, 63, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.timeline article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 152, .32);
  box-shadow: 0 18px 42px rgba(115, 76, 63, .12);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 4px;
  border-radius: 6px;
  background: var(--peach);
}

.timeline time {
  display: inline-flex;
  margin-bottom: .55rem;
  color: var(--berry-dark);
  font-weight: 800;
}

.timeline ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem 1.4rem;
  margin: .8rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.changelog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  margin: .85rem 0 0;
  padding-left: 0;
  color: var(--muted);
  list-style: none;
  counter-reset: changelog;
}

.changelog-list li {
  counter-increment: changelog;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .78rem;
  min-height: 48px;
  padding: .78rem 1rem .78rem .85rem;
  border: 1px solid rgba(102, 73, 66, .14);
  border-left: 4px solid var(--berry);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 138, 152, .12), rgba(255, 255, 255, .78) 34%),
    rgba(255, 255, 255, .72);
  box-shadow: 0 8px 22px rgba(115, 76, 63, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.changelog-list li::before {
  content: counter(changelog, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.35rem;
  height: 2.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--berry), #ff6f84);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(255, 138, 152, .28);
}

.changelog-list li:hover {
  transform: translateX(3px);
  border-color: rgba(255, 138, 152, .38);
  box-shadow: 0 12px 28px rgba(115, 76, 63, .1);
}

.faq-section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

details:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 152, .32);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px rgba(115, 76, 63, .1);
}

summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--berry-dark);
}

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

details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.download-panel {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 138, 152, .16), rgba(127, 160, 139, .14)),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.download-panel p:not(.eyebrow) {
  margin: .55rem 0 0;
  color: var(--muted);
}

.friend-links {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  padding: clamp(2.2rem, 5vw, 3.4rem) 1rem;
  text-align: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 138, 152, .28), transparent 34rem),
    linear-gradient(90deg, rgba(255, 253, 249, .9), rgba(251, 197, 181, .36), rgba(255, 253, 249, .9));
  border: 1px solid rgba(255, 138, 152, .16);
  box-shadow: 0 16px 44px rgba(115, 76, 63, .08);
}

.friend-links h2 {
  color: #2f2730;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.friend-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.25rem;
}

.friend-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .62rem 1.28rem;
  color: #342b33;
  font-weight: 800;
  border: 1px solid rgba(102, 73, 66, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 28px rgba(115, 76, 63, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.friend-link-list a:hover,
.friend-link-list a:focus-visible {
  color: var(--berry-dark);
  transform: translateY(-3px);
  border-color: rgba(255, 138, 152, .4);
  box-shadow: 0 14px 34px rgba(255, 138, 152, .18);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--berry-dark);
  font-weight: 800;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(251, 197, 181, .35), rgba(234, 219, 200, .35)),
    var(--bg);
}

.not-found > div {
  width: min(620px, 100%);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}

.not-found p:not(.eyebrow) {
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    display: none;
    padding: .7rem;
    background: rgba(255, 253, 249, .98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

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

  .main-nav a {
    border-radius: var(--radius);
  }

  .hero-inner,
  .media-text,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .timeline ul,
  .changelog-list,
  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section,
  .split-band,
  .download-panel,
  .friend-links,
  .site-footer {
    width: min(100% - 1rem, var(--max));
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-inner {
    width: min(100% - 1rem, var(--max));
  }

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

  .hero-actions,
  .download-panel,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .guide-list article {
    grid-template-columns: 46px minmax(0, 1fr);
  }
}

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