:root {
  color-scheme: light;
  --paper: #fbf4e8;
  --ink: #302838;
  --muted: #625961;
  --serif: "Songti SC","STSong","SimSun","Noto Serif CJK SC",serif;
  --sans: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --margin: max(6vw,calc((100vw - 1260px) / 2));
  --ease: cubic-bezier(.2,.72,.24,1);
  font: 100%/1.5 var(--sans);
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 49% 36%,#fff9ee 0%,#fcf5e9 52%,#f7eede 100%); }
button, summary { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px dashed #77566e; outline-offset: 4px; }
button[hidden] { display: none; }
::selection { background: #edc7b3; color: #392839; }
.mast, .partners, footer { margin-inline: var(--margin); }
.mast, .nav-tools, .meta, footer { display: flex; align-items: center; }
.mast { min-height: clamp(64px,6.3vw,96px); justify-content: space-between; gap: 15px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; width: max-content; }
.brandmark { width: clamp(102px,8.4vw,127px); height: auto; display: block; }
.signature { margin-left: 10px; font: italic 600 .88rem/1.1 Georgia,"Times New Roman",serif; letter-spacing: .025em; }
.nav-tools { gap: clamp(14px,2vw,30px); }
.official { display: inline-flex; align-items: center; justify-content: center; position: relative; min-height: 44px; font-weight: 700; font-size: 1rem; letter-spacing: .11em; color: #682e43; }
.official::after { content:""; position:absolute; height: 4px; background: #cd795b; border-radius: 75% 35% 80% 20%; bottom: 7px; left: -3px; right: 0; rotate: -2deg; }
.replay { display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: .84rem; }
.replay span:first-child { font: 1.3rem/1 Georgia,serif; }
.replay:hover, .official:hover, summary:hover, .filing:hover { color: #9b3f52; }
h1,h2,p { margin: 0; }
h1 { width: fit-content; max-width: 100%; margin: clamp(20px,2.6vw,42px) auto 0; font: 560 clamp(36px,4.65vw,74px)/1.28 var(--serif); letter-spacing: .27em; padding-left: .27em; text-align: center; }
h1 span { display: inline-block; }
.paint-stage { width: 100%; height: clamp(137px,16.5vw,270px); position: relative; overflow: clip; isolation: isolate; --wind-x: 0; --wind-y: 0; }
.xq-ink { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: max(103%,680px); display: block; height: 99%; pointer-events: none; overflow: visible; }
.xq-ink .wind { translate: calc(var(--wind-x) * var(--sway,8px)) calc(var(--wind-y) * var(--drift,4px)); transition: translate .32s var(--ease); }
.xq-ink .stain { mix-blend-mode: multiply; }
.xq-ink .draw { stroke-linecap: round; stroke-linejoin: round; }
.bleed { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.bloom { position: absolute; width: clamp(60px,9vw,150px); aspect-ratio:1; translate:-50% -50%; border-radius: 41% 59% 56% 44% / 65% 39% 61% 35%; mix-blend-mode:multiply; filter:blur(8px); background:radial-gradient(ellipse at 43% 54%,var(--pigment),transparent 70%); animation:spread 2.7s ease-out both; }
@keyframes spread { 0%{opacity:0;scale:.05} 24%{opacity:.62} 73%{opacity:.22} 100%{opacity:0;scale:1.4} }
.partners { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(32px,8vw,140px); padding-top: clamp(6px,1vw,15px); }
.partner { min-width: 0; --accent:#19646a; --stroke:#6fa6a0; }
#kidobs { --accent:#773e62; --stroke:#bf849e; }
h2 { font: 600 clamp(25px,2.45vw,41px)/1.3 var(--serif); letter-spacing: .07em; }
h2 span { display:inline-block; }
.desc { margin-block: 5px 9px; color: #544951; font-size: 1rem; line-height: 1.65; }
.meta { gap: 14px; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.meta strong { font-family: ui-monospace,"Cascadia Mono",monospace; color: var(--accent); }
.downloads { margin-top: clamp(14px,1.45vw,24px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(6px,1vw,15px); }
.download { position: relative; display:grid; grid-template-columns: minmax(0,auto) 16px; grid-template-rows:auto auto; align-content:center; justify-content:start; align-items:center; gap: 3px 6px; min-height: 48px; padding: 2px 0 8px; color:var(--accent); }
.download::after { content:""; background:var(--stroke); width:29px; height:2px; position:absolute; left:0; bottom:0; border-radius: 70% 30% 80% 12%; transform:rotate(-2deg); transform-origin: left; transition:width .2s ease-out; }
.download:hover::after, .download:focus-visible::after { width: 69%; }
.platform { grid-row:1; grid-column:1; font-weight:680; font-size:clamp(.85rem,1.17vw,1.1rem); white-space:nowrap; }
.size { grid-row:2; grid-column:1/-1; font: .76rem/1.4 ui-monospace,"Cascadia Mono",monospace; color:var(--muted); }
.arrow { grid-row:1; grid-column:2; height:15px; width:15px; }
.notes-block { color:var(--muted); margin-top:10px; font-size:.86rem; }
summary { width:fit-content; cursor:pointer; padding: 5px 0; }
.notes, .mac-help p { white-space:pre-line; margin: 5px 0 10px; }
footer { justify-content: space-between; gap: 16px; padding: clamp(25px,3vw,45px) 0 24px; font-size:.85rem; color:var(--muted); }
.mac-help p { max-width: 58ch; }
.filing { white-space: nowrap; }
@media(prefers-reduced-motion:no-preference) {
  .motion-pending [data-motion], .motion-pending .xq-ink { visibility:hidden; }
  .playing [data-motion] { animation: emerge .5s var(--ease) var(--delay,0ms) backwards; }
  .playing .xq-ink .draw { stroke-dasharray:1 1; animation:draw var(--time,1s) cubic-bezier(.33,.04,.27,1) var(--wait,0s) both; }
  @keyframes emerge { from{opacity:0;translate:0 10px} to{opacity:1;translate:0 0} }
  @keyframes draw { from{stroke-dashoffset:1} to{stroke-dashoffset:0} }
}
@media(max-width:900px) {
  :root { --margin:4.5vw; }
  .partners { column-gap: 5.5vw; }
  .platform { font-size:.85rem; }
  .download { column-gap:4px; }
}
@media(max-width:699px) {
  :root { --margin:max(6vw,16px); }
  .mast { min-height:68px; }
  .brandmark { width: 99px; }
  .signature { font-size:.77rem; }
  .nav-tools { gap:12px; }
  .replay-label { display:none; }
  .replay { width:36px; justify-content:center; }
  .official { font-size:.9rem; }
  h1 { margin-top: 22px; font-size:clamp(23px,6.4vw,42px); letter-spacing:.21em; padding-left:.21em; }
  .paint-stage { height: clamp(108px,26vw,160px); }
  .partners { grid-template-columns:1fr; row-gap:30px; padding-top: 5px; }
  h2 { font-size:clamp(25px,5vw,32px); }
  .desc { font-size:.94rem; }
  .downloads { margin-top:10px; }
  .notes-block { margin-top:7px; }
  footer { flex-wrap:wrap; }
}
@media(max-width:359px) {
  .partners,.mast,footer { margin-inline:14px; }
  .nav-tools { gap:7px; }
  .platform { font-size:.82rem; }
}
@media(prefers-reduced-motion:reduce) {
  .replay,.bloom { display:none; }
  .wind,.download::after { transition:none; }
}
@media print {
  .paint-stage,.nav-tools { display:none; }
  .motion-pending [data-motion] { visibility:visible; }
}

/* ===== 指尖画室 · 第二版 —— 追加在现行样式之后 ===== */

/* 纸张：三色颜料在纸角留下极淡的余晕，纯 CSS 渐变，无位图 */
body {
  background:
    radial-gradient(ellipse 38% 30% at 4% 10%, rgba(38,128,126,.07), transparent 70%),
    radial-gradient(ellipse 34% 28% at 97% 92%, rgba(205,121,91,.08), transparent 72%),
    radial-gradient(ellipse 30% 24% at 92% 38%, rgba(119,62,98,.05), transparent 70%),
    radial-gradient(ellipse at 49% 36%, #fff9ee 0%, #fcf5e9 52%, #f6ecdb 100%);
}

/* —— 访问官网：错版套印的墨色印块 —— */
.official {
  min-height: 54px;
  padding: 0 30px 0 34px;
  gap: 12px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: #fff7ea;
  background:
    radial-gradient(ellipse at 22% 30%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(20,8,26,.35), transparent 60%),
    #3d2449;
  border-radius: 44% 56% 40% 60% / 62% 46% 54% 38%;
  box-shadow:
    -6px 4px 0 -1px rgba(31,122,120,.55),
    7px 6px 0 -2px rgba(208,120,82,.85);
  rotate: -1.2deg;
  transition: translate .22s var(--ease), box-shadow .22s var(--ease), rotate .22s var(--ease);
}
/* 把原来的下划线改成一个手写箭头 */
.official::after {
  content: "→";
  position: static;
  height: auto;
  background: none;
  border-radius: 0;
  rotate: 0deg;
  font: 400 1.15rem/1 Georgia, serif;
  letter-spacing: 0;
  translate: 0 -1px;
  transition: translate .22s var(--ease);
}
.official:hover {
  color: #fff7ea;
  translate: -1px -2px;
  rotate: -2deg;
  box-shadow:
    -9px 6px 0 -1px rgba(31,122,120,.6),
    10px 9px 0 -2px rgba(208,120,82,.9);
}
.official:hover::after { translate: 4px -1px; }
.official:active {
  translate: 1px 2px;
  box-shadow:
    -3px 2px 0 -1px rgba(31,122,120,.5),
    3px 3px 0 -2px rgba(208,120,82,.8);
}
.official:focus-visible { outline: 2px dashed #3d2449; outline-offset: 7px; }

/* —— 重播：退为淡色小圆钮，和官网拉开层级 —— */
.nav-tools { gap: clamp(16px,2.4vw,34px); }
.replay {
  min-width: 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  color: #8a7f86;
  font-size: .8rem;
  letter-spacing: .08em;
  transition: color .2s, background-color .2s;
}
.replay:hover { color: #5b4a58; background: rgba(61,36,73,.06); }

/* —— 标题：加大加宽，画痕从字里穿过 —— */
h1 {
  position: relative;
  z-index: 2;
  pointer-events: none;
  margin-top: clamp(22px,3vw,48px);
  margin-bottom: clamp(-78px,-4.45vw,-34px);
  font-size: clamp(40px,5.7vw,94px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: .3em;
  padding-left: .3em;
  color: #2c2333;
  mix-blend-mode: multiply;
}
.paint-stage { height: clamp(160px,19.5vw,310px); z-index: 1; }

/* —— 两款产品：左宽右窄、右栏下沉 —— */
.partners {
  grid-template-columns: minmax(0,1.08fr) minmax(0,1fr);
  column-gap: clamp(40px,9vw,160px);
  align-items: start;
}
.partner {
  position: relative;
  isolation: isolate;
  --wash: rgba(80,160,152,.30);
}
#kidobs { --wash: rgba(184,118,150,.28); }
.partner + .partner { margin-top: clamp(0px,2.6vw,44px); }

/* 产品名后面的一团晕开水彩，没有边界 */
.partner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5%;
  top: -.55em;
  width: min(74%,380px);
  height: clamp(70px,6.4vw,110px);
  background:
    radial-gradient(ellipse 60% 70% at 32% 52%, var(--wash), transparent 70%),
    radial-gradient(ellipse 40% 50% at 70% 40%, var(--wash), transparent 72%);
  border-radius: 58% 42% 63% 37% / 48% 61% 39% 52%;
  filter: blur(7px);
  mix-blend-mode: multiply;
  pointer-events: none;
}
h2 { font-size: clamp(27px,2.7vw,46px); letter-spacing: .1em; color: var(--accent); }
.desc { max-width: 34em; }

/* —— 下载：调色盘颜料格 —— */
.downloads { gap: clamp(8px,1.3vw,20px); }
.download {
  grid-template-columns: 30px minmax(0,auto) 16px;
  column-gap: 9px;
  min-height: 52px;
}
.download::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  align-self: center;
  border-radius: 47% 53% 38% 62% / 58% 44% 56% 42%;
  background: radial-gradient(circle at 42% 44%, var(--well) 0 34%, transparent 72%);
  opacity: .62;
  mix-blend-mode: multiply;
  transition: scale .3s var(--ease), opacity .3s;
}
.download:nth-child(3n+1)::before { --well: #23807c; }
.download:nth-child(3n+2)::before { --well: #7a3f68; }
.download:nth-child(3n)::before   { --well: #cf7350; }
.download:hover::before,
.download:focus-visible::before { scale: 1.45; opacity: .85; }
.download::after { left: 39px; }
.download:hover::after, .download:focus-visible::after { width: 58%; }
.platform { grid-column: 2; }
.arrow { grid-column: 3; }
.size { grid-column: 2 / -1; }

/* —— 平板 —— */
@media (max-width: 900px) {
  .official { padding: 0 22px 0 26px; letter-spacing: .18em; }
  .download { grid-template-columns: 22px minmax(0,auto) 14px; column-gap: 6px; }
  .download::before { width: 22px; height: 22px; }
  .download::after { left: 28px; }
}

/* Leave space for the full platform name at two-column tablet widths. */
@media (min-width:700px) and (max-width:1199px) {
  h1 { margin-bottom: clamp(-24px,-2.1vw,-15px); }
  .downloads { gap: 6px; }
  .download { grid-template-columns: max-content 14px; column-gap: 3px; }
  .download::before { display: none; }
  .download::after { left: 0; }
  .platform { grid-column: 1; font-size: .82rem; }
  .arrow { grid-column: 2; width: 13px; }
  .size { grid-column: 1 / -1; }
}

/* —— 手机 —— */
@media (max-width: 699px) {
  .nav-tools { gap: 10px; }
  .official {
    min-height: 48px;
    padding: 0 16px 0 19px;
    gap: 7px;
    font-size: .95rem;
    letter-spacing: .15em;
    box-shadow:
      -4px 3px 0 -1px rgba(31,122,120,.55),
      5px 4px 0 -1px rgba(208,120,82,.85);
  }
  .official::after { font-size: 1rem; }
  .replay { width: 44px; min-width: 44px; padding: 0; justify-content: center; }

  h1 {
    margin-top: 26px;
    margin-bottom: clamp(-16px,-3vw,-8px);
    font-size: clamp(24px,7.2vw,42px);
    letter-spacing: .2em;
    padding-left: .2em;
  }
  .paint-stage { height: clamp(122px,32vw,180px); }

  .partners { grid-template-columns: 1fr; row-gap: 34px; }
  .partner + .partner { margin-top: 0; padding: 16px 0 0 7%; }
  #kidobs::after {
    content:"";position:absolute;z-index:0;left:5%;top:0;
    width:min(48%,176px);height:11px;pointer-events:none;
    border-radius:62% 38% 56% 44%/72% 48% 52% 28%;
    background:linear-gradient(90deg,transparent 0,rgba(118,72,118,.5) 10%,rgba(138,96,140,.72) 58%,rgba(118,72,118,.18) 92%,transparent);
    transform:rotate(-2.4deg);filter:blur(.35px)
  }
  .partner::before { width: 82%; height: 74px; }

  /* 窄屏收起颜料格，恢复原来的三列 */
  .download { grid-template-columns: minmax(0,auto) 14px; column-gap: 4px; min-height: 48px; }
  .download::before { display: none; }
  .download::after { left: 0; }
  .platform { grid-column: 1; }
  .arrow { grid-column: 2; }
  .size { grid-column: 1 / -1; }
}

/* —— 375 —— */
@media (max-width: 389px) {
  .official { padding: 0 14px 0 16px; letter-spacing: .12em; }
  .partner + .partner { padding-left: 4%; }
}

/* —— 320 —— */
@media (max-width: 359px) {
  .brandmark { width: 88px; }
  .signature { font-size: .7rem; margin-left: 6px; }
  .nav-tools { gap: 6px; }
  .official { min-height: 46px; padding: 0 12px 0 14px; font-size: .9rem; letter-spacing: .1em; gap: 5px; }
  .replay { width: 44px; min-width: 44px; }
  h1 { font-size: clamp(22px,7vw,26px); letter-spacing: .16em; padding-left: .16em; }
  .partner + .partner { padding-left: 0; }
  .downloads { gap: 6px; }
}

/* —— 减弱动效 —— */
@media (prefers-reduced-motion: reduce) {
  .official, .official::after, .replay, .download::before { transition: none; }
  .official:hover, .official:active { translate: none; }
}

/* —— 打印：官网改为纯文字 —— */
@media print {
  .official { background: none; color: var(--ink); box-shadow: none; }
  h1 { margin-bottom: 0; mix-blend-mode: normal; }
}
