/* ============================================================
   一只游鱼 · 沉浸式水境博客 —— 「溪涧」全屏翻页设计
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@600;700;900&display=swap');

:root {
  --ink: #0e332d;
  --ink-soft: #45685f;
  --ink-faint: #7d998f;
  --paper: rgba(255, 255, 255, .82);
  --paper-solid: #ffffff;
  --line: rgba(12, 158, 142, .16);
  --teal: #0c9e8e;
  --teal-deep: #0a7a6e;
  --teal-ink: #0b524a;
  --mint: #5fd3b3;
  --aqua: #3fb6e0;
  --coral: #ff7a6b;
  --sun: #f5a623;
  --violet: #8b7cf6;
  --tint-mint: rgba(95, 211, 179, .14);
  --shadow-card: 0 18px 44px -18px rgba(10, 82, 74, .28);
  --shadow-teal: 0 14px 30px -10px rgba(12, 158, 142, .45);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, .9, .28, 1);
  --font-display: 'Fraunces', 'Noto Serif SC', serif;
  --font-cn-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #f4fcf9 0%, #e6f6f1 38%, #d2f0f0 68%, #bfe6f0 100%);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.reader-open body { user-select: text; }

/* ---------- 水境画布 ---------- */
#sea { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ---------- 顶部悬浮条 ---------- */
.topbar {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 60;
  width: min(1200px, calc(100% - 36px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.mini-brand, .top-actions { pointer-events: auto; }
.mini-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 7px 16px 7px 8px; border-radius: var(--radius-pill); box-shadow: 0 8px 22px -12px rgba(10,82,74,.35); transition: .3s; }
.mini-brand:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.mini-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 0 0 2px var(--mint); }
.mini-brand span { font-family: var(--font-cn-serif); font-weight: 900; font-size: 15px; line-height: 1.15; }
.mini-brand small { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em; color: var(--ink-faint); font-weight: 500; }
.top-actions { display: flex; gap: 9px; align-items: center; }
.round-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: .28s; text-decoration: none; }
.round-btn:hover { color: var(--teal-deep); border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.round-btn.portfolio { width: auto; padding: 0 17px; display: inline-flex; gap: 8px; align-items: center;
  background: var(--teal-ink); color: #f2fffb; border: none; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-teal); }
.round-btn.portfolio:hover { background: var(--teal-deep); color: #fff; }
.round-btn.portfolio em { font-style: normal; }
.round-btn.off { color: var(--ink-faint); }
.round-btn.off::after { content: ''; position: absolute; width: 24px; height: 2px; border-radius: 2px;
  background: var(--coral); transform: rotate(-40deg); }

/* ---------- 右侧圆点导航 ---------- */
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; gap: 16px; }
.dots button { position: relative; width: 13px; height: 13px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(10, 122, 110, .45); background: transparent; transition: .3s; }
.dots button:hover { border-color: var(--teal); transform: scale(1.25); }
.dots button.on { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 5px var(--tint-mint); }
.dots button i { position: absolute; right: 26px; top: 50%; transform: translateY(-50%) translateX(6px);
  font-style: normal; font-size: 12px; font-weight: 600; color: var(--teal-ink); white-space: nowrap;
  background: var(--paper); padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: .25s; }
.dots button:hover i { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- 页码 ---------- */
.page-no { position: fixed; left: 26px; bottom: 24px; z-index: 60;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .22em; color: var(--ink-faint); }

/* ---------- 舞台与页面 ---------- */
.stage { position: relative; z-index: 10; height: 100vh; transition: transform .95s var(--ease); will-change: transform; }
.page { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-inner { width: min(1120px, calc(100% - 120px)); max-height: 100vh; padding: 96px 0 40px; text-align: center; }
.kicker { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .22em; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
.page h2 { font-family: var(--font-cn-serif); font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin-bottom: 34px; }
.page h2 em { font-style: normal; color: var(--teal-deep); }
.page-foot { margin-top: 26px; color: var(--ink-soft); font-size: 14px; }
.page-foot a { color: var(--teal-deep); font-weight: 700; text-decoration: none; }
.page-foot a:hover { text-decoration: underline; }

/* 入场：随翻页重启 */
.rise { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.page.active .rise { opacity: 1; transform: none; }
.page.active .kicker.rise, .page.active .hero-avatar.rise { transition-delay: .05s; }
.page.active h2.rise, .page.active .hero-kicker.rise { transition-delay: .16s; }
.page.active .hero h1.rise { transition-delay: .27s; }
.page.active .hero-lede.rise, .page.active .post-row.rise,
.page.active .proj-grid.rise, .page.active .about-me.rise { transition-delay: .38s; }
.page.active .hero-stats.rise, .page.active .link-row.rise { transition-delay: .5s; }
.page.active .hero-cta.rise, .page.active .page-foot.rise { transition-delay: .62s; }

/* ---------- 第 1 页 · Hero ---------- */
.hero-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin-bottom: 22px;
  border: 4px solid #fff; box-shadow: 0 0 0 4px var(--mint), 0 24px 48px -16px rgba(10, 82, 74, .4); }
.hero-kicker { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .2em; color: var(--teal); font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-family: var(--font-cn-serif); font-size: clamp(30px, 4.8vw, 52px); font-weight: 900; line-height: 1.24; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--teal-deep); position: relative; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px;
  background: var(--tint-mint); z-index: -1; border-radius: 6px; }
.hero-lede { color: var(--ink-soft); font-size: 16.5px; line-height: 1.8; margin-bottom: 30px; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 26px; margin-bottom: 34px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--teal-deep); line-height: 1.05; }
.stat span { font-size: 13px; color: var(--ink-faint); }
.s-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); background: rgba(10,122,110,.3); }
.hero-cta { display: flex; gap: 14px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; border: 1.5px solid transparent;
  font-family: var(--font-body); transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s; }
.btn-primary { background: var(--teal-ink); color: #f2fffb; box-shadow: var(--shadow-teal); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); }
.btn-ghost { border-color: rgba(10,122,110,.4); color: var(--ink); background: var(--paper); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-3px); }

/* 滚动提示 */
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--ink-faint); }
.scroll-hint small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; }
.wheel { width: 22px; height: 36px; border: 2px solid rgba(10,122,110,.45); border-radius: 12px; position: relative; }
.wheel::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 3px;
  background: var(--teal); transform: translateX(-50%); animation: wheelDrop 1.6s ease-in-out infinite; }
