/* Sunnie 的网站。从夏天往南走：标签从左往右，页面一页比一页冷，最右边是极夜。
   和星图站刻意不同：白底、粗黑无衬线、等宽小字、贴纸式按钮、暖色高饱和；没有星空、没有金色、没有宋体。 */
:root {
  --paper: #fbf7ef;
  --ink: #15171b; --ink-2: #4a4e57; --ink-3: #8b909b; --line: #e3dfd6;
  --sun: #f2621f; --sun-2: #ffc24b; --sun-soft: #ffe6c7;
  --sea: #0c7c8c; --ice: #86c3e6; --ice-soft: #e4f0f8; --night: #091626;
  /* 跟着明暗换的面：卡片、墨色上的反白字、贴纸阴影、导航和各页的底 */
  --card: #fff; --on-ink: #fff; --shadow: var(--ink); --hover: rgba(21, 23, 27, .07);
  --nav-bg: rgba(251, 247, 239, .86); --bar-bg: rgba(251, 247, 239, .9); --nav-trips: rgba(240, 245, 246, .86); --nav-words: rgba(236, 243, 248, .86);
  --bg-trips: #f0f5f6; --bg-words: #ecf3f8; --hero-glow: var(--sun-soft);
  --glass: rgba(255, 255, 255, .75); --glass-strong: rgba(255, 255, 255, .95);
  --violet: #5b48c7; --violet-soft: #ece9f8; --evolve: #3a7fc0; --band-alt: #f7f3ea;
  --muted-on-ink: #cfd3da; --chip-dot: rgba(255, 255, 255, .2);
  /* 地球仪的三种颜色（画在 canvas 上，globe.js 从这里读） */
  --globe-ink: #15171b; --globe-sea: #e8f1f2; --globe-shadow: #15171b;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, "Roboto Mono", "Noto Sans Mono", monospace;
  --pad: clamp(20px, 5vw, 72px);
  --nav-h: 64px;
  color-scheme: light;
}
/* 深色 = 极夜。不做星空、不用金色（那是星图站）：深蓝绿的夜、冰白的字、冰蓝的贴纸影子，暖色只留给窗灯和她的橙 */
:root[data-theme="dark"] {
  --paper: #0d1820;
  --ink: #e3ebf1; --ink-2: #b2c0cb; --ink-3: #7c8e9c; --line: #263845;
  --sun-soft: #3a2317; --sea: #3fb0c0; --ice-soft: #142a3a;
  --card: #142430; --on-ink: #0d1820; --shadow: #2f6687; --hover: rgba(255, 255, 255, .07);
  --nav-bg: rgba(13, 24, 32, .84); --bar-bg: rgba(13, 24, 32, .9); --nav-trips: rgba(12, 26, 35, .84); --nav-words: rgba(11, 24, 34, .84);
  --bg-trips: #0c1a23; --bg-words: #0b1822; --hero-glow: rgba(255, 194, 75, .07);
  --glass: rgba(13, 24, 32, .78); --glass-strong: rgba(20, 36, 48, .96);
  --violet: #a493ff; --violet-soft: #241f42; --evolve: #6fb2e6; --band-alt: #11202a;
  --muted-on-ink: #4d5d69; --chip-dot: rgba(13, 24, 32, .18);
  --globe-ink: #cfdbe3; --globe-sea: #10202b; --globe-shadow: #2f6687;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; transition: background-color .5s ease; }
/* 换明暗的那一下：底色、字色、边框一起慢慢过去（太阳自己有动画，不跟着） */
:root.theme-fade body, :root.theme-fade body *:not(.sun) { transition: background-color .6s ease, color .6s ease, border-color .6s ease, box-shadow .6s ease !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.small { font-size: 11px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }

/* 顶部标签 */
nav.top { position: sticky; top: 0; z-index: 20; height: var(--nav-h); display: flex; align-items: center; gap: 18px; padding: 0 var(--pad); background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: background-color .5s, border-color .3s; }
nav.top.scrolled { border-bottom-color: var(--line); }
nav.top { touch-action: pan-y; } /* 横着拖留给「划一下天空」，竖着照样滚 */
nav.top .brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; }
/* 头像：一个圆，不描边 */
nav.top .brand .avatar { width: 32px; height: 32px; border-radius: 50%; background: #eee; }
/* 名字旁边那颗太阳就是明暗开关：点一下太阳落下去，换成一弯月亮；再点，日出 */
nav.top .brand-wrap { display: inline-flex; align-items: center; gap: 7px; }
nav.top .sun { position: relative; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft);
  transition: border-radius .6s ease, background-color .6s ease, box-shadow .6s ease, transform .6s cubic-bezier(.5, 1.6, .5, 1); }
nav.top .sun::before { content: ''; position: absolute; inset: -10px; } /* 点得到的范围比看到的大 */
nav.top .sun:hover { transform: scale(1.25); }
nav.top .sun:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; }
/* 夜里是一弯月亮：透明的圆，一道内阴影就是月牙，外面一圈很淡的月光 */
:root[data-theme="dark"] nav.top .sun { background: transparent; box-shadow: inset 4px -3px 0 0 #efe6c8, 0 0 10px 1px rgba(239, 230, 200, .22); transform: rotate(-15deg); }
:root[data-theme="dark"] nav.top .sun:hover { transform: rotate(-15deg) scale(1.2); box-shadow: inset 4px -3px 0 0 #efe6c8, 0 0 14px 3px rgba(239, 230, 200, .36); }
nav.top ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 4px; }
nav.top ul a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
nav.top ul a:hover { background: var(--hover); color: var(--ink); }
nav.top ul a[aria-current] { background: var(--ink); color: var(--on-ink); }
nav.top .lat { font-family: var(--mono); font-size: 12px; min-width: 56px; padding: 6px 0; border: 0; background: none; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: s-resize; transition: color .2s; }
nav.top .lat:not(:disabled):hover { color: var(--ice); }
nav.top .lat:disabled { cursor: default; }
nav.top .lat:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 6px; }
/* 不落的太阳：浅色模式下鼠标在太阳上停一会儿，它长出一圈光芒、慢慢转（Endless summer）。往南走得越远，太阳越淡 */
nav.top .sun::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; opacity: 0; transform: rotate(0);
  background: repeating-conic-gradient(from 0deg, var(--sun-2) 0 9deg, transparent 9deg 30deg);
  -webkit-mask-image: radial-gradient(circle, transparent 8.5px, #000 9px, #000 11.5px, transparent 12px); mask-image: radial-gradient(circle, transparent 8.5px, #000 9px, #000 11.5px, transparent 12px);
  transition: opacity .6s ease; }
