/* 教程页：首屏就是目录，点开就是录屏。整页是早上的天色，播放器是一张白纸，页脚入夜。
   结构和交互由 tutorials.js 管（目录格、底栏目录钮和面板、搜索、全屏播放器、电脑侧栏）。 */

:root {
  --film: #F6F1E7;             /* 录屏自己的底色：播放器铺这个色，视频边缘看不出来 */
  --pen: #2E6CF6;              /* 纸上的钢笔蓝：选中、进度、高亮 */
  --sheet: #FBFCFF;
  --sheet-ink2: rgb(18 21 61 / .7);
  --sheet-ink3: rgb(18 21 61 / .5);
  --sheet-line: rgb(18 21 61 / .12);
}
.tut { --bar-h: 60px; padding: calc(var(--bar) + env(safe-area-inset-top)) 0 clamp(72px, 9vw, 120px); }
html { scroll-padding-top: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── 页头 ── */
.ttop { position: relative; padding-top: clamp(8px, 2vw, 40px); }
.ttop h1 { position: relative; }
@media (min-width: 960px) { .ttop .ph-clock { font-size: 9vw; } }
.ttop h1 { font-size: min(11.6vw, 96px); line-height: 1.06; }
.tlead { margin-top: 12px; color: var(--fg2); font-size: 17px; line-height: 1.65; }
.tfind {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 20px; padding: 0 18px;
  border: 0; border-radius: 99px; background: #fff; color: rgb(18 21 61 / .55);
  font: inherit; font-size: 16px; text-align: left; cursor: text;
  box-shadow: 0 10px 24px -18px rgb(18 21 61 / .6);
  -webkit-tap-highlight-color: transparent;
}
.tfind .gi { width: 20px; height: 20px; color: var(--ink); }

/* ── 目录格：十一个区 + 从头看一遍 ── */
.tindex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tindex > li { min-width: 0; }
.tix {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-content: center;
  min-height: 72px; height: 100%; padding: 12px 12px 12px 12px; border-radius: 16px;
  background: rgb(255 255 255 / .5); color: var(--ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: background .2s, transform .3s var(--ease);
}
.tix .gi { grid-row: 1 / span 2; align-self: start; margin-top: 1px; width: 26px; height: 26px; }
.tix b { font: 900 16.5px/1.25 var(--f-display); letter-spacing: -.01em; }
.tix span { grid-column: 2; margin-top: 3px; font-size: 13px; line-height: 1.4; color: rgb(18 21 61 / .66); word-break: keep-all; overflow-wrap: anywhere; }
.tix:hover { background: #fff; }
.tix:active { transform: scale(.98); }
.tix.is-on { background: #fff; }
.tix-all { background: var(--ink); color: #fff; }
.tix-all span { color: rgb(255 255 255 / .7); }
.tix-all:hover { background: #1d2160; }
.tix-all .gi { color: var(--moon); }

/* ── 区 ── */
.tsec { margin-top: clamp(56px, 8vw, 104px); scroll-margin-top: calc(var(--bar-h) + 6px); }
.tsec-hd h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(40px, 12vw, 84px); line-height: 1; }
.tsec-hd h2 .gi { width: .62em; height: .62em; flex: none; }
.tsec-hd p { margin-top: 14px; max-width: 34em; color: var(--fg2); font-size: 17px; line-height: 1.7; }
.tlead, .tsec-hd p { text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.ttext p, .titem p, .tp-how { text-wrap: pretty; }
.ui { font-weight: 600; color: inherit; }

.tfilm, .titem { position: relative; isolation: isolate; scroll-margin-top: calc(var(--bar-h) + 16px); }
.tfilm::before, .titem::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--pad) * -1);
  background: rgb(255 255 255 / .45); opacity: 0; transition: opacity .2s;
}
.tfilm:active::before { opacity: 1; }
.is-target::before { animation: tflash 2.2s ease; }
@keyframes tflash { 0%, 45% { opacity: 1; background: rgb(255 228 94 / .8); } 100% { opacity: 0; } }

/* 有视频的：缩略图像一张印出来的小照片 */
.tfilms { margin-top: 22px; border-top: 2px solid var(--fg); }
.tfilm {
  display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent;
}
.tthumb {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border: 3px solid #fff; border-radius: 12px; background: var(--film);
  box-shadow: 0 12px 20px -14px rgb(18 21 61 / .6);
}
/* 手机缩略图只取录屏里那块手机屏幕的上半截（540×960 封面里 x 100–440、y 172–625） */
.tthumb img { position: absolute; left: 0; top: 0; width: 158.82%; max-width: none; height: auto; transform: translate(-18.52%, -17.92%); }
.tthumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.tthumb.is-live video { opacity: 1; }
.tdur {
  position: absolute; left: 5px; bottom: 5px; z-index: 1; display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 7px 1px 5px; border-radius: 99px; background: rgb(18 21 61 / .82); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums;
}
.tdur .gi { width: 9px; height: 9px; }
.ttext h3 { margin: 2px 0 4px; font-size: 17px; line-height: 1.45; font-weight: 700; }
.topen { color: inherit; text-decoration: none; }
.topen::after { content: ""; position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.topen:focus-visible { outline: none; }
.tfilm:has(.topen:focus-visible) { outline: 3px solid var(--fg); outline-offset: 3px; border-radius: 8px; }
.ttext p { font-size: 15px; line-height: 1.7; color: var(--fg2); }
.pro {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 99px; background: var(--fg); color: var(--field);
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.7; vertical-align: 2px; white-space: nowrap;
}

/* 一句话的事 */
.tmore-t { margin-top: 36px; padding-bottom: 10px; font: 900 18px/1.3 var(--f-display); }
.titems { border-top: 1px solid var(--line); }
.titem { padding: 14px 0 15px; border-bottom: 1px solid var(--line); }
.titems > li:last-child { border-bottom: 0; }
.titem h4 { margin-bottom: 3px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.titem p { font-size: 15px; line-height: 1.7; color: var(--fg2); }

/* 收尾 */
.tend {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start;
  margin-top: clamp(64px, 9vw, 112px); padding-top: 40px; border-top: 2px solid var(--fg);
}
.tend-seal { width: 64px; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 6px 8px rgb(18 21 61 / .25)); }
.tend h2 { font-size: clamp(28px, 7vw, 48px); line-height: 1.15; }
.tend h2 + p { margin-top: 8px; color: var(--fg2); }
.tend .btn { margin-top: 20px; }
.tend .tnote { margin-top: 28px; font-size: 14px; color: var(--fg2); }

/* 底下的「目录」钮：划过首屏才出来 */
.tdock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: center;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom)); pointer-events: none;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.tdock.is-shown { transform: none; }
.tdock button {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 50px;
  padding: 0 22px 0 18px; border: 0; border-radius: 99px; background: var(--ink); color: #fff;
  font: inherit; font-size: 16px; cursor: pointer; box-shadow: 0 16px 30px -14px rgb(18 21 61 / .7);
  -webkit-tap-highlight-color: transparent; transition: transform .15s;
}
.tdock button:active { transform: scale(.97); }
.tdock .gi { width: 19px; height: 19px; color: var(--moon); }
.tdock b { font-weight: 600; }
.tdock span { opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdock span:not(:empty)::before { content: "·"; margin-right: 8px; opacity: .6; }

/* 搜索框与结果（目录面板、电脑侧栏共用） */
.tsearch {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 8px 0 16px;
  border-radius: 99px; background: #fff; color: var(--ink); cursor: text;
  box-shadow: inset 0 0 0 1.5px var(--sheet-line); transition: box-shadow .2s;
}
.tsearch:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.tsearch .gi { width: 19px; height: 19px; }
.tsearch input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; outline: none; color: var(--ink); font: inherit; font-size: 16px; caret-color: var(--pen); }
.tsearch input::placeholder { color: var(--sheet-ink3); opacity: 1; }
.tindex[hidden], .tresults[hidden], .tside-nav[hidden] { display: none; }
.tres-n { padding: 12px 0 6px; font-size: 13px; color: var(--sheet-ink3); }
.tres a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 12px 0 13px; border-bottom: 1px solid var(--sheet-line); color: var(--ink); text-decoration: none;
}
.tres b { grid-column: 1; font-size: 16px; font-weight: 700; line-height: 1.45; }
.tres span { grid-column: 1; font-size: 14px; color: var(--sheet-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tres mark { background: var(--moon); color: inherit; border-radius: 3px; padding: 0 1px; }
.tres i { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; }
.tres i .gi { width: 13px; height: 13px; margin-left: 2px; }
.tres-empty { padding: 20px 0; color: var(--sheet-ink2); font-size: 15px; line-height: 1.75; }

/* 目录面板（手机）：一张从下面拉上来的白纸 */
.tsheet {
  position: fixed; inset: auto 0 0; width: 100%; max-width: 640px; height: auto; max-height: min(88dvh, 780px);
  margin: 0 auto; padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: var(--sheet); color: var(--ink); overscroll-behavior: contain;
  box-shadow: 0 -24px 60px -24px rgb(18 21 61 / .5);
}
.tsheet[open] { display: flex; flex-direction: column; animation: sheet-up .5s var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } }
.tsheet.is-searching { height: min(88dvh, 780px); }
.tsheet::backdrop { background: rgb(21 26 85 / .45); }
.ts-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 22px 16px 10px 22px; touch-action: none; }
.ts-grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--sheet-line); }
.ts-head h2 { font-size: 26px; }
.tclose {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(18 21 61 / .06); color: var(--ink); cursor: pointer;
}
.tclose .gi { width: 16px; height: 16px; }
.tsheet .tsearch { margin: 4px 20px 0; }
.ts-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 20px calc(24px + env(safe-area-inset-bottom)); }
.ts-body .tindex { margin-top: 14px; }
.ts-body .tix { background: rgb(167 216 255 / .35); }
.ts-body .tix:hover, .ts-body .tix.is-on { background: var(--sky); }
.ts-body .tix-all { background: var(--ink); }
html.t-locked { overflow: hidden; }

