/* Ink-and-cloud theme. System CJK fonts only (no web fonts). */
:root {
  --ink: #1b2226;
  --ink-2: #2b343a;
  --paper: #f3eee3;
  --paper-2: #e9e1d0;
  --card: #fbf8f1;
  --line: #d8ccb4;
  --text: #2a2723;
  --muted: #6d655a;
  --gold: #c9a55c;
  --gold-2: #e6cc8f;
  --jade: #2f6b5e;
  --jade-2: #3f8a79;
  --cinnabar: #a8382c;
  --cinnabar-2: #c24a3c;
  --radius: 10px;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.75 var(--sans);
  color: var(--text);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(47, 107, 94, .08), transparent 70%),
    radial-gradient(ellipse 50% 35% at 95% 30%, rgba(27, 34, 38, .07), transparent 70%),
    radial-gradient(ellipse 70% 30% at 50% 100%, rgba(201, 165, 92, .10), transparent 70%);
  background-attachment: fixed;
}
img, svg, video { max-width: 100%; }
a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cinnabar); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.35; color: var(--ink); }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--paper-2); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
pre { background: var(--ink); color: #f1ead9; padding: 12px 14px; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; color: inherit; }
kbd {
  display: inline-block; min-width: 1.8em; padding: 0 .45em; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 5px; color: var(--ink); line-height: 1.6;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; z-index: 10; background: var(--card); padding: 6px 10px; }
.muted { color: var(--muted); font-size: .92em; }
.center { text-align: center; }

/* Top bar */
.topbar { background: var(--ink); color: #efe6d2; position: sticky; top: 0; z-index: 5; border-bottom: 2px solid var(--gold); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--gold-2); }
.brand-mark { width: 34px; height: 34px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .06em; }
.brand-text small { font-size: .72rem; color: #b8ad95; }
.nav { display: flex; gap: 2px; }
.nav a { color: #e9e0cb; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .96rem; }
.nav a:hover { background: var(--ink-2); color: var(--gold-2); }
.nav a[aria-current="page"] { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-toggle { display: none; background: none; color: inherit; border: 1px solid #5b5446; border-radius: 6px; padding: 6px 12px; font: inherit; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #f4ecda; background: var(--ink); padding: 72px 0 120px; }
.hero-art {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 34, 38, .55), rgba(27, 34, 38, .80) 70%, rgba(27, 34, 38, .95)),
    radial-gradient(ellipse 60% 70% at 70% 30%, rgba(201, 165, 92, .25), transparent 70%),
    url("../img/hero.webp") center 35% / cover no-repeat;
}
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }
.hero-hills .h1 { fill: rgba(47, 107, 94, .45); }
.hero-hills .h2 { fill: var(--paper); }
.hero-in { position: relative; text-align: center; }
.eyebrow { display: inline-block; margin: 0 0 8px; padding: 2px 14px; border: 1px solid rgba(230, 204, 143, .5); border-radius: 999px; color: var(--gold-2); font-size: .85rem; letter-spacing: .1em; }
.hero h1 { color: #fff7e4; font-size: clamp(2.2rem, 7vw, 4rem); margin: 6px 0 10px; letter-spacing: .12em; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.lede { font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 720px; margin: 0 auto 28px; color: #e9dfc9; }
.hero-note { font-size: .9rem; color: #cfc4ab; margin-top: 18px; }
.hero-note a { color: var(--gold-2); }

/* Download buttons */
.dl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 260px; padding: 14px 22px;
  border-radius: 12px; text-decoration: none; text-align: left; color: #fff8ea;
  background: linear-gradient(180deg, var(--cinnabar-2), var(--cinnabar));
  border: 1px solid rgba(255, 220, 170, .35); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dl-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.dl-btn b { display: block; font-size: 1.12rem; }
.dl-btn small { display: block; font-size: .82rem; opacity: .85; }
.dl-ico { width: 30px; height: 30px; flex: none; }
.dl-btn.dl-win { background: linear-gradient(180deg, var(--jade-2), var(--jade)); }
.dl-btn.is-pending { filter: saturate(.55); }
.dl-btn.is-recommended { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.dl-row-page .dl-btn { min-width: 280px; }
.status { padding: 12px 16px; border-radius: 8px; margin: 18px 0 8px; }
.status.pending { background: #f5e7c6; border: 1px solid #e0c78c; }
.status.ok { background: #dcefe7; border: 1px solid #a7d2c2; }

/* Sections */
.section { padding: 28px 16px; }
.sec-title { text-align: center; font-size: 1.6rem; margin: 8px 0 22px; }
.sec-title span { display: inline-block; padding: 0 56px; position: relative; }
.sec-title span::before, .sec-title span::after {
  content: ""; position: absolute; top: 50%; width: 44px; height: 10px; margin-top: -5px;
  background: radial-gradient(circle at 30% 50%, transparent 3px, var(--gold) 3.5px, var(--gold) 4.5px, transparent 5px),
              linear-gradient(var(--gold), var(--gold)) right center / 30px 1.5px no-repeat;
}
.sec-title span::before { left: 0; }
.sec-title span::after { right: 0; transform: scaleX(-1); }
.page-head { background: linear-gradient(180deg, var(--ink), var(--ink-2)); color: #ece2cc; padding: 36px 0 30px; border-bottom: 1px solid var(--gold); }
.page-head h1 { color: #fff4dc; margin: 0 0 6px; font-size: 2rem; letter-spacing: .1em; }
.page-head p { margin: 0 0 6px; max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 10px rgba(60, 45, 20, .06); }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card > :last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.media-row { grid-template-columns: 3fr 2fr; align-items: start; }
.video { margin: 0; padding: 10px; }
.video video { display: block; width: 100%; height: auto; border-radius: 6px; background: #000; }
.video figcaption { font-size: .88rem; color: var(--muted); padding: 8px 4px 0; }
.news-date { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.news-list { padding-left: 1.1em; margin: 0 0 10px; }
.news-list li { margin: 4px 0; }
.more { font-weight: 600; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features .card { border-top: 3px solid var(--jade); }
.features p { margin: 0; color: #4a443b; }
.btn-ghost { display: inline-block; margin: 14px 6px 0; padding: 8px 20px; border: 1px solid var(--jade); border-radius: 999px; text-decoration: none; }
.page-head .btn-ghost { color: var(--gold-2); border-color: var(--gold); }
.notice { border-left: 4px solid var(--gold); }
.notice h2 { margin-top: 0; font-size: 1.25rem; }
.qq { font-family: var(--mono); color: var(--cinnabar); letter-spacing: .04em; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--paper-2); font-family: var(--serif); }
.spec tbody th, .keys th { width: 28%; white-space: nowrap; color: var(--ink); }
.keys th { width: 34%; }
.keygrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.keygrid li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; }
.plain-steps li { margin: 6px 0; }

/* Steps + illustrations */
.os-tabs { display: flex; gap: 8px; margin: 18px 0 14px; }
.os-tabs button { font: inherit; padding: 8px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.os-tabs button[aria-selected="true"] { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.os-panel[hidden] { display: none; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.steps h3 { margin-top: 10px; }
.steps p { margin: 4px 0 0; }
.illus { display: block; width: 100%; height: auto; background: linear-gradient(180deg, #e9e3d6, #ddd5c4); border-radius: 8px; font-family: var(--sans); }
.illus .win { fill: #fdfcf9; stroke: #b9b2a3; }
.illus .bar, .illus .side { fill: #ece8df; }
.illus .dot { fill: #c9c2b4; }
.illus .app { fill: var(--ink); }
.illus .appmark { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.illus .folder { fill: #7fa9c9; }
.illus .arrow { stroke: var(--cinnabar); stroke-width: 3; stroke-dasharray: 6 5; fill: none; }
.illus .arrowhead { stroke: var(--cinnabar); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illus .lbl { font-size: 12px; fill: #4a463e; }
.illus .txt, .illus .smtxt { fill: #d6d0c4; }
.illus .warn { fill: #e2b13c; }
.illus .warnmark { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.illus .btn { fill: #ebe7de; stroke: #c9c2b4; }
.illus .btn.hi { fill: #3b78c4; stroke: #2f62a3; }
.illus .btnlbl { font-size: 11px; fill: #2a2723; }
.illus .btn.hi + .btnlbl { fill: #fff; }
.illus .ring { fill: none; stroke: var(--cinnabar); stroke-width: 3; }
.illus .sel { fill: #3b78c4; }
.illus .sidelbl { font-size: 9.5px; fill: #fff; }
.illus .h { font-size: 13px; font-weight: 600; fill: #2a2723; }
.illus .small { font-size: 10px; fill: #4a463e; }
.illus .warnt { fill: #9a5a12; }
.illus .lock { fill: #8a8273; }
.illus .shackle { fill: none; stroke: #8a8273; stroke-width: 3; }
.illus .field { fill: #fff; stroke: #b9b2a3; }
.illus .dots { font-size: 9px; fill: #4a463e; }
.illus .panel { fill: #fff; stroke: #c9c2b4; }
.illus .file { fill: #d6d0c4; }
.illus .smart { fill: #23578f; }
.illus .smh { font-size: 16px; fill: #fff; font-weight: 600; }
.illus .smart ~ .smtxt { fill: rgba(255, 255, 255, .35); }
.illus .smlink { font-size: 12px; fill: #fff; text-decoration: underline; }
.illus .smsmall { font-size: 11px; fill: #e6eef8; }
.illus .smbtn { fill: none; stroke: #fff; stroke-width: 1.5; }
.illus .smbtnlbl { font-size: 11px; fill: #fff; }
.adv { margin-top: 16px; }
.adv summary, .faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details[open] summary { margin-bottom: 6px; color: var(--jade); }
.faq p { margin: 6px 0; }

/* Changelog */
.changelog { display: grid; gap: 18px; }
.release header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.release time { font-family: var(--mono); color: var(--cinnabar); }
.release h2 { margin: 0; font-size: 1.35rem; }
.release h2 a { color: inherit; text-decoration: none; }
.release h3 { margin: 16px 0 4px; font-size: 1.05rem; color: var(--jade); }
.release ul { padding-left: 1.2em; margin: 4px 0; }
.release li { margin: 4px 0; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shot { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #222; }
.shot span { display: block; padding: 8px 12px; font-size: .92rem; }
.shot:hover { border-color: var(--gold); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1000px); }
.lightbox::backdrop { background: rgba(10, 12, 14, .85); }
.lightbox img { display: block; width: 100%; height: auto; border-radius: 6px; }
.lb-cap { color: #eee; text-align: center; margin: 8px 0 0; }
.lb-close { position: absolute; right: 6px; top: 2px; font-size: 28px; line-height: 1; background: rgba(0, 0, 0, .5); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; }

/* About */
.prose { display: grid; gap: 16px; max-width: 860px; }
.prose h2 { margin-top: 0; font-size: 1.3rem; }

/* Footer */
.footer { margin-top: 40px; color: #cfc5ae; background: var(--ink); position: relative; }
.cloud-band { display: block; width: 100%; height: 30px; color: var(--ink); margin-top: -29px; }
.footer-in { padding: 18px 16px 26px; font-size: .88rem; }
.footer-in p { margin: 4px 0; }
.footer b { color: var(--gold-2); }
.footer a { color: var(--gold-2); }
.footer-links span { margin: 0 8px; color: #6f6857; }

/* Phone */
@media (max-width: 860px) {
  .grid-2, .media-row { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .keygrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .br-wide { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--ink); border-bottom: 2px solid var(--gold); padding: 6px 16px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 6px; border-bottom: 1px solid var(--ink-2); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .topbar-in { position: relative; }
  .hero { padding: 48px 0 96px; }
  .dl-btn { min-width: 0; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .spec tbody th, .keys th { white-space: normal; width: 36%; }
  th, td { padding: 8px 10px; }
  .sec-title span { padding: 0 44px; }
  .sec-title span::before, .sec-title span::after { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dl-btn { transition: none; }
}
