/* ============================================================
   ACLauncher 官网
   配色取自启动器 App.xaml：橙猫橙 + 暖米 + 深青 + 我的世界绿
   ============================================================ */

:root {
  /* 表面 */
  --cream:        #FBF4EC;
  --cream-2:      #FDF4E9;
  --paper:        #FFFDFA;
  --line:         #E6E0D8;
  --line-strong:  #D8CFC2;

  /* 文字 */
  --ink:          #241610;
  --ink-2:        #5A4635;
  --ink-3:        #8B7765;

  /* 品牌 */
  --orange:       #E8791E;
  --orange-deep:  #C25E0E;
  --orange-bright:#F49B36;
  --orange-faint: #FDF4E9;
  --teal:         #0E7C7B;
  --green:        #3C8527;
  --green-hover:  #4CA83A;
  --red:          #C43B2B;

  /* 深色块 */
  --dark:         #241610;
  --dark-2:       #33231A;
  --dark-line:    #4A362A;

  /* 字体 */
  --font-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", system-ui, sans-serif;
  --font-body:    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-pixel:   "Silkscreen", ui-monospace, monospace;

  /* 度量 */
  --wrap: 1180px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* 方块阴影：硬边偏移，取等距方块的棱感 */
  --block: 5px 5px 0 var(--line-strong);
  --block-sm: 3px 3px 0 var(--line-strong);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 720px) {
  html { scroll-padding-top: 108px; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.22;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 4.3vw, 3.6rem); line-height: 1.3; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.3rem); letter-spacing: .015em; }

p { margin: 0 0 1em; max-width: 36em; }
p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .84em;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
  color: var(--orange-deep);
  white-space: nowrap;
}

.pixel { font-family: var(--font-pixel); letter-spacing: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: .7em 1.1em;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .68em 1.15em;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: var(--block-sm);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line-strong); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line-strong); }

.btn-solid {
  background: var(--orange);
  border-color: var(--orange-deep);
  color: #fff;
  box-shadow: 3px 3px 0 var(--orange-deep);
}
.btn-solid:hover { background: var(--orange-bright); box-shadow: 4px 4px 0 var(--orange-deep); }
.btn-solid:active { box-shadow: 1px 1px 0 var(--orange-deep); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--cream-2); }

.btn-lg { font-size: 1.02rem; padding: .8em 1.35em; }
.btn-sm { font-size: .86rem; padding: .5em .85em; }

.btn-note {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .66rem;
  font-weight: 400;
  opacity: .85;
  padding-left: .6em;
  border-left: 1px solid rgba(255,255,255,.45);
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 244, 236, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand-mark { border-radius: 9px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: .01em;
}

.topnav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: .92rem;
  font-weight: 500;
}
.topnav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.topnav a:hover { color: var(--ink); border-bottom-color: var(--orange); }

