:root {
  --ink: #16303a;
  --ink-soft: #4d6269;
  --paper: #fbfaf6;
  --paper-deep: #f1eee5;
  --line: #d8ded8;
  --line-strong: #b9c9c3;
  --teal: #0b8f83;
  --teal-deep: #06655f;
  --blue: #1a5d91;
  --blue-soft: #dcebf4;
  --mint: #e5f2ed;
  --warning: #9a6713;
  --warning-bg: #fff3d7;
  --shadow: 0 18px 42px rgba(27, 54, 57, 0.1);
  --shadow-light: 0 8px 22px rgba(27, 54, 57, 0.07);
  --radius: 10px;
  --max: 1180px;
  font-family: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
body::selection { background: var(--teal); color: #fff; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2bd48; outline-offset: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 20;
  padding: 10px 14px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid rgba(216, 222, 216, .9);
  background: rgba(251, 250, 246, .95);
  backdrop-filter: blur(12px);
}
.nav-wrap, .container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: grid; gap: 1px; line-height: 1.05; }
.brand-text strong { font-family: "STKaiti", "KaiTi", serif; font-size: 19px; font-weight: 700; }
.brand-text span { color: var(--ink-soft); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-deep); }
.nav-links a[aria-current="page"] { font-weight: 700; }
.nav-toggle { display: none; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); padding: 9px; cursor: pointer; }
.nav-toggle svg { display: block; }

