/* ==========================================================================
   义鳌の奇幻空间 · 样式表
   风格：明亮插画 + 毛玻璃卡片
   ========================================================================== */

/* ── 设计变量 ───────────────────────────────────────────────────────────── */
:root {
  /* 明亮 · 晴空 */
  --card:        rgba(255, 255, 255, .74);
  --card-hover:  rgba(255, 255, 255, .90);
  --bg-sunken:   rgba(255, 255, 255, .46);
  --glass-brd:   rgba(255, 255, 255, .8);
  --text:        #1b2a3a;
  --text-soft:   #3c5065;
  --muted:       #4a5d70;
  --faint:       #5f7386;
  --line:        rgba(108, 144, 174, .22);
  --accent:      #2069b8;
  --accent-soft: rgba(32, 105, 184, .11);
  --green:       #34a05c;
  --pink:        #ec6fa2;
  --glow-a:      rgba(255, 255, 255, .5);
  --glow-b:      rgba(140, 200, 255, .28);
  /* 引文用的楷体 —— 跟正文的无衬线拉开质感，读起来慢一点 */
  --font-kai: "KaiTi", "STKaiti", "Kaiti SC", "楷体", "Songti SC", "SimSun", Georgia, serif;
  /* 鼠标光晕：两层 —— 内层柔和亮核 + 外层淡淡的光晕。
     用 screen 而不是 plus-lighter：加色是直接把亮度加上去，白色叠白云会烧成死白；
     screen 是 1-(1-a)(1-b)，同样能提亮，但会自然收敛，不会过曝 */
  --cursor-glow:
    radial-gradient(circle closest-side,
      rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle closest-side,
      rgba(170, 215, 255, .15) 0%, rgba(170, 215, 255, 0) 76%);
  --cursor-blend: screen;
  --shadow-sm:   0 2px 8px rgba(44, 86, 126, .07);
  --shadow-md:   0 4px 18px rgba(44, 86, 126, .10), 0 1px 3px rgba(44, 86, 126, .06);
  --shadow-lg:   0 14px 40px rgba(44, 86, 126, .18), 0 2px 8px rgba(44, 86, 126, .08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap:   1220px;
  --gutter: clamp(16px, 3.4vw, 32px);
  --radius:    20px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur: .4s;
}

[data-theme="dark"] {
  /* 夜空 */
  --card:        rgba(24, 40, 63, .74);
  --card-hover:  rgba(30, 49, 76, .88);
  --bg-sunken:   rgba(15, 28, 46, .6);
  --glass-brd:   rgba(126, 176, 226, .18);
  --text:        #e9f2fc;
  --text-soft:   #bdd1e5;
  --muted:       #97b0c8;
  --faint:       #7d97b2;
  --line:        rgba(126, 176, 226, .17);
  --accent:      #6cb8f7;
  --accent-soft: rgba(108, 184, 247, .14);
  --green:       #5cd18b;
  --pink:        #f389b6;
  --glow-a:      rgba(110, 170, 255, .20);
  --glow-b:      rgba(150, 120, 255, .14);
  /* 夜空模式下同样两层，颜色偏蓝。深色底子本来就暗，可以比浅色稍强一点 */
  --cursor-glow:
    radial-gradient(circle closest-side,
      rgba(190, 220, 255, .20) 0%, rgba(190, 220, 255, 0) 34%),
    radial-gradient(circle closest-side,
      rgba(110, 170, 255, .16) 0%, rgba(110, 170, 255, 0) 76%);
  --cursor-blend: screen;
  --shadow-sm:   0 2px 8px rgba(0, 8, 20, .3);
  --shadow-md:   0 4px 18px rgba(0, 8, 20, .4), 0 1px 3px rgba(0, 8, 20, .3);
  --shadow-lg:   0 14px 40px rgba(0, 8, 20, .55), 0 2px 8px rgba(0, 8, 20, .35);
}

/* ── 基础 ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ⚠️ 这一条必须留着。
   hidden 属性靠浏览器默认样式表的 display:none 生效，
   作者样式里任何 display 都会把它盖掉 —— 结果就是「明明写了 hidden 却关不掉」。
   下面 .modal 用了 display:grid，就属于这种。

   踩过两次：
     · 后台的「修改密码」弹窗一进去就自己弹出来
     · 前台的「申请友链」弹窗点「取消」没反应
   之前只在 .to-top[hidden] 上单独写过一次，管不到别的元素。
   （admin.css 里有同样一条，别删。） */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--text); margin: 0; font-weight: 680; line-height: 1.32; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(110, 145, 180, .35);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(110, 145, 180, .6); background-clip: padding-box; }

/* ══ 插画背景 ══ */
/* 整张 16:9 的插画铺在一个「舞台」里，舞台用 aspect-ratio 复刻
   background-size:cover 的行为，任何视口比例下都铺满且不变形。

   动的东西只有两样，都很克制：
     ① .stage__bg       极慢的推近 + 微移（52 秒一轮），像镜头在呼吸
     ② .wind / .petals  几缕风的流线和飘絮

   插画里的猫和草都是画的一部分，保持静止 —— 试过把它们抠出来单独动，
   卡通描边的羽化边缘一动就露破绽，反而更难看。
   同理，CSS 手绘的前景草也撤掉了：它跟底图的草对不齐，像悬浮的色块。 */

.scenery {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background-color: #cfe9f7;
  transition: filter var(--dur) var(--ease-soft);
}

/* 舞台：保持 16:9，同时不小于视口 —— 等价于 cover */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 2560 / 1444;
  min-width: 100%;
  min-height: 100%;
}

/* 底图：极慢的推近 + 微移，像镜头在轻轻呼吸。
   放大 7%~11% 是为了给位移留出余量，否则边缘会露白 */
.stage__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/bg.jpg") center / 100% 100% no-repeat;
  animation: bgBreathe 52s ease-in-out infinite;
  will-change: transform;
}

@keyframes bgBreathe {
  0%, 100% { transform: scale(1.07) translate3d(1.1%, 0.7%, 0); }
  50%      { transform: scale(1.11) translate3d(-1.1%, -0.7%, 0); }
}

/* 风的流线 */
.wind { position: absolute; inset: 0; overflow: hidden; }
.wind i {
  position: absolute;
  top: var(--y);
  left: 0;
  width: var(--w, 240px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  opacity: 0;
  animation: gust var(--t, 14s) linear infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}

@keyframes gust {
  0%   { transform: translateX(-28vw) scaleX(.5); opacity: 0; }
  18%  { opacity: .45; }
  82%  { opacity: .28; }
  100% { transform: translateX(116vw) scaleX(1.35); opacity: 0; }
}

/* 飘絮 / 花瓣 */
.petals { position: absolute; inset: 0; overflow: hidden; }
.petals i {
  position: absolute;
  top: var(--y);
  left: -5vw;
  width: var(--s, 7px);
  height: var(--s, 7px);
  border-radius: 62% 38% 55% 45%;
  background: var(--c, #ffd6e5);
  opacity: 0;
  animation: drift var(--t, 16s) linear infinite;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}

/* 多出来的花瓣只在暗色模式飘。
   浅色底图里本来就画了花，再叠一层会乱；
   暗色底图是「落花浮在水面」，前景有花跟着走才连成一气。
   暗色下再给一层微光 —— 底图里也是白花，不加光的话前景花瓣会"粘"在背景上，
   分不出哪片在飘。 */
.petals i.is-night { display: none; }
[data-theme="dark"] .petals i.is-night { display: block; }
[data-theme="dark"] .petals i {
  box-shadow: 0 0 9px rgba(198, 224, 255, .6), 0 0 2px rgba(255, 255, 255, .8);
}

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .75; }
  100% { transform: translate(114vw, -14vh) rotate(560deg); opacity: 0; }
}

/* 一层极淡的白纱，压住高频细节，保证正文与卡片始终读得清 */
.scenery::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .20) 0%,
    rgba(255, 255, 255, .06) 34%,
    rgba(255, 255, 255, .16) 100%);
}

/* 夜空模式：同一张插画压暗 + 微微偏冷，整层（含小猫和草）一起变夜色。
   之前是 brightness(.36) saturate(.72)，压得太狠 —— 草地直接糊成橄榄灰，
   现在提亮到 .52 并保留大部分饱和度，暗但仍看得出是那张画 */
/* 夜空模式换一张底图：黑白的落花浮在水面上。
   几个关键点：
   1. 用 cover 而不是 100% 100% —— 新图是 2048x1408(1.45)，舞台是 16:9(1.77)，
      强行拉伸会把人像方向拉扁 22%。cover 只裁不拉。
   2. 去掉 brightness 滤镜 —— 新图在导出时已经 gamma 压暗过了，再压会糊成一片黑。
   3. 白纱换成暗纱，否则白纱会把这张图的暗部整个提亮。 */
