/* 关于页的打印样式：只有 /about/ 链接这份（media="print"）。白底黑字，A4。
   去掉视频、图、导航、声音开关、页脚的小字这些纸上没意义的；名字放最上面；链接后面带出网址；一段、一条经历、一张卡都不拦腰切开。 */
@page { size: A4; margin: 15mm 16mm 16mm; }
html, body { background: #fff !important; }
html { color-scheme: light !important; }   /* 页面声明了深色方案，不关掉的话 Chrome 不印背景时页边是深灰的 */
body { font: 400 10.5pt/1.6 var(--font); }
body *, body *::before, body *::after { color: #111 !important; -webkit-text-fill-color: currentColor !important; background: transparent !important; text-shadow: none !important; box-shadow: none !important; filter: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: none !important; transition: none !important; }

/* 纸上没意义的 */
.skip, .wx-share, .aura, .nav nav, .dots, .player, video, canvas, .pane img, .pane::after, .end__bg, .end::before, .fine, .stat svg, .sec--colophon, .more-line:has(.btn), .dm { display: none !important; }

/* 滚动编排、进场动画全部还原成静态 */
.reveal, .motion .reveal:not(.in) { opacity: 1 !important; transform: none !important; }
.trip, .motion .trip { height: auto !important; }
.trip .pin, .motion .trip .pin { position: static !important; height: auto !important; overflow: visible !important; display: flex; flex-direction: column; }

/* 抬头：名字、一句话、职位、三句做什么 */
.nav { position: static !important; display: block; padding: 0 !important; }
.nav__name { display: block; padding: 0 !important; margin: 0 !important; border: 0 !important; font-size: 26pt; line-height: 1.15; font-weight: 700; letter-spacing: 0; }
.trip__copy { order: -1; position: static !important; transform: none !important; opacity: 1 !important; margin-top: 1.5mm; display: flex; flex-direction: column; }
.trip .hero__name { font-size: 15pt !important; line-height: 1.3; margin: 0 !important; letter-spacing: 0; }
.hero__role { font-size: 10.5pt; gap: 0 1.2em; margin-top: 1mm; order: 2; }   /* 一句话在前，职位在后 */
.trip__panes, .motion .trip__panes { display: block !important; height: auto !important; padding: 0 !important; margin-top: 1mm; }
.pane, .motion .pane { display: inline; transform: none !important; }
.pane figcaption { position: static !important; display: inline; font-size: 10.5pt; font-weight: 400; }
.pane + .pane figcaption::before { content: " · "; }

/* 正文 */
.sec, .p-about .me, .me { padding: 6mm 0 0 !important; }
.eyebrow { display: block; font-size: 9pt; font-weight: 500; margin-bottom: 1mm; color: #555 !important; }
.h2 { font-size: 15pt; line-height: 1.3; letter-spacing: 0; }
.xp { margin-top: 2mm; }
.xp__i { grid-template-columns: 50mm 1fr; gap: 0 6mm; padding: 3mm 0; border-top: .6pt solid #bbb; }
.xp__h, .xp__i ul { grid-column: auto !important; }
.xp__i h3 { font-size: 12pt; line-height: 1.3; letter-spacing: 0; }
.xp__r { font-size: 9.5pt; color: #555 !important; }
.xp__i ul { font-size: 10.5pt; line-height: 1.55; }
.xp__i li + li { margin-top: 1mm; }
.skills { display: flex; flex-wrap: wrap; gap: 0 1.4em; font-size: 13pt; line-height: 1.5; letter-spacing: 0; }
.skills small { display: inline; margin: 0 0 0 .3em; font-size: 9.5pt; font-weight: 400; color: #555 !important; }
.more-line { margin-top: 2mm; }
.more { border: 0 !important; font-weight: 500; }
.quote { padding: 6mm 0 0 !important; }
.quote__t { font-size: 14pt; line-height: 1.4; letter-spacing: 0; }
.quote__s { margin-top: 1mm; font-size: 9.5pt; color: #555 !important; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; margin-top: 2mm !important; }
.stat, .stat--dance, .stat--run, .stat--art, .stat--ja, .stat--game { grid-column: auto !important; min-height: 0 !important; padding: 3mm 4mm; border: .6pt solid #bbb; border-radius: 3mm; display: block; overflow: visible; }
.stat strong, .stat--dance strong, .stat--run strong { font-size: 15pt !important; line-height: 1.25; white-space: normal; letter-spacing: 0; }
.stat strong small { font-size: .62em; }
.stat > span, .stat--dance > span { display: block; max-width: none !important; margin-top: .5mm; font-size: 9.5pt; line-height: 1.5; }

/* 找我 */
.end { display: block; min-height: 0; margin-top: 7mm; padding: 4mm 0 0 !important; border-top: .8pt solid #888; overflow: visible; }
.end .eyebrow { margin-bottom: 1mm; }
.mail { font-size: 15pt; line-height: 1.3; letter-spacing: 0; }
.end__row { margin-top: 3mm; align-items: center; gap: 6mm; }
.end__gh h3 { font-size: 9pt; color: #555 !important; margin-bottom: 0; }
.end__gh a { font-size: 10.5pt; padding: .6mm 0; }
.end__qr { font-size: 9.5pt; gap: 3mm; }
.end__qr img { width: 26mm; height: 26mm; padding: 0; border-radius: 0; }

/* 链接后面带出网址：站内链接写在 data-url 里（生成脚本填的完整地址），站外链接直接用 href；href 是一串 %E4 的（LinkedIn）也写 data-url，印成能读的字；邮箱本身就是字，不再重复 */
a[data-url]::after { content: "（" attr(data-url) "）"; }
a[href^="http"]:not([data-url])::after { content: "（" attr(href) "）"; }
a[data-url]::after, a[href^="http"]:not([data-url])::after { font-size: 8.5pt; font-weight: 400; color: #555 !important; overflow-wrap: anywhere; }

/* 分页：一条经历、一张卡、一段话、页脚都不切开；标题不落在页底 */
.xp__i, .stat, .quote, .end, .skills, .more-line, .trip__copy, .xp__i li, p { break-inside: avoid; }
.eyebrow, .h2, h3 { break-after: avoid; }
