/* =========================================================
   SOUVI 官网 · 更新日志
   颜色、字体、按钮、导航、页尾都来自 site.css，这里只写本页的东西。
   隐藏态一律挂在 html.cl-js 下面：没有脚本或脚本报错时，所有内容都看得见。
   ========================================================= */

:root {
  --surf: #FAF6ED;          /* 大卡片底：比 --card 深一点，聚光灯才看得出来 */
  --indigo-dd: #35407A;     /* 维护日历：同一天两版 */
  --bar-h: 72px;            /* 筛选条高度 */
  --stick: calc(var(--nav-h) + var(--bar-h));
  --tl-w: 232px;
}

.cl-js { --scroll-off: calc(var(--stick) + 20px); }

/* 导航：当前页 */
.nav-link { white-space: nowrap; }
.nav-link[aria-current="page"] { background: rgba(27, 26, 23, .06); color: var(--ink); }
.drawer-link[aria-current="page"] { background: var(--indigo-l); color: var(--indigo-d); }

/* =========================================================
   页面顶部
   ========================================================= */
.cl-hero { position: relative; padding: calc(var(--nav-h) + 34px) 0 14px; }
.cl-glowbox { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cl-glow { width: 620px; height: 620px; margin: -310px 0 0 -310px; left: 50%; top: 40%; opacity: .62; }
.cl-hero-in { position: relative; text-align: center; }
.cl-hero h1 { margin-top: 14px; font-size: clamp(34px, 4vw, 50px); line-height: 1.25; }
.cl-hero .lead { margin-top: 8px; font-size: clamp(16px, 1.35vw, 18px); }

/* 三个数字 */
.cl-nums { list-style: none; margin: 18px 0 0; padding: 0; display: flex; justify-content: center; gap: 14px 0; color: var(--text); font-size: 16px; }
.cl-nums li { padding: 0 34px; white-space: nowrap; }
.cl-nums li + li { border-left: 1px solid var(--line); }
.cl-nums .num { margin-right: 2px; font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* 维护日历 */
.mcal { list-style: none; margin: 20px auto 0; padding: 0; max-width: 1060px; display: grid; grid-template-columns: repeat(auto-fit, minmax(28px, 1fr)); gap: 0 6px; }
.mc-cell { position: relative; }
.mc { position: relative; display: block; width: 100%; height: 34px; border-radius: 9px; background: #E9E1D1; }
.mc-on { cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.mc-on::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--indigo);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.mc-on.two::before { background: var(--indigo-dd); }
.mc-d { display: block; height: 20px; margin-top: 4px; font-family: var(--num); font-size: 13px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.mc-cell:not(.lbl) .mc-d { visibility: hidden; }
.mcal.pre .mc-on:not(.go)::before { opacity: 0; transform: scale(.5); }
.mcal-note { margin-top: 0; font-size: 13px; color: var(--muted); }
.mc-tip {
  position: absolute; z-index: 6; left: 50%; bottom: calc(100% + 9px); width: max-content;
  padding: 8px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.5; text-align: left; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translate(calc(-50% + var(--sx, 0px)), 6px) scale(.96); transform-origin: calc(50% - var(--sx, 0px)) 100%;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
  pointer-events: none;
}
.mc-tip::after { content: ""; position: absolute; top: 100%; left: calc(50% - var(--sx, 0px)); margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }
.mc-tip.show { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--sx, 0px)), 0); transition-delay: 0s; }
.mc-tip a { color: #C9CEEC; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.mc-tip.tap { pointer-events: auto; }
.mc-tip.tap a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
@media (hover: hover) and (pointer: fine) {
  .mc-on:hover { transform: translateY(-3px); }
}
.mc-on:active { transform: scale(.97); }

/* 升级提示条 */
.upg { position: relative; margin: 14px auto 0; max-width: 720px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.upg summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 18px; border-radius: 16px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 500; font-size: 16px; }
.upg summary::-webkit-details-marker, .ver summary::-webkit-details-marker { display: none; }
.upg-body { padding: 2px 18px 18px; }
.upg-body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.upg-body b { color: var(--ink); font-weight: 500; }

/* 展开箭头 › ↔ ⌄ */
.ver-chev { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform var(--t) var(--ease), color var(--t-fast) var(--ease); }
details[open] > summary .ver-chev { transform: rotate(90deg); color: var(--indigo); }

/* =========================================================
   筛选条
   ========================================================= */
.cl-bar { position: sticky; top: var(--nav-h); z-index: 30; }
.cl-bar::before { /* 吸住之后才出现的底：用透明度切换 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 241, 231, .88); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.cl-bar.stuck::before { opacity: 1; }
.cl-bar-in { display: grid; grid-template-columns: var(--tl-w) minmax(0, 1fr); column-gap: 44px; align-items: center; min-height: var(--bar-h); }
.flt {
  grid-column: 2; justify-self: start; position: relative; display: grid; grid-template-columns: repeat(4, minmax(104px, 1fr));
  padding: 4px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line);
}
.flt-thumb {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 4); border-radius: 99px;
  background: var(--indigo); box-shadow: 0 4px 12px -5px rgba(90, 103, 168, .7);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--t) var(--ease);
}
.flt-b { min-height: 44px; padding: 0 12px; border-radius: 99px; font-size: 16px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.flt-b .num { margin-left: 2px; font-size: 14px; opacity: .72; }
.flt-b[aria-pressed="true"] { color: #fff; }
.flt-b[aria-pressed="true"] .num { opacity: .9; }
.flt-b:active { transform: scale(.97); }
.vp { display: none; }

/* =========================================================
   主体：时间线 + 卡片
   ========================================================= */
.cl-body { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 8px; padding-bottom: 40px; }
.cl-js .cl-body { grid-template-columns: var(--tl-w) minmax(0, 1fr); column-gap: 44px; align-items: start; }

.tl { position: sticky; top: calc(var(--stick) + 16px); max-height: calc(100vh - var(--stick) - 36px); overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 18px), transparent); }
.tl::-webkit-scrollbar { display: none; }
.tl-in { position: relative; padding: 14px 4px 18px 0; }
.tl-line { position: absolute; left: 9px; top: 0; width: 2px; border-radius: 2px; background: var(--line); }
.tl-fill { position: absolute; inset: 0; border-radius: 2px; background: var(--indigo); transform: scaleY(0); transform-origin: top; }
.tl-g { padding: 8px 0 2px 34px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.tl-g:first-child { padding-top: 0; }
.tl-a {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 9px;
  padding: 2px 8px 2px 34px; border-radius: 10px; color: var(--muted); line-height: 20px;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.tl-a i { position: absolute; left: 10px; top: 12px; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--mask); box-shadow: 0 0 0 3px var(--paper); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.tl-a.big i { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.tl-v { font-size: 14px; }
.tl-a.big .tl-v { font-size: 15px; font-weight: 600; color: var(--ink); }
.tl-d { font-size: 13px; color: var(--muted); }
.tl-t { grid-column: 1 / -1; font-size: 13px; line-height: 18px; }
.tl-a.past i { background: var(--indigo); }
.tl-a.on { color: var(--ink); }
.tl-a.on .tl-v, .tl-a.on .tl-t { color: var(--indigo-d); font-weight: 600; }
.tl-a.on .tl-t { font-weight: 500; }
.tl-a.on i { background: var(--indigo); transform: scale(1.25); }
.tl-a.off { opacity: .35; }
@media (hover: hover) and (pointer: fine) {
  .tl-a:hover { color: var(--ink); transform: translateX(2px); }
  .tl-a:hover i { transform: scale(1.35); }
}

/* ---------- 版本卡片 ---------- */
.vers { display: flex; flex-direction: column; gap: 22px; min-width: 0; overflow-anchor: none; }
.ver { position: relative; scroll-margin-top: var(--scroll-off, calc(var(--nav-h) + 24px)); outline-offset: 4px; border-radius: 26px; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.ver:focus { outline: none; }
.ver:focus-visible { outline: 2px solid var(--indigo); }
.ver-big { margin: 18px 0; padding: 40px; background: var(--surf); border: 1px solid rgba(226, 217, 200, .8); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; align-items: start; min-height: 260px; }
.ver-big + .ver-big { margin-top: 14px; }
.ver:first-of-type { margin-top: 0; }
.ver-no { color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.ver-title { text-wrap: balance; }
.ver-when { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; font-size: 16px; color: var(--text); }
.ver-when time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ver-day { color: var(--muted); font-size: 15px; white-space: nowrap; }
.ver-day .num { font-weight: 500; }

.ver-big .ver-no { display: inline-block; font-size: 46px; line-height: 1.1; vertical-align: middle; }
.ver-big .ver-when { display: flex; margin-top: 10px; }
.ver-big .ver-title { margin-top: 20px; font-size: 26px; line-height: 1.35; }

/* 标签 */
.ver-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plat-tag, .beta, .ver:first-of-type .ver-tags::before {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 99px; font-size: 14px; line-height: 1; font-weight: 500;
}
.plat-tag { background: rgba(27, 26, 23, .05); color: var(--text); }
.beta { position: relative; border: 1px dashed #B9A988; color: #7A5F2C; background: var(--card); cursor: help; }
.ver:first-of-type .ver-tags::before { content: "最新"; background: var(--indigo); color: #fff; }
.beta-tip {
  position: absolute; z-index: 5; left: -6px; bottom: calc(100% + 10px); width: max-content; max-width: 206px;
  padding: 9px 14px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.96); transform-origin: 34px 100%; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.beta-tip::after { content: ""; position: absolute; top: 100%; left: 30px; border: 6px solid transparent; border-top-color: var(--ink); }
.beta:hover .beta-tip, .beta:focus-visible .beta-tip, .beta.open .beta-tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.ver-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ver-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; color: var(--ink); font-size: 16px; line-height: 1.6; }
.tag { display: inline-block; padding: 0 8px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; line-height: 22px; font-weight: 500; white-space: nowrap; }
.tag-add { background: var(--indigo-l); color: var(--indigo-d); }
.tag-opt { background: #EBE2D0; color: #5F5646; }
.tag-fix { border-color: #BFB49F; color: var(--text); }
.ver-note { grid-column: 1 / -1; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 8px; align-items: start; font-size: 16px; line-height: 1.6; color: var(--text); }
.ver-note svg { width: 20px; height: 20px; margin-top: 3px; color: var(--indigo); }
.ver-note b { color: var(--ink); font-weight: 500; }

/* 复制链接（脚本加上） */
.ver-copy { width: 36px; height: 36px; border-radius: 99px; display: inline-grid; place-items: center; color: var(--muted); vertical-align: middle; transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.ver-copy svg { width: 18px; height: 18px; }
.ver-copy:hover { background: rgba(27, 26, 23, .06); color: var(--ink); }
.ver-copy.ok { color: var(--indigo-d); background: var(--indigo-l); }
.ver-copy:active { transform: scale(.97); }
.ver-big .ver-copy { margin: 4px 0 0 8px; }

/* 左文右图；相邻两张有图的卡片换边（从最旧的一张数起，新增版本不会让旧的跟着翻面） */
.has-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-rows: auto 1fr auto; }
.has-shots > .ver-head { grid-column: 1; grid-row: 1; }
.has-shots > .ver-list { grid-column: 1; grid-row: 2; }
.has-shots > .ver-shots { grid-column: 2; grid-row: 1 / 3; align-self: center; }
@media (min-width: 761px) {
  .ver:nth-last-child(even of .has-shots) { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .ver:nth-last-child(even of .has-shots) > .ver-head, .ver:nth-last-child(even of .has-shots) > .ver-list { grid-column: 2; }
  .ver:nth-last-child(even of .has-shots) > .ver-shots { grid-column: 1; }
}
/* 没有截图的大卡片：左边版本，右边条目 */
.ver-big:not(.has-shots) > .ver-list { margin-top: 0; align-self: center; }

/* 最新一版 */
.ver-big:first-of-type { background: linear-gradient(160deg, #EDEEF6, #F4F1EC 70%); border-color: #CDD1EA; box-shadow: var(--shadow); padding: 44px; }
.ver-big:first-of-type .ver-no { font-size: 76px; line-height: 1; }
.ver-big:first-of-type .ver-copy { margin-top: 12px; }
.ver-big:first-of-type .ver-when { margin-top: 14px; font-size: 17px; }
.ver-big:first-of-type .ver-title { font-size: 44px; line-height: 1.25; margin-top: 22px; }
.ver-big:first-of-type:not(.has-shots) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ver-big:first-of-type:not(.has-shots) > .ver-list { grid-column: 1 / -1; margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.ver-plats { align-self: center; justify-self: end; display: flex; gap: 22px; color: var(--indigo-d); }
.ver-plats svg { width: 108px; height: 108px; padding: 24px; border-radius: 30px; background: rgba(255, 253, 248, .72); border: 1px solid #CDD1EA; stroke-width: 1.1; }

/* 光标聚光灯：暖白提亮 */
.ver-light { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ver-light i {
  position: absolute; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 254, 250, 1), rgba(255, 254, 250, .6) 45%, rgba(255, 254, 250, 0));
  opacity: 0; transition: opacity var(--t) var(--ease); will-change: transform;
}
.ver.lit > .ver-light i { opacity: 1; }
.ver-big > .ver-head, .ver-big > .ver-list, .ver-big > .ver-note, .ver-big > .ver-shots, .ver-big > .ver-plats, .ver-big > .ver-more { position: relative; }
.ver-big > .ver-head { z-index: 2; }

/* ---------- 截图 ---------- */
.ver-shots { min-width: 0; }
.ver-track {
  display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: -16px -18px 0; padding: 16px 18px 0; scroll-padding: 0 18px;
}
.ver-track::-webkit-scrollbar { display: none; }
.ver-track.dragging { scroll-snap-type: none; }
.ver-fig { flex: 0 0 100%; margin: 0; scroll-snap-align: center; perspective: 900px; user-select: none; }
.ver-fig figcaption { margin-top: 14px; padding-bottom: 10px; text-align: center; font-size: 13px; line-height: 20px; color: var(--muted); }
.ver-shot { box-shadow: var(--shadow-sm); cursor: zoom-in; will-change: transform; -webkit-user-drag: none; }
.ver-shot .crop { --cx: 0; --cy: 0; --cw: 1266; --ar: 1.5198; background: #E9E1D1; }
.ver-shot .crop::after { /* 骨架屏 */
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 253, 248, .75) 50%, transparent 70%);
}
.cl-js .ver-shot .crop img { transition: opacity var(--t) var(--ease); }
.cl-js .ver-shot:not(.loaded) .crop img { opacity: 0; }
.cl-js .ver-shot:not(.loaded) .crop::after { opacity: 1; animation: cl-shimmer 1.4s linear infinite; }
@keyframes cl-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ver-shot.away { opacity: 0; }
.ver-dots { display: flex; justify-content: center; }
.ver-dots button { width: 26px; height: 32px; display: grid; place-items: center; }
.ver-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--mask); transition: transform var(--t) var(--ease), background-color var(--t) var(--ease); }
.ver-dots .on i { background: var(--indigo); transform: scale(1.35); }

/* 自定义光标 */
.cl-cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; will-change: transform; }
.cl-cursor .drag-cursor { position: absolute; }
@media (hover: hover) and (pointer: fine) {
  .cl-cur .ver-shot { cursor: none; }
}

/* ---------- 小版本：一行 ---------- */
.ver-small { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.ver-small summary { display: grid; grid-template-columns: 88px 36px 204px minmax(0, 1fr) 20px; align-items: center; column-gap: 12px; min-height: 64px; padding: 10px 22px; border-radius: 18px; cursor: pointer; list-style: none; }
.ver-small .ver-no { grid-column: 1; font-size: 22px; line-height: 1.2; white-space: nowrap; }
.ver-small .ver-when { grid-column: 3; flex-wrap: nowrap; font-size: 15px; }
.ver-small .ver-title { grid-column: 4; font-size: 17px; line-height: 1.4; font-weight: 500; }
.ver-small .ver-chev { grid-column: 5; }
.ver-small .ver-copy { position: absolute; left: 120px; top: 14px; }
.ver-small .ver-body { position: relative; padding: 0 22px 22px; }
.ver-small .ver-list { margin-top: 4px; }
.ver-small .ver-tags { margin-top: 16px; }
.ver-ghost { position: absolute !important; left: 0; right: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .ver-big:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .ver-small:hover { transform: translateY(-2px); }
  .ver-small summary:hover .ver-chev { color: var(--indigo); }
}
.ver-small summary:active { transform: scale(.99); }

/* 展开 / 收起（只有手机用） */
.ver-more { display: none; }

/* 进场：类由脚本加 */
.cl-js .cl-pre { opacity: 0; transform: translateY(24px); }
.cl-js .cl-in { transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* ---------- 结尾 ---------- */
.cl-end { padding: 72px 0 112px; text-align: center; }
.cl-end h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; }
.cl-end-btns { margin-top: 30px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   平板：时间线收成一行版本号胶囊
   ========================================================= */
@media (max-width: 980px) {
  :root { --bar-h: 120px; }
  .tl { display: none; }
  .cl-js .cl-body { grid-template-columns: minmax(0, 1fr); }
  .cl-bar-in { grid-template-columns: minmax(0, 1fr); align-content: center; row-gap: 8px; }
  .flt { grid-column: 1; justify-self: center; }
  .vp { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .vp::-webkit-scrollbar { display: none; }
  .vp a {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 60px; min-height: 44px; padding: 0 14px; border-radius: 99px;
    background: var(--card); border: 1px solid var(--line); color: var(--ink); font-family: var(--num); font-size: 15px; font-weight: 500;
    transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  }
  .vp a small { font-size: 12px; color: var(--muted); }
  .vp a.on { background: var(--indigo-l); border-color: var(--indigo); color: var(--indigo-d); }
  .vp a.on small { color: var(--indigo-d); }
  .vp a:active { transform: scale(.97); }
  .mcal { grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px 6px; max-width: 700px; }
  .ver-big { padding: 32px; column-gap: 30px; }
}

/* 1024 左右：版本卡片窄一点 */
@media (min-width: 981px) and (max-width: 1140px) {
  :root { --tl-w: 190px; }
  .cl-bar-in, .cl-js .cl-body { column-gap: 28px; }
  .ver-big { padding: 32px; column-gap: 30px; }
  .ver-plats svg { width: 88px; height: 88px; padding: 20px; border-radius: 24px; }
  .ver-small summary { grid-template-columns: 82px 36px 196px minmax(0, 1fr) 20px; column-gap: 8px; padding: 10px 18px; }
  .ver-small .ver-copy { left: 106px; }
}

/* 屏幕不高时，时间线压紧一点 */
@media (min-width: 981px) and (max-height: 820px) {
  .tl-a { line-height: 18px; padding-top: 1px; padding-bottom: 1px; }
  .tl-a i { top: 10px; }
  .tl-g { padding-top: 5px; }
  .cl-hero { padding-top: calc(var(--nav-h) + 20px); }
  .cl-nums { margin-top: 12px; }
  .mcal { margin-top: 14px; }
  .mc { height: 30px; }
}

/* =========================================================
   手机
   ========================================================= */
@media (max-width: 760px) {
  :root { --bar-h: 104px; }
  .cl-hero { padding: calc(var(--nav-h) + 18px) 0 6px; }
  .cl-hero h1 { margin-top: 10px; font-size: 28px; line-height: 1.35; }
  .cl-hero .lead { margin-top: 4px; line-height: 1.5; }
  .cl-glow { width: 420px; height: 420px; margin: -210px 0 0 -210px; top: 34%; }
  .cl-nums { margin-top: 10px; justify-content: space-between; font-size: 16px; }
  .cl-nums li { flex: 1; padding: 0 4px; }
  .cl-nums .num { font-size: 32px; }

  /* 维护日历：每行 7 格、共 4 行，日期写在格子里 */
  .mcal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 12px; }
  .mc { height: 44px; border-radius: 10px; }
  .mc-d { position: absolute; left: 0; right: 0; bottom: 3px; height: auto; margin: 0; font-size: 11px; line-height: 14px; pointer-events: none; }
  .mc-cell.has .mc-d { color: rgba(255, 255, 255, .92); }
  .mcal-note { margin-top: 6px; }
  .mc-tip { font-size: 16px; padding: 4px 14px; }

  .upg { margin-top: 10px; }
  .upg summary { padding: 0 16px; }
  .upg-body { padding: 0 16px 16px; }

  .cl-bar-in { row-gap: 6px; }
  .flt { justify-self: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 2px; }
  .flt-thumb { left: 2px; top: 2px; bottom: 2px; width: calc((100% - 4px) / 4); }
  .flt-b { padding: 0 2px; min-height: 44px; }
  .flt-b .num { margin-left: 0; font-size: 13px; }
  .vp a { padding: 0 12px; }

  .cl-body { padding-top: 6px; padding-bottom: 24px; }
  .vers { gap: 14px; }
  .ver { border-radius: 22px; }
  .ver-big, .ver-big + .ver-big { margin: 0; padding: 22px 18px; display: block; min-height: 0; }
  .ver-big .ver-no { font-size: 34px; }
  .ver-big .ver-title { margin-top: 12px; font-size: 22px; }
  .ver-big .ver-when { margin-top: 4px; }
  .ver-big .ver-copy { margin: 0 0 0 2px; }
  .ver-copy { width: 44px; height: 44px; }
  .beta, .plat-tag, .ver:first-of-type .ver-tags::before { min-height: 30px; }
  .beta::before { content: ""; position: absolute; inset: -8px -6px; } /* 点击区 ≥44px */
  .ver-list, .ver-big:not(.has-shots) > .ver-list { margin-top: 12px; gap: 10px; }
  .ver-note { margin-top: 16px; padding-top: 14px; }

  /* 最新一版 */
  .ver-big:first-of-type { padding: 24px 18px 22px; }
  .ver-big:first-of-type .ver-no { font-size: 54px; }
  .ver-big:first-of-type .ver-copy { margin-top: 6px; }
  .ver-big:first-of-type .ver-title { font-size: 32px; margin-top: 14px; }
  .ver-big:first-of-type .ver-when { margin-top: 8px; font-size: 16px; }
  .ver-big:first-of-type:not(.has-shots) > .ver-list { margin-top: 16px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ver-plats { margin-top: 16px; gap: 12px; justify-self: start; }
  .ver-plats svg { width: 72px; height: 72px; padding: 16px; border-radius: 20px; }

  /* 截图：裁局部，露出下一张的边 */
  .ver-shots { margin-top: 18px; }
  .ver-track { margin: -8px -18px 0; padding: 8px 18px 0; gap: 12px; }
  .ver-fig { flex-basis: 100%; scroll-snap-align: start; }
  .ver-fig:not(:only-child) { flex-basis: 88%; }
  .ver-shot { padding: 4px; }
  .ver-shot .crop { --cx: var(--px); --cy: var(--py); --cw: var(--pw); --ar: var(--pr); }
  .ver-fig figcaption { margin-top: 8px; padding-bottom: 0; }
  .ver-dots button { width: 44px; height: 44px; }
  .ver-dots { margin-bottom: -10px; }

  /* 大版本默认收起 */
  .cl-js .is-fold .ver-tags, .cl-js .is-fold .ver-list li:not(.first), .cl-js .is-fold .ver-note, .cl-js .is-fold .ver-shots { display: none; }
  .cl-js .ver-more { display: flex; width: 100%; min-height: 44px; margin-top: 8px; align-items: center; justify-content: center; gap: 6px; border-radius: 99px; color: var(--indigo-d); font-size: 16px; font-weight: 500; }
  .ver-more:active { transform: scale(.97); }
  .ver-more svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
  .ver-more[aria-expanded="true"] svg { transform: rotate(90deg); }
  .is-fold .ver-more { margin-bottom: -10px; }
  .cl-js .is-fold { padding-bottom: 18px; }

  /* 小版本 */
  .ver-small { border-radius: 18px; }
  .ver-small summary { grid-template-columns: 76px 36px minmax(0, 1fr) 20px; column-gap: 6px; row-gap: 0; padding: 10px 18px 14px; min-height: 88px; }
  .ver-small .ver-no { font-size: 20px; grid-row: 1; min-height: 44px; display: flex; align-items: center; }
  .ver-small .ver-title { grid-column: 3; grid-row: 1; font-size: 16px; }
  .ver-small .ver-chev { grid-column: 4; grid-row: 1; }
  .ver-small .ver-when { grid-column: 1 / -1; grid-row: 2; font-size: 16px; line-height: 24px; }
  .ver-small .ver-copy { left: 96px; top: 10px; }
  .ver-small .ver-body { padding: 0 18px 18px; }

  .foot-links a { min-width: 44px; }
  .cl-end { padding: 40px 0 48px; }
  .cl-end-btns { flex-direction: column; }
  .cl-end-btns .btn { width: 100%; }
}

/* =========================================================
   减少动态效果：只保留淡入
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .cl-js .cl-pre { transform: none; }
  .cl-js .cl-in { transition: opacity .4s ease; }
  .ver, .tl-a, .tl-a i, .mc-on, .mc-on::before, .mc-tip, .beta-tip, .flt-thumb, .flt-b, .ver-chev, .ver-more svg, .ver-copy, .ver-dots i, .vp a, .ver-small summary { transition: none !important; }
  .ver:hover, .mc-on:hover, .tl-a:hover, .tl-a:hover i, .tl-a.on i, .flt-b:active, .ver-copy:active, .mc-on:active { transform: none !important; }
  .beta-tip { transform: none; transition: opacity .25s ease !important; }
  .mc-tip { transform: translate(calc(-50% + var(--sx, 0px)), 0); transition: opacity .25s ease !important; }
  .cl-cursor, .ver-light { display: none; }
  .cl-js .ver-shot:not(.loaded) .crop::after { animation: none; }
}