[data-theme="dark"] .stage__bg {
  background-image: url("../assets/bg-dark.jpg");
  background-size: cover;
}
[data-theme="dark"] .scenery {
  background-color: #060f1c;
  filter: none;
}
[data-theme="dark"] .scenery::after {
  background: linear-gradient(180deg,
    rgba(4, 10, 20, .46) 0%,
    rgba(4, 10, 20, .18) 34%,
    rgba(4, 10, 20, .40) 100%);
}
[data-theme="dark"] .wind i { opacity: 0; animation-name: gustNight; }
@keyframes gustNight {
  0%   { transform: translateX(-28vw) scaleX(.5); opacity: 0; }
  14%  { opacity: .45; }
  86%  { opacity: .3; }
  100% { transform: translateX(116vw) scaleX(1.35); opacity: 0; }
}

/* ══ 质感 / 特效层 ══ */
/* 全屏噪点层已移除。
   原来用 SVG feTurbulence 生成 140×140 的高频噪声铺满全屏
   （baseFrequency=.85 + numOctaves=3），最后一级倍频细到亚像素，
   浏览器栅格化时产生摩尔纹，看上去就是一层规则的竖条纹。
   它本身只有 2.2% 不透明度，去掉对画面几乎没有影响。 */

.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  background: var(--cursor-glow);
  mix-blend-mode: var(--cursor-blend);
  transition: opacity .55s var(--ease-soft);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

#fx { position: fixed; inset: 0; z-index: 9999; display: block; pointer-events: none; }

/* ══ 顶栏 ══ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
[data-theme="dark"] .topbar { background: rgba(12, 26, 45, .6); }
.topbar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(44, 86, 126, .07);
}

.topbar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 720;
  color: var(--text);
  font-size: 16.5px;
  white-space: nowrap;
  flex: none;
}
.logo__mark {
  color: #4dabf7;
  font-size: 17px;
  display: inline-block;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo:hover .logo__mark { color: var(--pink); }

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }

.menu__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .22s, background .22s;
}

/* 图标：线性 SVG，用 mask 上色 —— 跟着文字颜色走，两套主题都不用改。
   路径定义在下面的 [data-icon="…"] 里，任何元素都能复用（加个 .ico 类）。 */
.menu__item::before,
.ico {
  content: "";
  flex: none;
  display: inline-block;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
  opacity: .7;
  transition: opacity .22s, transform .3s var(--ease);
}
.ico { vertical-align: -.17em; margin-right: 5px; }
.menu__item:hover { color: var(--accent); background: rgba(255, 255, 255, .55); }
.menu__item:hover::before { opacity: 1; transform: translateY(-1px); }
[data-theme="dark"] .menu__item:hover { background: rgba(108, 184, 247, .13); }

/* 当前页：淡底 + 强调色，不再用抢眼的白药丸 */
.menu__item.is-current { color: var(--accent); background: rgba(255, 255, 255, .68); }
.menu__item.is-current::before { opacity: 1; }
[data-theme="dark"] .menu__item.is-current { background: rgba(108, 184, 247, .18); }
/* 当前页底下一个小圆点，含蓄地标一下 */
.menu__item.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .75;
}