@keyframes wheelDrop { 0% { opacity: 0; top: 6px; } 35% { opacity: 1; } 75% { opacity: 0; top: 19px; } 100% { opacity: 0; top: 6px; } }

/* ---------- 第 2 页 · 文章 ---------- */
.post-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.post-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: 0 12px 30px -16px rgba(10,82,74,.25); backdrop-filter: blur(12px);
  cursor: pointer; text-align: left; font-family: var(--font-body); display: flex; flex-direction: column; gap: 10px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; overflow: hidden; }
.post-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--mint), var(--teal)); opacity: 0; transition: .3s; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); border-color: rgba(12,158,142,.4); }
.post-card:hover::before { opacity: 1; }
.post-card .pc-top { display: flex; gap: 10px; align-items: center; }
.post-card h3 { font-family: var(--font-cn-serif); font-size: 17.5px; font-weight: 900; line-height: 1.45; min-height: 3.2em; }
.post-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .pc-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); padding-top: 12px; border-top: 1px dashed var(--line); }
.post-card .pc-meta b { color: var(--teal-deep); font-weight: 600; }
.chip { display: inline-flex; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700;
  background: var(--tint-mint); color: var(--teal-deep); }
.chip.sun { background: rgba(245, 166, 35, .14); color: #c77f08; }

/* ---------- 第 3 页 · 作品 ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: left; }
.proj-card { position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 15px;
  backdrop-filter: blur(12px); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; overflow: hidden; }
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: rgba(12,158,142,.4); }
.proj-card .pj-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--tint-mint); color: var(--teal-deep); }
.proj-card .pj-ic svg { width: 19px; height: 19px; }
.proj-card h4 { font-family: var(--font-cn-serif); font-size: 15px; font-weight: 900; margin-bottom: 3px; }
.proj-card small { display: block; color: var(--ink-soft); font-size: 11.5px; line-height: 1.55; min-height: 2.6em; }
.proj-card .pj-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.proj-card .pj-tags i { font-style: normal; font-family: var(--font-mono); font-size: 9.5px; padding: 2.5px 8px;
  border-radius: var(--radius-pill); background: rgba(10,122,110,.08); color: var(--teal-deep); }
.proj-card .pj-go { position: absolute; top: 14px; right: 14px; color: var(--ink-faint); transition: .3s; }
.proj-card .pj-go svg { width: 14px; height: 14px; }
.proj-card:hover .pj-go { color: var(--teal); transform: translate(2px, -2px); }

/* ---------- 第 4 页 · 关于 ---------- */
.about-me { display: flex; align-items: center; gap: 26px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 34px; backdrop-filter: blur(12px); box-shadow: 0 12px 30px -16px rgba(10,82,74,.25); margin-bottom: 22px; }
.about-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--teal), var(--shadow-card); }
.about-me h2 { margin-bottom: 8px; font-size: clamp(22px, 2.6vw, 30px); }
.about-lede { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }
.link-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.link-card { position: relative; display: block; text-decoration: none; color: var(--ink); text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px;
  backdrop-filter: blur(12px); cursor: pointer; font-family: var(--font-body);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.link-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: rgba(12,158,142,.4); }
