/* 自媒体不是玄学，是手艺：1920×1080 画面，按窗口等比缩放。点一下走一步，往回翻瞬间到位。
   颜色各管一件事：
   绿 = 中了的、拿到结果的
   灰 = 没中的、平时看不见的
   黄色荧光笔 = 现在看这里
   字一律用墨色。 */

:root {
  --paper: #f4eee6;
  --card: #fbf7f1;
  --ink: #15140f;
  --mute: #6f685e;
  --line: rgba(21, 20, 15, 0.16);
  --green: #238343;
  --green-deep: #175c2f;
  --mid: #c8beb0;
  --low: #e2dacd;
  --hl: #ffd84a;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --num: "DIN Alternate", "Avenir Next Condensed", "Helvetica Neue", "PingFang SC", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0d0d0c; }
/* body 固定在窗口上并裁掉超出的部分：1920 宽的画面不会把手机上的页面撑宽 */
body { position: fixed; inset: 0; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; color: var(--ink); }
body.idle, body.idle * { cursor: none !important; }

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px; overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--k, 1));
  background: var(--paper);
  -webkit-user-select: none; user-select: none;
}
body.notes #stage { left: calc(var(--k) * 960px + 12px); }
body.capture #stage { left: 0; top: 0; transform: none; }
#stage.instant, #stage.instant * { transition: none !important; }

.slide { position: absolute; inset: 0; display: none; }
.slide.cur { display: block; }
.a { position: absolute; }

/* ---------- 每屏固定的几样 ---------- */
.k { position: absolute; left: 120px; top: 74px; font-size: 28px; font-weight: 500; color: var(--mute); letter-spacing: 0.04em; white-space: nowrap; }
.h { position: absolute; left: 120px; right: 120px; top: 122px; font-family: var(--serif); font-weight: 900; font-size: 80px; line-height: 1.22; letter-spacing: -0.01em; }
.src { position: absolute; left: 120px; bottom: 44px; font-size: 23px; color: var(--mute); white-space: nowrap; }
.pg { position: absolute; right: 120px; bottom: 44px; font-family: var(--num); font-size: 23px; color: var(--mute); }

/* ---------- 字 ---------- */
.num { font-family: var(--num); font-weight: 700; font-feature-settings: "tnum"; letter-spacing: 0; }
.serif { font-family: var(--serif); font-weight: 900; }
.mute { color: var(--mute); }
.b { font-weight: 600; }
.nowrap { white-space: nowrap; }
.t26 { font-size: 26px; } .t30 { font-size: 30px; } .t34 { font-size: 34px; } .t38 { font-size: 38px; } .t42 { font-size: 42px; } .t44 { font-size: 44px; }
.t48 { font-size: 48px; } .t56 { font-size: 56px; } .t64 { font-size: 64px; } .t72 { font-size: 72px; }
.lh { line-height: 1.5; }
.green { color: var(--green); }

/* ---------- 点一下出现 ---------- */
[data-in] { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.6s var(--ease); }
[data-in].on { opacity: 1; transform: none; }
[data-in].flat { transform: none; }
[data-out] { transition: opacity 0.3s ease; }
[data-out].away { opacity: 0; }
[data-dim] { transition: opacity 0.4s ease; }
[data-dim].dim { opacity: 0.28; }
.mark { background-image: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 93%, transparent 93%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.55s var(--ease); padding: 0 6px; margin: 0 -6px; }
.mark.lit, .mark.always { background-size: 100% 100%; }
.strike { position: relative; transition: color 0.4s ease; }
.strike::after { content: ""; position: absolute; left: -6px; right: -6px; top: 52%; height: 4px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease); }
.strike.lit { color: var(--mute); }
.strike.lit::after { transform: scaleX(1); }
.rule { position: absolute; background: var(--ink); }
.rule.soft { background: var(--line); }