/* 九个图标的路径（24×24，统一 1.8 描边） */
[data-icon="home"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 10.6 12 3.4l8.8 7.2'/%3E%3Cpath d='M5.6 9.4V20.6h12.8V9.4'/%3E%3C/svg%3E"); }
[data-icon="book"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5C6.5 5.5 9 6.2 12 8c3-1.8 5.5-2.5 8-2.5v11c-2.5 0-5 .7-8 2.5-3-1.8-5.5-2.5-8-2.5z'/%3E%3Cpath d='M12 8v11'/%3E%3C/svg%3E"); }
[data-icon="chart"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V4'/%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M8 16l4-4.5 3 2.5 5-6'/%3E%3C/svg%3E"); }
[data-icon="pen"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5l1-4L16 5l3 3L8.5 18.5z'/%3E%3Cpath d='M14 7l3 3'/%3E%3C/svg%3E"); }
[data-icon="photo"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='3'/%3E%3Ccircle cx='9' cy='9.5' r='1.8'/%3E%3Cpath d='M4.5 16.5 9 12l3.5 3.5L15.5 12l4 4'/%3E%3C/svg%3E"); }
[data-icon="link"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.2 13.8a4 4 0 0 0 5.7 0l3-3a4 4 0 1 0-5.7-5.7l-1.1 1.1'/%3E%3Cpath d='M13.8 10.2a4 4 0 0 0-5.7 0l-3 3a4 4 0 1 0 5.7 5.7l1.1-1.1'/%3E%3C/svg%3E"); }
[data-icon="list"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 6.5h11M8.5 12h11M8.5 17.5h11'/%3E%3Ccircle cx='4.6' cy='6.5' r='1.1'/%3E%3Ccircle cx='4.6' cy='12' r='1.1'/%3E%3Ccircle cx='4.6' cy='17.5' r='1.1'/%3E%3C/svg%3E"); }
[data-icon="chat"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 12.2c0 4-3.8 7.2-8.5 7.2-1 0-2-.15-2.9-.42L4.5 20.5l1.3-3.6A7 7 0 0 1 3.5 12.2c0-4 3.8-7.2 8.5-7.2s8.5 3.2 8.5 7.2z'/%3E%3C/svg%3E"); }
[data-icon="user"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.2' r='3.6'/%3E%3Cpath d='M5 20c0-3.5 3.1-6 7-6s7 2.5 7 6'/%3E%3C/svg%3E"); }
[data-icon="heart"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.2 4.7 13a4.7 4.7 0 0 1 6.6-6.7l.7.7.7-.7A4.7 4.7 0 0 1 19.3 13z'/%3E%3C/svg%3E"); }
[data-icon="archive"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='4.5' rx='1.5'/%3E%3Cpath d='M5.5 9v10.5h13V9'/%3E%3Cpath d='M10 13h4'/%3E%3C/svg%3E"); }
[data-icon="clock"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='M12 7.4V12l3.2 2'/%3E%3C/svg%3E"); }
[data-icon="tag"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.8 11.2 11.2 3.8h7.2a1.8 1.8 0 0 1 1.8 1.8v7.2l-7.4 7.4a1.8 1.8 0 0 1-2.6 0l-6.4-6.4a1.8 1.8 0 0 1 0-2.6z'/%3E%3Ccircle cx='16' cy='8' r='1.3'/%3E%3C/svg%3E"); }
[data-icon="info"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.4'/%3E%3Cpath d='M12 11v5.4M12 7.8v.2'/%3E%3C/svg%3E"); }
[data-icon="phone"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
[data-icon="mail"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.2' y='5.2' width='17.6' height='13.6' rx='2.6'/%3E%3Cpath d='m3.8 7.6 8.2 5.6 8.2-5.6'/%3E%3C/svg%3E"); }
[data-icon="tap"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='15.6' r='2.7'/%3E%3Cpath d='M8.1 11.3a5.5 5.5 0 0 1 7.8 0'/%3E%3Cpath d='M5.4 8.4a9.3 9.3 0 0 1 13.2 0'/%3E%3C/svg%3E"); }
[data-icon="arrow"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 12H5.5'/%3E%3Cpath d='m11.5 5.5-6.5 6.5 6.5 6.5'/%3E%3C/svg%3E"); }
[data-icon="paw"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='8' r='2.1'/%3E%3Ccircle cx='12' cy='6.4' r='2.1'/%3E%3Ccircle cx='16.5' cy='8' r='2.1'/%3E%3Cpath d='M12 12c3 0 5 2 5 4.3 0 1.8-1.6 2.7-3.4 2.4l-1.6-.3-1.6.3C8.6 19 7 18.1 7 16.3 7 14 9 12 12 12z'/%3E%3C/svg%3E"); }
[data-icon="share"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='17.5' cy='6' r='2.6'/%3E%3Ccircle cx='6.5' cy='12' r='2.6'/%3E%3Ccircle cx='17.5' cy='18' r='2.6'/%3E%3Cpath d='m9 10.7 6-3.4M9 13.3l6 3.4'/%3E%3C/svg%3E"); }

.topbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--muted);
  transition: background .22s, color .22s, transform .22s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .85); color: var(--accent); }
[data-theme="dark"] .icon-btn:hover { background: rgba(108, 184, 247, .14); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 17px; height: 17px; grid-area: 1 / 1; transition: opacity .3s, transform .45s var(--ease); }

[data-theme="light"] .i-moon { opacity: 1; transform: rotate(0); }
[data-theme="light"] .i-sun  { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"]  .i-sun  { opacity: 1; transform: rotate(0); }
[data-theme="dark"]  .i-moon { opacity: 0; transform: rotate(90deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 17px;
  white-space: nowrap;
  transition: transform .22s var(--ease), background .22s, box-shadow .22s, color .22s;
}
.btn:active { transform: scale(.95); }

.btn--ghost {
  color: var(--text-soft);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--glass-brd);
}
.btn--ghost:hover { background: #fff; color: var(--accent); }
[data-theme="dark"] .btn--ghost { background: rgba(108, 184, 247, .12); }
[data-theme="dark"] .btn--ghost:hover { background: rgba(108, 184, 247, .22); color: var(--text); }

/* 主按钮改成纯色 —— 渐变小药丸在导航栏里太吵 */
.btn--solid {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(32, 105, 184, .26);
}
.btn--solid:hover {
  background: #1a5da6;
  box-shadow: 0 4px 16px rgba(32, 105, 184, .34);
  transform: translateY(-1px);
}
[data-theme="dark"] .btn--solid { color: #08192e; }
[data-theme="dark"] .btn--solid:hover { background: #8cc6fa; }

/* ══ 首屏 ══ */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: grid;
  place-items: center;
  padding: 60px var(--gutter) 90px;
  overflow: hidden;
}

/* 雨丝 */
.hero__rain {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(102deg,
      rgba(255, 255, 255, .55) 0px, rgba(255, 255, 255, .55) 1px,
      transparent 1px, transparent 7px);
  background-size: 130px 130px;
  animation: rainfall .7s linear infinite;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  transition: opacity .45s var(--ease-soft);
}

/* 暗色模式下关掉雨丝。
   它是 102deg、1px 宽、每 7px 一条的规则排列 —— 102deg 只偏离垂直 12°，
   看上去就是满屏竖条纹。
   浅色下白线叠在浅色插画上，对比度极低，几乎看不见；
   一换到暗底，白线的对比度一下拉满，规则排列就全跳出来了。
   顺便停掉动画，省掉一层无谓的重绘。 */
[data-theme="dark"] .hero__rain {
  opacity: 0;
  animation: none;
}

@keyframes rainfall { to { background-position: -50px 130px; } }

.hero__body {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #74c0fc, #b197fc, #63e6be);
  box-shadow: 0 8px 26px rgba(59, 130, 246, .3);
  margin-bottom: 14px;
  animation: float 6s ease-in-out infinite;
}
.hero__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #fff; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.hero__name {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
[data-theme="dark"] .hero__name { background: rgba(24, 40, 63, .8); }

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: .34em;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .6);
}
/* 背景提亮后，原来的 --muted 在这层中灰上只剩 2:1 对比度，换成更亮的色 + 深色投影 */
[data-theme="dark"] .hero__eyebrow {
  color: #dcebf9;
  text-shadow: 0 1px 12px rgba(0, 18, 45, .85);
}

.hero__title {
  font-size: clamp(30px, 6.4vw, 60px);
  letter-spacing: -.03em;
  font-weight: 780;
  color: #10243b;
  margin-bottom: 34px;
  min-height: 1.35em;
  text-shadow: 0 2px 18px rgba(255, 255, 255, .7);
}
[data-theme="dark"] .hero__title { color: #f0f7ff; text-shadow: 0 2px 22px rgba(0, 20, 50, .8); }

.caret {
  display: inline-block;
  width: 3px;
  height: .92em;
  margin-left: 5px;
  vertical-align: -.08em;
  background: var(--accent);
  border-radius: 2px;
  animation: blink 1.05s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.quote {
  position: relative;
  margin: 0;
  max-width: 560px;
  width: 100%;
  padding: 20px 56px 20px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  text-align: left;
}
[data-theme="dark"] .quote { background: rgba(24, 40, 63, .62); }

.quote blockquote {
  margin: 0;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.7;
  transition: opacity .3s var(--ease-soft);
}
.quote figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--faint);
  text-align: right;
  transition: opacity .3s var(--ease-soft);
}
.quote.is-swapping blockquote,
.quote.is-swapping figcaption { opacity: 0; }

.quote__refresh {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, .8);
  transition: transform .45s var(--ease), color .22s, background .22s;
}
.quote__refresh svg { width: 15px; height: 15px; }
.quote__refresh:hover { color: var(--accent); background: #fff; transform: translateY(-50%) rotate(180deg); }
[data-theme="dark"] .quote__refresh { background: rgba(108, 184, 247, .16); }
[data-theme="dark"] .quote__refresh:hover { background: rgba(108, 184, 247, .28); }

.scrollhint {
  margin-top: 46px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color .24s;
}
.scrollhint svg { width: 17px; height: 17px; animation: bob 1.9s ease-in-out infinite; }
.scrollhint:hover { color: var(--accent); }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ══ 布局 ══ */
.layout {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) 40px;
  display: grid;
  grid-template-columns: 292px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── 通用卡片 ── */
.card {
  background: var(--card);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: background .3s, box-shadow .35s var(--ease), transform .35s var(--ease), border-color .3s;
}

/* ── 侧边栏 ── */
.side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 18px;
}

.side__profile { padding: 26px 22px 22px; text-align: center; }

.side__avatar {
  width: 96px; height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #74c0fc, #b197fc, #63e6be);
  box-shadow: 0 6px 20px rgba(59, 130, 246, .26);
  transition: transform .4s var(--ease);
}
.side__avatar:hover { transform: scale(1.06) rotate(-3deg); }
.side__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }

.side__name { font-size: 19px; margin-bottom: 6px; }
.side__bio { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }

.side__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.side__stats li { display: grid; gap: 2px; }
.side__stats b { font-size: 19px; color: var(--text); font-variant-numeric: tabular-nums; }
.side__stats span { font-size: 12px; color: var(--faint); }

.btn--follow {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #4dabf7, #3b82f6);
  box-shadow: 0 4px 14px rgba(59, 130, 246, .3);
  margin-bottom: 16px;
}
.btn--follow svg { width: 15px; height: 15px; }
/* 颜文字：字距压一点，别把按钮撑开 */
.kao { letter-spacing: -.02em; font-weight: 500; opacity: .95; }
.btn--follow:hover { box-shadow: 0 7px 22px rgba(59, 130, 246, .45); transform: translateY(-1px); }

.side__social { display: flex; justify-content: center; gap: 10px; }
.side__social a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--glass-brd);
  transition: transform .28s var(--ease), color .22s, background .22s;
}
.side__social a svg { width: 16px; height: 16px; }
.side__social a:hover { transform: translateY(-3px); color: var(--accent); background: #fff; }
[data-theme="dark"] .side__social a { background: rgba(108, 184, 247, .12); }
[data-theme="dark"] .side__social a:hover { background: rgba(108, 184, 247, .24); }

.side__block { padding: 18px 20px 20px; }

.card__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 680;
  color: var(--text);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.card__title i { font-style: normal; font-size: 14px; }

/* 最近更新 */
.recent { display: grid; gap: 12px; }
.recent a { display: flex; align-items: center; gap: 11px; }
.recent__thumb {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 3px 10px rgba(44, 86, 126, .16);
  transition: transform .3s var(--ease);
}
.recent a:hover .recent__thumb { transform: scale(1.08) rotate(-4deg); }
.recent__body { min-width: 0; display: grid; gap: 2px; }
.recent__body b {
  font-size: 13.5px;
  font-weight: 560;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .22s;
}
.recent a:hover .recent__body b { color: var(--accent); }
.recent__body time { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* 标签云 */
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tagcloud a {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: calc(12.5px + var(--n) * .9px);
  color: var(--text-soft);
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--glass-brd);
  border-radius: 9px;
  padding: 4px 10px;
  transition: transform .26s var(--ease), background .24s, color .24s;
}
.tagcloud a sup { font-size: .62em; color: var(--faint); }
.tagcloud a:hover { transform: translateY(-2px) scale(1.05); color: #fff; background: linear-gradient(135deg, #74c0fc, #4dabf7); }
.tagcloud a:hover sup { color: rgba(255, 255, 255, .8); }
[data-theme="dark"] .tagcloud a { background: rgba(108, 184, 247, .1); }

/* ── 内容区 ── */
.content { display: grid; gap: 18px; min-width: 0; }

.hello {
  padding: 15px 22px;
  font-size: 14.5px;
  color: var(--text-soft);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #74c0fc, #63e6be) 1;
}

/* 精选小卡 */
.feature-row {
  display: grid;
  grid-template-columns: 128px repeat(3, 1fr);
  gap: 14px;
}
.mini {
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 560;
  line-height: 1.45;
}
.mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--card-hover); }
.mini__cover {
  height: 62px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 4px 12px rgba(44, 86, 126, .16);
}
.mini--archive {
  place-content: center;
  justify-items: center;
  text-align: center;
  background: linear-gradient(160deg, #d0ebff, #e7f5ff);
  border-color: rgba(255, 255, 255, .9);
}
[data-theme="dark"] .mini--archive { background: linear-gradient(160deg, rgba(77, 171, 247, .18), rgba(99, 230, 190, .12)); }
.mini--archive .ico { width: 24px; height: 24px; margin: 0 0 2px; opacity: .85; }
.mini--archive b { font-size: 16px; }
.mini--archive em { font-style: normal; font-size: 12px; color: var(--muted); }

/* 分类 tab */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1;
  min-width: 76px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 560;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background .24s, color .24s, box-shadow .24s, transform .24s var(--ease);
}
.tab:hover { background: rgba(255, 255, 255, .7); color: var(--accent); }
.tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #4dabf7, #3b82f6);
  box-shadow: 0 3px 12px rgba(59, 130, 246, .32);
}
[data-theme="dark"] .tab:hover { background: rgba(108, 184, 247, .14); }

.tab sup {
  font-size: .68em;
  opacity: .72;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.tab:disabled { opacity: .36; cursor: not-allowed; }
.tab:disabled:hover { background: none; color: var(--text-soft); }

/* 两级筛选：地点 / 主题 */
.tabs__label {
  flex: none;
  align-self: center;
  padding: 0 6px 0 12px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .14em;
  color: var(--faint);
  white-space: nowrap;
}
/* 地点那一行按内容宽度排，不拉伸 */
.tabs--place .tab { flex: 0 0 auto; }
/* 地点是主分类，给得比主题按钮重一点 */
.place-tab { font-weight: 640; letter-spacing: .02em; }
.place-tab:not(.is-active) {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-brd);
}
[data-theme="dark"] .place-tab:not(.is-active) { background: rgba(108, 184, 247, .1); }

/* 照片详情页的入口：整张卡片都可点（拉伸式链接）
   注意 .photo__link 必须是 <article> 的【直属子元素】。
   之前它被放进 .photo__img 里，而 .photo__img 有 position: relative ——
   于是它成了绝对定位的包含块，inset:0 只盖住图片那一块，
   再被 overflow:hidden 一裁，卡片下半部分就点不动了。 */
.photo {
  position: relative;
  cursor: pointer;
  /* 整张卡都是点击区，正文就不参与文本选择了 ——
     否则在卡片上拖动会选中日期和文案，看着像「点不动」 */
  user-select: none;
  -webkit-user-select: none;
}
.photo__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.photo__link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
/* 可点击的暗示：标题下加一条会伸长的细线 */
.photo__title::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 6px;
  background: var(--accent);
  transition: width .34s var(--ease);
}
.photo:hover .photo__title::after { width: 30px; }

/* 文章列表 */
.posts { display: grid; gap: 16px; }

.post { overflow: hidden; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--card-hover); }

.post__link {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding: 18px;
  align-items: center;
}

/* 偶数项左右交错 */
.post:nth-child(even) .post__link { grid-template-columns: 1fr 230px; }
.post:nth-child(even) .post__cover { order: 2; }

.post__cover {
  height: 140px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 6px 18px rgba(44, 86, 126, .2);
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease);
}
.post__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .35) 0%, transparent 42%);
}
.post:hover .post__cover { transform: scale(1.035); }

.post__body { min-width: 0; display: grid; gap: 9px; }

.post__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.post__title { font-size: 18.5px; line-height: 1.4; transition: color .24s; }
.post:hover .post__title { color: var(--accent); }

.badge {
  font-style: normal;
  font-size: 11px;
  font-weight: 680;
  padding: 2.5px 9px;
  border-radius: 7px;
  white-space: nowrap;
}
.badge--pin {
  color: #fff;
  background: linear-gradient(135deg, #ff8787, #f06595);
  box-shadow: 0 2px 8px rgba(240, 101, 149, .34);
}

.post__excerpt {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.post__meta i { font-style: normal; margin-right: 3px; }

/* 筛选时隐藏条目 —— 文章和照片共用同一个类，
   两边都要写，之前漏了 .photo 导致相册的筛选点了没反应 */
.post.is-hidden,
.photo.is-hidden,
.year-group.is-hidden { display: none; }

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  padding: 48px 0;
}

/* ══ 页脚 ══ */
/* 页脚不再用 backdrop-filter：
   对横跨整屏的一条窄带做模糊，会把底下草地的细节糊成一片低分辨率色块。
   改成向下渐浓的白纱 —— 上边缘完全透明，看不出带状边界 */
.footer {
  margin-top: 40px;
  padding: 36px var(--gutter) 50px;
  text-align: center;
  border-top: 1px solid rgba(110, 150, 190, .18);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .42) 34%,
    rgba(255, 255, 255, .74) 100%);
}
[data-theme="dark"] .footer {
  border-top-color: rgba(126, 176, 226, .16);
  background: linear-gradient(180deg,
    rgba(8, 18, 34, 0) 0%,
    rgba(8, 18, 34, .48) 34%,
    rgba(8, 18, 34, .82) 100%);
}

.footer__inner { display: grid; gap: 9px; max-width: var(--wrap); margin-inline: auto; }
.footer__line { font-size: 13px; color: var(--muted); }
.footer__line a { border-bottom: 1px solid transparent; transition: color .22s, border-color .22s; }
.footer__line a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.sep { margin: 0 7px; color: var(--faint); }
.footer__motto { font-size: 12.5px; color: var(--faint); font-style: italic; letter-spacing: .02em; }
.footer__uptime { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.footer__uptime b { color: var(--text-soft); font-weight: 600; }

.runner {
  width: 14px;
  height: 14px;
  margin-left: 8px;
  margin-right: 0;
  vertical-align: -.15em;
  opacity: .68;
  animation: run 3.6s ease-in-out infinite;
}
@keyframes run {
  0%, 100% { transform: translateX(0) scaleX(1); }
  45%      { transform: translateX(30px) scaleX(1); }
  50%      { transform: translateX(30px) scaleX(-1); }
  95%      { transform: translateX(0) scaleX(-1); }
}

/* ══ 回到顶部 ══ */
.to-top {
  position: fixed;
  right: clamp(14px, 2.6vw, 28px);
  bottom: clamp(14px, 2.6vw, 28px);
  z-index: 60;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: opacity .32s var(--ease-soft), transform .32s var(--ease), background .24s;
}
.to-top[hidden] { display: none; }
.to-top svg { width: 17px; height: 17px; }
.to-top:hover { transform: translateY(-4px); background: var(--card-hover); }
.to-top:active { transform: translateY(-1px) scale(.94); }

/* ══════════════════════════════════════════════════════════════════════════
   文章详情页
   ══════════════════════════════════════════════════════════════════════════ */
.article-header {
  max-width: 760px;
  margin: 46px auto 0;
  padding: 34px clamp(22px, 4vw, 40px) 30px;
  background: var(--card);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-md);
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--faint);
  margin-bottom: 22px;
  transition: color .24s, gap .28s var(--ease);
}
.article-back:hover { color: var(--accent); gap: 11px; }
.article-back span { font-size: 15px; }

.article-title {
  font-size: clamp(25px, 4.4vw, 36px);
  line-height: 1.32;
  letter-spacing: -.026em;
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.article-meta .tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 7px;
  padding: 3px 10px;
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.article-body {
  max-width: 760px;
  margin: 20px auto 0;
  padding: clamp(28px, 4.5vw, 44px) clamp(22px, 4vw, 40px);
  background: var(--card);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-sm);
  font-size: 16.5px;
  line-height: 1.88;
}
.article-body > * + * { margin-top: 1.3em; }
.article-body p { margin: 0; }
.article-body h2 {
  font-size: clamp(19px, 2.6vw, 23px);
  margin-top: 2.2em;
  margin-bottom: .1em;
}
.article-body h2::before {
  content: "";
  display: block;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4dabf7, #63e6be);
  margin-bottom: 16px;
}
.article-body h3 { font-size: 17.5px; margin-top: 1.9em; margin-bottom: .1em; }
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .22s, background .22s;
}
.article-body a:hover { border-bottom-color: var(--accent); background: var(--accent-soft); }
.article-body ul, .article-body ol { padding-left: 1.35em; display: grid; gap: .5em; }
.article-body ul { list-style: none; }
.article-body ul > li { position: relative; }
.article-body ul > li::before {
  content: "";
  position: absolute;
  left: -1.02em; top: .74em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .6;
}
.article-body ol { list-style: decimal; }
.article-body ol > li::marker { color: var(--faint); }
.article-body blockquote {
  margin: 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-sunken);
  color: var(--muted);
}
.article-body code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .13em .4em;
  color: var(--accent);
}
.article-body pre {
  background: rgba(20, 36, 56, .92);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.72;
  box-shadow: var(--shadow-sm);
}
.article-body pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #d6e4f5;
}
[data-theme="dark"] .article-body pre { background: rgba(6, 16, 30, .8); }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.article-body img { border-radius: var(--radius-sm); margin-inline: auto; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { font-size: 12.5px; letter-spacing: .05em; color: var(--muted); font-weight: 640; }

.article-foot {
  max-width: 760px;
  margin: 20px auto 40px;
  padding: 22px clamp(22px, 4vw, 40px);
  background: var(--card);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 560;
  color: var(--accent);
  transition: gap .26s var(--ease);
}
.link-arrow:hover { gap: 10px; }
.link-arrow .arrow { font-size: 12px; }

/* ══ 进场动画 ══ */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .68s var(--ease), transform .68s var(--ease); }

/* ══ 导航当前页 ══ */
.menu__item.is-current {
  color: var(--accent);
  background: rgba(255, 255, 255, .85);
  font-weight: 640;
}
[data-theme="dark"] .menu__item.is-current { background: rgba(108, 184, 247, .18); }

/* ══ 页面标题块 ══ */
.pagehead {
  max-width: 760px;
  margin: 46px auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}
.pagehead h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.025em; margin-bottom: 10px; }
.pagehead p { color: var(--muted); font-size: 15px; }