/* ---------- 通用布局 ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 8vw, 104px) 0; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  /* 极淡的方块网格，呼应等距方块 */
  background-image:
    linear-gradient(to right, rgba(194,94,14,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(194,94,14,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(251,244,236,0), var(--cream));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(36px, 4.5vw, 64px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: .5em; }

.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  color: var(--ink-2);
  max-width: 30em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 1.9em 0 1.5em;
}

.hero-fine {
  font-size: .84rem;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 32em;
  padding-top: 1.1em;
  border-top: 1px dashed var(--line-strong);
}

/* ---------- 启动器窗口还原 ---------- */

.hero-stage { min-width: 0; }

.app-window {
  font-size: clamp(10px, 1.12vw, 14.5px);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 10px 10px 0 rgba(194, 94, 14, .16), 10px 10px 0 2px rgba(36,22,16,.06);
  overflow: hidden;
  user-select: none;
}

.app-titlebar {
  display: flex;
  align-items: center;
  gap: .8em;
  height: 2.9em;
  padding: 0 1em;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}
.app-hamburger { display: flex; }
.app-title {
  font-size: 1em;
  font-weight: 700;
  color: var(--ink-2);
}
.app-winbtns { margin-left: auto; display: flex; gap: .9em; }
.app-winbtns i {
  width: .85em; height: .85em;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  opacity: .45;
}

.app-body {
  display: grid;
  grid-template-columns: 9.6em minmax(0, 1fr);
  min-height: 24em;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: .18em;
  padding: .8em .6em;
  background: var(--cream);
  border-right: 1px solid var(--line);
}
.app-navitem {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .5em .6em;
  border-radius: 5px;
  font-size: .92em;
  color: var(--ink-2);
  line-height: 1.2;
}
.app-navitem svg {
  width: 1.15em; height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.app-navitem.is-active {
  background: #fff;
  color: var(--orange-deep);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--orange), 0 1px 2px rgba(36,22,16,.06);
}

.app-content {
  padding: 1.05em 1.1em 1em;
  background: #F7F2EB;
  min-width: 0;
}

.app-greet { margin-bottom: .95em; }
.app-greet-title {
  font-size: 1.42em;
  font-weight: 400;
  margin: 0 0 .1em;
  color: var(--ink);
}
.app-quote {
  font-size: .82em;
  color: var(--ink-3);
  margin: 0;
}

.app-cards {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: .62em;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .7em .78em;
  min-width: 0;
}
.app-card-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .74em;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin-bottom: .5em;
}
.app-pill {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-size: .9em;
  font-weight: 700;
  letter-spacing: 0;
  padding: .1em .5em;
  border-radius: 999px;
  background: #EAF6EC;
  color: #2C7A3E;
  border: 1px solid #C9E6CE;
}
.app-pill i {
  width: .5em; height: .5em;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.app-server-main {
  display: flex;
  align-items: baseline;
  gap: .4em;
  flex-wrap: wrap;
}
.app-server-main strong {
  font-family: var(--font-display);
  font-size: 1.85em;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.app-server-unit { font-size: .76em; color: var(--ink-3); }
.app-server-ping {
  margin-left: auto;
  font-size: .72em;
  font-weight: 700;
  color: var(--teal);
  background: #E7F3F2;
  border: 1px solid #C7E3E1;
  border-radius: 4px;
  padding: .1em .4em;
  white-space: nowrap;
}
.app-motd {
  font-size: .78em;
  color: var(--ink-2);
  margin: .45em 0 .3em;
  line-height: 1.5;
}
.app-addr {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .66em;
  color: var(--ink-3);
  margin: 0;
}

.app-ver-row { display: flex; align-items: center; gap: .55em; }
.app-ver-row img { flex: none; }
.app-ver-name { font-size: 1.05em; font-weight: 700; line-height: 1.2; }
.app-ver-tags { display: flex; gap: .3em; margin-top: .25em; flex-wrap: wrap; }
.app-tag {
  font-size: .66em;
  font-weight: 700;
  padding: .12em .45em;
  border-radius: 3px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.app-tag-orange {
  background: #FDEDDC;
  border-color: #F3D9BC;
  color: var(--orange-deep);
}

.app-java-ver { font-size: .98em; font-weight: 700; }
.app-java-path { font-size: .72em; color: var(--ink-3); }

.app-log {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .64em;
  line-height: 1.9;
  color: var(--ink-2);
  max-height: 5.9em;
  overflow: hidden;
}
.app-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-log li::before {
  content: "› ";
  color: var(--orange);
}

.app-dock {
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .7em .9em;
  background: #fff;
  border-top: 1px solid var(--line);
}
.app-avatar {
  border-radius: 6px;
  border: 1px solid var(--line);
  image-rendering: pixelated;
  flex: none;
}
.app-who { min-width: 0; line-height: 1.3; }
.app-who-name { font-size: .92em; font-weight: 700; }
.app-who-type { font-size: .7em; color: var(--ink-3); }
.app-status {
  margin-left: auto;
  font-size: .74em;
  color: var(--ink-3);
  text-align: right;
  max-width: 15em;
  line-height: 1.45;
}
.app-status.is-busy { color: var(--teal); }
.app-status.is-done { color: var(--green); }

.app-launch {
  font-family: var(--font-body);
  font-size: .92em;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: 2px solid #2E6B21;
  border-radius: 6px;
  padding: .55em 1.35em;
  cursor: pointer;
  box-shadow: 2px 2px 0 #2E6B21;
  transition: background .12s, transform .12s, box-shadow .12s;
  flex: none;
}
.app-launch:hover { background: var(--green-hover); }
.app-launch:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 #2E6B21; }
.app-launch[disabled] { cursor: default; opacity: .72; }

.hero-caption {
  margin: .9em 0 0;
  font-size: .78rem;
  color: var(--ink-3);
  text-align: center;
  max-width: none;
}

/* ============================================================
   ROUTE
   ============================================================ */

.section-route { border-top: 1px solid var(--line); }

.route-head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 52px); }
.route-head h2 { margin-bottom: .45em; }
.route-lead { color: var(--ink-2); font-size: 1.03rem; max-width: 40em; }

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.route-step {
  position: relative;
  padding: 28px 26px 0 0;
  border-right: 1px dashed var(--line-strong);
}
.route-step:last-child { border-right: 0; padding-right: 0; }
.route-step + .route-step { padding-left: 26px; }

.route-num {
  display: block;
  font-size: .78rem;
  color: var(--orange-deep);
  margin-bottom: 18px;
}
.route-block {
  margin-bottom: 16px;
  image-rendering: auto;
  filter: drop-shadow(3px 5px 0 rgba(194,94,14,.14));
}
.route-block-face {
  image-rendering: pixelated;
  border-radius: 8px;
  border: 2px solid var(--ink);
  filter: none;
  box-shadow: 3px 3px 0 var(--line-strong);
}
.route-step h3 { margin-bottom: .5em; }
.route-step p {
  font-size: .92rem;
  line-height: 1.72;
  color: var(--ink-2);
  margin: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */

.section-features { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: clamp(30px, 4vw, 48px); }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-2); }

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

