:root {
  --bg: #081018;
  --surface: rgba(18, 30, 41, .72);
  --surface-strong: rgba(14, 24, 34, .92);
  --text: #f5eddf;
  --soft: rgba(245, 237, 223, .66);
  --faint: rgba(245, 237, 223, .42);
  --gold: #d9b766;
  --cyan: #4fc6ef;
  --line: rgba(232, 211, 164, .18);
  --display: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", Georgia, serif;
  --body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 6%, rgba(79,198,239,.1), transparent 28%),
    radial-gradient(circle at 88% 5%, rgba(217,183,102,.12), transparent 30%),
    linear-gradient(180deg, #081018, #101b25 55%, #081018);
  font-family: var(--body);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 82px 82px;
  opacity: .12;
  mask-image: linear-gradient(#000, transparent 75%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.manual-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.manual-header {
  position: sticky;
  z-index: 15;
  top: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  min-height: 70px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025)), var(--surface);
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 24px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.manual-brand { display: flex; align-items: center; gap: 12px; }
.manual-brand img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.manual-brand span { display: grid; line-height: 1.1; }
.manual-brand strong { font-family: var(--display); font-size: 20px; }
.manual-brand small { margin-top: 5px; color: var(--faint); font-size: 10px; letter-spacing: .12em; }
.back-link {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  color: var(--soft);
  font-size: 12px;
  transition: .24s var(--ease);
}
.back-link:hover { color: var(--text); border-color: rgba(232,211,164,.35); transform: translateY(-2px); }
.manual-shell { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 90px 0 120px; }
.manual-intro { max-width: 820px; }
.manual-intro > p:first-child { margin: 0; color: var(--gold); font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.manual-intro h1 {
  margin: 16px 0 18px;
  font-family: var(--display);
  font-size: clamp(45px, 7vw, 82px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.manual-intro > p:nth-of-type(2) { max-width: 680px; margin: 0; color: var(--soft); font-size: 18px; }
.manual-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.manual-actions a {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--soft);
  transition: .24s var(--ease);
}
.manual-actions a:first-child { color: #121820; background: linear-gradient(135deg, #f0d896, var(--gold)); border: 0; font-weight: 700; }
.manual-actions a:hover { transform: translateY(-3px); }
.version-tabs {
  position: sticky;
  z-index: 10;
  top: 96px;
  margin: 64px 0 28px;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
}
.version-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.version-tabs button.active { color: #111820; background: linear-gradient(135deg, #f0d896, var(--gold)); font-weight: 700; }
.page-stack { display: grid; gap: 24px; }
.manual-page {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025)), var(--surface);
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 28px 75px rgba(0,0,0,.28);
  overflow: hidden;
}
.manual-page img { width: 100%; border-radius: 15px; background: #f6f4ef; }
.manual-page figcaption { padding: 12px 4px 2px; color: var(--faint); font-size: 11px; letter-spacing: .08em; }
.version-note { margin-top: 8px; }
.note-grid {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025)), var(--surface);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: center;
}
.note-grid span { color: var(--gold); font-size: 10px; letter-spacing: .17em; }
.note-grid h2 { margin: 12px 0 14px; font-family: var(--display); font-size: clamp(32px, 4.5vw, 54px); line-height: 1.08; font-weight: 500; letter-spacing: -.035em; }
.note-grid p { margin: 0; color: var(--soft); }
.note-grid img { min-height: 310px; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; }
.note-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.note-cards article { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.note-cards strong { font-family: var(--display); font-size: 23px; font-weight: 500; }
.note-cards p { margin: 9px 0 0; color: var(--soft); font-size: 13px; }
.note-disclaimer { margin: 18px 4px 0; color: var(--faint); font-size: 12px; }
@media (max-width: 720px) {
  .manual-header { width: calc(100% - 20px); }
  .manual-brand small { display: none; }
  .manual-shell { width: calc(100% - 22px); padding-top: 70px; }
  .manual-intro > p:nth-of-type(2) { font-size: 16px; }
  .version-tabs { top: 86px; width: 100%; }
  .version-tabs button { min-width: 0; padding-inline: 10px; }
  .manual-page { padding: 8px; border-radius: 20px; }
  .note-grid { grid-template-columns: 1fr; }
  .note-cards { grid-template-columns: 1fr; }
}


.manual-mac-guide {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025)), var(--surface);
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 28px 75px rgba(0,0,0,.24);
}
.manual-mac-guide[hidden] { display: none; }
.manual-section-label { margin: 0; color: var(--gold); font-size: 10px; letter-spacing: .18em; font-weight: 700; }
.manual-mac-guide h2 { margin: 12px 0 14px; font-family: var(--display); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 500; }
.manual-mac-guide > p:nth-of-type(2) { max-width: 760px; color: var(--soft); }
.manual-command { margin: 22px 0; padding: 18px; border: 1px solid rgba(79,198,239,.32); border-radius: 16px; background: rgba(2,8,13,.65); overflow-x: auto; }
.manual-command code { color: #dff7ff; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.manual-mac-guide ol { padding-left: 24px; color: var(--soft); }
.manual-mac-guide li { margin: 8px 0; }
.manual-warning { margin-top: 20px; padding: 17px; border-radius: 16px; border: 1px solid rgba(217,183,102,.28); background: rgba(217,183,102,.07); color: var(--soft); font-size: 13px; }
.manual-warning strong { color: var(--gold); }
.manual-warning code { color: var(--gold); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