/* ══ 扉页（原「大横幅」）══════════════════════════════════════════
   以前是一整条全宽的渐变圆角矩形，太抢、也太"板块"。
   现在改成居中排版的扉页：没有色块、没有边框，
   背后只有一团椭圆形的柔光把字托住 —— 朦胧的光，不是方框。 */
.banner { max-width: var(--wrap); margin: 34px auto 0; padding: 0 var(--gutter); }

.banner__inner {
  position: relative;
  padding: 48px 24px 42px;
  text-align: center;
  color: var(--text);
}

/* 椭圆柔光：radial-gradient 的边缘是渐隐的，所以看不出边界 */
.banner__inner::before {
  content: "";
  position: absolute;
  inset: -30px -6%;
  background: radial-gradient(ellipse 56% 74% at 50% 50%,
    rgba(255, 255, 255, .80) 0%,
    rgba(255, 255, 255, .5) 42%,
    rgba(255, 255, 255, 0) 74%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .banner__inner::before {
  background: radial-gradient(ellipse 56% 74% at 50% 50%,
    rgba(9, 24, 46, .74) 0%,
    rgba(9, 24, 46, .42) 42%,
    rgba(9, 24, 46, 0) 74%);
}

.banner__body { position: relative; z-index: 1; }

/* 栏目名：小字大写距，两侧各一条短线。
   用 block + inline-block 伪元素（不是 flex）——
   这样 text-indent 才能抵消 letter-spacing 在末字后留下的空隙，居中才真的居中 */
.banner__kicker {
  display: block;
  font-size: 12px;
  font-weight: 660;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--accent);
  margin-bottom: 20px;
}
.banner__kicker::before,
.banner__kicker::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .42;
  vertical-align: middle;
  margin: 0 15px 3px;
}

