/* 那天：白底黑线的「一天档案」。细线框、大量留白、英文小字装饰；没有大字、没有大按钮、没有阴影。 */
.td-overlay {
    --td-bg: #ffffff; --td-ink: #111111; --td-sub: #8c8c8c; --td-soft: #4a4a4a;
    --td-line: rgba(17, 17, 17, .13); --td-rule: rgba(17, 17, 17, .86); --td-wash: rgba(17, 17, 17, .035);
    --td-card: rgba(17, 17, 17, .2); --td-glint: rgba(17, 17, 17, .42); --td-card-bg: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%); --td-lift: 0 14px 26px -22px rgba(0, 0, 0, .45);
    --td-serif: "Iowan Old Style", "Palatino Linotype", "Noto Serif", Georgia, "Times New Roman", serif;
    position: fixed; inset: 0; z-index: 12041; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
    background: var(--td-bg); color: var(--td-ink); font-family: inherit; -webkit-font-smoothing: antialiased;
}
[data-ui="dark"] .td-overlay, .dark-mode .td-overlay {
    --td-bg: #0f0f0f; --td-ink: #f1f1f1; --td-sub: #7d7d7d; --td-soft: #b8b8b8;
    --td-line: rgba(255, 255, 255, .14); --td-rule: rgba(255, 255, 255, .8); --td-wash: rgba(255, 255, 255, .05);
    --td-card: rgba(255, 255, 255, .2); --td-glint: rgba(255, 255, 255, .6); --td-card-bg: linear-gradient(180deg, #151515 0%, #101010 100%); --td-lift: none;
}
.td-overlay.is-open { visibility: visible; opacity: 1; }
.td-overlay button { font-family: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.td-overlay i { font-style: italic; }
.td-panel { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); background: var(--td-bg); overflow: hidden; }

/* 刊头：只有一个。返回 / 日期 / 更多在同一行，下面是 21 天刻度尺（刻度越高 = 那天已翻开过），底部一条细线 */
.td-mast { flex: none; width: calc(100% - 36px); max-width: 524px; margin: 0 auto; padding: 4px 0 10px; border-bottom: 1px solid var(--td-rule); }
.td-mrow { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; }
.td-ib { width: 34px; height: 34px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; margin-left: -8px; }
.td-ib[data-td="more"] { font-size: 15px; letter-spacing: 1px; padding: 0 0 5px; margin: 0 -8px 0 0; }
.td-mc { text-align: center; }
.td-md { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.td-md i { font-family: var(--td-serif); font-size: 11.5px; color: var(--td-sub); letter-spacing: .04em; }
.td-md b { font-weight: 500; font-size: 13px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.td-mw { display: block; margin-top: 2px; font-size: 10.5px; color: var(--td-sub); letter-spacing: .06em; min-height: 1.3em; }
.td-ticks { display: flex; align-items: flex-end; height: 24px; margin-top: 6px; touch-action: none; }
.td-tk { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.td-tk i { display: block; width: 1px; height: 5px; background: var(--td-ink); opacity: .28; transition: height .25s, opacity .25s; }
.td-tk.has i { height: 10px; opacity: .7; }
.td-tk.on i { width: 1.5px; height: 17px; opacity: 1; }

.td-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
#td-body { max-width: 524px; margin: 0 auto; height: 100%; }
.td-page { height: 100%; }

/* ── 模块：每个格子固定大小，内容在格子里自己滑动 ── */
.td-grid { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.td-r2 { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 12px; flex: 1 1 0; min-height: 150px; max-height: 300px; }
.td-r1 { display: flex; flex: 1.3 1 0; min-height: 200px; max-height: 380px; }
.td-r1 > .td-mod { flex: 1; }
.td-r2b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: .85 1 0; min-height: 140px; max-height: 240px; }
.td-mod { display: flex; flex-direction: column; min-height: 0; position: relative; overflow: hidden; border: 1px solid var(--td-card); border-radius: 14px; padding: 12px 13px 0; background: var(--td-card-bg); box-shadow: var(--td-lift); min-width: 0; box-sizing: border-box; }
.td-h { flex: none; display: flex; align-items: baseline; gap: 7px; margin: 0 0 9px; padding-bottom: 7px; border-bottom: .5px solid var(--td-line); font-weight: 400; }
.td-h::after { content: attr(data-n); margin-left: auto; font-family: var(--td-serif); font-style: italic; font-size: 10px; color: var(--td-sub); letter-spacing: .08em; }
.td-dyh .td-h { border-bottom: 0; padding-bottom: 0; margin-bottom: 4px; }
.td-dyh .td-h::after { display: none; }
.td-dyh { padding-bottom: 8px; border-bottom: .5px solid var(--td-line); margin-bottom: 9px !important; }
.td-h i { font-family: var(--td-serif); font-size: 12.5px; letter-spacing: .02em; }
.td-h span { font-size: 10px; color: var(--td-sub); letter-spacing: .14em; }
.td-in { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 18px; -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), transparent); mask-image: linear-gradient(#000 calc(100% - 20px), transparent); }
.td-in::-webkit-scrollbar { display: none; }

/* 时间线：竖轴 + 圆点，点越实 = 那一刻心情越好 */
.td-tlist, .td-plist { list-style: none; margin: 0; padding: 0; }
.td-ti { position: relative; display: grid; grid-template-columns: 28px 9px minmax(0, 1fr); column-gap: 6px; padding-bottom: 11px; cursor: pointer; }
.td-ti:last-child { padding-bottom: 0; }
.td-ti::before { content: ''; position: absolute; left: 38.5px; top: 12px; bottom: -1px; width: 1px; background: var(--td-line); }
.td-ti:last-child::before { display: none; }
.td-tt { font-size: 10px; color: var(--td-sub); font-variant-numeric: tabular-nums; padding-top: 2px; letter-spacing: .02em; }
.td-tdot { position: relative; width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--td-ink); background: var(--td-bg); box-sizing: border-box; }
.td-tdot::after { content: ''; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--td-ink); opacity: var(--m, .5); }
.td-tb { min-width: 0; }
.td-tb b { font-size: 11.5px; font-weight: 500; line-height: 1.5; }
.td-tb em { display: block; font-family: var(--td-serif); font-size: 10.5px; color: var(--td-sub); margin: 1px 0 0; }
.td-tb p { display: none; margin: 3px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--td-soft); }
.td-ti.is-open .td-tb p, .td-pi.is-open .td-pd { display: block; animation: td-fade .35s ease; }
.td-you { display: inline-block; margin-left: 6px; font-family: var(--td-serif); font-style: italic; font-size: 10px; color: var(--td-ink); text-decoration: none; border-bottom: .5px solid var(--td-ink); line-height: 1.2; }

/* 社交圈：今日出场人物 */
.td-pi { padding: 0 0 9px; margin: 0 0 9px; border-bottom: .5px solid var(--td-line); cursor: pointer; }
.td-pi:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.td-pn { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; }
.td-pn b { font-size: 11.5px; font-weight: 500; }
.td-pn em { font-size: 10.5px; color: var(--td-sub); }
.td-pc { margin-left: auto; font-family: var(--td-serif); font-style: italic; font-size: 10px; color: var(--td-sub); }
.td-pl { margin: 3px 0 0; font-size: 10.5px; line-height: 1.65; color: var(--td-soft); }
.td-pd { display: none; margin: 4px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--td-sub); }
.td-none .td-pl { color: var(--td-sub); }