/* 播放器：手机全屏，视频撑满高度，下面一条拇指栏 */
.tplayer {
  width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--film); color: var(--ink); overscroll-behavior: contain;
}
.tplayer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.tplayer::backdrop { background: rgb(21 26 85 / .8); }
.tp-stage {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; z-index: 0;
  padding: max(8px, env(safe-area-inset-top)) 8px 4px; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.tp-stage:focus { outline: none; }
.tp-frame { position: relative; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; }
.tp-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--film); opacity: 0; }
.tp-frame video.is-cur { opacity: 1; }
.tp-paused {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgb(18 21 61 / .62); color: #fff; opacity: 0; transform: scale(.85);
  transition: opacity .2s, transform .25s var(--ease); pointer-events: none;
}
.tp-paused .gi { width: 26px; height: 26px; margin-left: 4px; }
.tplayer.is-paused .tp-paused { opacity: 1; transform: none; }
.tp-progress { position: absolute; left: 14%; right: 14%; bottom: 1px; z-index: 2; height: 3px; border-radius: 3px; background: rgb(18 21 61 / .12); overflow: hidden; }
.tp-progress i { position: absolute; inset: 0; border-radius: inherit; background: var(--pen); transform-origin: left; transform: scaleX(0); }
.tp-side { position: relative; z-index: 1; background: var(--sheet); border-top: 1px solid var(--sheet-line); }
.tp-close, .tp-keys { display: none; }
.tp-copy {
  position: absolute; left: 0; right: 0; bottom: 100%; padding: 18px 22px; background: var(--sheet); border-top: 1px solid var(--sheet-line);
  box-shadow: 0 -18px 30px -26px rgb(18 21 61 / .55); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s, transform .3s var(--ease), visibility .22s;
}
.tplayer.is-reading .tp-copy { opacity: 1; visibility: visible; transform: none; }
.tp-copy .tp-where, .tp-copy h2 { display: none; }
.tp-how { font-size: 16px; line-height: 1.75; color: var(--sheet-ink2); }
.tp-how .ui { color: var(--ink); }
.tp-list { display: none; }
.tp-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 44px; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.tp-info {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px; min-height: 44px; padding: 0 2px;
  border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.tp-info small { grid-column: 1; font-size: 12px; line-height: 1.35; color: var(--sheet-ink3); font-variant-numeric: tabular-nums; }
.tp-info b { grid-column: 1; font-size: 16px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-chev { grid-column: 2; grid-row: 1 / span 2; width: 14px; height: 14px; color: var(--sheet-ink3); transition: transform .25s; }
.tplayer.is-reading .tp-chev { transform: rotate(180deg); }
.tp-step {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(18 21 61 / .07); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s, opacity .2s;
}
.tp-step:active { transform: scale(.94); }
.tp-step .gi { width: 17px; height: 17px; }
.tp-next { background: var(--ink); color: #fff; }
.tp-step:disabled { opacity: .3; cursor: default; }
.tp-step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 从 App 里打开（SFSafariViewController，约 390×640）也要一屏看全十二格 */
@media (max-width: 599px) and (max-height: 760px) {
  .ttop { padding-top: 12px; }
  .ttop h1 { font-size: min(11vw, 44px); }
  .tlead { margin-top: 6px; font-size: 15px; }
  .tfind { min-height: 44px; margin-top: 12px; }
  .tindex { margin-top: 12px; gap: 6px; }
  .tix { min-height: 58px; padding-block: 8px; }
  .tix b { font-size: 16px; }
  .tix .gi { width: 24px; height: 24px; }
}

@media (min-width: 600px) {
  .tindex { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tfilm { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
}
@media (min-width: 720px) and (max-width: 959px) {
  .tfilms, .titems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .tfilm::before, .titem::before { inset: 0 -12px; border-radius: 12px; }
  .titems > li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* 电脑：左边钉住目录，右边录屏卡片墙 */
.tside { display: none; }
@media (min-width: 960px) {
  .tut-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); column-gap: clamp(40px, 5vw, 80px); align-items: start; }
  .tside {
    display: block; position: sticky; top: calc(var(--bar-h) + 24px); margin-top: clamp(24px, 4vw, 56px);
    max-height: calc(100vh - var(--bar-h) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  .tside-in { padding: 4px 4px 24px 2px; }
  .tside .tsearch { min-height: 46px; }
  .tside .tsearch input { height: 44px; font-size: 15px; }
  .tside .tres a { padding: 9px 0 10px; border-color: var(--line); color: var(--fg); }
  .tside .tres span, .tside .tres-n, .tside .tres-empty { color: var(--fg2); }
  .tside-nav ol { display: grid; gap: 2px; margin-top: 16px; }
  .tside-nav a {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
    color: var(--fg); font-size: 16px; font-weight: 500; text-decoration: none; transition: background .15s;
  }
  .tside-nav a .gi { width: 22px; height: 22px; }
  .tside-nav a:hover { background: rgb(255 255 255 / .45); }
  .tside-nav a.is-on { background: #fff; font-weight: 700; }
  .tside-nav .tside-all { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; }
  .tside-nav .tside-all .gi { color: var(--moon); }
  .tside-nav .tside-all:hover { background: #1d2160; }

  .tfind, .ttop .tindex, .tdock { display: none; }
  .tfilms { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 40px 24px; margin-top: 30px; border: 0; }
  .tfilm { display: block; padding: 0; border: 0; }
  .tfilm::before { display: none; }
  .tthumb { aspect-ratio: 9 / 16; border-width: 5px; border-radius: 20px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
  .tfilm:nth-child(3n+1) .tthumb { --r: -1.4deg; }
  .tfilm:nth-child(3n+2) .tthumb { --r: 1deg; }
  .tthumb { transform: rotate(var(--r, -.4deg)); }
  .tthumb img { inset: 0; width: 100%; height: 100%; transform: none; object-fit: cover; }
  .tfilm:hover .tthumb { transform: rotate(0) translateY(-6px); box-shadow: 0 30px 40px -26px rgb(18 21 61 / .7); }
  .tfilm.is-target .tthumb { animation: tring 2.2s ease; }
  @keyframes tring { 0%, 50% { box-shadow: 0 0 0 4px var(--moon), 0 24px 36px -28px rgb(18 21 61 / .7); } }
  .tdur { left: 10px; bottom: 10px; font-size: 12px; padding: 2px 8px 2px 6px; }
  .ttext h3 { margin: 16px 0 6px; font-size: 17px; }
  .ttext p { font-size: 15px; }
  .tfilm:has(.topen:focus-visible) { outline: none; }
  .tfilm:has(.topen:focus-visible) .tthumb { outline: 3px solid var(--ink); outline-offset: 3px; }
  .tmore-t { margin-top: 48px; }
  .titems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
  .titem::before { inset: 0 -14px; border-radius: 12px; }
  .titems > li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
/* ── 首格：这一版新来的（晴天黄，占满一行，右边叠三张小片子） ── */
.tindex > .tix-new-li { grid-column: 1 / -1; }
.tix-new { grid-template-columns: auto minmax(0, 1fr) auto; min-height: 92px; padding: 14px 14px 14px 14px; background: var(--sun); overflow: hidden; }
.tix-new .gi { width: 28px; height: 28px; }
.tix-new b { font-size: 19px; }
.tix-new span { color: rgb(18 21 61 / .72); }
.tix-new:hover, .ts-body .tix-new, .ts-body .tix-new:hover, .ts-body .tix-new.is-on { background: var(--sun); }
.tix-new:hover { filter: brightness(1.03); }
.tix-stack { grid-column: 3; grid-row: 1 / span 2; align-self: center; position: relative; width: 82px; height: 64px; margin: -6px -4px -6px 4px; }
.tix-stack img {
  position: absolute; top: 2px; width: 34px; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border: 2px solid #fff; border-radius: 6px; box-shadow: 0 6px 10px -6px rgb(18 21 61 / .6);
}
.tix-stack img:nth-child(1) { left: 0; transform: rotate(-9deg); }
.tix-stack img:nth-child(2) { left: 24px; top: -2px; z-index: 1; transform: rotate(2deg); }
.tix-stack img:nth-child(3) { left: 48px; transform: rotate(10deg); }

/* ── 新功能：一条晴天黄的带子，按组排，每组第一段是会自己动的大卡片 ── */
.tnew { margin-inline: calc(var(--pad) * -1); padding: clamp(40px, 6vw, 64px) var(--pad) clamp(44px, 6vw, 72px); }
.tsec-hd .tver {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 4px 14px 4px 4px; border-radius: 99px;
  margin-top: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600;
}
.tsec-hd .tver b { padding: 1px 9px; border-radius: 99px; background: var(--sun); color: var(--ink); font-size: 13px; }
.tgroup { margin-top: clamp(36px, 5vw, 56px); }
.tgroup-t { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--fg); font: 900 21px/1.3 var(--f-display); letter-spacing: -.01em; }
.tgroup-t .gi { width: 26px; height: 26px; flex: none; }
.tnew .tfilms { margin-top: 0; border-top: 0; }
.tnew .titems { border-top: 0; }
.tfeat { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); column-gap: 20px; align-items: center; padding: 22px 0 26px; }
/* 手机：左边大卡片、右边标题和按钮，说明另起一行占满 */
.tfeat .ttext { display: contents; }
.tfeat .tthumb { grid-row: 1; grid-column: 1; }
.tfeat .tfeat-head { grid-row: 1; grid-column: 2; align-self: center; }
.tfeat .ttext > p:not(.tfeat-n) { grid-column: 1 / -1; margin-top: 16px; }
.tgroup:nth-of-type(even) .tfeat .tfeat-head { grid-column: 1; }
.tgroup:nth-of-type(even) .tfeat .tthumb { grid-column: 2; }
.tfeat .tthumb {
  aspect-ratio: 9 / 16; border-width: 4px; border-radius: 18px; transform: rotate(-1.8deg);
  box-shadow: 0 24px 30px -20px rgb(18 21 61 / .55);
}
.tgroup:nth-of-type(even) .tfeat .tthumb { transform: rotate(1.8deg); }
.tfeat .tthumb img { inset: 0; width: 100%; height: 100%; transform: none; object-fit: cover; }
.tfeat-n { font: 900 13px/1 var(--f-display); letter-spacing: .1em; color: var(--fg2); }
.tfeat .ttext h3 { margin: 10px 0 0; font-size: 22px; line-height: 1.35; }
.tfeat .ttext p { font-size: 15px; line-height: 1.7; }
.tfeat .ttext p.tfeat-n { font-size: 13px; line-height: 1; }
.tfeat-go {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-top: 14px; padding: 0 16px 0 10px; border-radius: 99px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 600;
}
.tfeat-go .gi { width: 20px; height: 20px; color: var(--sun); }
.tfeat:active .tfeat-go { transform: scale(.97); }
@media (min-width: 720px) and (max-width: 959px) {
  .tfeat { grid-column: 1 / -1; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; }
  .tfeat .ttext { display: block; grid-row: 1; grid-column: 2; }
  .tfeat .ttext > p:not(.tfeat-n) { margin-top: 8px; }
  .tgroup:nth-of-type(even) .tfeat .ttext { grid-column: 1; }
}
@media (min-width: 960px) {
  .tnew { margin-inline: 0; margin-top: clamp(48px, 5vw, 72px); padding-inline: clamp(32px, 4vw, 52px); border-radius: 32px; }
  .tfeat { grid-column: 1 / -1; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 44px; align-items: center; padding: 8px 0 4px; }
  .tfeat .ttext { display: block; grid-row: 1; grid-column: 2; }
  .tfeat .ttext > p:not(.tfeat-n) { margin-top: 0; }
  .tgroup:nth-of-type(even) .tfeat .ttext { grid-column: 1; }
  .tfeat .tthumb { --r: -2deg; border-width: 5px; border-radius: 22px; }
  .tgroup:nth-of-type(even) .tfeat { grid-template-columns: minmax(0, 1fr) 236px; }
  .tgroup:nth-of-type(even) .tfeat .tthumb { --r: 2deg; order: 2; }
  .tfeat .ttext h3 { margin: 12px 0 10px; font-size: 28px; }
  .tfeat .ttext p { font-size: 17px; max-width: 30em; }
  .tfeat:hover .tthumb { transform: rotate(0) translateY(-6px); }
  .tnew .tfilms { margin-top: 28px; }
}
/* 电脑上的播放器：左视频右文字，键盘左右切换 */
@media (min-width: 960px) and (min-height: 600px) {
  .tplayer { width: min(1120px, 94vw); height: min(92vh, 940px); margin: auto; border-radius: 28px; overflow: hidden; box-shadow: 0 60px 120px -50px rgb(10 12 40 / .85); }
  .tplayer[open] { grid-template-rows: minmax(0, 1fr); grid-template-columns: auto minmax(340px, 1fr); animation: pop .5s var(--ease) both; }
  @keyframes pop { from { transform: scale(.96); opacity: 0; } }
  .tp-stage { padding: 22px 6px 22px 22px; touch-action: auto; }
  .tp-side { display: flex; flex-direction: column; border-top: 0; border-left: 1px solid var(--sheet-line); padding: 76px 40px 30px; }
  .tp-close { display: grid; position: absolute; top: 18px; right: 18px; }
  .tp-copy { position: static; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: flex; flex-direction: column; min-height: 0; flex: 1; }
  .tp-copy .tp-where { display: block; margin-top: 28px; padding: 14px 0 6px; border-top: 1px solid var(--sheet-line); font-size: 13px; color: var(--sheet-ink3); font-variant-numeric: tabular-nums; }
  .tp-copy h2 { display: block; margin: 0 0 16px; font: 700 clamp(26px, 2.4vw, 34px)/1.3 var(--f-body); letter-spacing: 0; }
  .tp-how { font-size: 17px; line-height: 1.85; }
  .tp-list { display: grid; align-content: start; margin: 0 0 20px; overflow-y: auto; }
  .tp-list button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--sheet-ink2); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
  .tp-list button span { width: 1.4em; flex: none; font-size: 12px; color: var(--sheet-ink3); font-variant-numeric: tabular-nums; }
  .tp-list button:hover { background: rgb(18 21 61 / .05); color: var(--ink); }
  .tp-list button[aria-current] { color: var(--ink); font-weight: 700; background: var(--sky); }
  .tp-bar { margin-top: auto; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; }
  .tp-close-m, .tp-info { display: none; }
  .tp-step { display: flex; align-items: center; gap: 12px; width: auto; height: auto; min-height: 68px; padding: 12px 18px; border-radius: 18px; text-align: left; }
  .tp-step:hover:not(:disabled) { background: rgb(18 21 61 / .1); }
  .tp-next:hover:not(:disabled) { background: #1d2160; }
  .tp-step span { position: static; width: auto; height: auto; overflow: hidden; clip-path: none; display: grid; min-width: 0; flex: 1; }
  .tp-next span { text-align: right; }
  .tp-step small { font-size: 12px; opacity: .7; }
  .tp-step b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-keys { display: block; margin-top: 14px; font-size: 12px; color: var(--sheet-ink3); text-align: center; }
  .tp-keys kbd { font: inherit; padding: 0 5px; border-radius: 5px; background: rgb(18 21 61 / .07); }
}
@media (prefers-reduced-motion: reduce) {
  .tdock, .tp-copy, .tp-paused, .tthumb, .tthumb video, .tp-chev { transition: none; }
  .tfeat .tthumb, .tgroup:nth-of-type(even) .tfeat .tthumb { transform: none; }
  .is-target::before, .tfilm.is-target .tthumb { animation: none; }
}