.banner__title {
  font-size: clamp(23px, 3.5vw, 37px);
  line-height: 1.36;
  letter-spacing: -.012em;
  color: var(--text);
  margin-bottom: 22px;
  text-shadow: 0 1px 20px rgba(255, 255, 255, .9);
}
[data-theme="dark"] .banner__title { text-shadow: 0 1px 20px rgba(4, 14, 30, .9); }

/* 副标题：上面一条从中间往外渐隐的细线 */
.banner__sub {
  position: relative;
  font-size: 13.5px;
  letter-spacing: .07em;
  color: var(--muted);
  padding-top: 20px;
}
.banner__sub::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(320px, 68%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: .45;
}

/* 栏目的强调色，只染 kicker 那条小字 */
.banner--green .banner__kicker { color: #1a8f68; }
.banner--pink  .banner__kicker { color: #c9407a; }
.banner--blue  .banner__kicker { color: #2069b8; }
[data-theme="dark"] .banner--green .banner__kicker { color: #4fd1a5; }
[data-theme="dark"] .banner--pink  .banner__kicker { color: #f78cb5; }
[data-theme="dark"] .banner--blue  .banner__kicker { color: #6cb8f7; }

/* 扉页里的行动按钮：浅底上的实体按钮，不再是白描边 */
.banner__action {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 640;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 3px 14px rgba(32, 105, 184, .28);
  transition: background .24s, transform .24s var(--ease), box-shadow .24s;
}
.banner__action:hover {
  background: #1a5da6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 105, 184, .34);
}
[data-theme="dark"] .banner__action { color: #08192e; }
[data-theme="dark"] .banner__action:hover { background: #8cc6fa; }


/* ══ 随笔时间线 ══ */
.notes {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 16px;
}

.note { padding: 22px clamp(18px, 3vw, 26px); }
.note:hover { box-shadow: var(--shadow-md); background: var(--card-hover); }

.note__head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.note__avatar {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #74c0fc, #b197fc);
}
.note__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.note__who { display: grid; gap: 1px; min-width: 0; }
.note__who b { font-size: 14.5px; color: var(--text); }
.note__who time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

.note__text { font-size: 15px; line-height: 1.82; color: var(--text-soft); }
.note__text + .note__text { margin-top: .7em; }

.note__media { display: grid; gap: 8px; margin-top: 15px; }
.note__media--1 { grid-template-columns: minmax(0, 320px); }
.note__media--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note__media--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note__media span {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 4px 14px rgba(44, 86, 126, .16);
  transition: transform .35s var(--ease);
}
.note__media--1 span { aspect-ratio: 4 / 3; }
.note__media span:hover { transform: scale(1.03); }

.note__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
}
.note__foot button { font-size: 12.5px; color: var(--faint); transition: color .22s; }
.note__foot button:hover { color: var(--accent); }

/* ══ 相册 ══ */
.gallery { max-width: var(--wrap); margin: 24px auto 0; padding: 0 var(--gutter); }

/* 可点击提示 —— 俏皮一点，别写得像说明书。
   它压在插画上，而那块正好是白云和草坡的交界，最花；
   纯靠文字阴影救不回来，所以给它一个小药丸底（跟地点按钮同一套玻璃质感）。
   注意是 fit-content 的小圆角，不是整条横幅。 */
.photos__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  margin: 0 auto 22px;
  padding: 9px 20px 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 520;
  letter-spacing: .03em;
  color: var(--text);
  text-align: center;
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 3px 14px rgba(30, 70, 120, .1);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
[data-theme="dark"] .photos__hint {
  background: rgba(24, 40, 63, .7);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .3);
}
.photos__hint .ico {
  width: 17px;
  height: 17px;
  margin: 0;
  opacity: 1;
  color: var(--accent);
  animation: tapNudge 2.8s var(--ease-soft) infinite;
}
.photos__hint em {
  font-style: normal;
  font-size: 13px;
  color: var(--accent);
}
.photos__hint b {
  font-weight: 700;
  color: var(--accent);
}
/* 轻轻一戳的动作：抬起来又落下，不是匀速平移 */
@keyframes tapNudge {
  0%, 62%, 100% { transform: translateY(0)    scale(1); }
  30%           { transform: translateY(-5px) scale(1.06); }
  46%           { transform: translateY(1px)  scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .photos__hint .ico { animation: none; }
}
@media (max-width: 720px) {
  .photos__hint { font-size: 12.5px; gap: 7px; padding: 8px 15px 9px; margin-bottom: 16px; }
  .photos__hint em { display: none; }
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.photo { overflow: hidden; padding: 0; }
.photo:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.photo__img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  overflow: hidden;
}
/* 换成真实照片后，之前给渐变占位块加的白色高光就不需要了 */
.photo__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.photo:hover .photo__img img { transform: scale(1.05); }

.photo__body { padding: 14px 16px 16px; }
.photo__title { font-size: 15px; font-weight: 620; margin-bottom: 7px; }

/* 照片配文：像旅行手记，一行一个小画面 */
.photo__desc {
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 10px;
}
.photo__date {
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  display: block;
}

.gallery__end { text-align: center; color: var(--faint); font-size: 13.5px; padding: 40px 0 10px; }

/* ══ 友链 ══ */
.friends { max-width: var(--wrap); margin: 24px auto 0; padding: 0 var(--gutter); }

.apply { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 20px; }
.apply__card { padding: 22px clamp(18px, 3vw, 26px); }
.apply__card h3 {
  font-size: 15px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 13px; margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.info { display: grid; gap: 11px; }
.info__row { display: grid; grid-template-columns: 58px 1fr; gap: 14px; font-size: 13.5px; align-items: start; }
.info__row dt { color: var(--faint); }
.info__row dd { margin: 0; color: var(--text-soft); word-break: break-all; }
.info__row code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--accent);
}

.steps { display: grid; gap: 13px; }
.steps li { display: flex; gap: 12px; font-size: 13.5px; color: var(--text-soft); }
.steps b {
  flex: none;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11.5px;
  color: #fff;
  background: linear-gradient(135deg, #4dabf7, #3b82f6);
  box-shadow: 0 2px 8px rgba(59, 130, 246, .3);
}

.friendgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.friend { padding: 14px; }
.friend:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.friend__thumb {
  height: 106px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 5px 16px rgba(44, 86, 126, .18);
}
.friend__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 22px);
}
.friend__initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
/* 有头像时：铺满、去掉那层纹理、别压着字 */
.friend__thumb--img { background: var(--bg-sunken); }
.friend__thumb--img::after { display: none; }
.friend__thumb--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.friend__name { font-size: 15px; font-weight: 620; color: var(--text); margin-bottom: 4px; }
.friend:hover .friend__name { color: var(--accent); }
.friend__desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.friend__date { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ══ 响应式 ══ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .side__profile { grid-column: 1 / -1; }
  .feature-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

@media (max-width: 760px) {
  .menu__item span { display: none; }
  .menu__item { padding: 9px 10px; }
  .menu__item::before { width: 17px; height: 17px; opacity: .85; }
  .menu__item.is-current::after { display: none; }
  .logo__text { font-size: 15px; }
  .topbar__actions .btn { display: none; }

  .hero { min-height: auto; padding: 46px var(--gutter) 64px; }

  .post__link,
  .post:nth-child(even) .post__link { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .post:nth-child(even) .post__cover { order: 0; }
  .post__cover { height: 150px; }
  .post__title { font-size: 17px; }

  .side__stats b { font-size: 17px; }
  .article-body { font-size: 16px; }
  .article-body pre { padding: 15px 16px; font-size: 13px; }
  .article-foot { flex-direction: column; align-items: flex-start; }

  /* 新增页面 */
  .pagehead { margin-top: 30px; }
  .banner { margin-top: 24px; }
  .banner__inner { padding: 34px 12px 30px; }
  .banner__kicker::before,
  .banner__kicker::after { width: 20px; margin: 0 9px 3px; }
  .banner__sub { font-size: 12.5px; }

  .note { padding: 18px; }
  .note__media--1 { grid-template-columns: 1fr; }
  .note__media--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .photos { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
  .photo__body { padding: 11px 13px 13px; }
  .photo__title { font-size: 13.5px; }

  .apply { grid-template-columns: 1fr; }
  .friendgrid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
  .friend__thumb { height: 86px; }
  .friend__name { font-size: 14px; }
  .info__row { grid-template-columns: 50px 1fr; gap: 10px; font-size: 13px; }
}

/* ══ 偏好 ══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* 减弱动效时，把纯装饰性的运动层直接撤掉；
     小猫和草保留，但会被上面的规则冻结在原位 */
  .hero__rain, .runner, .wind, .petals { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   足迹录 · 留言簿 · 奇幻志
   ══════════════════════════════════════════════════════════════════ */

/* ── 足迹录：概览数字 ── */
.stats {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 18px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
}
.stat {
  padding: 20px 12px 17px;
  border-radius: 16px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 6px 22px rgba(30, 70, 120, .09);
}
.stat b {
  display: block;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 720;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.stats__block { padding: 24px clamp(18px, 3vw, 30px) 26px; }
.stats__block h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 660;
  color: var(--text);
  margin-bottom: 20px;
}
.stats__block h2 .ico { width: 17px; height: 17px; margin: 0; color: var(--accent); opacity: .9; }

/* 横向条 */
.bars { display: grid; gap: 13px; }
.bar {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}
.bar__label { color: var(--text-soft); }
.bar__track {
  height: 9px;
  border-radius: 999px;
  background: rgba(120, 150, 190, .17);
  overflow: hidden;
}
.bar__track i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, #74c0fc, #3b82f6);
  animation: barGrow .85s var(--ease) both;
}
@keyframes barGrow { from { width: 0; } }
.bar__num {
  text-align: right;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* 柱状（写作节奏） */
.cols {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 150px;
}
.col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.col i {
  width: 100%;
  max-width: 48px;
  height: var(--h, 0%);
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #74c0fc, #3b82f6);
  animation: colGrow .8s var(--ease) both;
}
@keyframes colGrow { from { height: 0; } }
.col b {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* 事实清单 */
.facts { display: grid; gap: 11px; }
.facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  font-size: 13.5px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line);
}
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--faint); }
.facts dd { color: var(--text-soft); }

/* ── 留言簿 ── */
.gb {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 16px;
}
.gb__form { padding: 22px clamp(18px, 3vw, 26px) 20px; display: grid; gap: 12px; }
.gb__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gb__form input,
.gb__form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--line);
  transition: border-color .22s, background .22s, box-shadow .22s;
}
.gb__form textarea { min-height: 104px; resize: vertical; line-height: 1.75; }
.gb__form input::placeholder,
.gb__form textarea::placeholder { color: var(--faint); opacity: .85; }
.gb__form input:focus,
.gb__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gb__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.gb__note { font-size: 12px; line-height: 1.65; color: var(--faint); }
.gb__note b { color: var(--accent); font-weight: 600; }

/* 提交出错时的提示条（限流 / 校验失败 / 网络错误） */
.gb__note.is-error {
  display: block;
  margin: 0 0 4px;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  color: #c92a2a;
  background: rgba(224, 49, 49, .09);
  border: 1px solid rgba(224, 49, 49, .18);
}
[data-theme="dark"] .gb__note.is-error {
  color: #ff8787;
  background: rgba(224, 49, 49, .16);
  border-color: rgba(224, 49, 49, .3);
}

.gb__list { display: grid; gap: 12px; }
.gb__item {
  padding: 16px 18px 17px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
}
.gb__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #74c0fc, #3b82f6);
  user-select: none;
}
.gb__head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gb__head b { font-size: 14px; color: var(--text); }
.gb__head time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.gb__head a { font-size: 12px; color: var(--accent); }
.gb__text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gb__empty {
  text-align: center;
  padding: 40px 20px;
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.9;
}
.gb__empty b { display: block; font-size: 22px; margin-bottom: 10px; }

/* ── 奇幻志：时间线 ── */
/* 用三列网格 [日期][轴][卡片]，轴线画在中间那列的伪元素上 ——
   比绝对定位去对齐全靠手算靠谱得多 */
.log {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 0 var(--gutter);
}
.log__item {
  display: grid;
  grid-template-columns: 104px 22px 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.log__item:last-child { margin-bottom: 0; }
.log__date {
  padding-top: 17px;
  text-align: right;
  font-size: 13px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.log__axis { position: relative; }
.log__axis::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -16px;
  width: 1px;
  margin-left: -.5px;
  background: var(--line);
}
.log__item:first-child .log__axis::before { top: 26px; }
.log__item:last-child .log__axis::before { bottom: auto; height: 26px; }
.log__axis::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.log__card { padding: 18px 20px 19px; }
.log__tag {
  display: inline-block;
  margin-bottom: 9px;
  padding: 2px 10px 3px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--accent);
  background: var(--accent-soft);
}
.log__card h3 { font-size: 15.5px; font-weight: 640; color: var(--text); margin-bottom: 9px; }
.log__card p { font-size: 14px; line-height: 1.88; color: var(--text-soft); }
.log__card p + p { margin-top: 9px; }
.log__card ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.log__card li {
  position: relative;
  padding-left: 17px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-soft);
}
.log__card li::before {
  content: "";
  position: absolute;
  left: 2px; top: .74em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

/* 暗色 */
[data-theme="dark"] .bars .bar__track,
[data-theme="dark"] .bar__track { background: rgba(120, 160, 210, .18); }
[data-theme="dark"] .gb__form input,
[data-theme="dark"] .gb__form textarea { background: rgba(12, 26, 46, .55); }
[data-theme="dark"] .gb__form input:focus,
[data-theme="dark"] .gb__form textarea:focus { background: rgba(12, 26, 46, .8); }

/* 窄屏 */
@media (max-width: 720px) {
  .stats, .gb, .log { margin-top: 18px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .gb__row { grid-template-columns: 1fr; }
  .stats__block, .gb__form, .log__card { padding: 18px 16px 19px; }
  .cols { gap: 8px; height: 124px; }
  .log__item { grid-template-columns: 1fr; gap: 0; margin-bottom: 14px; }
  .log__date { text-align: left; padding: 0 0 7px 2px; }
  .log__axis { display: none; }
  .facts div { grid-template-columns: 74px 1fr; }
}

/* ══ 返回按钮 · 卡通风格 ══════════════════════════════════════════
   关键在「硬阴影」：box-shadow 的模糊半径是 0，看起来就是一块实心的厚度，
   而不是一片晕开的影子。再配粗描边 + 按下时真的往下沉，就有了实体按钮的手感。
   这三个细节缺一不可 —— 只加圆角和颜色，那还是普通的扁平按钮。 */
.pa__backwrap { clear: both; text-align: center; margin-top: 34px; }

.pa__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  background: #57b0f8;
  border: 2.5px solid #1a6ab8;
  box-shadow: 0 5px 0 #1a6ab8, 0 9px 18px rgba(26, 106, 184, .26);
  transition: transform .13s var(--ease), box-shadow .13s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.pa__back:hover {
  background: #6cbaff;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #1a6ab8, 0 12px 22px rgba(26, 106, 184, .3);
}
/* 按下去：整颗按钮往下沉 3px，厚度从 5px 缩到 2px —— 像真被压扁了 */
.pa__back:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #1a6ab8, 0 3px 8px rgba(26, 106, 184, .3);
}
.pa__back:focus-visible {
  outline: 3px solid rgba(87, 176, 248, .5);
  outline-offset: 4px;
}
.pa__back .ico {
  width: 18px;
  height: 18px;
  margin: 0;
  color: currentColor;
  opacity: 1;
}
/* 悬停时箭头往左顶两下 */
.pa__back:hover .ico { animation: backNudge .55s var(--ease); }
@keyframes backNudge {
  0%, 100% { transform: translateX(0); }
  38%      { transform: translateX(-5px); }
  70%      { transform: translateX(1px); }
}

[data-theme="dark"] .pa__back {
  background: #3f8fe0;
  border-color: #14497e;
  box-shadow: 0 5px 0 #14497e, 0 9px 18px rgba(0, 0, 0, .38);
}
[data-theme="dark"] .pa__back:hover {
  background: #55a4f0;
  box-shadow: 0 7px 0 #14497e, 0 12px 22px rgba(0, 0, 0, .44);
}
[data-theme="dark"] .pa__back:active {
  box-shadow: 0 2px 0 #14497e, 0 3px 8px rgba(0, 0, 0, .38);
}

@media (prefers-reduced-motion: reduce) {
  .pa__back, .pa__back:hover, .pa__back:active { transform: none; }
  .pa__back:hover .ico { animation: none; }
}
@media (max-width: 720px) {
  .pa__back { padding: 11px 22px 12px; font-size: 14px; }
}
/* ══════════════════════════════════════════════════════════════════
   关于我 · 登录注册
   ══════════════════════════════════════════════════════════════════ */

/* ── 关于我 ── */
.about {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  gap: 18px;
}
.about__hero {
  padding: 34px clamp(20px, 4vw, 34px) 32px;
  text-align: center;
}
.about__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 24px rgba(30, 70, 120, .2);
}
.about__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.about__tag {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 30em;
  margin: 0 auto;
}
.about__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.about__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 9px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-brd);
  transition: color .22s, background .22s, transform .22s var(--ease);
}
.about__link .ico { width: 15px; height: 15px; margin: 0; color: var(--accent); opacity: .9; }
.about__link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, .85);
  transform: translateY(-2px);
}