/* 小日记：整页的重心，最大一块 */
.td-dy { padding: 12px 14px 0; }
.td-dyh { flex: none; display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.td-dyh .td-h { margin-bottom: 4px; }
.td-av { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--td-bg), 0 0 0 4px var(--td-rule); margin: 3px; display: block; }
.td-av-ph { display: flex; align-items: center; justify-content: center; font-size: 14px; background: var(--td-wash); }
.td-dm { margin: 0; font-size: 10px; color: var(--td-sub); letter-spacing: .08em; }
.td-dtext p { margin: 0; text-indent: 2em; font-size: 12px; line-height: 1.9; color: var(--td-ink); }
.td-dtext p + p { margin-top: 2px; }
.td-c { position: relative; }
.td-about { margin-top: 12px; padding-top: 9px; border-top: .5px solid var(--td-line); }
.td-about i { display: block; font-family: var(--td-serif); font-size: 11.5px; margin-bottom: 3px; }
.td-about span { display: block; font-size: 10.5px; color: var(--td-sub); letter-spacing: .06em; }
.td-about p { margin: 6px 0 0; font-size: 12px; line-height: 1.8; color: var(--td-soft); }

/* 收藏品：像博物馆标本，一天一件，带编号 */
.td-clno { font-family: var(--td-serif); font-style: italic; font-size: 13.5px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.td-cln { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 500; line-height: 1.5; }
.td-ck { display: inline-block; margin-top: 7px; padding: 1px 7px; border: .5px solid var(--td-rule); border-radius: 1px; font-size: 10px; letter-spacing: .1em; color: var(--td-soft); }
.td-cld { margin: 7px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--td-soft); }
.td-clo { display: block; margin-top: 9px; font-family: var(--td-serif); font-style: italic; font-size: 10.5px; color: var(--td-sub); }