.feature {
  grid-column: span 2;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 26px 24px;
  position: relative;
}
.feature h3 { margin-bottom: .55em; }
.feature p {
  font-size: .92rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: none;
}

.feature-wide { grid-column: span 4; }
.feature-block { display: flex; flex-direction: column; }
.feature-art { margin-bottom: 14px; filter: drop-shadow(4px 6px 0 rgba(194,94,14,.13)); }

.feature-cream {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--orange-faint);
  border-color: #F3D9BC;
}
.feature-faces {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
}
.feature-faces img {
  border-radius: 7px;
  border: 2px solid var(--paper);
  outline: 1px solid var(--line-strong);
  image-rendering: pixelated;
  box-shadow: 2px 2px 0 rgba(194,94,14,.18);
}
.feature-faces img:nth-child(2) { transform: translateY(7px); }
.feature-faces img:nth-child(3) { transform: translateY(-7px); }

.feature-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: #F4E7DA;
}
.feature-dark h3 { color: #FFF4E8; }
.feature-dark p { color: #C4AC99; }
.feature-dark code { background: var(--dark-2); border-color: var(--dark-line); color: var(--orange-bright); }
.feature-dark-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.feature-dark-label { font-size: .62rem; color: #A08A78; }
.dot-online {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #57C46E;
  box-shadow: 0 0 0 3px rgba(87,196,110,.16);
}
.dark-stat {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.dark-stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: #FFF4E8;
}
.dark-stat-num small { font-size: .5em; margin-left: 2px; color: #C4AC99; }
.dark-stat-label { font-size: .74rem; color: #A08A78; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
}
.chips li {
  font-size: .74rem;
  font-weight: 500;
  padding: .25em .6em;
  border-radius: 4px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.chips-tight { margin-top: 12px; }

.iso-diagram {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.iso-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .8rem;
}
.iso-key {
  flex: none;
  width: 4.6em;
  font-weight: 700;
  color: var(--orange-deep);
}
.iso-val { color: var(--ink-2); }

.feature-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.split-item { display: flex; flex-direction: column; gap: 2px; }
.split-label { font-size: .72rem; color: var(--ink-3); }
.split-val { font-size: .86rem; font-weight: 700; color: var(--ink); }

/* ============================================================
   VERSION ICONS
   ============================================================ */

.section-icons { background: var(--paper); }

.icons-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.icons-copy h2 { margin-bottom: .5em; }
.icons-copy p { color: var(--ink-2); font-size: .98rem; }
.icons-hint {
  font-size: .84rem !important;
  color: var(--ink-3) !important;
  margin-top: 1.1em;
  padding-left: .9em;
  border-left: 3px solid var(--orange);
}

.icons-demo {
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
}

.vcard {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: 5px 5px 0 rgba(194,94,14,.15);
  transition: box-shadow .18s ease;
}
.vcard.is-broken { border-color: var(--red); box-shadow: 5px 5px 0 rgba(196,59,43,.16); }
.vcard-icon { flex: none; transition: transform .2s ease; }
.vcard:hover .vcard-icon { transform: translateY(-2px); }
.vcard-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}
.vcard-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.vtag {
  font-size: .7rem;
  font-weight: 700;
  padding: .15em .5em;
  border-radius: 3px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.vtag.is-broken { background: #FBEAE7; border-color: #F0C8C2; color: var(--red); }
.vcard-sub { font-size: .78rem; color: var(--ink-3); }

.vswitch {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 20px;
}
.vswitch button {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  padding: .55em .3em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .13s, color .13s, border-color .13s, transform .1s;
}
.vswitch button:hover { border-color: var(--orange); color: var(--orange-deep); }
.vswitch button:active { transform: translateY(1px); }
.vswitch button.is-on {
  background: var(--orange);
  border-color: var(--orange-deep);
  color: #fff;
  box-shadow: 2px 2px 0 var(--orange-deep);
}

.vcard-rule {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: .84rem;
  line-height: 1.7;
  color: var(--ink-2);
  min-height: 3.4em;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */

.section-download {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(194,94,14,.14);
}

.download-main { padding: clamp(28px, 4vw, 48px); }

.download-ver {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.download-ver-label {
  font-size: .62rem;
  color: #fff;
  background: var(--orange);
  border: 1px solid var(--orange-deep);
  border-radius: 3px;
  padding: .2em .45em;
  line-height: 1.3;
}
.download-ver-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--orange-deep);
}
.download-ver-date { font-size: .8rem; color: var(--ink-3); }

.download-main h2 { margin-bottom: .4em; }
.download-lead { color: var(--ink-2); font-size: .97rem; max-width: 34em; }

.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.download-file {
  margin: 18px 0 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .72rem;
  color: var(--ink-3);
  word-break: break-all;
}

.download-side {
  background: var(--cream);
  border-left: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
}
.download-side h3 { margin-bottom: 16px; font-size: 1.05rem; }

.req-list { margin: 0 0 22px; }
.req-list > div {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
}
.req-list > div:last-child { border-bottom: 0; }
.req-list dt { color: var(--ink-3); }
.req-list dd { margin: 0; color: var(--ink); line-height: 1.55; }

.install-steps {
  margin: 0;
  padding-left: 1.15em;
  font-size: .84rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.install-steps li { margin-bottom: .5em; }
.install-steps li::marker { color: var(--orange); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */

.section-faq { background: var(--paper); }

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.faq-head h2 { margin-bottom: .4em; }
.faq-head p { color: var(--ink-2); font-size: .94rem; }

.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  font-weight: 700;
  font-size: .97rem;
  line-height: 1.6;
  transition: color .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--orange);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--orange-deep); }
.faq-body { padding: 0 0 20px 0; }
.faq-body p { font-size: .92rem; line-height: 1.75; color: var(--ink-2); }

/* ============================================================
   OPEN SOURCE
   ============================================================ */

.section-open { background: var(--cream); }

.open-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.open-main h2 { margin-bottom: .4em; }
.open-main p { color: var(--ink-2); font-size: .98rem; }
.open-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.build-block { margin-top: 30px; }
.build-label {
  display: block;
  font-size: .62rem;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.build-block pre {
  margin: 0;
  background: var(--dark);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  overflow-x: auto;
}
.build-block code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .78rem;
  line-height: 1.7;
  background: none;
  border: 0;
  padding: 0;
  color: #F2C89A;
  white-space: pre;
}

.open-side {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 26px 24px;
}
.open-side h3 { font-size: 1rem; margin-bottom: 14px; }
.open-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.open-list li {
  font-size: .86rem;
  line-height: 1.65;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
}
.open-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px; height: 6px;
  background: var(--orange);
}
.open-list strong { color: var(--ink); font-weight: 700; }
.open-tech {
  font-size: .8rem;
  line-height: 1.7;
  color: var(--ink-3);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark);
  color: #C4AC99;
  padding: 40px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #FFF4E8;
}
.footer-brand img { border-radius: 7px; }
.footer-note {
  font-size: .78rem;
  line-height: 1.7;
  margin: 0;
  max-width: 56em;
}
.footer-links {
  display: flex;
  gap: 18px;
  font-size: .82rem;
}
.footer-links a {
  text-decoration: none;
  color: #E8D5C4;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.footer-links a:hover { color: #fff; border-bottom-color: var(--orange); }

/* ============================================================
   载入编排：一次，只做一次
   ============================================================ */

.hero-copy > *,
.hero-stage {
  opacity: 0;
  transform: translateY(10px);
  animation: settle .62s cubic-bezier(.2,.7,.3,1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3) { animation-delay: .21s; }
.hero-copy > *:nth-child(4) { animation-delay: .29s; }
.hero-stage { animation-delay: .18s; }

@keyframes settle {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature,
  .feature-dark { grid-column: span 1; }
  .feature-wide,
  .feature-cream { grid-column: span 2; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 34em; }
  .hero-stage { margin-top: 8px; }
  .app-window { font-size: clamp(10px, 1.55vw, 13px); }

  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .route-step {
    border-top: 2px solid var(--ink);
    border-right: 0;
    padding: 24px 20px 0 0;
  }
  .route-step:nth-child(2n) { padding-left: 22px; border-left: 1px dashed var(--line-strong); }
  .route-step:nth-child(3),
  .route-step:nth-child(4) { margin-top: 22px; }

  .icons-wrap { grid-template-columns: minmax(0, 1fr); }
  .download-panel { grid-template-columns: minmax(0, 1fr); }
  .download-side { border-left: 0; border-top: 1px solid var(--line); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .open-wrap { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 720px) {
  .topbar-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 16px;
  }
  .brand { padding: 10px 0; }
  .brand-name { font-size: 1.15rem; }
  .topbar-inner > .btn {
    margin-left: auto;
    align-self: center;
  }
  .topnav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    font-size: .86rem;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; padding: 6px 0; }

  .features { grid-template-columns: minmax(0, 1fr); }
  .feature,
  .feature-wide,
  .feature-cream,
  .feature-dark { grid-column: span 1; }

  .feature-cream { grid-template-columns: minmax(0, 1fr); }
  .feature-faces { grid-template-columns: repeat(4, auto); }
  .feature-faces img:nth-child(n) { transform: none; }

  .feature-split { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-nav {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: .45em .5em;
    gap: .1em;
  }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-navitem { padding: .45em .6em; white-space: nowrap; }
  .app-navitem span { display: none; }
  .app-navitem.is-active span { display: inline; }
  .app-navitem.is-active { box-shadow: inset 0 -2px 0 var(--orange); }

  .app-cards { grid-template-columns: minmax(0, 1fr); }
  .app-card-log { display: none; }

  .app-dock { flex-wrap: wrap; gap: .6em; }
  .app-status { order: 3; margin-left: 0; max-width: none; text-align: left; flex-basis: 100%; }

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

  .route { grid-template-columns: minmax(0, 1fr); }
  .route-step,
  .route-step:nth-child(2n) {
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  .route-step:first-child { border-top: 2px solid var(--ink); }
  .route-step:nth-child(3), .route-step:nth-child(4) { margin-top: 0; }
  .route-block { width: 44px; height: 44px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .download-actions .btn { width: 100%; justify-content: center; }
  .btn-note { display: none; }

  .req-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 0;
  }
  .req-list dt { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-copy > *, .hero-stage { opacity: 1; transform: none; }
}
