@font-face {
  font-family: Nunito;
  src: url("nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Xiaojian Rounded";
  src: url("xiaojian-rounded-sc.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --cloud: #f0efeb;
  --paper: #fbfaf7;
  --ink: #233137;
  --muted: #52636a;
  --line: #cdd2d0;
  --rounded: Nunito, "Xiaojian Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--rounded);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; color: var(--ink); background: var(--cloud); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid #22667a; outline-offset: 5px; }
h1,h2,h3,p,figure { margin: 0; }
img { display: block; max-width: 100%; }
.frame { width: min(1280px, calc(100% - clamp(38px, 9vw, 150px))); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: -100px; left: 8px; background: white; padding: 10px 15px; }
.skip:focus { top: 8px; }
.header-inner,.footer-inner,.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { height: 76px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: .07em; font-size: 16px; }
.brand-mark { position: relative; width: 35px; height: 32px; transform: rotate(-24deg); }
.brand-mark i { position: absolute; width: 6px; height: 25px; top: 3px; left: 2px; background: var(--ink); border-radius: 80% 12% 80% 12%; }
.brand-mark i:nth-child(2) { left: 8px; top: 5px; }
.brand-mark i:nth-child(3) { left: 14px; top: 7px; }
.brand-mark i:nth-child(4) { left: 20px; top: 9px; }
nav { display: flex; gap: clamp(16px, 3vw, 42px); }
nav a,.section-heading a,.text-link,.back { font-size: 14px; }
nav a:hover,.section-heading a:hover,.footer-inner a:hover,.text-link:hover,.back:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-page {
  --home-header: 64px;
  --page-gutter: clamp(20px, 4vw, 72px);
}
.home-page .site-header { background: #f8f6f1; }
.home-page .header-inner {
  width: auto;
  height: var(--home-header);
  margin-inline: var(--page-gutter);
  border: 0;
}
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(28px, 7vh, 84px);
  min-height: calc(100vh - var(--home-header));
  min-height: calc(100svh - var(--home-header));
  padding: clamp(38px, 6vh, 76px) var(--page-gutter);
  background: #ece8df;
}
.hero-art {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, #f8f6f1 0%, #f8f6f1ed 12%, #f8f6f1af 31%, transparent 61%, #25323856 100%),
    url("xiaojian-dunes.jpg") center 58% / cover no-repeat,
    linear-gradient(155deg, #e9dfcb 32%, #56636e 84%);
}
.hero-copy { text-align: center; }
.hero h1 { font: 500 clamp(34px, 4vw, 53px)/1.15 var(--rounded); letter-spacing: -.035em; }
.hero h1 span { display: block; margin-top: 9px; font: 650 .43em/1.16 Nunito, system-ui, sans-serif; color: #486169; }
.intro,.detail-description,.page-heading p { color: var(--muted); line-height: 1.85; font-size: 14px; }
.hero .intro { margin-top: 12px; color: #41565e; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 9px 17px; border-radius: 30px; font-size: 13px; font-weight: 600; }
.primary { color: white; background: var(--ink); }
.primary:hover { background: #415b63; }
.hero .button { margin-top: 17px; }
.detail-hero .button { margin-top: 24px; }
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 20px);
  width: min(100%, 1680px); margin-inline: auto; scroll-margin-top: 20px;
}
.gallery-card {
  display: grid; grid-template-rows: auto 1fr;
  min-width: 0; overflow: hidden; background: #fbfaf7;
  border: 1px solid #ffffffb0; border-radius: 13px;
  box-shadow: 0 12px 30px #1d282a37;
}
.gallery a:hover { text-decoration: none; }
.gallery-card:focus-visible { outline-color: white; box-shadow: 0 0 0 3px #263c47; }
.gallery-preview {
  display: grid; grid-template-rows: minmax(0, 1fr); place-items: center;
  height: clamp(92px, 11vw, 156px);
  overflow: hidden; padding: 12px 14px;
  background: radial-gradient(ellipse at 22% 16%, #fff8, transparent 78%), var(--tint);
}
.gallery-preview img {
  width: 100%; height: 100%; min-height: 0; object-fit: contain;
  filter: drop-shadow(0 5px 6px #2a3c3d28);
}
.gallery-label {
  display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 7px; align-items: center;
  padding: 10px; line-height: 1.3;
}
.gallery-label > img { width: 22px; height: 22px; }
.gallery-label strong { display: block; font-size: 14px; font-weight: 650; }
.gallery-label small { color: var(--muted); display: block; margin-top: 3px; font-size: 11px; }
.gallery-arrow { color: #52636a; font: 13px/1 system-ui,sans-serif; }
.catalog { padding: 40px 0 62px; }
.section-heading { margin-bottom: 21px; }
h2 { font-family: var(--rounded); font-size: clamp(23px, 2.3vw, 31px); line-height: 1.25; font-weight: 600; letter-spacing: -.035em; }
.section-heading a { color: var(--muted); }
.detail-grid,.update-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.app-grid { display: grid; gap: 24px; }
.app-card {
  position: relative; display: grid; grid-template-columns: 44% 56%;
  overflow: hidden; border: 1px solid var(--line); background: var(--paper); border-radius: 8px;
}
.card-copy { align-self: center; padding: clamp(26px,4vw,62px); }
.card-id,.platform { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.card-id img { width: 26px; height: 26px; }
.card-copy h3 { margin: 17px 0 12px; font: 500 clamp(24px,2.4vw,34px)/1.38 var(--rounded); letter-spacing: -.04em; text-wrap: balance; }
.summary { max-width: 34em; margin-bottom: 19px; color: var(--muted); line-height: 1.85; font-size: 14px; }
.platform { flex-wrap: wrap; gap: 5px; font: 11px/1.5 "IBM Plex Mono", ui-monospace, monospace; }
.card-link { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.app-card:hover .card-link { text-decoration: underline; text-underline-offset: 4px; }
.app-card:focus-within { outline: 2px solid #22667a; }
.jianji { --tint: #e4dfc9; --tone: #bcb595; }
.jianyi { --tint: #d6e1e8; --tone: #9db1c0; }
.jianchuan { --tint: #d7e3db; --tone: #9db4aa; }
.jiantu { --tint: #dbdfe1; --tone: #aeb9c4; }
.still-life {
  display: grid; place-items: center; min-height: 315px; padding: clamp(18px,3vw,45px);
  background: radial-gradient(ellipse at 20% 12%,#ffffff98,transparent 75%),var(--tint);
}
.still-life img { width: auto; max-width: 100%; max-height: 285px; border-radius: 5px; box-shadow: 0 18px 28px -16px #2f414c77; }
.questions { margin-top: 16px; }
@media(min-width: 651px) {
  .app-card:nth-child(even) { grid-template-columns: 56% 44%; }
  .app-card:nth-child(even) .still-life { grid-area: 1 / 1; }
}
.footer-inner { border-top:1px solid var(--line); min-height:75px; color:var(--muted); font-size:12px; }
.back { display:inline-block; margin:24px 0 18px; color:var(--muted); }
.detail-hero { display:grid; grid-template-columns:.85fr 1.15fr; gap:6%; align-items:center; padding:clamp(22px,4vw,58px); background:linear-gradient(115deg,var(--paper) 10%,var(--tint)); border:1px solid var(--line); border-radius:8px; }
.detail-hero h1,.page-heading h1 { font:500 clamp(37px,4.5vw,60px)/1.2 var(--rounded); letter-spacing:-.05em; }
.detail-hero > div > img { width:48px; height:48px; margin-bottom:12px; }
.category { font-size:13px; color:var(--muted); }
.detail-description,.page-heading p { margin-top:12px; }
.detail-hero figure img { border-radius:5px; box-shadow:0 16px 35px -12px #293c494f; width:100%; }
.detail-grid,.download-panel,#changes,.update-grid { margin-top:16px; }
.panel { background:var(--paper); border:1px solid var(--line); padding:clamp(19px,3vw,35px); border-radius:8px; }
.panel h2 { font-size:clamp(20px,2vw,25px); }
.panel ul,.panel ol { padding-left:22px; margin-bottom:0; }
.panel li + li { margin-top:8px; }
.version { font:13px/1.5 ui-monospace,monospace; color:var(--muted); }
.panel .download-list { padding:0; margin:0; list-style:none; }
.download-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:17px 0; border-top:1px solid var(--line); }
.download-row > div { min-width:0; }
.download-row h3 { font-size:17px; }
.download-row p,.install-note,.download-row details { font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.download-row code { display:block; overflow-wrap:anywhere; }
summary { cursor:pointer; }
.download-row details { margin-top:6px; }
.release { border-top:1px solid var(--line); margin-top:15px; padding-top:15px; }
.release summary { font-weight:600; }
.release p { margin-top:12px; color:var(--muted); font-size:14px; }
#changes,.update-grid { margin-bottom:50px; }
.page-heading { margin:15px 0 28px; }
.update-title { display:flex; align-items:center; gap:12px; }
.text-link { display:inline-block; margin-top:20px; }
@media(max-width:650px) {
  .header-inner { height: 60px; }
  .brand { font-size: 16px; }
  nav a { font-size: 13px; }
  .home-page { --home-header: 58px; --page-gutter: clamp(14px, 4vw, 26px); }
  .hero { padding-block: 27px; gap: 25px; }
  .hero-copy { padding-inline: 4px; }
  .hero h1 { font-size: clamp(29px, 8.5vw, 42px); }
  .hero .intro { font-size: 13px; }
  .hero-art { background-position: center, 54% 75%, center; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-preview { height: clamp(68px, 20vw, 103px); padding: 10px; }
  .catalog { padding:28px 0 40px; }
  .section-heading { margin-bottom:15px; }
  .app-grid,.detail-hero,.detail-grid,.update-grid { grid-template-columns:1fr; }
  .app-card { grid-template-columns: 1fr; }
  .card-copy { padding: 23px; }
  .app-grid { gap: 18px; }
  .still-life { min-height: 155px; padding: 20px; }
  .still-life img { max-height: 210px; }
  .detail-hero { gap:25px; }
  .footer-inner { flex-wrap:wrap; gap:3px 18px; align-content:center; padding:12px 0; }
  .back { margin-top:18px; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > * {
    animation: hero-rise 790ms cubic-bezier(.17,.78,.26,1) both;
  }
  .hero-copy h1 { animation-delay: 80ms; }
  .hero-copy .intro { animation-delay: 145ms; }
  .hero-copy .button { animation-delay: 215ms; }
  .hero-copy .button:focus-within { animation: none; }
  .hero-art { animation: landscape-arrive 1000ms cubic-bezier(.16,1,.3,1) both; }
  .gallery-card { animation: hero-rise 650ms cubic-bezier(.17,.78,.26,1) 100ms both; }
  .gallery-card:nth-child(2) { animation-delay: 165ms; }
  .gallery-card:nth-child(3) { animation-delay: 230ms; }
  .gallery-card:nth-child(4) { animation-delay: 295ms; }
  .gallery-card:focus-visible { animation: none; }
  .in-view:not(:focus-within):not(:target) {
    animation: enter-section 760ms cubic-bezier(.2,.75,.25,1);
  }
  .app-card.in-view:not(:focus-within):not(:target) .still-life img {
    animation: preview-arrive 940ms cubic-bezier(.2,.75,.25,1);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-card { transition: translate 260ms ease, box-shadow 260ms ease; }
  .gallery-card:hover { translate: 0 -4px; box-shadow: 0 16px 36px #1d282a51; }
  .still-life { overflow: hidden; }
  .still-life img { transition: scale 380ms cubic-bezier(.2,.75,.25,1); }
  .app-card:hover .still-life img { scale: 1.045; }
  .card-link span { transition: transform 200ms ease; }
  .app-card:hover .card-link span { transform: translateX(5px); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landscape-arrive {
  from { opacity: .35; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes enter-section {
  from { opacity: .28; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes preview-arrive {
  from { transform: translateY(18px) scale(.94); }
  to { transform: translateY(0) scale(1); }
}