.td-frame { display: none; }
.td-clbox { display: block; }

/* 今日一句 */
.td-line { margin: 2px 0 0; font-size: 11.5px; line-height: 1.85; }
.td-line::before { content: '\201C'; font-family: var(--td-serif); margin-right: 2px; color: var(--td-sub); }
.td-line::after { content: '\201D'; font-family: var(--td-serif); margin-left: 2px; color: var(--td-sub); }
.td-tags { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-top: 14px; }
.td-tags span { font-size: 10.5px; color: var(--td-sub); letter-spacing: .04em; }

/* ── 空状态 / 生成中 / 出错 ── */
.td-empty, .td-load { min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 12px; }
.td-e1, .td-l1 { font-family: var(--td-serif); font-size: 15px; letter-spacing: .03em; }
.td-e2 { margin: 12px 0 0; font-size: 12.5px; }
.td-e3 { margin: 8px 0 0; font-size: 11px; line-height: 1.8; color: var(--td-sub); max-width: 300px; }
.td-link { margin-top: 20px; padding: 7px 20px; border: 1px solid var(--td-rule); border-radius: 0; background: transparent; font-size: 12px; letter-spacing: .12em; cursor: pointer; transition: background .2s, color .2s; }
.td-link:hover, .td-link:active { background: var(--td-ink); color: var(--td-bg); }
.td-bar { position: relative; display: block; width: 120px; height: 1px; margin: 16px 0 14px; background: var(--td-line); overflow: hidden; }
.td-bar::after { content: ''; position: absolute; top: 0; left: 0; width: 38px; height: 1px; background: var(--td-ink); animation: td-bar 1.6s ease-in-out infinite; }
.td-cap { margin: 0; font-size: 11.5px; color: var(--td-sub); letter-spacing: .12em; }
.td-cap.is-in { animation: td-fade .6s ease; }
@keyframes td-bar { 0% { transform: translateX(-40px); } 100% { transform: translateX(122px); } }
@keyframes td-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ── 格子的小装饰：收藏品像博物馆标签（虚线内框），今日一句垫一个淡淡的大引号 ── */
.td-cl { padding: 14px 17px 0; }
.td-cl::before { content: ''; position: absolute; inset: 5px; border: .5px dashed var(--td-line); border-radius: 10px; pointer-events: none; }
.td-sm::before { content: '\201C'; position: absolute; right: 12px; bottom: -22px; font-family: var(--td-serif); font-size: 104px; line-height: 1; color: var(--td-wash); pointer-events: none; }
.td-scene .td-mod { background: none; box-shadow: none; border-radius: 0; }
.td-scene .td-mod::before, .td-scene .td-mod::after, .td-scene .td-h::after, .td-scene .td-avw::before { display: none; }
.td-scene .td-h { border-bottom: 0; padding-bottom: 0; }
.td-scene .td-dyh { border-bottom: 0; padding-bottom: 0; }