.about__block { padding: 24px clamp(20px, 3.4vw, 30px) 26px; }
.about__block h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 660;
  color: var(--text);
  margin-bottom: 16px;
}
.about__block h2 .ico { width: 17px; height: 17px; margin: 0; color: var(--accent); opacity: .9; }
.about__block p {
  font-size: 14.5px;
  line-height: 1.98;
  color: var(--text-soft);
}
.about__block p + p { margin-top: 13px; }
.about__block b { color: var(--text); font-weight: 650; }
.about__block a { color: var(--accent); }
.about__block a:hover { text-decoration: underline; }

.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.skill {
  padding: 5px 14px 6px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(32, 105, 184, .14);
}

.nowlist { display: grid; gap: 11px; }
.nowlist div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  font-size: 14px;
  line-height: 1.8;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line);
}
.nowlist div:last-child { border-bottom: 0; padding-bottom: 0; }
.nowlist dt { color: var(--faint); }
.nowlist dd { color: var(--text-soft); }

/* ── 登录 / 注册 ── */
.auth {
  max-width: 420px;
  /* 上边距跟着视口高度走：屏幕越高卡片越靠下（视觉重心更稳），
     矮屏幕自动收回来，不会把卡片顶出屏幕。
     原来是写死的 42px —— 在大屏上贴着顶栏，显得头重脚轻。 */
  margin: clamp(52px, 13vh, 156px) auto 0;
  padding: 0 var(--gutter);
}
.auth__card { padding: 26px clamp(22px, 4vw, 30px) 28px; }