.link-card .lk-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--tint-mint); color: var(--teal-deep); }
.link-card .lk-ic svg { width: 20px; height: 20px; }
.link-card h4 { font-family: var(--font-cn-serif); font-size: 15px; font-weight: 900; margin-bottom: 3px; }
.link-card p { font-size: 12px; color: var(--ink-soft); }
.link-card .lk-url { margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--teal-deep); word-break: break-all; }
.link-card.hero-link { background: linear-gradient(135deg, var(--teal-ink), #0c7a6e 55%, #0e9e8e);
  border: none; color: #eafffa; }
.link-card.hero-link h4 { color: #fff; }
.link-card.hero-link p { color: rgba(234,255,250,.82); }
.link-card.hero-link .lk-ic { background: rgba(255,255,255,.16); color: #fff; }
.link-card.hero-link .lk-url { color: #7fe6cd; }

/* ---------- 第 5 页 · 留言板与点赞 ---------- */
.page-inner.guest h2 { margin-bottom: 22px; }
.guest-grid { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: start; text-align: left; }

.like-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; backdrop-filter: blur(12px); box-shadow: 0 12px 30px -16px rgba(10,82,74,.25); }
.like-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; border: none; background: transparent;
  cursor: pointer; color: var(--coral); padding: 4px; transition: transform .3s var(--ease); }
.like-btn svg { width: 44px; height: 44px; transition: .3s var(--ease); }
.like-btn b { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--teal-deep); line-height: 1; }
.like-btn:hover { transform: translateY(-3px); }
.like-btn:hover svg { transform: scale(1.08); }
.like-btn.on svg { fill: var(--coral); }
.like-btn.on { animation: likePop .45s var(--ease); }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
.like-hint { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); text-align: center; }
.like-burst { position: fixed; z-index: 210; pointer-events: none; color: var(--coral); line-height: 1;
  animation: likeBurst .9s var(--ease) forwards; }
@keyframes likeBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.5); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.15); }
}