/* ── 今日一句：点一下，原有内容模糊淡去，浮出他最说不出口的一段话（只在聚拢页） ── */
.td-page .td-sm { cursor: pointer; }
.td-sm > .td-h, .td-sm > .td-in { transition: filter .75s ease, opacity .75s ease; }
.td-sm.is-secret > .td-h, .td-sm.is-secret > .td-in { filter: blur(8px); opacity: .16; }
.td-secret { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 12px 13px 0; opacity: 0; filter: blur(9px); pointer-events: none; transition: opacity .8s ease .1s, filter .9s ease .1s; }
.td-sm.is-secret .td-secret { opacity: 1; filter: none; }
/* 说不出口比较长时：浮层要能接收触摸，里面的 .td-in 才滑得动（原来 pointer-events:none 把滑动也挡掉了） */
.td-sm.is-secret .td-secret { pointer-events: auto; }
.td-secret .td-in { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding-bottom: 26px; }
.td-secret .td-h i { font-style: italic; }
.td-sx { margin: 0; font-size: 11.5px; line-height: 1.95; color: var(--td-ink); }
.td-scene .td-secret { display: none; }

/* ── 常驻的小动画：都很轻，只在聚拢页里 ── */
@property --td-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
/* 1 每个格子的边框上，一道细光慢慢绕一圈（各格节奏不同） */
.td-page .td-mod::after { content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--td-a), transparent 0, transparent 84%, var(--td-glint) 96%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: td-spin 11s linear infinite; }
.td-page .td-sc::after { animation-duration: 13s; animation-delay: -4s; }
.td-page .td-dy::after { animation-duration: 16s; animation-delay: -9s; }
.td-page .td-cl::after { animation-duration: 12s; animation-delay: -2s; }
.td-page .td-sm::after { animation-duration: 14s; animation-delay: -7s; }
@keyframes td-spin { to { --td-a: 360deg; } }
/* 2 心情好的时间点，圆点轻轻“呼吸” */
.td-hi .td-tdot::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--td-ink); opacity: 0; animation: td-ping 3.6s ease-out infinite; }
@keyframes td-ping { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
/* 3 日记头像外一圈慢慢转的虚线 */
.td-avw { position: relative; flex: none; display: block; }
.td-page .td-avw::before { content: ''; position: absolute; inset: -3px; border: .5px dashed var(--td-sub); border-radius: 50%; animation: td-orbit 28s linear infinite; }
@keyframes td-orbit { to { transform: rotate(360deg); } }
/* 4 刻度尺上选中的那一格缓缓起伏；今日一句的标签轮流微亮 */
.td-tk.on i { animation: td-tick 3s ease-in-out infinite; }
@keyframes td-tick { 50% { height: 13px; } }
.td-page .td-tags span { animation: td-wave 5.5s ease-in-out infinite; }
.td-page .td-tags span:nth-child(2) { animation-delay: -1.8s; } .td-page .td-tags span:nth-child(3) { animation-delay: -3.6s; } .td-page .td-tags span:nth-child(4) { animation-delay: -4.6s; }
@keyframes td-wave { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ── 到达：五块同时浮现 ── */
.td-page.is-arrive .td-mod { animation: td-arrive .9s ease both; }
@keyframes td-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── 全屏场景：盖住整个页面，每块一种动画，等你按 Next 才继续 ── */
.td-stage { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); background: var(--td-bg); transition: opacity .6s ease; }
.td-stage.is-gone { opacity: 0; pointer-events: none; }
.td-stage.is-leaving { background: transparent; pointer-events: none; transition: background .6s ease; }
.td-stage.is-leaving .td-stage-top, .td-stage.is-leaving .td-stage-bot { opacity: 0; transition: opacity .35s; }
.td-page.is-await .td-mod { opacity: 0; }
.td-stage-top { flex: none; position: relative; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--td-sub); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.td-stage-top span.is-in { animation: td-fade .6s ease; }
.td-stage-top i { font-family: var(--td-serif); font-size: 12px; color: var(--td-ink); letter-spacing: .04em; margin-right: 8px; }
.td-skip2 { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; padding: 6px 2px; font-family: var(--td-serif); font-style: italic; font-size: 12px; letter-spacing: .06em; color: var(--td-sub); cursor: pointer; }
.td-scenebox { position: relative; flex: 1; min-height: 0; display: flex; }
.td-thread { position: absolute; top: 0; bottom: 0; width: 1px; z-index: 3; background: var(--td-ink); opacity: 0; pointer-events: none; }
.td-stage-bot { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 24px calc(14px + env(safe-area-inset-bottom, 0px)); }
.td-link2 { border: 0; border-bottom: .5px solid var(--td-ink); background: transparent; padding: 6px 1px; font-family: var(--td-serif); font-style: italic; font-size: 12.5px; letter-spacing: .06em; cursor: pointer; transition: opacity .3s; }
.td-link2[data-td="all"] { color: var(--td-sub); border-color: var(--td-sub); }
.td-link2.is-dim { opacity: .25; pointer-events: none; }
.td-scenebox > .td-scene { position: absolute; inset: 0; }
.td-scene { flex: 1; min-width: 0; overflow-y: auto; scrollbar-width: none; padding: 8px 30px 20px; }
.td-scene::-webkit-scrollbar { display: none; }
.td-scene > * { max-width: 440px; margin-left: auto; margin-right: auto; }
.td-scene .td-mod { display: block; height: auto; overflow: visible; border: 0; padding: 0; }
.td-scene .td-tb p { display: block; }
.td-scene .td-pi.is-open .td-pd { display: block; animation: td-fade .4s ease; }
.td-scene .td-ti { cursor: default; }
.td-scene .td-av { width: 44px; height: 44px; margin: 4px; }
.td-scene .td-in { overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 0; }
.td-scene .td-h { margin-bottom: 20px; }
.td-scene .td-h i { display: none; }
.is-scene [data-r] { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s ease; }
.is-scene [data-r].is-in { opacity: 1; }

/* 1 时间线：竖线一格一格往下画，圆点弹出，内容从左边滑入 */
.td-sc-tl .td-ti { grid-template-columns: 46px 11px minmax(0, 1fr); column-gap: 12px; padding-bottom: 30px; transform: translateX(-16px); }
.td-sc-tl .td-ti.is-in { transform: none; }
.td-sc-tl .td-ti::before { left: 63px; top: 14px; transform: scaleY(0); transform-origin: top; transition: transform .9s ease .25s; }
.td-sc-tl .td-ti.is-in::before { transform: scaleY(1); }
.td-sc-tl .td-tdot { width: 11px; height: 11px; margin-top: 4px; transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) .15s; }
.td-sc-tl .td-ti.is-in .td-tdot { transform: scale(1); }
.td-sc-tl .td-tt { font-size: 12px; padding-top: 3px; }
.td-sc-tl .td-tb b { font-size: 14.5px; }
.td-sc-tl .td-tb p { font-size: 13px; line-height: 1.85; }

