@font-face {
  font-family: "Noto Sans SC Site";
  src: url("assets/noto-sans-sc.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* 配色取自应用图标：暖瓷底、炭墨、朱红 */
:root {
  --paper: #f5f3ef;
  --ink: #191613;
  --soft: #655e56;
  --line: #d9d3c9;
  --red: #cf3325;
  --red-deep: #ad2619;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
main { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.75 "Noto Sans SC Site", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.14; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.5; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 9; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* 导航 */
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; text-decoration: none; }
.nav nav { display: flex; gap: 32px; font-size: .9375rem; }
.nav nav a { text-decoration: none; padding: 8px 0; transition: color .2s; }
.nav nav a:hover { color: var(--red); }

/* 首屏 */
.hero { position: relative; padding-top: clamp(28px, 4.5vh, 56px); }
.mark { position: absolute; z-index: 0; width: min(56%, 690px); right: -32px; top: -34px; pointer-events: none; filter: drop-shadow(0 26px 34px rgb(33 29 25 / .2)); }
.pitch { position: relative; z-index: 1; max-width: 34rem; }
h1 { font-size: clamp(3rem, 7.4vw, 6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.lead { font-size: 1.1875rem; line-height: 1.75; color: #433d36; margin-top: 22px; max-width: 29em; text-wrap: pretty; }
.cta { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.meta { font-size: .875rem; line-height: 1.6; color: var(--soft); font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 14px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  box-shadow: 0 10px 22px -8px rgb(173 38 25 / .55);
  transition: background .2s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgb(173 38 25 / .6); }
.btn:active { transform: none; }
.btn.line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }

/* 窗口与平台切换 */
.show { position: relative; z-index: 1; margin-top: clamp(40px, 6.5vh, 68px); }
.tabs {
  display: inline-flex; gap: 4px; padding: 6px; border-radius: 18px;
  background: var(--ink); margin-bottom: 16px; max-width: 100%;
}
.tabs button {
  display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 600; color: #c9c1b6; white-space: nowrap;
  height: 48px; padding: 0 20px 0 12px; border-radius: 12px; transition: background .25s, color .25s;
}
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.tabs .short { display: none; }
.window { display: grid; }
.window figure { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .6s; }
.window figure.on { visibility: visible; opacity: 1; z-index: 1; transition: opacity .01s; }
.window img {
  width: 100%; border-radius: 20px; background: #000;
  box-shadow: 0 0 0 1px rgb(25 22 19 / .9), 0 44px 70px -30px rgb(33 29 25 / .55), 0 12px 24px -10px rgb(33 29 25 / .3);
}
.js .window figure.on img { animation: open .75s var(--ease); }
@keyframes open { from { clip-path: inset(0 0 0 100% round 20px); } to { clip-path: inset(0 0 0 0 round 20px); } }
.js .window.first figure.on img { animation: none; }
figcaption { margin-top: 26px; font-size: 1.0625rem; color: var(--soft); }
figcaption b { font-weight: 700; color: var(--ink); margin-right: .5em; }

/* 原生 */
.native { padding-block: clamp(96px, 15vw, 184px); display: grid; grid-template-columns: 5fr 7fr; gap: 48px; }
.native dl > div { display: grid; grid-template-columns: 13.5rem 1fr; gap: 32px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); }
.native dl > div:last-child { border-bottom: 1px solid var(--line); }
dt { font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
dd { color: #433d36; text-wrap: pretty; }

/* 老板键 */
.boss { background: #151311; color: #f5f1e9; }
.boss .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding-block: clamp(80px, 11vw, 144px); }
.boss p { margin-top: 22px; color: #ded6ca; max-width: 24em; text-wrap: pretty; }
.boss .dim { margin-top: 10px; font-size: .9375rem; color: #a79d90; max-width: none; }
.key { margin-top: 36px; display: inline-flex; align-items: center; gap: 18px; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.cap {
  display: grid; place-items: center; width: 116px; height: 72px; border-radius: 16px; color: var(--ink); font-weight: 800; font-size: 1.125rem;
  background: linear-gradient(170deg, #fdfbf7, #e7e0d3); box-shadow: 0 7px 0 #a79c8a, 0 18px 24px -4px rgb(0 0 0 / .7);
  transition: transform .12s, box-shadow .12s;
}
.key:hover .cap { background: #fff; }
.key:active .cap, .key[aria-pressed="true"] .cap { transform: translateY(5px); box-shadow: 0 2px 0 #a79c8a, 0 8px 14px -4px rgb(0 0 0 / .7); }
.hint { color: #ded6ca; }
.desk { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: linear-gradient(150deg, #fdfbf7, #e2dacb); }
.paper { position: absolute; inset: 0; width: 100%; height: 100%; }
.app { position: absolute; z-index: 1; left: 8%; top: 6%; width: 84%; border-radius: 12px; box-shadow: 0 24px 40px -16px rgb(33 29 25 / .6); transform-origin: 94% 112%; transition: transform .5s var(--ease), opacity .35s, filter .4s; }
.bar { position: absolute; z-index: 2; inset: auto 0 0; height: 8.5%; min-height: 32px; background: #efe9df; border-top: 1px solid #d5ccc0; display: flex; align-items: center; justify-content: flex-end; padding-right: 4%; }
.tray { transition: transform .5s var(--ease) .12s; }
.desk.away .app { transform: scale(.06); opacity: 0; filter: blur(6px); }
.desk.away .tray { transform: scale(1.25); }

/* 细节 */
.details { padding-block: clamp(96px, 14vw, 168px) clamp(80px, 11vw, 136px); }
.details ul { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 56px; }
.details p { margin-top: 6px; color: var(--soft); text-wrap: pretty; }

/* 下载 */
.download { border-top: 1px solid var(--line); padding-block: clamp(72px, 10vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.download .lead { margin-top: 14px; }
.ways { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.notes h3:not(:first-child) { margin-top: 28px; }
.notes p { margin-top: 4px; color: var(--soft); }
.sha { display: flex; gap: 16px; align-items: flex-start; }
code { font: 400 .75rem/2.4 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.copy { flex: none; border: 0; background: none; font: inherit; font-size: .9375rem; color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; padding: 0 2px; min-width: 4em; text-align: left; }

footer { border-top: 1px solid var(--line); padding-block: 36px 56px; display: flex; justify-content: space-between; gap: 48px; font-size: .875rem; color: var(--soft); }
footer p:first-child { max-width: 46em; }
.links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; white-space: nowrap; align-content: flex-start; }

@media (max-width: 1200px) {
  .pitch { max-width: 43%; }
  .mark { width: 54%; right: 0; }
}
@media (max-width: 1000px) {
  .native, .boss .wrap, .download { grid-template-columns: 1fr; }
  .details ul { grid-template-columns: 1fr 1fr; }
  .download { gap: 56px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .pitch { max-width: none; }
  .nav { height: 68px; }
  .nav .opt { display: none; }
  .mark { width: 54%; right: -4px; top: 0; }
  h1 { font-size: clamp(2.75rem, 13.6vw, 4rem); }
  .lead { font-size: 1.0625rem; }
  .pitch .lead { margin-top: 18px; }
  .hero { padding-top: 132px; }
  .cta { gap: 16px; }
  .tabs { display: flex; padding: 5px; border-radius: 16px; }
  .tabs button { flex: 1; flex-direction: column; justify-content: center; gap: 4px; padding: 0 2px; height: 64px; font-size: .8125rem; }
  .tabs .long { display: none; }
  .tabs .short { display: inline; }
  .window img { border-radius: 12px; }
  figcaption { margin-top: 18px; font-size: 1rem; }
  figcaption b { display: block; }
  .native dl > div { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .details ul { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
  .ways .btn { flex: 1 1 100%; }
  footer { flex-direction: column; gap: 20px; }
  .links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}