:root:not([data-theme="dark"]) nav.top .sun:hover { box-shadow: 0 0 0 3px var(--sun-soft), 0 0 16px 4px rgba(255, 194, 75, .55); transition: box-shadow 1.4s ease 1s, transform .6s cubic-bezier(.5, 1.6, .5, 1); }
:root:not([data-theme="dark"]) nav.top .sun:hover::after { opacity: 1; transition-delay: 1s; animation: endless 9s linear 1s infinite; }
@keyframes endless { to { transform: rotate(1turn); } }
:root:not([data-theme="dark"]) nav.top .sun { filter: saturate(calc(1 - var(--chill, 0) * .75)) brightness(calc(1 + var(--chill, 0) * .15)); }
body[data-page="trips"] nav.top { background: var(--nav-trips); }
body[data-page="words"] nav.top { background: var(--nav-words); }
body[data-page="next"] nav.top { background: rgba(9, 22, 38, .78); color: #e8eef5; border-bottom-color: transparent; }
body[data-page="next"] nav.top ul a { color: #9fb3c8; }
body[data-page="next"] nav.top ul a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
body[data-page="next"] nav.top ul a[aria-current] { background: #e8eef5; color: var(--night); }
body[data-page="next"] nav.top .sun { box-shadow: 0 0 0 3px rgba(242, 98, 31, .25); }

/* 页：一次只显示一页；换页时轻轻浮上来；每页的底色从暖到冷 */
.page { min-height: calc(100vh - var(--nav-h)); animation: page-in .45s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body[data-page="work"] { background: var(--paper); }
body[data-page="trips"] { background: var(--bg-trips); }
body[data-page="words"] { background: var(--bg-words); }
body[data-page="next"] { background: var(--night); }

/* 首页：她的底片。上面是公众号的签名和她 2023-12-20 那条朋友圈的三行；底下一条胶片，一岁一格。
   暖黑的片基、透光的齿孔；照片先是暖灰的黑白，看过的那格（.lit）变成彩色、一直留着；正在看的那格（.on）底下浮出那一岁的话。
   一格多宽看屏幕多高：字（三行原话加一行出处）、胶片、底下那句要在一屏里。纸色由 body 铺，这里透明，极光才透得上来 */
.film { --film: #1d1713; --edge: #f2b06a; --fw: clamp(118px, min(15vw, calc((100svh - var(--nav-h) - 436px) * .8 + 14px)), 214px);
  --holes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Crect x='5' width='10' height='10' rx='2' fill='%23fbf7ef'/%3E%3C/svg%3E");
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 4vh, 44px); padding: 24px 0 40px;
  background: radial-gradient(900px 600px at 85% 10%, var(--hero-glow), transparent 70%); }
:root[data-theme="dark"] .film { --film: #2b221c;
  --holes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Crect x='5' width='10' height='10' rx='2' fill='%230d1820'/%3E%3C/svg%3E"); }
.kicker { margin: 0 0 18px; color: var(--sun); font-size: 17px; font-weight: 600; letter-spacing: .06em; } /* 公众号的签名 */
.film-copy { padding: 0 var(--pad); }
.film-title { display: grid; gap: 4px; font-size: clamp(20px, min(3vw, 4.2vh), 42px); font-weight: 800; line-height: 1.32; letter-spacing: -.01em; }
.film-title span:last-child { color: var(--sun); }
.film-reel { overflow-x: auto; overflow-y: hidden; padding: 4px var(--pad); scrollbar-width: none; cursor: grab; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); }
.film-reel::-webkit-scrollbar { display: none; }
.film-reel.dragging, .film-reel.dragging .film-shot { cursor: grabbing; }
.film-reel:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; }
.film-strip { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.film-frame { flex: none; width: var(--fw); }
.film-cell { position: relative; padding: 30px 7px 38px; background: var(--film); }
.film-frame:first-child .film-cell { border-radius: 5px 0 0 5px; }
.film-frame:last-child .film-cell { border-radius: 0 5px 5px 0; }
.film-cell::before, .film-cell::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: var(--holes) 0 0 / 20px 10px repeat-x; }
.film-cell::before { top: 10px; }
.film-cell::after { bottom: 8px; }
.film-shot { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: #3a2e26; cursor: pointer; }
.film-frame.on .film-shot { cursor: zoom-in; } /* 正在看的那格，再点是看大图 */
/* 暖灰：去色后带一点点暖，稍亮一点，人脸照样清楚 */
.film-shot img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; filter: grayscale(1) sepia(.14) brightness(1.04) contrast(.96); transition: filter 1.1s ease; }
.film-frame.lit .film-shot img { filter: grayscale(0) sepia(0) brightness(1) contrast(1); }
.film-shot:focus-visible { outline: 2px solid var(--edge); outline-offset: 2px; }
.film-no { position: absolute; left: 10px; right: 10px; bottom: 21px; display: flex; justify-content: space-between; font: 600 9px/1 var(--mono); letter-spacing: .12em; color: var(--edge); opacity: .85; pointer-events: none; }
.film-no b { font-weight: 700; }
.film-no i { font-style: normal; }
/* 底下那句：只有正在看的那格露出来，藏着的点不到；点它先弹一张小卡，不直接跳走 */
.film-cap { min-height: 70px; padding: 12px 8px 0; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease, visibility 0s .5s; }
.film-frame.on .film-cap { visibility: visible; opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.film-cap .mono { display: block; font-size: 10px; }
.film-said { margin: 3px 0 0; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; text-align: left;
  text-decoration: underline dashed var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.film-said:hover, .film-said:focus-visible { text-decoration-style: solid; text-decoration-color: var(--ink); outline: none; }
/* 最后一格没曝光：片子上漏了一角光；手机上没有悬停，字一直露着 */
.film-frame.blank .film-shot { display: grid; place-items: center; background: radial-gradient(140% 110% at 0% 0%, rgba(255, 168, 92, .9), rgba(255, 120, 50, .32) 36%, transparent 66%), #2a1e16; }
.film-frame.blank .film-shot .mono { color: #fff3e2; text-transform: none; opacity: 0; transition: opacity .3s; }
.film-frame.blank .film-shot:hover .mono, .film-frame.blank .film-shot:focus-visible .mono { opacity: 1; }
@media (hover: none) { .film-frame.blank .film-shot .mono { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .film-shot img, .film-cap { transition-duration: .01s; } }

/* 普通页 */
.sec { padding: clamp(28px, 4vw, 52px) var(--pad) clamp(56px, 7vw, 96px); }
/* 各页的页头一个样子：标题，下面最多一行 */
.sec-head { max-width: 760px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.sec-head .no { display: none; } /* 编号不要了（堂哥 2026-10-02）；文字页那个由改版的会话删 */
.sec-head h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.lede { font-size: 16px; color: var(--ink-2); margin: 10px 0 0; max-width: 60ch; }

/* 经历：章节 */
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.chapter { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.chapter .when { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 8px; }
.chapter .when b { display: block; font-family: var(--sans); font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-top: 4px; line-height: 1.1; }
.chapter .sub { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; }
/* 那段日子在哪条纬线上：一截虚线接一个读数，像航海图 */
.chapter .lat-mark { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--sea); text-transform: none; letter-spacing: .04em; }
.chapter .lat-mark::before { content: ''; flex: none; width: 18px; border-top: 1.5px dashed var(--ice); }
.chapter .say { font-size: clamp(18px, 2vw, 24px); line-height: 1.6; font-weight: 500; margin: 0; max-width: 46ch; }
.chapter .say + .say { margin-top: 14px; }
.chapter .facts { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chapter .facts li { font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-2); }
.chapter .facts li.todo { border-style: dashed; color: var(--sun); }
.strip { display: flex; gap: 10px; overflow-x: auto; margin-top: 20px; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.strip figure { margin: 0; flex: none; scroll-snap-align: start; }
.strip img { height: 180px; width: auto; border-radius: 14px; border: 2px solid var(--ink); cursor: zoom-in; transition: transform .15s; }
.strip img:hover { transform: translateY(-3px); }
.works { margin-top: 56px; }
.works h3 { font-size: 28px; display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.work { border: 2px solid var(--ink); border-radius: 18px; padding: 20px; background: var(--card); box-shadow: 5px 5px 0 var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.work.pending { border-style: dashed; box-shadow: none; background: transparent; color: var(--ink-2); }
.work .mono { color: var(--sun); }
.work h4 { margin: 0; font-size: 20px; font-weight: 800; }
.work p { margin: 0; font-size: 14px; color: var(--ink-2); }
.work ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.work ul a { border-bottom: 1px solid var(--line); }
.work ul a:hover { border-color: var(--ink); }
/* 旷野足迹：截图放进一只手机里，只露上面七成（图标、名字、三条功能）；底下垫一块她小程序的橙 */
.work-app h4 small { margin-left: 8px; font: 500 11px var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.work-app .app-tag { margin-top: -4px; color: var(--sun); font-weight: 700; }
.app-shot { display: grid; place-items: center; padding: 18px 0 0; border-radius: 12px; background: linear-gradient(var(--sun-soft), transparent); overflow: hidden; }
.phone { width: 140px; margin: 0; padding: 5px 5px 0; border: 2px solid var(--ink); border-bottom: 0; border-radius: 24px 24px 0 0; background: var(--card); box-shadow: 3px 0 0 var(--shadow); }
.work .phone img { display: block; width: 100%; height: auto; aspect-ratio: 787 / 1050; margin: 0; object-fit: cover; object-position: top; border: 0; border-radius: 18px 18px 0 0; }
.app-feats { list-style: none; margin: 2px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.app-feats li { padding: 3px 10px; border-radius: 999px; background: var(--sun-soft); color: var(--sun); font-size: 12px; font-weight: 600; }
/* 复制小程序链接：一个小链接图标，不抢眼；点了在上方冒一句提示（复制不了时冒的是链接本身，一点就全选） */
.copy-link { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 0 0 4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); vertical-align: -4px; transition: color .2s, background-color .2s; }
.copy-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-link:hover, .copy-link:focus-visible { color: var(--sun); background: var(--hover); outline: none; }
.copy-tip { position: fixed; z-index: 60; left: 0; top: 0; transform: translate(-50%, -100%); padding: 5px 10px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 12px; line-height: 1.5; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.copy-tip.show { opacity: 1; }
.copy-tip.raw { font: 11px/1.5 var(--mono); user-select: all; -webkit-user-select: all; pointer-events: auto; }
/* 作品的题记：一句别人的话，轻一点，署名更轻 */
.works-quote { margin: -8px 0 22px; padding: 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.works-quote cite { margin-left: 10px; font: normal 11px var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.works-quote cite::before { content: '— '; }
.work img { border-radius: 10px; border: 1px solid var(--line); margin-top: 4px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }

/* 足迹：一屏装下，左边地球仪，右边面板 */
.page-trips { height: calc(100vh - var(--nav-h)); min-height: 620px; display: flex; flex-direction: column; padding-top: clamp(16px, 2.4vw, 28px); padding-bottom: 24px; }
.page-trips .sec-head { margin-bottom: 16px; } /* 页头和别的页一样，只是离地球近一点 */
.atlas { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(20px, 3vw, 40px); }
.globe { position: relative; min-height: 0; overflow: hidden; border-radius: 20px; outline: none; }
.globe:focus-visible { box-shadow: inset 0 0 0 2px var(--sea); }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.globe canvas:active { cursor: grabbing; }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; background: none; display: grid; place-items: center; pointer-events: auto; transition: opacity .2s; }
.pin.off { visibility: hidden; pointer-events: none; }
.pin .dot { width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink), 2px 2px 0 1.5px var(--shadow); transition: transform .2s; }
.pin:hover .dot, .pin:focus-visible .dot { transform: scale(1.25); }
.pin:focus-visible { outline: none; }
.pin.on .dot { transform: scale(1.45); box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--shadow); }
.pin.on::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid var(--c); animation: ping 1.8s ease-out infinite; pointer-events: none; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
.pin .n { position: absolute; top: -3px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font: 600 10px/18px var(--mono); box-shadow: 0 0 0 2px var(--card); }
.pin .n:empty { display: none; }
.pin-pole svg { width: 26px; height: 24px; overflow: visible; filter: none; }
.pin-pole.on::after { --c: var(--sea); }
:root[data-theme="dark"] .pin-pole.on::after { --c: var(--sun-2); }
.pin-tag, .globe-tip { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; }
.pin-tag { padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 800; font-size: 13px; box-shadow: 2px 2px 0 var(--shadow); }
.globe-tip { z-index: 2; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.globe-tip small { display: block; font: 400 10px/1.4 var(--mono); opacity: .7; letter-spacing: .06em; }
/* 雪地里的玫瑰（roses.js）：锚点在茎的下端，插下去的时候从地里长出来。她的原话（.egg-note）浮在地球仪下沿或页底小屋上方，几秒后淡掉 */
.rose { position: absolute; left: 0; top: 0; width: 14px; height: 24px; margin: -23px 0 0 -7px; pointer-events: none; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .18)); }
.rose.off { visibility: hidden; }
.rose svg { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; }
.rose.fresh svg { animation: rose-in .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes rose-in { from { transform: scale(.1, 0); } to { transform: none; } }
.egg-note { --nx: -50%; position: absolute; left: 50%; bottom: 58px; z-index: 2; width: max-content; max-width: min(86%, 360px); margin: 0; padding: 8px 14px; transform: translateX(var(--nx));
  border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 3px 3px 0 var(--shadow); color: var(--ink); font-size: 13px; line-height: 1.6; text-align: center; pointer-events: none;
  word-break: keep-all; overflow-wrap: anywhere; /* 她的话只在逗号处换行，屏幕实在太窄才随处断 */
  animation: egg-note 6.5s ease both; }
.egg-note small { display: block; font: 11px var(--mono); letter-spacing: .06em; color: var(--ink-3); }
@keyframes egg-note { 0% { opacity: 0; transform: translate(var(--nx), 6px); } 10%, 82% { opacity: 1; transform: translate(var(--nx), 0); } 100% { opacity: 0; transform: translate(var(--nx), 0); } }
.globe-tools { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
/* 地球仪上的放大、缩小、回去：细线、半透明，不压着地球 */
.globe-tools button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); color: var(--ink-2); font-size: 17px; font-weight: 600; backdrop-filter: blur(6px); transition: color .2s, border-color .2s; }
.globe-tools button:hover, .globe-tools button:focus-visible { color: var(--ink); border-color: var(--ink-3); outline: none; }
.globe-tools button:active { transform: translateY(1px); }

.atlas-panel { min-height: 0; overflow-y: auto; padding: 2px 10px 8px 2px; scrollbar-width: thin; }
.atlas-sum p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.atlas-sum b { font-size: 30px; font-weight: 800; color: var(--ink); margin-right: 4px; }
.atlas-sort { display: flex; gap: 6px; margin: 14px 0 6px; }
.atlas-sort button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.atlas-sort button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
/* 明信片底下的上一个、下一个地方：就是两行字 */
.pc-nav button { padding: 4px 0; border: 0; background: none; color: var(--ink-3); font-weight: 600; font-size: 13px; transition: color .2s; }
.pc-nav button:hover, .pc-nav button:focus-visible { color: var(--ink); outline: none; }
.atlas-list { list-style: none; margin: 0; padding: 0; }
.atlas-list .yr { margin: 14px 0 2px; padding-left: 10px; font: 500 11px/1.6 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.atlas-list button { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 6px 10px; border: 0; border-radius: 10px; background: none; text-align: left; }
.atlas-list button:hover { background: var(--card); }
.atlas-list i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--ink); }
.atlas-list .unlit i { background: transparent; box-shadow: none; border: 1.5px dashed var(--ink-3); }
.atlas-list .unlit { color: var(--ink-3); }
.atlas-list .nm { font-weight: 700; font-size: 15px; }
.atlas-list .nm small { margin-left: 8px; font: 400 11px var(--mono); color: var(--ink-3); }
.atlas-list em { font: normal 11px var(--mono); color: var(--ink-3); white-space: nowrap; }

/* 一个地方：一张明信片，右上角盖着纬度经度的邮戳 */
.postcard { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px 16px; box-shadow: 5px 5px 0 var(--shadow); margin: 2px 6px 8px 0; }
.pc-back { padding: 0; border: 0; background: none; font: 500 12px var(--mono); color: var(--ink-3); margin-bottom: 10px; }
.pc-back:hover { color: var(--ink); }
.pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pc-head h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.pc-head .mono { color: var(--sea); }
.postmark { flex: none; width: 78px; height: 78px; border-radius: 50%; border: 2px dashed var(--c, var(--ink-3)); color: var(--c, var(--ink-3)); display: grid; place-content: center; gap: 2px; text-align: center; font: 700 10px/1.3 var(--mono); letter-spacing: .04em; transform: rotate(-12deg); }
.pc-moment { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pc-moment p { margin: 6px 0 0; font-size: 14px; line-height: 1.75; white-space: pre-line; }
.pc-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.pc-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; transition: transform .15s; }
.pc-photos img:hover { transform: scale(1.03); }
.pc-sub { margin: 18px 0 6px; font: 500 11px var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.pc-articles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pc-articles a { display: grid; gap: 2px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1.4; }
.pc-articles a:hover { background: var(--ink); color: var(--on-ink); }
.pc-articles .mono { font-size: 10px; }
.pc-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.pc-nav button { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-pole { background: linear-gradient(var(--card), var(--ice-soft)); }
.pc-go { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--night); color: #e8eef5; font-weight: 700; font-size: 14px; }
.empty { padding: 28px; border: 2px dashed var(--line); border-radius: 16px; color: var(--ink-3); text-align: center; font-size: 14px; }

/* 文字 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { border: 2px solid var(--ink); border-radius: 16px; padding: 16px 18px; background: var(--card); }
.stat b { display: block; font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; white-space: nowrap; }
.stat .mono { color: var(--ink-3); }

/* 她的想法怎么变：罗盘 / 年表 / 那一年的她 */
.ops-wrap { margin: 8px 0 12px; }
.ops-lede { margin: -6px 0 18px; max-width: 70ch; font-size: 14px; color: var(--ink-2); }
.ops-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 12px; }
.ops-seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden; }
.ops-seg button { padding: 7px 14px; border: 0; background: none; font-weight: 600; font-size: 13px; }
.ops-seg button + button { border-left: 1.5px solid var(--ink); }
.ops-seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.ops-seg button i { font-style: normal; font-family: var(--mono); font-size: 11px; margin-left: 6px; opacity: .7; }
.ops-seg.small button { padding: 4px 10px; font-size: 12px; }
.ops-pick { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.ops-pick select { font: inherit; font-size: 13px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); }
.ops-doms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ops-doms button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; }
.ops-doms button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ops-doms button small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ops-doms button[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.ops-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ops-stage { position: relative; height: 660px; border: 2px solid var(--ink); border-radius: 18px; background: var(--card); overflow: hidden; }
.ops-stage.scroll { overflow-y: auto; }
.ops-stage canvas { display: block; }
.ops-tip { position: absolute; z-index: 2; max-width: 260px; padding: 7px 10px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.5; pointer-events: none; }
.ops-hud { position: absolute; left: 14px; bottom: 10px; margin: 0; font-size: 10px; text-transform: none; letter-spacing: .04em; pointer-events: none; }
.ops-card { max-height: 660px; overflow-y: auto; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: 5px 5px 0 var(--shadow); position: relative; }
.ops-card h4 { margin: 4px 0 8px; font-size: 19px; font-weight: 800; line-height: 1.4; }
.ops-card .mono { margin: 0; font-size: 11px; }
.ops-intro { margin: 8px 0; font-size: 15px; }
.ops-intro b { font-size: 22px; }
.ops-note { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.ops-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--paper); font-size: 18px; }
.ops-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ops-tags span { padding: 2px 8px; border-radius: 6px; background: var(--paper); font-size: 12px; color: var(--ink-2); }
.ops-tags .rare { display: inline-flex; align-items: center; gap: 4px; background: var(--ice-soft); color: var(--evolve); font-weight: 700; }
.ops-tags .flake { width: 11px; height: 11px; }
.ops-legend .flake-k { width: 11px; height: 11px; border-radius: 0; background: var(--evolve);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .8v10.4M1.5 3.4l9 5.2M1.5 8.6l9-5.2' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 .8v10.4M1.5 3.4l9 5.2M1.5 8.6l9-5.2' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ops-tags .t-changed { background: var(--sun-soft); color: var(--sun); font-weight: 700; }
.ops-tags .t-evolving { background: var(--ice-soft); color: var(--evolve); }
.ops-was { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.ops-was button, .ops-sib button { border: 0; background: none; padding: 0; text-align: left; font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--line); line-height: 1.6; }
.ops-was button:hover, .ops-sib button:hover { border-color: var(--ink); }
.ops-quotes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ops-quotes blockquote { margin: 0 0 4px; padding-left: 12px; border-left: 3px solid var(--sun); font-size: 14px; line-height: 1.75; }
.ops-quotes .mono { display: inline; margin-right: 6px; text-transform: none; }
.ops-quotes a { font-size: 12px; color: var(--sea); border-bottom: 1px solid var(--ice); }
.ops-why { font-size: 12px; color: var(--ink-3); margin: 0 0 12px; }
.ops-sib { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.ops-sib small { margin-right: 8px; color: var(--ink-3); }
.ops-play { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ops-btn { width: 38px; height: 38px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--card); font-size: 13px; }
.ops-track { flex: 1; height: 44px; min-width: 0; cursor: pointer; }
.ops-date { flex: none; min-width: 150px; text-transform: none; letter-spacing: .02em; }
.ops-date b { color: var(--ink); font-size: 14px; }
.ops-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.ops-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ops-legend i { width: 9px; height: 9px; border-radius: 50%; }
.ops-legend .ring { border: 1.5px solid var(--ink-2); background: var(--card); }
.ops-legend .arc { width: 16px; height: 8px; border-radius: 8px 8px 0 0; border: 2px solid var(--sun); border-bottom: 0; }
.ops-legend .arc.dash { border-style: dashed; }
.ops-leg-k { color: var(--ink-3); }
.ops-wall { position: absolute; inset: 0; overflow-y: auto; padding: 16px 18px; }
.ops-wallhead { position: sticky; top: -16px; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -16px -18px 14px; padding: 14px 18px; background: var(--glass-strong); border-bottom: 1px solid var(--line); }
.ops-wallhead label { font-weight: 700; }
.ops-wallhead label b { color: var(--sun); }
.ops-wallhead input { flex: 1; min-width: 160px; accent-color: var(--sun); }
.ops-wallhead .mono { text-transform: none; }
.ops-wallgrid { columns: 2 300px; column-gap: 22px; }
.ops-wallgrid section { break-inside: avoid; margin-bottom: 18px; }
.ops-wallgrid h4 { margin: 0 0 6px; font-size: 15px; color: var(--c); }
.ops-wt { margin-bottom: 10px; }
.ops-wt .q { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.ops-st { display: flex; gap: 8px; justify-content: space-between; width: 100%; padding: 5px 8px; border: 0; border-left: 3px solid var(--line); border-radius: 0 8px 8px 0; background: none; text-align: left; font-size: 13px; line-height: 1.5; }
.ops-st:hover, .ops-st.cur { background: var(--paper); }
.ops-st small { flex: none; color: var(--ink-3); }
.ops-st.old span { text-decoration: line-through; color: var(--ink-3); }
.ops-st.new { border-left-color: var(--sun); }
.ops-st.new span { font-weight: 700; }
.ops-empty { color: var(--ink-3); }
/* 文章：写作时间轴（一格一篇，按月堆；底色是她那几段日子） */
.shelf { margin: 0 0 18px; }
.shelf-plot { position: relative; height: 214px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); overflow: hidden; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.shelf-plot .band { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.shelf-plot .band.alt { background: var(--band-alt); }
.shelf-plot .band button { position: absolute; top: 7px; left: 6px; max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 9px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 11px; font-weight: 700; color: var(--ink-2); }
.shelf-plot .band button:hover { border-color: var(--ink); color: var(--ink); }
.shelf-plot .band button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.shelf-plot .col { position: absolute; bottom: 30px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; pointer-events: none; }
.shelf-plot .blk { display: block; width: calc(100% - 3px); min-width: 2px; max-width: 16px; height: 8px; border-radius: 2px; background: var(--sea); transition: opacity .2s; pointer-events: auto; }
.shelf-plot .blk[data-c="向内探索"] { background: var(--violet); }
.shelf-plot .blk[data-c="对谈漫聊"] { background: var(--sun); }
.shelf-plot .blk.off { opacity: .14; }
.shelf-plot .blk:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.shelf-plot .sel { position: absolute; top: 0; bottom: 0; background: rgba(242, 98, 31, .08); border-left: 2px solid var(--sun); border-right: 2px solid var(--sun); pointer-events: none; }
.shelf-plot .yr { position: absolute; bottom: 7px; padding: 0 3px; border: 0; border-left: 1.5px solid var(--ink-3); border-radius: 0; background: none; font: 600 11px/1 var(--mono); color: var(--ink-3); }
.shelf-plot .yr:hover { color: var(--ink); border-color: var(--ink); }
/* 贴着右边的那个年份往左排，免得被裁掉 */
.shelf-plot .yr.end { transform: translateX(-100%); border-left: 0; border-right: 1.5px solid var(--ink-3); }
.shelf-tip { position: absolute; z-index: 2; max-width: 220px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 12px; line-height: 1.45; transform: translate(-50%, -100%); pointer-events: none; }
.shelf-tip .mono { display: block; margin-bottom: 2px; font-size: 10px; color: var(--muted-on-ink); }
.shelf-eras { display: none; }
.shelf-sum { margin: 8px 2px 0; font-size: 13px; color: var(--ink-2); }
.shelf-sum b { font-size: 16px; color: var(--ink); }

.word-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 13px; }
.filters button[aria-pressed=true] { background: var(--ink); color: var(--on-ink); }
.filters button i { font-style: normal; font-family: var(--mono); font-size: 11px; margin-left: 6px; opacity: .7; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden; }
.seg button { padding: 7px 12px; border: 0; background: none; font-weight: 600; font-size: 13px; white-space: nowrap; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.dice { padding: 7px 14px; border: 2px dashed var(--ink); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 13px; }
.dice:hover { border-style: solid; }
#search { margin-left: auto; min-width: 220px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; font-size: 14px; background: var(--card); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chips:empty { display: none; }
.chips button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; }
.chips button b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--chip-dot); font-weight: 400; }

/* 卡片：整张可点（标题的链接铺满卡片），卡片里的地点是单独的按钮 */
.articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.articles li.art { position: relative; display: grid; gap: 8px; align-content: start; padding: 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); transition: transform .15s, box-shadow .15s; }
.articles li.art:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow); }
.articles li.art h4 a::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.articles li.art h4 a:focus-visible { outline: none; }
.articles li.art:has(h4 a:focus-visible) { box-shadow: 0 0 0 3px var(--sea); }
.articles .meta { display: flex; gap: 10px; align-items: center; }
.articles .mins { margin-left: auto; font-size: 11px; }
.articles .cat { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--ice-soft); color: var(--sea); }
.articles .cat[data-c="对谈漫聊"] { background: var(--sun-soft); color: var(--sun); }
.articles .cat[data-c="向内探索"] { background: var(--violet-soft); color: var(--violet); }
.articles h4 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.35; }
.articles p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.articles .places { display: flex; flex-wrap: wrap; gap: 4px; }
.articles .places button { position: relative; z-index: 1; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: 500 11px/1.6 var(--mono); color: var(--ink-3); }
.articles .places button:hover { border-color: var(--ink); color: var(--ink); }
.added { margin-left: 8px; padding: 1px 6px; border: 1px dashed var(--sun); border-radius: 6px; font: normal 600 10px/1.4 var(--sans); color: var(--sun); vertical-align: 3px; white-space: nowrap; }
.articles .more-row { grid-column: 1 / -1; }
.articles .more { width: 100%; padding: 14px; border: 2px dashed var(--line); border-radius: 16px; background: none; color: var(--ink-2); font-weight: 600; }
.articles .empty { grid-column: 1 / -1; }
/* 目录：按她那几段日子分组，一行一篇 */
.articles.toc { display: block; border-top: 2px solid var(--ink); }
.articles.toc .toc-era { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 22px 4px 8px; border-bottom: 1px solid var(--line); }
.articles.toc .toc-era b { font-size: 20px; font-weight: 800; }
.articles.toc .toc-row a { display: grid; grid-template-columns: 92px 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px dashed var(--line); }
.articles.toc .toc-row a:hover { background: var(--card); }
.articles.toc .toc-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--sea); }
.articles.toc .toc-row i[data-c="向内探索"] { background: var(--violet); }
.articles.toc .toc-row i[data-c="对谈漫聊"] { background: var(--sun); }
.articles.toc .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15px; }
.articles.toc .m { font-size: 11px; }
.sub-head { font-size: 28px; display: flex; align-items: baseline; gap: 14px; margin: 56px 0 18px; }
.moments-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.moment { flex: 0 0 260px; padding: 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); display: grid; gap: 8px; align-content: start; }
.moment .mono { color: var(--sea); }
.moment p { margin: 0; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.moment .loc { font-size: 11px; color: var(--ink-3); }
/* 搜索：卡片里换成搜到的那一句，关键词标出来；朋友圈短句同样 */
.articles .hit, .moment p { overflow-wrap: anywhere; }
.articles mark, .moment mark { padding: 0 2px; border-radius: 3px; background: var(--sun-soft); color: var(--ink); font-weight: 700; }
.moments-none { margin: 4px 2px 10px; font-size: 13px; color: var(--ink-3); }
.sub-head .sub-count { margin-left: auto; font-size: 12px; font-weight: 400; }
.todo { margin-top: 48px; padding: 24px 28px; border: 2px dashed var(--ink-3); border-radius: 18px; color: var(--ink-2); max-width: 760px; }
.todo p { margin: 8px 0; }
.todo ul { margin: 8px 0; padding-left: 20px; }
.todo li { margin: 4px 0; font-size: 14px; }

/* 下一站：极夜、极光、小屋 */
.next { position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px var(--pad) 64px; background: radial-gradient(1200px 700px at 50% 120%, #12304a, transparent 70%), var(--night); color: #e8eef5; }
.aurora { position: absolute; left: -10%; right: -10%; top: 14%; height: 260px; filter: blur(42px); opacity: .55; background: linear-gradient(90deg, transparent, #4ef0b0 25%, #6c8cff 55%, #c87cff 75%, transparent); transform: skewY(-4deg); animation: aurora 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes aurora { from { transform: skewY(-4deg) translateX(-6%); opacity: .4; } to { transform: skewY(-2deg) translateX(6%); opacity: .7; } }
.next-inner { position: relative; max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 22px; justify-items: center; }
.cabin { width: 96px; color: #cfe0f2; }
.cabin .window { fill: var(--sun-2); filter: drop-shadow(0 0 10px rgba(255, 194, 75, .9)); }
/* 科考船：船壳破冰船的红；驾驶台和烟囱是白楼（轮廓 + 一层很淡的底）；窗小，灯晕收一点 */
.cabin.ship { width: 132px; }
.cabin.ship .hull { fill: var(--sun); }
.cabin.ship .deck { fill: currentColor; fill-opacity: .14; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.cabin.ship .ports circle { fill: rgba(255, 255, 255, .75); }
.cabin.ship .floes { fill: currentColor; opacity: .38; }
.cabin.ship .window { filter: drop-shadow(0 0 5px rgba(255, 194, 75, .9)); }
.cabin.ship .ship-shadow { fill: rgba(21, 23, 27, .26); } /* 落在水线下面一点的海面上 */
:root[data-theme="dark"] .cabin.ship .ship-shadow { fill: rgba(0, 0, 0, .4); }
.next .mono { color: #9fb3c8; }
.next blockquote { margin: 0; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.6; font-weight: 500; }
.next blockquote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--mono); font-size: 11px; color: #9fb3c8; letter-spacing: .08em; }
.contact { margin-top: 20px; padding: 16px 22px; border: 1px dashed #4b6079; border-radius: 18px; text-align: left; }
.contact > .mono { margin: 0 0 10px; text-align: center; }
.contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); align-items: baseline; gap: 4px 10px; font-size: 14px; }
.contact li b { font-weight: 700; }
.contact .copy-link { color: #9fb3c8; }
.contact .copy-link:hover, .contact .copy-link:focus-visible { color: #ffc24b; background: rgba(255, 255, 255, .08); }

/* 往南走（app.js 设 --chill，0 到 1）：越往南越冷。一层钉住的霜垫在内容和极光后面：整页偏冷一点，四边结霜 */
:root { --frost: rgba(208, 228, 242, .6); --frost-edge: rgba(255, 255, 255, .95); }
:root[data-theme="dark"] { --frost: rgba(30, 70, 98, .32); --frost-edge: rgba(134, 195, 230, .3); }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: var(--chill, 0); transition: opacity 1.2s ease;
  background: radial-gradient(130% 120% at 50% 45%, transparent 52%, var(--frost-edge) 100%), var(--frost); }

/* 极夜里的极光（sky.js 画）：钉在视口顶上、垫在所有内容后面，不挡字；往下慢慢淡掉 */
.sky { position: fixed; left: 0; right: 0; top: 0; width: 100%; height: min(58vh, 540px); z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.sky.full { height: 100vh; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); } /* 爬上屋顶：铺满整个天 */

/* 页底的雪线（snow.js 按雪面放东西）：一道描了墨线的雪、随昼夜变化的小屋和梯子。「下一站」那页没有 */
:root { --snow: #fff; --snow-shade: #e4eef5; --hut-glass: #a6bdc7; }
:root[data-theme="dark"] { --snow: #1b2f3d; --snow-shade: #16283a; }
.snowline { position: relative; isolation: isolate; height: 150px; margin-top: 8px; }
body[data-page="next"] .snowline { display: none; }
.snow { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 84px; }
.snow-body { fill: var(--snow); }
.snow-edge { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.snow-home { position: absolute; z-index: 2; left: 0; top: 0; width: 116px; height: 74px; }
.snow-cabin { position: absolute; inset: 0; }
.snow-cabin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.snow-cabin .wall { fill: var(--card); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.snow-cabin .hut-side { fill: var(--sun-soft); }
.snow-cabin .hut-roof { fill: var(--snow-shade); }
.snow-cabin .hut-support, .snow-cabin .hut-panel, .snow-cabin .hut-door { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.snow-cabin .hut-panel { stroke-width: 1.5; }
@media (max-width: 640px) { .snow-home { width: 96px; height: 62px; } }
/* 白天是反射天空的玻璃，夜里才亮灯；亮窗芯与柔和外晕分层。 */
.snow-cabin .window, .pin-pole .pole-window {
  fill: var(--hut-glass); stroke: rgba(58, 84, 97, .35); stroke-width: .8; filter: none;
  transition: fill .45s ease, stroke .45s ease, filter .45s ease;
}
:root[data-theme="dark"] .snow-cabin .window, :root[data-theme="dark"] .pin-pole .pole-window {
  fill: #ffe6aa; stroke: rgba(255, 225, 171, .7);
  filter: drop-shadow(0 0 2px rgba(255, 219, 151, .85)) drop-shadow(0 0 7px rgba(255, 181, 85, .58));
}
.snow-home::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 6%; top: 16%; width: 104%; height: 92%; opacity: 0;
  background: radial-gradient(ellipse at 55% 45%, rgba(255, 190, 100, .18), rgba(255, 169, 66, .055) 45%, transparent 72%);
  filter: blur(5px); transition: opacity .5s ease;
}
:root[data-theme="dark"] .snow-home::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .snow-cabin .window, .pin-pole .pole-window, .snow-home::before { transition: none; }
}
.snow-cabin:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; border-radius: 6px; }
/* 梯子靠在小屋左墙上，脚踩在雪里；碰一下晃一晃 */
.ladder { position: absolute; left: -10px; top: 20%; width: 22px; height: 76%; padding: 0; border: 0; background: none; color: var(--ink-2); transform-origin: 30% 100%; transition: transform .25s cubic-bezier(.5, 1.8, .5, 1), color .2s; }
.ladder svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ladder path { vector-effect: non-scaling-stroke; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ladder:hover, .ladder:focus-visible { color: var(--ink); transform: rotate(-6deg); }
.ladder:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
.snowline .rose { z-index: 4; }
.snowline .egg-note { --nx: 0; z-index: 5; left: auto; right: max(12px, calc(16% - 40px)); bottom: calc(100% - 28px); max-width: min(84%, 340px); } /* 浮在小屋上方 */

/* 企鹅从小屋前方经过；只裁切自己的绘制层，玫瑰和说明保留在前景。 */
.penguin-parade { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.penguin-parade canvas { display: block; width: 100%; height: 100%; pointer-events: none; }

/* 阅读 */
.reader { position: fixed; inset: 0; z-index: 40; background: var(--paper); overflow-y: auto; }
.reader-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); background: var(--bar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.reader-bar button, .reader-nav button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: color .2s, border-color .2s; }
.reader-bar button:hover, .reader-nav button:not(:disabled):hover { color: var(--ink); border-color: var(--ink-3); }
.reader-nav button:disabled { opacity: .35; cursor: default; }
.reader-body { max-width: 680px; margin: 0 auto; padding: 48px 20px 40px; }
.reader-body .mono { display: block; margin-bottom: 14px; }
.reader-body h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 28px; line-height: 1.25; }
.reader-body .title-note { margin: -18px 0 26px; font-size: 13px; line-height: 1.6; color: var(--sun); }
.reader-body p { font-size: 17px; line-height: 1.95; margin: 0 0 1.2em; }
.reader-body p.sec-no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin: 2em 0 .4em; }
.reader-body h2, .reader-body h3, .reader-body h4 { margin: 1.8em 0 .6em; font-size: 20px; }
.reader-body figure { margin: 1.6em 0; }
.reader-body img { width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--ink); }
.reader-body blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--sun); color: var(--ink-2); }
.reader-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.reader-body a { color: var(--sea); border-bottom: 1px solid var(--ice); }
.reader-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.reader-nav { display: flex; justify-content: center; gap: 12px; padding: 0 20px 60px; }

/* 一条朋友圈（点文字页的朋友圈短句弹出来）：和随手翻同一种盖法——整页压暗、虚一点，正中一张卡片，细线软影子，不描粗边。
   卡片里像朋友圈那样：头像、全文、照片、时间地点，最底下一道细线隔开我写过这里的文章；照片点开是看大图（在它上面一层） */
.moment-pop { --hair: color-mix(in srgb, var(--ink) 11%, transparent); position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: rgba(6, 14, 20, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mo-card { width: min(520px, 100%); margin: auto; padding: 18px 22px 20px; border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--hair), 0 40px 90px -30px rgba(0, 0, 0, .55); }
.mo-card header { display: flex; align-items: center; gap: 10px; }
.mo-card .avatar { width: 36px; height: 36px; border-radius: 50%; }
.mo-card header b { font-size: 15px; }
.mo-close { margin: -4px -8px 0 auto; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; transition: background-color .2s, color .2s; }
.mo-close:hover, .mo-close:focus-visible { background: var(--hover); color: var(--ink); outline: none; }
.mo-text { margin: 12px 0 0; font-size: 16px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.mo-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.mo-photos.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 72%; }
.mo-photos.n1 { grid-template-columns: minmax(0, 1fr); max-width: min(72%, calc(46vh * var(--r, 1))); } /* 一张：横的宽、竖的窄，高不过半屏 */
.mo-photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.mo-photos.n1 img { aspect-ratio: var(--r); }
.mo-meta { margin: 12px 0 0; font-size: 11px; color: var(--ink-3); }
.mo-more { display: grid; justify-items: start; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.5; }
.mo-more .mono { font-size: 11px; color: var(--ink-3); }
.mo-more a { color: var(--sea); }
.mo-more a:hover { text-decoration: underline; }
/* 转发的链接：像朋友圈里那块灰底的分享卡，一个链接图标加标题（导出时没留网址，不能点） */
.mo-link { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.mo-link svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moment-pop:not([hidden]) { animation: mo-fade .22s ease both; }
.moment-pop:not([hidden]) .mo-card { animation: mo-rise .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mo-fade { from { opacity: 0; } }
@keyframes mo-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 640px) { .mo-card { padding: 16px 18px 18px; } .mo-photos.n2 { max-width: 82%; } .mo-photos.n1 { max-width: min(82%, calc(46vh * var(--r, 1))); } }
@media (prefers-reduced-motion: reduce) { .moment-pop:not([hidden]), .moment-pop:not([hidden]) .mo-card { animation: none; } }

/* 首页底片底下那句是文章标题时：先弹这张小卡（哪天、标题、开头一段），点「读全文」才进去 */
.mo-card.peek { width: min(460px, 100%); padding: 20px 24px 22px; }
.peek h3 { margin: 12px 0 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.35; }
.peek-x { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.peek-go { display: inline-block; margin-top: 18px; padding: 9px 20px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 700; }
.peek-go:hover { opacity: .88; }

/* 看大图：左边图，右边是这张图出处的原话（那条朋友圈的全文、她写过这个地方的文章）；窄屏上字在图下面。
   不是朋友圈的图（bare）还是一张图下面一行字。竖长图（tall）按可读的宽度放、上下滚，字钉在旁边 */
.lightbox { position: fixed; inset: 0; z-index: 50; background: #0a1726; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: center; gap: 32px; padding: 32px 88px; overflow-y: auto; color: #e8eef5; }
.lightbox > img { justify-self: center; max-width: 100%; max-height: calc(100vh - 64px); border-radius: 10px; }
.lightbox.tall { align-items: start; }
.lightbox.tall > img { max-height: none; width: min(100%, 760px); }
.lightbox.bare { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 12px; }
.lightbox.bare > img { max-height: 80vh; }
.lb-side { max-height: calc(100vh - 64px); overflow-y: auto; }
.lightbox.tall .lb-side { position: sticky; top: 0; }
.lightbox.bare .lb-side { max-height: none; text-align: center; }
.lb-side .mono { color: #9fb3c8; }
.lb-said { margin: 12px 0 20px; font-size: 16px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.lb-more { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
.lb-more a { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); transition: background .2s; }
.lb-more a:hover, .lb-more a:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.lb-more b { font-size: 14px; line-height: 1.5; }
.lb-more small { font: 11px var(--mono); letter-spacing: .04em; color: #ffc24b; }
.lb-more a span { font-size: 13px; line-height: 1.65; color: #b9c7d3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lb-count { margin: 18px 0 0; }
.lb-close { position: fixed; top: 16px; right: 20px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #15171b; font-size: 22px; }
.lb-nav { position: fixed; top: 50%; z-index: 1; width: 44px; height: 64px; margin-top: -32px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 30px; line-height: 1; transition: background .2s; }
.lb-nav:hover, .lb-nav:focus-visible { background: rgba(255, 255, 255, .22); outline: none; }
.lb-prev { left: 20px; } /* 别叫 .next：那是「下一站」那页的类 */
.lb-next { right: 20px; }
.lightbox.solo .lb-nav { display: none; }
@media (max-width: 760px) {
  .lightbox { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 18px; padding: 72px 16px 84px; } /* 底下留出翻页按钮的地方 */
  .lightbox > img { max-height: 70vh; }
  .lb-side, .lightbox.tall .lb-side { position: static; max-height: none; }
  .lb-nav { top: auto; bottom: 16px; margin: 0; height: 44px; background: rgba(255, 255, 255, .16); }
}

@media (max-width: 900px) {
  .chapter { grid-template-columns: 1fr; gap: 10px; }
  /* 足迹：地球仪钉在顶上，面板在下面跟着页面滚 */
  .page-trips { height: auto; min-height: 0; display: block; }
  .atlas { display: block; }
  .globe { position: sticky; top: var(--nav-h); z-index: 3; height: min(48vh, 100vw); border-radius: 0; margin: 0 calc(var(--pad) * -1); background: var(--bg-trips); }
  .atlas-panel { overflow: visible; padding: 16px 0 0; }
  .ops-main { grid-template-columns: 1fr; }
  .ops-stage { height: min(78vw, 520px); }
  .ops-card { max-height: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  nav.top { gap: 10px; padding: 0 14px; }
  nav.top .brand { font-size: 18px; }
  nav.top .brand .avatar { width: 28px; height: 28px; }
  nav.top ul a { padding: 6px 10px; font-size: 13px; }
  nav.top .lat { display: none; }
  /* 首页：她的三行各占一行，不从中间折；卷到头时最后两格正好都在屏上 */
  .film { --fw: clamp(150px, 45vw, 200px); justify-content: flex-start; padding-top: 26px; }
  .film-title { font-size: clamp(14px, calc((100vw - 2 * var(--pad)) / 17.2), 24px); } /* 最长一行 16 个字，粗体字身比字号略宽，按可用宽度算才稳 */
  .film-reel { -webkit-mask-image: none; mask-image: none; }
  #search { min-width: 0; width: 100%; margin: 0; }
  .globe-tools button { width: 32px; height: 32px; }
  /* 窄屏：时间轴里放不下那几段日子的名字，挪到图下面一排按钮；不满一年的那个年份标签让位 */
  .shelf-plot { height: 200px; }
  .shelf-plot .band button, .shelf-plot .yr.part { display: none; }
  .shelf-eras { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .shelf-eras button { padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 12px; font-weight: 600; }
  .shelf-eras button small { margin-left: 6px; font: 10px var(--mono); color: var(--ink-3); }
  .shelf-eras button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
  .shelf-eras button[aria-pressed="true"] small { color: var(--muted-on-ink); }
  .articles.toc .toc-row a { grid-template-columns: 78px 8px minmax(0, 1fr); gap: 10px; }
  .articles.toc .m { display: none; }
  .word-tools { gap: 8px; }
  .seg button { padding: 6px 9px; font-size: 12px; }
  .dice { padding: 5px 10px; font-size: 12px; }
}
/* 360 宽的安卓机上，导航差一两个像素放不下，标签会折成两行（「经 / 历」）：收一点空隙和留白；320 宽再收一点 */
@media (max-width: 380px) {
  nav.top { gap: 8px; padding: 0 12px; }
  nav.top ul { gap: 2px; }
  nav.top ul a { padding: 6px 8px; }
}
@media (max-width: 340px) {
  nav.top { gap: 6px; padding: 0 10px; }
  nav.top .brand { gap: 6px; font-size: 16px; }
  nav.top ul a { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) { .aurora, .page, .pin.on::after, nav.top .sun::after, .rose svg, .egg-note { animation: none !important; } * { scroll-behavior: auto; transition: none !important; } }