/* ---------- 整页绿：四个问题 ---------- */
.slide.q { background: var(--green); color: #fff; }
.q .qno { position: absolute; left: 120px; top: 96px; font-size: 36px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.78); }
.q .qno .num { font-size: 52px; color: #fff; margin: 0 12px; }
.q .qtext { position: absolute; left: 120px; right: 120px; top: 290px; font-family: var(--serif); font-weight: 900; font-size: 128px; line-height: 1.26; letter-spacing: -0.01em; }
.q .qsub { position: absolute; left: 120px; right: 120px; top: 690px; font-size: 48px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.q .qbar { position: absolute; left: 120px; bottom: 100px; display: flex; gap: 14px; }
.q .qbar i { display: block; width: 130px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); }
.q .qbar i.on { background: #fff; }
.q .qbar i.gap { margin-left: 30px; }
.q .qbar i { width: 110px; }

/* ---------- 封面 ---------- */
.cover .brand { position: absolute; left: 120px; top: 84px; display: flex; align-items: center; gap: 18px; font-size: 30px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.cover .brand img { width: 46px; height: 44px; }
.cover .brand .pill { margin-left: 10px; padding: 7px 20px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: 26px; letter-spacing: 0.02em; }
.cover h1 { position: absolute; left: 114px; top: 188px; font-family: var(--serif); font-weight: 900; font-size: 148px; line-height: 1.2; letter-spacing: -0.02em; white-space: nowrap; }
.cover .sub { position: absolute; left: 120px; top: 596px; font-size: 50px; font-weight: 500; white-space: nowrap; }
.cover .who { position: absolute; left: 120px; bottom: 96px; font-size: 36px; white-space: nowrap; }
.cover .who .x { margin: 0 12px; color: var(--mute); }
.cover .when { position: absolute; left: 120px; bottom: 44px; font-size: 26px; color: var(--mute); white-space: nowrap; }

/* ---------- 评论气泡 ---------- */
.bub { position: absolute; display: flex; gap: 24px; align-items: flex-start; }
.bub .av { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 600; }
.bub .av.g { background: var(--green); color: #fff; }
.bub .nm { font-size: 26px; color: var(--mute); margin-bottom: 10px; }
.bub .tx { background: var(--card); border: 2px solid var(--line); border-radius: 6px 28px 28px 28px; padding: 26px 34px 28px; font-size: 42px; line-height: 1.5; }

/* ---------- 引语 ---------- */
.quote { position: absolute; border-left: 8px solid var(--green); padding: 4px 0 4px 36px; font-size: 44px; line-height: 1.55; }
.quote .by { display: block; margin-top: 14px; font-size: 26px; color: var(--mute); }

/* ---------- 标签 ---------- */
.tag { position: absolute; display: inline-flex; align-items: center; height: 84px; padding: 0 34px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); font-size: 42px; font-weight: 600; white-space: nowrap; }
.tag.soft { border-color: var(--line); color: var(--mute); font-weight: 500; font-size: 38px; padding: 0 30px; }

/* ---------- 清单行（开场的四个问题） ---------- */
.q-row { position: absolute; left: 120px; right: 120px; height: 112px; border-top: 2px solid var(--line); display: flex; align-items: center; gap: 44px; }
.q-row .num { font-size: 60px; color: var(--mute); width: 46px; }
.q-row .qq { font-size: 54px; font-weight: 600; }

/* ---------- 三栏：科学、艺术、手艺 ---------- */
.col3 { position: absolute; top: 360px; width: 520px; height: 430px; border-top: 6px solid var(--ink); padding-top: 28px; }
.col3 .nm { font-family: var(--serif); font-weight: 900; font-size: 96px; line-height: 1.1; }
.col3 p { margin-top: 26px; font-size: 40px; line-height: 1.5; }
.col3.craft { border-top-color: var(--green); }
.col3 p.cite { margin-top: 22px; font-size: 24px; color: var(--mute); font-family: var(--num); letter-spacing: 0.01em; }
.col3.craft .nm { color: var(--green); }

/* ---------- 三个环节 ---------- */
.stage3 { position: absolute; left: 120px; right: 120px; height: 150px; border-top: 2px solid var(--line); display: grid; grid-template-columns: 430px 1fr 330px; align-items: center; column-gap: 40px; }
.stage3 .p1 { font-family: var(--serif); font-weight: 900; font-size: 60px; }
.stage3 .p2 { font-size: 44px; }
.stage3 .p3 { justify-self: end; padding: 12px 34px 14px; border-radius: 999px; background: var(--green); color: #fff; font-size: 44px; font-weight: 600; white-space: nowrap; }

/* ---------- 大数字 ---------- */
.big { position: absolute; }
.big .n { font-family: var(--num); font-weight: 700; font-size: 150px; line-height: 1; }
.big .u { font-size: 44px; font-weight: 600; margin-left: 10px; }
.big .d { margin-top: 16px; font-size: 32px; color: var(--mute); line-height: 1.45; }

/* ---------- 629 个方块 ---------- */
.grid { position: absolute; display: grid; grid-template-columns: repeat(37, var(--c)); grid-auto-rows: var(--c); gap: var(--g); }
.grid i { display: block; border-radius: calc(var(--c) * 0.2); background: var(--mid); transition: opacity 0.6s ease, background-color 0.5s ease, transform 0.5s var(--ease); }
.grid i.hit { background: var(--green); }
.grid.front i:not(.hit) { opacity: 0; }
.grid.tiers i.lowv { background: var(--low); }
.grid.first72 i.late { opacity: 0.18; }
.lg { display: inline-block; width: 26px; height: 26px; border-radius: 5px; vertical-align: -3px; margin-right: 12px; }
.lg.hit { background: var(--green); } .lg.mid { background: var(--mid); } .lg.low { background: var(--low); border: 1px solid var(--line); }

/* ---------- 图表 ---------- */
.chart { position: absolute; }
.chart svg { display: block; overflow: visible; }
.chart text { font-family: var(--sans); fill: var(--mute); font-size: 24px; }
.chart .ax { stroke: var(--ink); stroke-width: 2; }
.chart .gridl { stroke: var(--line); stroke-width: 2; }
.bars { position: absolute; display: flex; align-items: flex-end; }
.bars i { display: block; flex: none; background: var(--mid); border-radius: 3px 3px 0 0; transition: background-color 0.45s ease, opacity 0.45s ease; }
.bars.top3 i.t3, .bars i.always { background: var(--green); }
.bars.h2 i.h2m { background: var(--ink); }
.bars.jf i.jfm { background: var(--green); }
.bars.band i.mid80 { background: var(--green); }
.yr { position: absolute; font-family: var(--num); font-size: 26px; color: var(--mute); transform: translateX(-50%); }
.note { position: absolute; font-size: 34px; line-height: 1.45; }
.note .n { font-family: var(--num); font-weight: 700; font-size: 1.24em; }
.pin { position: absolute; width: 0; border-left: 3px solid var(--ink); }
.pin.dash { border-left-style: dashed; }
.dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); }
.dot.g { background: var(--green); }

/* ---------- 两期视频对照 ---------- */
.vid { position: absolute; top: 330px; width: 810px; height: 620px; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 34px 40px; }
.vid .dt { font-family: var(--num); font-size: 30px; color: var(--mute); }
.vid .tt { margin-top: 10px; font-size: 40px; font-weight: 600; line-height: 1.36; height: 164px; }
.vid .row { display: flex; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--line); padding: 16px 0 14px; font-size: 32px; }
.vid .row .lb { color: var(--mute); }
.vid .row .v { font-family: var(--num); font-weight: 700; font-size: 46px; }
.vid .row .v.cn { font-family: var(--sans); font-weight: 600; font-size: 38px; }
.vid .row.last .v { font-size: 76px; }
.vid.win .row.last .v { color: var(--green); }

/* ---------- 截图 ---------- */
.shot { position: absolute; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 24px 60px rgba(40, 28, 12, 0.16); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }

/* ---------- 对照表 ---------- */
.tbl { position: absolute; left: 120px; right: 120px; }
.tbl .hd, .tbl .tr { display: grid; align-items: center; column-gap: 40px; }
.tbl .hd { height: 70px; font-size: 30px; color: var(--mute); border-bottom: 4px solid var(--ink); }
.tbl .tr { border-bottom: 2px solid var(--line); font-size: 40px; line-height: 1.4; }
.tbl .tr .lb { font-family: var(--serif); font-weight: 900; font-size: 46px; }
.tbl .tr .old { color: var(--mute); }
.tbl .tr .new { font-weight: 600; }
.tbl.c2 .hd, .tbl.c2 .tr { grid-template-columns: 640px 1fr; }
.tbl.c2 .tr { height: 132px; }
.tbl.c3 .hd, .tbl.c3 .tr { grid-template-columns: 220px 500px 1fr; }
.tbl.c3 .tr { height: 122px; }

/* ---------- 四样东西 ---------- */
.four { position: absolute; top: 350px; width: 396px; height: 520px; }
.four .top { height: 190px; border-top: 6px solid var(--ink); padding-top: 26px; }
.four .top .w { font-family: var(--serif); font-weight: 900; font-size: 68px; line-height: 1.15; white-space: nowrap; }
.four .top .s { margin-top: 12px; font-size: 28px; color: var(--mute); }
.four .bot { margin-top: 26px; padding: 26px 28px 30px; height: 236px; border-radius: 20px; background: var(--green); color: #fff; font-size: 38px; line-height: 1.45; font-weight: 500; }

/* ---------- 讲稿栏（共享屏幕时不要共享它） ---------- */
#notes { display: none; position: absolute; top: 0; bottom: 0; right: 0; left: 72%; padding: 28px 30px; color: #e9e5db; font-size: 20px; line-height: 1.6; overflow: auto; }
body.notes #notes { display: block; }
#notes .pos { color: #8f897c; font-size: 15px; letter-spacing: 0.04em; display: flex; justify-content: space-between; }
#notes .mean { margin: 18px 0 14px; font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1.4; color: #fff; }
#notes ul { list-style: none; margin: 0 0 18px; }
#notes ul li { padding: 7px 0 7px 16px; border-left: 2px solid #3a3832; margin-bottom: 6px; }
#notes .dir { color: #ff9c7d; font-size: 17px; margin: 0 0 14px; }
#notes .cues { border-top: 1px solid #33312c; padding-top: 12px; }
#notes .cue { color: #7f796d; padding: 3px 0; font-size: 17px; }
#notes .cue.now { color: var(--hl); }
#notes .cue.done { color: #55514a; text-decoration: line-through; }
#notes .keys { margin-top: 22px; color: #6d685d; font-size: 14px; line-height: 1.7; }
#toast { position: absolute; left: 20px; bottom: 16px; color: #8f897c; font-size: 14px; transition: opacity 0.6s; pointer-events: none; }

/* 手机竖着拿时字太小，提示横过来 */
#rotate { display: none; position: absolute; left: 0; right: 0; top: 70%; padding: 0 20px; text-align: center; color: #a39d90; font-size: 14px; pointer-events: none; }
@media (orientation: portrait) and (max-width: 700px) { body:not(.capture) #rotate { display: block; } }

/* ---------- 开场的总览 ---------- */
.ov .ovh { font-family: var(--serif); font-weight: 900; font-size: 76px; line-height: 1.1; padding-bottom: 24px; border-bottom: 6px solid var(--ink); }
.ov .ovr { height: 116px; display: flex; align-items: center; gap: 34px; border-bottom: 2px solid var(--line); font-size: 46px; font-weight: 600; white-space: nowrap; }
.ov .ovr .num { font-size: 56px; color: var(--mute); width: 38px; }