.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(120, 150, 190, .14);
  margin-bottom: 24px;
}
.auth__tab {
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 620;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .22s, background .22s, box-shadow .22s;
}
.auth__tab:hover { color: var(--text); }
.auth__tab.is-on {
  color: var(--accent);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(30, 70, 120, .12);
}
[data-theme="dark"] .auth__tab.is-on { background: rgba(30, 52, 80, .95); }

.auth__field { display: grid; gap: 7px; margin-bottom: 14px; }
.auth__field label {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: .02em;
}
.auth__field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--line);
  transition: border-color .22s, background .22s, box-shadow .22s;
}
.auth__field input::placeholder { color: var(--faint); opacity: .8; }
.auth__field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth__field input.is-bad {
  border-color: #e03131;
  box-shadow: 0 0 0 3px rgba(224, 49, 49, .12);
}
[data-theme="dark"] .auth__field input { background: rgba(12, 26, 46, .6); }
[data-theme="dark"] .auth__field input:focus { background: rgba(12, 26, 46, .85); }

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 18px;
  font-size: 13px;
}
.auth__check { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); cursor: pointer; }
.auth__check input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.auth__forgot { color: var(--accent); }

.auth__err {
  min-height: 19px;
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #e03131;
}
[data-theme="dark"] .auth__err { color: #ff8787; }
.auth__err.is-ok { color: #2f9e44; }
[data-theme="dark"] .auth__err.is-ok { color: #69db7c; }

.auth__submit {
  display: block;
  width: 100%;
  padding: 13px 20px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: .04em;
  color: #fff;
  background: #57b0f8;
  border: 2.5px solid #1a6ab8;
  box-shadow: 0 4px 0 #1a6ab8;
  cursor: pointer;
  transition: transform .13s var(--ease), box-shadow .13s var(--ease), background .2s;
}
.auth__submit:hover { background: #6cbaff; transform: translateY(-1px); box-shadow: 0 5px 0 #1a6ab8; }
.auth__submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #1a6ab8; }
[data-theme="dark"] .auth__submit {
  background: #3f8fe0;
  border-color: #14497e;
  box-shadow: 0 4px 0 #14497e;
}
[data-theme="dark"] .auth__submit:hover { background: #55a4f0; box-shadow: 0 5px 0 #14497e; }
[data-theme="dark"] .auth__submit:active { box-shadow: 0 1px 0 #14497e; }

.auth__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--faint);
  text-align: center;
}
.auth__note b { color: var(--accent); font-weight: 600; }

.auth__foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth__foot a { color: var(--accent); }
.auth__foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .auth__submit, .auth__submit:hover, .auth__submit:active { transform: none; }
}

@media (max-width: 720px) {
  .about, .auth { margin-top: 18px; }
  .about__hero { padding: 26px 18px 24px; }
  .about__avatar { width: 82px; height: 82px; }
  .about__name { font-size: 21px; }
  .about__block { padding: 20px 18px 22px; }
  .nowlist div { grid-template-columns: 64px 1fr; }
  /* 手机上纵向空间紧，别再往下推 */
  .auth { margin-top: 26px; }
  .auth__card { padding: 22px 18px 24px; }
}

/* 友人帐 · 还没有朋友时的空状态 */
.friendgrid--empty { grid-template-columns: 1fr; }
.friends__empty {
  padding: 48px 30px 50px;
  text-align: center;
}
.friends__empty b {
  display: block;
  font-size: 30px;
  letter-spacing: .06em;
  color: var(--faint);
  margin-bottom: 18px;
}
.friends__empty p {
  max-width: 34em;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-soft);
}
.friends__empty p + p { margin-top: 10px; }
.friends__empty-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .friends__empty { padding: 34px 20px 36px; }
  .friends__empty b { font-size: 26px; }
}
/* ══════════════════════════════════════════════════════════════════
   作品集
   ══════════════════════════════════════════════════════════════════ */

.works {
  max-width: 1000px;
  margin: 26px auto 0;
  padding: 0 var(--gutter);
}
.workgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.work {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work.is-hidden { display: none; }

/* 封面：先用渐变色块顶替，以后换成项目截图就行 */
.work__cover {
  position: relative;
  display: block;
  height: 134px;
  background: linear-gradient(135deg, var(--c1, #74c0fc), var(--c2, #1864ab));
}
.work__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 斜向高光，纯色块不至于太平 */
.work__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .3), transparent 54%);
}
/* 「示例」角标 */
.work__demo {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.work__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
}
.work__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.work__title {
  font-size: 15.5px;
  font-weight: 660;
  line-height: 1.4;
  color: var(--text);
}

/* 状态胶囊：绿=在线，橙=开发中，灰=已归档 */
.work__state {
  flex: none;
  padding: 2px 10px 3px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.work__state--live { color: #2b8a3e; background: rgba(43, 138, 62, .13); }
.work__state--dev  { color: #d9480f; background: rgba(217, 72, 15, .13); }
.work__state--off  { color: var(--faint); background: rgba(120, 150, 190, .15); }
[data-theme="dark"] .work__state--live { color: #69db7c; }
[data-theme="dark"] .work__state--dev  { color: #ffa94d; }

.work__desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 13px;
}
.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}
.work__tags span {
  padding: 3px 9px 4px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(120, 150, 190, .14);
}
.work__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  /* 推到卡片底部，几张卡片的链接就能对齐 */
  margin-top: auto;
  padding-top: 2px;
}
.work__links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--accent);
}
.work__links a:hover { text-decoration: underline; }
.work__links .ico { width: 14px; height: 14px; margin: 0; opacity: .95; }

.works__note {
  margin-top: 26px;
  padding: 16px 20px 17px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.9;
  text-align: center;
  color: var(--faint);
  background: rgba(255, 255, 255, .38);
  border: 1px dashed var(--line);
}
.works__note b { color: var(--accent); font-weight: 600; }
[data-theme="dark"] .works__note { background: rgba(12, 26, 46, .4); }

@media (max-width: 720px) {
  .works { margin-top: 18px; }
  .workgrid { grid-template-columns: 1fr; gap: 13px; margin-top: 16px; }
  .work__cover { height: 118px; }
  .work__body { padding: 14px 15px 16px; }
  .work__title { font-size: 14.5px; }
}

/* 404 页 */
.notfound {
  max-width: 620px;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}
.notfound__kao {
  font-size: 34px;
  letter-spacing: .06em;
  color: var(--faint);
  margin-bottom: 18px;
}
.notfound__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-soft);
}
.notfound__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .notfound { margin-top: 24px; }
  .notfound__kao { font-size: 28px; }
}
@media print {
  .topbar, .to-top, .cursor-glow, #fx, .scenery, .hero__rain, .tabs, .pa__nav { display: none !important; }
  body { color: #000; }
  .card, .article-body, .article-header, .pa { box-shadow: none; border-color: #ddd; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════
   拾光录 · 照片详情页
   排版核心：图片用 float，正文保持普通块级 —— 文字才会真的绕着图片走。
   grid / flex 会建立独立的格式化上下文，环绕效果就没了，所以这里不能用。
   ══════════════════════════════════════════════════════════════════ */

.pa {
  max-width: 780px;
  margin: 30px auto 0;
  padding: 42px clamp(22px, 4.4vw, 56px) 46px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 18px 50px rgba(30, 70, 120, .13);
}

/* ── 头部 ── */
/* 分隔线挂在 head 上而不是 kicker 上 —— 这样即使某条没有 kicker，线也还在 */
.pa__head {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.pa__crumb {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--faint);
  margin-bottom: 15px;
}
.pa__crumb a { color: var(--accent); }
.pa__crumb a:hover { text-decoration: underline; }
.pa__crumb i { margin: 0 8px; font-style: normal; opacity: .45; }

.pa__title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.22;
  color: var(--text);
}
.pa__kicker {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
}

/* ── 正文：普通块级容器，浮动图才能让文字绕行 ── */
.pa__body {
  font-size: 15.5px;
  line-height: 1.98;
  color: var(--text-soft);
}
.pa__body p { margin-bottom: 17px; }
/* 首段做大，像杂志的导语 */
.pa__body .pa__lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text);
  font-weight: 500;
}