/* 2 社交圈：中心一条线先落下，人物从左右两侧交替浮现 */
.td-sc-sc .td-hub { display: flex; justify-content: center; margin-bottom: 6px; opacity: 0; transform: scale(.7); transition: opacity .8s, transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.td-sc-sc.is-draw .td-hub { opacity: 1; transform: none; }
.td-sc-sc .td-av { width: 52px; height: 52px; }
.td-sc-sc .td-h { justify-content: center; margin-bottom: 8px; }
.td-sc-sc .td-plist { position: relative; padding-top: 30px; }
.td-sc-sc .td-plist::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--td-rule); opacity: .5; transform: scaleY(0); transform-origin: top; transition: transform 1.4s ease; }
.td-sc-sc.is-draw .td-plist::before { transform: scaleY(1); }
.td-sc-sc .td-pi.td-hd { cursor: pointer; }
.td-sc-sc .td-pi { position: relative; width: 82%; margin: 0 0 22px; padding: 13px 15px 14px; background: var(--td-bg); border: .5px solid var(--td-rule); border-radius: 2px; }
.td-sc-sc .td-pi:nth-child(odd) { margin-right: auto; transform: translateX(-34px); }
.td-sc-sc .td-pi:nth-child(even) { margin-left: auto; transform: translateX(34px); }
.td-sc-sc .td-pi.is-in { transform: none; }
.td-sc-sc .td-pn b { font-size: 14.5px; }
.td-sc-sc .td-pl { font-size: 13px; } .td-sc-sc .td-pd { font-size: 12.5px; }