.hero { padding: 70px 0 86px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); align-items: center; gap: 70px; }
.hero h1, .page-heading h1 { margin: 0; max-width: 680px; font-family: "STSong", "SimSun", serif; font-weight: 700; letter-spacing: 0; line-height: 1.1; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); }
.hero h1 em { color: var(--teal-deep); font-style: normal; }
.hero-lede { margin: 25px 0 0; max-width: 570px; color: var(--ink-soft); font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 17px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-light); }
.button-primary:hover { background: var(--teal-deep); }
.button-secondary { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--teal); color: var(--teal-deep); }
.button-muted { border-color: var(--line); background: #eef0ec; color: #74817f; cursor: not-allowed; }
.button-muted:hover { transform: none; }
.button svg { width: 16px; height: 16px; flex: 0 0 auto; }
.support-line { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; color: var(--ink-soft); font-size: 13px; }
.support-line span { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.status-dot.pending { background: #d59b33; }

.workbench { position: relative; min-height: 440px; }
.paper-sheet { position: absolute; inset: 18px 30px 0 0; padding: 30px 34px; background: #fffefb; border: 1px solid #d9ddd7; box-shadow: var(--shadow); transform: rotate(-2.4deg); }
.paper-sheet::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; border-left: 1px dashed #c7d3ce; }
.paper-meta { display: flex; justify-content: space-between; color: #73817c; font-size: 10px; letter-spacing: .06em; }
.paper-title { margin: 24px 0 16px; font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.paper-rule { height: 1px; background: #bfc9c3; }
.paper-question { margin-top: 18px; font-family: Georgia, "SimSun", serif; font-size: 13px; line-height: 1.75; }
.answer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 18px; font: 12px/1.3 "Aptos", sans-serif; color: var(--ink-soft); }
.answer-row span { padding: 8px 7px; border: 1px solid #d8dfda; text-align: center; }
.answer-row span.active { border-color: var(--teal); background: var(--mint); color: var(--teal-deep); font-weight: 700; }
.workbench-ui { position: absolute; right: 0; bottom: 18px; width: 64%; padding: 20px; background: #f0f5f2; border: 1px solid #c3d1cb; box-shadow: 0 16px 32px rgba(27, 54, 57, .15); }
.ui-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #cbd9d2; }
.ui-top strong { font-size: 13px; }
.ui-top small { color: var(--teal-deep); font-size: 11px; }
.ui-layout { display: grid; grid-template-columns: 94px 1fr; gap: 16px; padding-top: 17px; }
.ui-filter { display: grid; align-content: start; gap: 7px; }
.ui-filter span { padding: 7px 8px; border-bottom: 1px solid #d0ddd7; color: #6c7c77; font-size: 10px; }
.ui-filter span.active { background: var(--teal); color: #fff; }
.ui-content { min-width: 0; }
.ui-search { height: 28px; padding: 0 9px; border: 1px solid #c5d2cb; background: #fff; color: #7b8a84; font-size: 10px; line-height: 28px; }
.ui-items { display: grid; gap: 9px; margin-top: 12px; }
.ui-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; background: #fff; border: 1px solid #d9e1dc; font-size: 10px; }
.ui-item span { color: #647570; }
.ui-item b { color: var(--teal-deep); font-weight: 700; }
.note-sticker { position: absolute; right: 4px; top: 0; width: 130px; padding: 12px; background: #fff1bc; color: #6b521e; font-size: 11px; line-height: 1.5; box-shadow: 4px 9px 18px rgba(93, 74, 28, .12); transform: rotate(5deg); }
.note-sticker strong { display: block; margin-bottom: 7px; font-size: 12px; }

.section { padding: 86px 0; }
.section-tint { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2, .page-heading h1 { font-size: clamp(30px, 4vw, 47px); }
.section-heading h2 { max-width: 610px; margin: 0; font-family: "STSong", "SimSun", serif; line-height: 1.18; }
.section-heading p { max-width: 410px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line-strong); background: var(--line-strong); }
.feature { min-height: 220px; padding: 24px 20px; background: var(--paper); }
.feature-mark { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 28px; border: 1px solid var(--teal); color: var(--teal-deep); font-family: Georgia, serif; font-weight: 700; }
.feature h3 { margin: 0 0 9px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.offline-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.offline-band h2 { margin: 0; max-width: 650px; font-family: "STSong", "SimSun", serif; font-size: clamp(31px, 4vw, 53px); line-height: 1.18; }
.offline-band p { max-width: 490px; margin: 18px 0 0; color: var(--ink-soft); line-height: 1.8; }
.offline-list { display: grid; gap: 1px; border: 1px solid var(--line-strong); background: var(--line-strong); }
.offline-list div { display: flex; justify-content: space-between; gap: 14px; padding: 15px 17px; background: var(--paper); font-size: 13px; }
.offline-list span { color: var(--ink-soft); }

.release-strip { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 25px 28px; border: 1px solid var(--line-strong); background: var(--mint); }
.release-strip h2 { margin: 0 0 6px; font-size: 20px; }
.release-strip p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.release-strip .button { white-space: nowrap; }
.release-actions { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 9px; }
.release-more { flex-basis: 100%; color: var(--teal-deep); font-size: 12px; text-align: right; text-underline-offset: 3px; }

.page-heading { padding: 78px 0 48px; border-bottom: 1px solid var(--line); }
.page-heading h1 { max-width: 760px; }
.page-heading p { max-width: 680px; margin: 22px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--teal-deep); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 23px; height: 1px; background: var(--teal); }
.version-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.version-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line-strong); background: #fffefb; }
.version-card.featured { border-color: var(--teal); box-shadow: var(--shadow-light); }
.version-card.pending { background: #f3f3ed; }
.version-label { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.version-card h2 { margin: 0; font-size: 24px; }
.version-card .tag { padding: 5px 7px; background: var(--mint); color: var(--teal-deep); font-size: 10px; font-weight: 700; white-space: nowrap; }
.version-card.pending .tag { background: var(--warning-bg); color: var(--warning); }
.version-card > p { min-height: 70px; margin: 18px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.spec-list { display: grid; gap: 0; margin: 22px 0; border-block: 1px solid var(--line); }
.spec-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list span { color: var(--ink-soft); }
.version-card .button { margin-top: auto; }
.notice { display: flex; gap: 13px; align-items: start; padding: 16px 18px; border: 1px solid #e3cb91; background: var(--warning-bg); color: #76541d; font-size: 13px; line-height: 1.65; }
.notice strong { color: #5f451a; }
.notice svg { flex: 0 0 auto; margin-top: 3px; }
.download-note { margin: 0 0 24px; padding: 23px 25px; border: 1px solid var(--line-strong); background: var(--mint); }
.download-note-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.download-note-heading h2 { margin: 4px 0 0; font-family: "STSong", "SimSun", serif; font-size: 27px; line-height: 1.2; }
.download-note-copy { max-width: 760px; margin: 14px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-card { display: flex; flex-direction: column; min-width: 0; padding: 25px; border: 1px solid var(--line-strong); background: #fffefb; }
.platform-card.featured { border-color: var(--teal); box-shadow: var(--shadow-light); }
.platform-card-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.platform-card-head > div { min-width: 0; }
.platform-index { display: block; margin-bottom: 8px; color: var(--teal-deep); font: 700 11px/1 "Aptos", sans-serif; letter-spacing: .08em; }
.platform-card h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.platform-card > p { min-height: 52px; margin: 18px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.platform-links { display: grid; gap: 9px; margin-top: auto; }
.platform-link { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 13px; border: 1px solid var(--line-strong); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.platform-link:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow-light); }
.platform-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.platform-link > span { display: grid; gap: 3px; min-width: 0; }
.platform-link strong { font-size: 13px; }
.platform-link small { overflow: hidden; color: var(--ink-soft); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.platform-link.gitee { border-color: var(--blue); background: #f2f7fb; }
.platform-link.gitee svg { color: var(--blue); }
.platform-link.quark { border-color: var(--teal); background: #f3fbf7; }
.platform-link.quark svg { color: var(--teal-deep); }
.platform-link.github svg { color: var(--blue); }
.win7-card .platform-links { gap: 7px; }
.win7-card .platform-link { padding: 8px 10px; gap: 8px; }
.win7-card .platform-link svg { width: 14px; height: 14px; }
.win7-card .platform-link strong { font-size: 11px; }
.win7-card .platform-link small { font-size: 9px; }
.split-download-note { margin: 1px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.split-download-note code { padding: 1px 4px; background: var(--paper-deep); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.checksum { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--ink-soft); font-size: 12px; }
.download-sources { padding: 23px 25px; border: 1px solid var(--line-strong); background: var(--mint); }
.source-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.source-heading h2 { margin: 4px 0 7px; font-family: "STSong", "SimSun", serif; font-size: 27px; line-height: 1.2; }
.source-heading p { max-width: 680px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.source-kicker { color: var(--teal-deep); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.source-version { padding: 6px 9px; border: 1px solid var(--line-strong); color: var(--teal-deep); font-size: 12px; font-weight: 700; white-space: nowrap; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.source-link { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 16px 17px; border: 1px solid var(--line-strong); background: #fffefb; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.source-link:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: var(--shadow-light); }
.source-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.source-link > span { display: grid; gap: 3px; min-width: 0; }
.source-link strong { font-size: 14px; }
.source-link small { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.source-link .source-arrow { margin-left: auto; color: var(--teal-deep); }
.source-link-quark { border-color: var(--teal); }
.source-link-quark .source-icon { color: var(--teal-deep); }
.source-link-github .source-icon { color: var(--blue); }
.version-card .source-mini { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--ink-soft); font-size: 12px; text-underline-offset: 3px; }
.version-card .source-mini svg { width: 14px; height: 14px; }

.changelog-list { border-top: 1px solid var(--line-strong); }
.log-entry { display: grid; grid-template-columns: 155px 1fr; gap: 34px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.log-date { color: var(--teal-deep); font-size: 12px; font-weight: 700; }
.log-entry h2 { margin: 0 0 9px; font-size: 20px; }
.log-entry p { max-width: 720px; margin: 0; color: var(--ink-soft); line-height: 1.7; }
.log-entry ul { max-width: 720px; margin: 13px 0 0; padding-left: 18px; color: var(--ink-soft); line-height: 1.8; }
.empty-log { padding: 28px 0; color: var(--ink-soft); }

.site-footer { padding: 46px 0 32px; border-top: 1px solid var(--line); background: #eff1eb; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 34px; }
.footer-grid h2 { margin: 0 0 13px; font-size: 16px; }
.footer-grid p, .footer-grid a { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.footer-grid p { max-width: 350px; margin: 0; }
.footer-links { display: grid; align-content: start; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); color: #71807c; font-size: 11px; }

@media (max-width: 900px) {
  .hero-grid, .offline-band { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding-top: 54px; }
  .workbench { min-height: 390px; max-width: 690px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .version-grid { grid-template-columns: 1fr; max-width: 620px; }
  .version-card > p { min-height: 0; }
}

@media (max-width: 640px) {
  .nav-wrap, .container { width: calc(100% - 28px); max-width: calc(100% - 28px); min-width: 0; }
  .nav-wrap { min-height: 66px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: 14px; right: 14px; top: 65px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line-strong); background: var(--paper); box-shadow: var(--shadow-light); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 11px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .hero { padding: 45px 0 56px; }
  .hero h1 { font-size: clamp(38px, 13vw, 57px); }
  .hero-lede { font-size: 16px; }
  .hero-actions .button { flex: 1 1 100%; }
  .workbench { min-height: 305px; margin: 0 -4px; transform: scale(.98); transform-origin: top left; }
  .paper-sheet { inset: 20px 18px 0 0; padding: 20px 22px; }
  .paper-title { margin: 16px 0 12px; font-size: 16px; }
  .paper-question { margin-top: 12px; font-size: 10px; }
  .answer-row { gap: 5px; margin-top: 10px; font-size: 9px; }
  .answer-row span { padding: 6px 3px; }
  .workbench-ui { right: 0; bottom: 2px; width: 63%; padding: 11px; }
  .ui-layout { grid-template-columns: 55px 1fr; gap: 8px; padding-top: 10px; }
  .ui-filter span { padding: 5px 4px; font-size: 7px; }
  .ui-item { padding: 7px 6px; font-size: 7px; }
  .ui-search { height: 23px; line-height: 23px; font-size: 7px; }
  .note-sticker { right: -2px; width: 93px; padding: 8px; font-size: 8px; }
  .note-sticker strong { font-size: 9px; }
  .section { padding: 58px 0; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading p { margin-top: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 20px; }
  .feature-mark { margin-bottom: 18px; }
  .release-strip { grid-template-columns: 1fr; padding: 20px; }
  .release-actions { justify-content: stretch; }
  .release-actions .button { flex: 1 1 100%; }
  .release-more { text-align: left; }
  .page-heading { padding: 52px 0 35px; }
  .page-heading h1 { max-width: 100%; font-size: 39px; overflow-wrap: anywhere; }
  .page-heading p { max-width: 100%; font-size: 15px; overflow-wrap: anywhere; }
  .platform-card-head { flex-wrap: wrap; }
  .platform-card h2 { max-width: 100%; overflow-wrap: anywhere; }
  .platform-card > p { max-width: 100%; overflow-wrap: anywhere; }
  .spec-list div { min-width: 0; }
  .spec-list strong { min-width: 0; max-width: 70%; overflow-wrap: anywhere; text-align: right; }
  .platform-link strong, .platform-link small { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
  .version-card { padding: 20px; }
  .download-sources { padding: 20px; }
  .source-heading { display: block; }
  .source-version { display: inline-block; margin-top: 13px; }
  .source-grid { grid-template-columns: 1fr; }
  .log-entry { grid-template-columns: 1fr; gap: 10px; padding: 21px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 27px; }
  .footer-bottom { display: block; margin-top: 32px; }
  .footer-bottom span { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