/* ── 照片：左右浮动 ── */
.pa__fig {
  width: 46%;
  margin: 5px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(120, 150, 180, .1);
  box-shadow: 0 10px 28px rgba(30, 70, 120, .2);
}
.pa__fig--left  { float: left;  margin-right: 28px; }
.pa__fig--right { float: right; margin-left: 28px; }
.pa__fig img { display: block; width: 100%; height: auto; }
.pa__fig figcaption {
  padding: 9px 13px 11px;
  font-size: 12px;
  line-height: 1.68;
  color: var(--faint);
  background: rgba(255, 255, 255, .5);
  border-top: 1px solid var(--line);
}

/* ── 引文：楷体，破栏而出 ── */
.pa__quote {
  clear: both;
  margin: 28px 0;
  padding: 3px 0 3px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-kai);
  font-size: 19px;
  line-height: 1.88;
  color: var(--text);
}

/* ── 小贴士 ── */
.pa__tip {
  clear: both;
  margin: 26px 0;
  padding: 16px 20px 18px;
  border-radius: 14px;
  background: rgba(108, 184, 247, .1);
  border: 1px solid rgba(108, 184, 247, .26);
}
.pa__tip-k {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--accent);
  margin-bottom: 8px;
}
.pa__tip p { margin: 0; font-size: 14px; line-height: 1.88; }

/* ── 颜文字那一行 ── */
.pa__body .pa__kao {
  clear: both;
  text-align: center;
  font-size: 17px;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 28px 0;
}

.pa__list { clear: both; margin: 0 0 18px; padding: 0; list-style: none; }
.pa__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 14.5px;
  line-height: 1.85;
}
.pa__list li::before {
  content: "";
  position: absolute;
  left: 3px; top: .74em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

.pa__hr { clear: both; border: 0; height: 1px; background: var(--line); margin: 32px 0; }

/* ── 上一张 / 下一张 ── */
.pa__nav {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.pa__navcard {
  display: block;
  padding: 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid var(--glass-brd);
  transition: transform .26s var(--ease), background .26s, box-shadow .26s;
}
.pa__navcard:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 10px 24px rgba(30, 70, 120, .16);
}
.pa__navcard em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--faint);
  margin-bottom: 8px;
}
.pa__navcard img {
  width: 100%; height: 92px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 9px;
}
.pa__navcard b { font-size: 13.5px; font-weight: 620; color: var(--text); }
.pa__navcard--off {
  display: flex; align-items: center; justify-content: center;
  min-height: 118px;
  opacity: .45;
}
.pa__navcard--off em { margin: 0; }

.pa__backwrap { clear: both; text-align: center; margin-top: 28px; }
.pa__back { font-size: 13.5px; color: var(--accent); }
.pa__back:hover { text-decoration: underline; }

/* 找不到照片时的兜底 */
.pa__miss { text-align: center; padding: 36px 10px; }
.pa__miss .pa__kao { font-size: 30px; margin: 0 0 14px; }

[data-theme="dark"] .pa__navcard { background: rgba(24, 40, 63, .5); }
[data-theme="dark"] .pa__navcard:hover { background: rgba(24, 40, 63, .82); }
[data-theme="dark"] .pa__fig figcaption { background: rgba(10, 22, 40, .5); }
[data-theme="dark"] .pa__fig { background: rgba(10, 22, 40, .4); }

/* 窄屏：取消浮动，图片整幅在上、文字在下 —— 手机上环绕会挤成一团 */
@media (max-width: 720px) {
  .pa { padding: 30px 20px 34px; border-radius: 18px; margin-top: 18px; }
  .pa__fig,
  .pa__fig--left,
  .pa__fig--right {
    float: none;
    width: 100%;
    margin: 0 0 20px;
  }
  .pa__body { font-size: 15px; line-height: 1.92; }
  .pa__nav { grid-template-columns: 1fr; }
  .pa__navcard--off { min-height: 62px; }
}

/* ==========================================================================
   申请友链弹窗
   跟站内其他卡片同一套：毛玻璃 + 20px 圆角 + 胶囊按钮。
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 64, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade .22s var(--ease-soft);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 28px 26px;
  background: var(--card);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: var(--shadow-lg);
  animation: modalPop .3s var(--ease);
}
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalPop {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
}
.modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  color: var(--faint);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modal__x:hover { background: var(--bg-sunken); color: var(--text); }
.modal__title { font-size: 19px; font-weight: 680; color: var(--text); letter-spacing: -.01em; }
.modal__sub { margin: 6px 0 22px; font-size: 13px; color: var(--faint); }
.modal__acts { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }

.fq__fld { display: block; margin-bottom: 14px; }
.fq__fld > span {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.fq__fld > span b { color: var(--pink); font-weight: 600; }
.fq__fld input {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.fq__fld input:focus {
  outline: none;
  background: var(--card-hover);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.fq__msg {
  min-height: 20px;
  margin: 2px 0 10px;
  font-size: 12.5px;
  color: var(--pink);
}
.fq__msg.is-ok { color: var(--green); }

.fq__done { padding: 26px 4px 6px; text-align: center; }
.fq__done .ico { width: 34px; height: 34px; color: var(--green); margin-bottom: 14px; }
.fq__done h3 { font-size: 17px; color: var(--text); margin-bottom: 10px; }
.fq__done p { font-size: 13.5px; color: var(--faint); line-height: 1.85; margin-bottom: 22px; }

@media (max-width: 480px) {
  .modal { padding: 12px; align-items: end; }
  .modal__box { max-width: none; padding: 26px 22px 22px; }
}