/* 3 日记：没有格线、没有光标，字像墨水晕开一样一个一个浮现 */
.td-sc-dy .td-dyh { margin-bottom: 22px; }
.td-sc-dy .td-dtext p { margin: 0 0 14px; font-size: 15px; line-height: 2.05; text-indent: 2em; }
.td-sc-dy .td-c { opacity: 0; filter: blur(4px); transition: opacity .75s ease, filter .85s ease; }
.td-sc-dy .td-c.on { opacity: 1; filter: none; }
.td-sc-dy .td-about { margin-top: 24px; transform: translateY(8px); }
.td-sc-dy .td-about.is-in { transform: none; }

/* 4 收藏品：画框一笔描出来，编号滚动，类别像盖章一样落下 */
.td-sc-cl { display: flex; align-items: center; }
.td-sc-cl > .td-mod { text-align: center; margin-top: -4vh; }
.td-sc-cl .td-h { justify-content: center; }
.td-sc-cl .td-clbox { position: relative; display: flex; align-items: center; justify-content: center; width: 176px; height: 176px; margin: 0 auto 24px; }
.td-sc-cl .td-frame { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }
.td-sc-cl .td-frame rect { fill: none; stroke: var(--td-ink); stroke-width: .5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease; }
.td-sc-cl .td-frame.is-in rect { stroke-dashoffset: 0; }
.td-sc-cl .td-clno { font-size: 21px; }
.td-sc-cl .td-cln { font-size: 15.5px; filter: blur(7px); }
.td-sc-cl .td-cln.is-in { filter: none; }
.td-sc-cl .td-ck { font-size: 11px; padding: 2px 10px; transform: rotate(-9deg) scale(1.7); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.td-sc-cl .td-ck.is-in { transform: rotate(-3deg); }
.td-sc-cl .td-cld { max-width: 300px; margin-left: auto; margin-right: auto; font-size: 12.5px; transform: translateY(8px); }
.td-sc-cl .td-cld.is-in, .td-sc-cl .td-clo.is-in { transform: none; }

/* 5 今日一句：逐字从模糊里聚焦出来 */
.td-sc-sm { display: flex; align-items: center; }
.td-sc-sm > .td-mod { text-align: center; margin-top: -6vh; }
.td-sc-sm .td-h { justify-content: center; }
.td-sc-sm .td-line { font-size: 17px; line-height: 2.1; }
.td-sc-sm .td-w { opacity: 0; filter: blur(9px); transition: opacity .8s ease, filter .9s ease; }
.td-sc-sm .td-w.on { opacity: 1; filter: none; }
.td-sc-sm .td-tags { justify-content: center; margin-top: 26px; transform: translateY(10px); }
.td-sc-sm .td-tags.is-in { transform: none; }
.td-sc-sm .td-tags span { font-size: 11.5px; }

/* ── 开屏：刻度尺一格一格升起 → 标题 / 日期淡入 → 幕布上抬 ── */
.td-splash { position: absolute; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; background: var(--td-bg); }
.td-splash.is-play { display: flex; }
.td-splash.is-out { opacity: 0; transform: translateY(-16px); transition: opacity .65s ease, transform .65s ease; pointer-events: none; }
.td-sp-in { width: min(78%, 300px); display: flex; flex-direction: column; align-items: center; }
.td-sp-rule { width: 100%; height: 1px; background: var(--td-rule); transform: scaleX(0); animation: td-sp-rule .95s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.td-sp-rule.b { animation-delay: .6s; margin-top: 26px; }
.td-sp-ticks { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; height: 44px; margin: 20px 0 24px; }
.td-sp-ticks i { display: block; width: 1px; height: 0; background: var(--td-ink); opacity: .3; --h: 7px; animation: td-sp-tick .75s cubic-bezier(.3, 1.3, .5, 1) calc(.4s + var(--i) * 34ms) forwards; }
.td-sp-ticks i.has { --h: 14px; opacity: .7; }
.td-sp-ticks i.cur { --h: 40px; opacity: 1; width: 1.5px; }
.td-sp-t { opacity: 0; animation: td-sp-in 1s ease 1.05s forwards; }
.td-sp-t i { font-family: var(--td-serif); font-size: 18px; letter-spacing: .16em; }
.td-sp-d { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; font-size: 12px; letter-spacing: .22em; font-variant-numeric: tabular-nums; opacity: 0; animation: td-sp-in .9s ease 1.35s forwards; }
.td-sp-d em { font-family: var(--td-serif); font-size: 11.5px; color: var(--td-sub); letter-spacing: .06em; }
.td-sp-z { margin-top: 9px; font-size: 10.5px; color: var(--td-sub); letter-spacing: .3em; opacity: 0; animation: td-sp-in .9s ease 1.6s forwards; }
@keyframes td-sp-rule { to { transform: scaleX(1); } }
@keyframes td-sp-tick { to { height: var(--h); } }
@keyframes td-sp-in { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }

/* ── 底部小面板（更多 / 图鉴） ── */
.td-sheet { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; background: rgba(0, 0, 0, 0); visibility: hidden; transition: background .25s, visibility .25s; }
.td-sheet.is-open { background: rgba(0, 0, 0, .3); visibility: visible; }
.td-sheet-card { width: 100%; max-height: 72%; overflow-y: auto; background: var(--td-bg); border-top: 1px solid var(--td-rule); padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .3s cubic-bezier(.3, .7, .2, 1); }
.td-sheet.is-open .td-sheet-card { transform: none; }
.td-sh-t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.td-sh-t i { font-family: var(--td-serif); font-size: 13px; letter-spacing: .04em; }
.td-x { width: 30px; height: 30px; border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--td-sub); cursor: pointer; padding: 0 0 2px; }
.td-menu, .td-arch { list-style: none; margin: 0; padding: 0; }
.td-menu li, .td-arch li { border-bottom: .5px solid var(--td-line); }
.td-menu button { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border: 0; background: transparent; padding: 13px 0; font-size: 13px; text-align: left; cursor: pointer; }
.td-menu em { font-style: normal; font-size: 10.5px; color: var(--td-sub); text-align: right; }
.td-menu em.td-sw { font-family: var(--td-serif); font-style: italic; font-size: 12px; }
.td-menu em.td-sw.on { color: var(--td-ink); }
.td-sh-f { margin: 14px 0 0; font-size: 10.5px; color: var(--td-sub); letter-spacing: .06em; line-height: 1.8; }
.td-arch button { width: 100%; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; border: 0; background: transparent; padding: 12px 0; text-align: left; cursor: pointer; }
.td-an { font-family: var(--td-serif); font-style: italic; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.td-at b { font-size: 12.5px; font-weight: 500; }
.td-at em { font-style: normal; margin-left: 7px; font-size: 10px; color: var(--td-sub); }
.td-ad { font-size: 10.5px; color: var(--td-sub); font-variant-numeric: tabular-nums; }

/* 拓展面板入口：昨天还没翻开时，图标右上角一个小黑点（只是提醒） */
#that-day-btn .expansion-item-icon { position: relative; }
.td-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #111; box-shadow: 0 0 0 2px #fff; }
html[data-ui="dark"] .td-dot { background: #fff; box-shadow: 0 0 0 2px #2b2b2b; }

@media (max-width: 350px) {
    .td-r2 { gap: 8px; } .td-mod { padding: 10px 9px 0; }
    .td-ti { grid-template-columns: 27px 9px minmax(0, 1fr); column-gap: 5px; } .td-ti::before { left: 36.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .td-splash *, .td-bar::after, .td-cap.is-in, .td-page.is-arrive .td-mod, .td-page .td-mod::after, .td-hi .td-tdot::before, .td-page .td-avw::before, .td-tk.on i, .td-page .td-tags span { animation: none !important; }
    .td-stage, .td-sheet-card { transition-duration: .01s !important; }
}