.msg-board { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 16px; backdrop-filter: blur(12px); box-shadow: 0 12px 30px -16px rgba(10,82,74,.25); }
.msg-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg-name { width: 190px; padding: 9px 15px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: rgba(255,255,255,.7); font-family: var(--font-body); font-size: 13.5px; color: var(--ink); outline: none; transition: .25s; }
.msg-text { min-height: 62px; resize: none; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(255,255,255,.7); font-family: var(--font-body); font-size: 14px; color: var(--ink); outline: none;
  line-height: 1.7; transition: .25s; }
.msg-name:focus, .msg-text:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--tint-mint); background: #fff; }
.msg-name::placeholder, .msg-text::placeholder { color: var(--ink-faint); }
.msg-bar { display: flex; align-items: center; justify-content: space-between; }
.msg-bar .btn { padding: 10px 22px; font-size: 13.5px; }
.msg-count { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
/* 留言气泡：化作水泡，自海底上浮至海面后消散 */
.bubble-zone { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.float-bubble {
  position: absolute; left: var(--x, 30%); bottom: -110px;
  display: flex; align-items: flex-start; gap: 9px;
  width: max-content; max-width: min(250px, 46vw);
  padding: 10px 15px; border-radius: 20px 20px 20px 6px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 26px -12px rgba(10,82,74,.4), inset 0 0 20px rgba(255,255,255,.55);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  color: var(--ink); will-change: transform, opacity;
  animation-name: bubbleUp;
  animation-duration: var(--dur, 12s);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.float-bubble::after { content: ''; position: absolute; inset: 2px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 18% 12%, rgba(255,255,255,.9), rgba(255,255,255,0) 55%); opacity: .7; }
.float-bubble .fb-avatar { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: rgba(12,158,142,.16); color: var(--teal-deep);
  font-family: var(--font-cn-serif); font-weight: 900; font-size: 13px; }
.float-bubble .fb-main { position: relative; z-index: 1; min-width: 0; }
.float-bubble .fb-main b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.float-bubble .fb-main p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes bubbleUp {
  0%   { transform: translate(0, 0) scale(.86); opacity: 0; }
  9%   { opacity: 1; }
  25%  { transform: translate(var(--drift, 28px), -24vh) scale(1); }
  50%  { transform: translate(calc(var(--drift, 28px) * -1), -48vh) scale(1); }
  75%  { transform: translate(var(--drift, 28px), -72vh) scale(1); }
  100% { transform: translate(0, -92vh) scale(1); opacity: 1; }
}
/* 到海面后「破裂」：迅速胀大并消散 */
@keyframes bubblePop {
  0%   { transform: translate(0, -92vh) scale(1); opacity: 1; }
  40%  { transform: translate(0, -92vh) scale(1.26); opacity: .62; }
  100% { transform: translate(0, -92vh) scale(1.5); opacity: 0; }
}
/* 破裂迸出的小水珠 */
.bubble-droplet { position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(140,210,230,.6) 70%, rgba(140,210,230,0));
  animation: dropletFly .5s var(--ease) forwards; }
@keyframes dropletFly {
  0%   { transform: translate(-50%, -50%) scale(.5); opacity: .95; }
  100% { transform: translate(calc(-50% + var(--dxx, 0px)), calc(-50% + var(--dyy, 0px))) scale(1.1); opacity: 0; }
}

/* ---------- 阅读层 ---------- */
.reader { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; padding: 4vh 18px;
  background: rgba(8, 38, 34, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .45s; }
.reader.open { opacity: 1; pointer-events: auto; }
.reader-panel { width: min(860px, 100%); display: flex; flex-direction: column; background: var(--paper-solid);
  border-radius: var(--radius); box-shadow: 0 40px 90px -30px rgba(4, 34, 30, .6);
  transform: translateY(34px) scale(.985); transition: transform .5s var(--ease); overflow: hidden; }
.reader.open .reader-panel { transform: none; }
.reader-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: var(--paper-solid); }
.reader-top .round-btn { background: transparent; backdrop-filter: none; }
.reader-csdn { font-family: var(--font-mono); font-size: 12.5px; color: var(--teal-deep); text-decoration: none; font-weight: 600; }
.reader-csdn:hover { text-decoration: underline; }
.reader-body { overflow-y: auto; padding: 38px 46px 50px; user-select: text; }
.reader-body .r-tag { display: inline-flex; margin-bottom: 14px; }
.reader-body h1 { font-family: var(--font-cn-serif); font-size: clamp(23px, 3vw, 32px); font-weight: 900; line-height: 1.4; margin-bottom: 10px; }
.reader-body .r-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: 26px; }
.reader-body h2 { font-family: var(--font-cn-serif); font-size: 20px; font-weight: 900; margin: 30px 0 12px; padding-left: 13px; position: relative; }
.reader-body h2::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--mint), var(--teal)); }
.reader-body p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; margin-bottom: 13px; }
.reader-body strong { color: var(--ink); }
.reader-body ul { padding-left: 22px; margin-bottom: 13px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.reader-body li { margin-bottom: 6px; }
.reader-body pre { background: #0d2b26; color: #c8ece4; border-radius: var(--radius-sm); padding: 18px 20px;
  overflow-x: auto; font: 13px/1.7 var(--font-mono); margin: 16px 0; border: 1px solid rgba(95,211,179,.18); }
.reader-body pre .cm { color: #6fa89f; }
.reader-body code.inline { font-family: var(--font-mono); font-size: .88em; background: var(--tint-mint);
  color: var(--teal-ink); padding: 2px 7px; border-radius: 6px; }
.reader-body blockquote { border-left: 4px solid var(--teal); background: var(--tint-mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 18px; margin: 15px 0; color: var(--teal-ink); font-size: 14.5px; }
.reader-related { margin-top: 32px; border-top: 1px dashed var(--line); padding-top: 20px; }
.reader-related .rr-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-faint); margin-bottom: 12px; }
.rr-card { display: flex; align-items: center; gap: 13px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 9px; text-decoration: none; color: var(--ink); transition: .3s; }
.rr-card:hover { border-color: var(--teal); transform: translateX(5px); }
.rr-card .rp-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--tint-mint); color: var(--teal-deep); }
.rr-card .rp-ic svg { width: 18px; height: 18px; }
.rr-card strong { display: block; font-size: 14px; }
.rr-card small { color: var(--ink-faint); font-size: 12px; }
.rr-card .rp-arrow { margin-left: auto; color: var(--teal-deep); }
.rr-card .rp-arrow svg { width: 15px; height: 15px; }

.reader-open, body.reader-open { user-select: none; }
.reader-open .reader-body { user-select: text; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 34px; left: 50%; transform: translate(-50%, 80px); z-index: 200;
  background: var(--teal-ink); color: #f2fffb; font-size: 13.5px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--radius-pill); box-shadow: var(--shadow-teal);
  opacity: 0; transition: .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .post-row { grid-template-columns: 1fr; gap: 12px; }
  .post-card h3 { min-height: 0; }
  .page-inner { width: calc(100% - 96px); }
  .link-row { grid-template-columns: repeat(2, 1fr); }
  .dots { right: 12px; }
  .page-no { display: none; }
  .hero-stats { gap: 18px; }
  .stat strong { font-size: 30px; }
  .about-me { flex-direction: column; text-align: center; align-items: center; padding: 24px; }
  .reader-body { padding: 28px 24px 40px; }
  .guest-grid { grid-template-columns: 1fr; }
  .like-panel { flex-direction: row; gap: 18px; padding: 16px 20px; }
  .like-btn { flex-direction: row; gap: 12px; }
  .msg-name { width: 100%; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .stage { transition: none; }
  .rise { transition: none; opacity: 1; transform: none; }
  .wheel::after { animation: none; }
}
