﻿/* ============================================================
   火神个人开发小站 · 浅樱主题
   结构：首屏（全屏）→ 滚动后固定侧栏 + 内容区
   ============================================================ */

:root {
  --bg: #FDEDEB;
  --mauve: #8A616B;
  --salmon: #FAC1B7;
  --peach: #E5B7BF;
  --desc: #C98D85;
  --line: #c98d85;
  --petal-fill: #F8C9C1;
  --petal-edge: #EBA79E;
  --petal-core: #FBE0CE;
  --ink: #2B2124;
  --card: rgba(255, 255, 255, .55);
  --serif: "FZXiaoBiaoSong-B05", "FZ XiaoBiaoSong", "STZhongsong",
           "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-gutter: stable; }
html.smooth { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: var(--serif);
  color: var(--mauve);
  overflow-x: hidden;
}

* { scrollbar-width: thin; scrollbar-color: var(--salmon) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--salmon), var(--peach));
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::selection { background: rgba(250, 193, 183, .45); color: var(--ink); }

a { text-decoration: none; color: inherit; }
img { user-select: none; -webkit-user-drag: none; }

/* ============ 全屏页 ============ */
.page {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

/* ============ 四角装饰（纯 CSS 圆角 L 框） ============ */
.corner {
  position: absolute;
  width: 7.8vw; height: 7.8vw;
  max-width: 180px; max-height: 180px;
  min-width: 56px; min-height: 56px;
  border: 2px solid var(--salmon);
  z-index: 5;
  pointer-events: none;
  opacity: 1;
}
.corner.tl { top: 1.28vw; left: 1.28vw; border-right: 0; border-bottom: 0; border-top-left-radius: 26px; }
.corner.tr { top: 1.28vw; right: 1.28vw; border-left: 0; border-bottom: 0; border-top-right-radius: 26px; }
.corner.bl { bottom: 1.28vw; left: 1.28vw; border-right: 0; border-top: 0; border-bottom-left-radius: 26px; }
.corner.br { bottom: 1.28vw; right: 1.28vw; border-left: 0; border-top: 0; border-bottom-right-radius: 26px; }

/* ============ 首屏 ============ */
.hero-title {
  position: absolute;
  left: 4.35vw; top: 4.35vw;
  width: 48.4vw; max-width: 930px;
  z-index: 3;
  font-size: clamp(38px, 5.2vw, 92px);
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .08em;
  opacity: 1;
}

.hero-sub {
  position: absolute;
  left: 4.35vw; top: 30.1vh;
  width: 34vw; max-width: 620px;
  z-index: 3;
  font-family: "Times New Roman", serif;
  font-size: clamp(14px, 1.5vw, 26px);
  letter-spacing: .34em;
  color: var(--desc);
  text-transform: uppercase;
  opacity: 1;
}

.hero-line {
  position: absolute;
  left: 4.35vw; top: 48.5vh;
  width: 31.6vw; max-width: 610px;
  height: 3px;
  background: var(--line);
  border: none;
  z-index: 3;
  transform-origin: left;
}

.hero-desc {
  position: absolute;
  left: 4.35vw; top: 53.1vh;
  width: 33vw; max-width: 600px;
  z-index: 3;
  color: var(--desc);
  font-size: clamp(15px, 1.85vw, 30px);
  line-height: 1.95;
  letter-spacing: .04em;
  opacity: 1;
}

.hero-btns {
  position: absolute;
  left: 4.35vw; top: 74vh;
  display: flex;
  gap: 3.4vw;
  z-index: 3;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(136px, 10.65vw, 205px);
  height: clamp(42px, 5.87vh, 64px);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: clamp(15px, 1.25vw, 23px);
  letter-spacing: .14em;
  cursor: pointer;
  border: none;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease;
}

.btn-fill {
  background: var(--peach);
  color: #fff;
  border: 1px solid rgba(229, 183, 191, .5);
}
.btn-fill:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(138, 97, 107, .28);
  background: #EBC3C9;
}

.btn-ghost {
  background: var(--bg);
  color: var(--mauve);
  border: 1.5px solid rgba(138, 97, 107, .5);
}
.btn-ghost:hover {
  transform: translateY(-4px);
  background: #F4E2E1;
  box-shadow: 0 10px 24px rgba(138, 97, 107, .16);
}

/* ---- 首屏右侧氛围（替代插画：柔光 + 樱花） ---- */
.hero-stage {
  position: absolute;
  right: -12vw; bottom: -6vh;
  width: min(78vw, 1080px);
  height: 92vh;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 58% 52%, rgba(250, 193, 183, .85), rgba(250, 193, 183, 0) 68%),
    radial-gradient(38% 34% at 74% 40%, rgba(229, 183, 191, .7), rgba(229, 183, 191, 0) 70%),
    radial-gradient(34% 30% at 44% 70%, rgba(255, 233, 226, .95), rgba(255, 233, 226, 0) 72%);
  filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 18%);
  mask-image: linear-gradient(to top, transparent 2%, #000 18%);
  animation: floaty 9s ease-in-out infinite;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 22% 14% 18% 22%;
  border-radius: 50%;
  border: 1px solid rgba(138, 97, 107, .16);
}

.scroll-hint {
  position: absolute;
  left: 26vw; bottom: 3vh;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--mauve);
  opacity: .55;
  font-size: clamp(13px, 1.8vh, 19px);
  letter-spacing: .3em;
  text-align: center;
  cursor: pointer;
  animation: bob 2.2s ease-in-out infinite;
  background: none;
  border: none;
  font-family: var(--serif);
}
.scroll-hint span { display: block; font-size: 1.4em; line-height: 1; }

/* ============ 固定侧栏 ============ */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: 24vw; height: 100vh;
  z-index: 20;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 4.6vh 3.4vw 3.6vh 3.2vw;
  box-sizing: border-box;
}

.mini-corner {
  position: absolute;
  width: 5.55vw; height: 5.55vw;
  min-width: 40px; min-height: 40px;
  max-width: 110px; max-height: 110px;
  border: 1.5px solid var(--salmon);
  pointer-events: none;
  opacity: .5;
}
.mini-corner.tl { top: 2vh; left: 1.35vw; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.mini-corner.tr { top: 2vh; right: 1.95vw; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.mini-corner.bl { bottom: 1.5vh; left: 1.35vw; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.mini-corner.br { bottom: 1.5vh; right: 1.95vw; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }

.side-logo-en {
  font-family: "Times New Roman", serif;
  font-size: clamp(14px, 1.5vw, 26px);
  letter-spacing: .3em;
  color: var(--mauve);
  text-transform: uppercase;
}

.side-logo-cn {
  margin-top: 1vh;
  font-size: clamp(17px, 1.55vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .1em;
}

.side-line {
  width: 17.6vw; height: 2px;
  margin: 2.2vh 0 1.8vh;
  background: var(--line);
  border: none;
}

.side-desc {
  width: auto;
  color: var(--desc);
  font-size: clamp(10px, .92vw, 16px);
  line-height: 1.85;
  letter-spacing: .06em;
}

.snav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  margin: 2.4vh 0 1.8vh;
}

.snav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.15vh .8vw;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.snav a:hover { background: rgba(255, 255, 255, .45); transform: translateX(6px); }
.snav a.active { background: rgba(255, 255, 255, .6); border-left-color: var(--salmon); }

.snav-num {
  font-family: "Times New Roman", serif;
  font-size: clamp(13px, 2vh, 22px);
  color: var(--salmon);
  font-weight: 700;
  min-width: 2.2em;
}

.snav-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.snav-cn {
  font-size: clamp(15px, 2.1vh, 24px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .12em;
  line-height: 1.3;
}

.snav-ds {
  font-size: clamp(10px, min(1.35vh, .78vw), 15px);
  color: var(--desc);
  letter-spacing: .04em;
  margin-top: .3vh;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.snav-arrow {
  margin-left: .4vw;
  color: var(--mauve);
  opacity: .3;
  font-size: clamp(13px, 1.9vh, 21px);
  transition: transform .3s ease, opacity .3s ease;
}
.snav a:hover .snav-arrow { transform: translateX(5px); opacity: .85; }

.side-btns {
  display: flex;
  flex-direction: column;
  gap: 1.4vh;
  flex: 0 0 auto;
}
.side-btn {
  position: static;
  width: 100%;
  height: clamp(38px, 5.2vh, 58px);
  font-size: clamp(13px, 1.15vw, 19px);
}

/* 内容区：给固定侧栏让位 */
#content {
  position: relative;
  margin-left: 24vw;
}

.morph-clone {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  margin: 0;
  visibility: hidden;
}
.morph-clone.show { visibility: visible; }

/* ============ 长内容区块 ============ */
.section {
  position: relative;
  padding: 11vh 5vw 10vh;
  overflow: hidden;
}

.section-head { margin-bottom: 6vh; }

.section-kicker {
  font-family: "Times New Roman", serif;
  font-size: clamp(12px, 1.6vh, 18px);
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--line);
  margin-bottom: 1.2vh;
}

.section-title {
  font-size: clamp(30px, 3.4vw, 62px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .12em;
  line-height: 1.15;
  clip-path: inset(0 0 108% 0);
  transition: clip-path 1.15s cubic-bezier(.22, .9, .32, 1) calc(var(--i, 0) * 80ms + 140ms);
}

.section-line {
  width: 6vw; min-width: 64px; height: 3px;
  background: var(--line);
  border: none;
  margin: 2vh 0;
}

.section-sub {
  color: var(--desc);
  font-size: clamp(14px, 1.9vh, 21px);
  letter-spacing: .08em;
}
.section-sub b { color: var(--mauve); font-weight: 700; }

.reveal {
  opacity: 1;
  transition: opacity .9s cubic-bezier(.22, .9, .32, 1),
              transform .9s cubic-bezier(.22, .9, .32, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.in .section-title { clip-path: inset(0 0 -12% 0); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---- 关于 ---- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: 2.5vw;
  align-items: start;
}

.profile-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  padding: 3.2vh 2vw;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  background: var(--salmon);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: .85;
}

.profile-name {
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .1em;
}

.profile-tagline {
  color: var(--desc);
  font-size: clamp(12px, 1.6vh, 18px);
  margin: .8vh 0 2.4vh;
  letter-spacing: .06em;
}

.profile-row {
  display: flex;
  padding: 1.15vh 0;
  border-bottom: 1px dashed rgba(160, 136, 170, .35);
  font-size: clamp(13px, 1.75vh, 19px);
}
.profile-row:last-child { border-bottom: none; }
.profile-row .k { min-width: 5.5em; color: var(--line); letter-spacing: .15em; }
.profile-row .v { color: var(--mauve); letter-spacing: .05em; font-weight: 600; }

.quote-card {
  background: var(--card);
  border-left: 4px solid var(--salmon);
  border-radius: 0 8px 8px 0;
  padding: 2.6vh 2vw;
  margin-bottom: 3.5vh;
}
.quote-card p {
  color: var(--mauve);
  font-size: clamp(15px, 2vh, 22px);
  line-height: 1.9;
  letter-spacing: .06em;
}
.quote-card cite {
  display: block;
  margin-top: 1.2vh;
  font-style: normal;
  color: var(--desc);
  font-size: clamp(12px, 1.6vh, 17px);
  text-align: right;
}

.interest-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6vh 1.4vw;
}

.chip {
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .16);
  border-radius: 8px;
  padding: 1.8vh 1.2vw;
  transition: transform .35s ease, box-shadow .35s ease;
}
.chip:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(138, 97, 107, .16); }
.chip .t {
  font-size: clamp(15px, 2vh, 22px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .1em;
}
.chip .d {
  margin-top: .6vh;
  color: var(--desc);
  font-size: clamp(11px, 1.55vh, 17px);
  line-height: 1.7;
}

/* ---- 乐队档案 ---- */
.band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vh 1.6vw;
}

.band-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  padding: 2.6vh 1.5vw;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.band-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  background: var(--salmon);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: .85;
}
.band-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(138, 97, 107, .18); }

.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1vw; }

.band-name {
  font-size: clamp(17px, 1.5vw, 26px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .08em;
}

.band-score {
  font-family: "Times New Roman", serif;
  font-size: clamp(20px, 1.9vw, 34px);
  font-weight: 700;
  color: var(--salmon);
  line-height: 1;
  white-space: nowrap;
}
.band-score i { font-size: .45em; color: var(--line); font-style: normal; }

.band-jp {
  font-size: clamp(11px, 1.4vh, 15px);
  color: var(--line);
  letter-spacing: .12em;
  margin-top: .8vh;
}

.band-from {
  font-size: clamp(11px, 1.45vh, 16px);
  color: var(--desc);
  letter-spacing: .02em;
  margin-top: .4vh;
}

.band-one {
  margin: 1.4vh 0 1.2vh;
  color: var(--mauve);
  font-size: clamp(13px, 1.7vh, 18px);
  line-height: 1.75;
}

.band-tags { display: flex; flex-wrap: wrap; gap: .5vw; }

.tag-sm {
  font-size: clamp(10px, 1.3vh, 14px);
  color: var(--desc);
  border: 1px solid rgba(201, 141, 133, .45);
  border-radius: 999px;
  padding: .2vh .8vw;
  white-space: nowrap;
}

/* ---- 写作 ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6vw;
  margin-bottom: 6vh;
}

.cat-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  padding: 2.6vh 1.4vw;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  background: var(--salmon);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: .85;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(138, 97, 107, .18); }

.cat-name {
  font-size: clamp(18px, 1.5vw, 28px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .1em;
}

.cat-en {
  font-family: "Times New Roman", serif;
  font-size: clamp(10px, 1.3vh, 14px);
  color: var(--line);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: .5vh 0 1.2vh;
}

.cat-desc {
  color: var(--desc);
  font-size: clamp(12px, 1.6vh, 18px);
  line-height: 1.75;
}

.post-list {
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  overflow: hidden;
}

.post-item {
  display: flex;
  align-items: center;
  gap: 2vw;
  padding: 2vh 2vw;
  border-bottom: 1px dashed rgba(160, 136, 170, .3);
  transition: background .3s ease;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: rgba(255, 255, 255, .5); }

.post-date {
  font-family: "Times New Roman", serif;
  color: var(--line);
  font-size: clamp(12px, 1.7vh, 19px);
  min-width: 7.5em;
}

.post-title-sm {
  flex: 1;
  color: var(--mauve);
  font-weight: 700;
  font-size: clamp(14px, 1.95vh, 22px);
  letter-spacing: .05em;
}

.post-tag {
  color: var(--desc);
  font-size: clamp(11px, 1.5vh, 16px);
  border: 1px solid rgba(201, 141, 133, .45);
  border-radius: 999px;
  padding: .3vh 1vw;
  white-space: nowrap;
}

.writing-note {
  margin-top: 2.4vh;
  color: var(--desc);
  font-size: clamp(12px, 1.7vh, 19px);
  letter-spacing: .06em;
  text-align: right;
}

/* ---- 项目 ---- */
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4vh 1vw;
  margin-bottom: 6vh;
}

.skill-chip {
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .2);
  border-radius: 999px;
  padding: 1vh 1.4vw;
  font-size: clamp(13px, 1.8vh, 20px);
  color: var(--mauve);
  letter-spacing: .08em;
  transition: transform .3s ease, box-shadow .3s ease;
}
.skill-chip:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(138, 97, 107, .16); }
.skill-chip b { font-weight: 700; }
.skill-chip span { color: var(--line); margin-left: .6em; font-size: .85em; }

.timeline { position: relative; padding-left: 2.4vw; }
.timeline::before {
  content: "";
  position: absolute;
  left: .55vw; top: .6vh; bottom: .6vh;
  width: 2px;
  background: linear-gradient(var(--salmon), var(--line));
}

.tl-item { position: relative; padding: 1.6vh 0 1.6vh 1.6vw; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2.4vw + .55vw - 6px);
  top: 2.6vh;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--salmon);
}

.tl-date {
  font-family: "Times New Roman", serif;
  color: var(--line);
  font-size: clamp(11px, 1.55vh, 17px);
  letter-spacing: .12em;
}

.tl-name {
  font-size: clamp(16px, 2.1vh, 24px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .08em;
  margin: .4vh 0;
}
.tl-name .tag {
  font-size: .62em;
  color: #fff;
  background: var(--peach);
  border-radius: 999px;
  padding: .2em 1em;
  margin-left: .8em;
  vertical-align: middle;
  letter-spacing: .1em;
}

.tl-desc {
  color: var(--desc);
  font-size: clamp(12px, 1.7vh, 19px);
  line-height: 1.75;
  max-width: 62em;
}

/* ---- 追番 ---- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vh 1.6vw;
}

.game-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  padding: 2.6vh 1.5vw;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.game-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  background: var(--salmon);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: .85;
}
.game-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(138, 97, 107, .18); }

.game-score {
  font-family: "Times New Roman", serif;
  font-size: clamp(26px, 2.4vw, 44px);
  font-weight: 700;
  color: var(--salmon);
  line-height: 1;
}
.game-score i { font-size: .45em; color: var(--line); font-style: normal; }

.game-name {
  font-size: clamp(17px, 1.5vw, 27px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .08em;
  margin: 1vh 0;
}

.game-review {
  color: var(--desc);
  font-size: clamp(12px, 1.65vh, 18px);
  line-height: 1.75;
}

.games-note {
  margin-top: 3vh;
  color: var(--desc);
  font-size: clamp(12px, 1.7vh, 19px);
  letter-spacing: .06em;
  text-align: right;
}

/* ---- 联系 ---- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6vw;
}

.link-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  padding: 2.6vh 1vw;
  text-align: center;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.link-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  background: var(--salmon);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: .85;
}
.link-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(138, 97, 107, .18); }

.link-platform {
  font-size: clamp(15px, 1.3vw, 23px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .1em;
}

.link-handle {
  margin-top: 1vh;
  font-family: "Times New Roman", serif;
  color: var(--desc);
  font-size: clamp(11px, 1.55vh, 17px);
  letter-spacing: .04em;
  word-break: break-all;
}

/* ---- 页脚 ---- */
footer {
  position: relative;
  padding: 8vh 8vw 6vh;
  text-align: center;
  border-top: 1px solid rgba(160, 136, 170, .3);
}

.footer-brand {
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .16em;
  margin: 0 auto 2vh;
}

.footer-tag {
  color: var(--desc);
  font-size: clamp(13px, 1.8vh, 20px);
  letter-spacing: .1em;
  margin-bottom: 2.4vh;
}

.footer-copy {
  color: var(--line);
  font-size: clamp(11px, 1.5vh, 16px);
  letter-spacing: .06em;
}
.footer-copy a { color: var(--line); }
.footer-copy a:hover { color: var(--mauve); }

/* ============ 氛围层 ============ */
.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  background: radial-gradient(circle,
      rgba(250, 193, 183, .34),
      rgba(229, 183, 191, .16) 38%,
      rgba(250, 193, 183, 0) 66%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .8s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

.petals {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 1.2s ease .6s;
}
.petals.on { opacity: .85; }

.sakura {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  fill: var(--petal-fill);
  stroke: var(--petal-edge);
  stroke-width: 2;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: .72;
}
.sakura-core { fill: var(--petal-core); stroke: var(--petal-edge); stroke-width: 1.6; }

.sakura-hero-a { position: absolute; right: 9vw; top: 10vh; width: min(22vw, 330px); transform: rotate(14deg); z-index: 0; opacity: .5; }
.sakura-hero-b { position: absolute; left: 30vw; bottom: 6vh; width: min(15vw, 220px); transform: rotate(-22deg); z-index: 0; opacity: .38; }

.sakura-fixed { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; }
.sakura-slot { position: absolute; width: min(26vw, 380px); }
.sakura-slot-tr { right: 2vw; top: 1.5vh; }
.sakura-slot-br { right: 3vw; bottom: 2vh; }
.sakura-slot-tr .sakura { transform: rotate(-16deg); }
.sakura-slot-br .sakura { transform: rotate(20deg); }

/* 页面转场：三角形扫过 */
.page-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  pointer-events: none;
  clip-path: polygon(50% 100%, 50% 100%, 50% 100%);
  transition: clip-path .3s ease-out;
  will-change: clip-path;
}
.page-gate.active {
  pointer-events: auto;
  clip-path: polygon(50% -20.71vw, -241.42vh 100%, calc(100vw + 241.42vh) 100%);
}

/* ============ 文章页 ============ */
.page-section { padding-top: 14vh; }

.post { max-width: 780px; }

.post-head { margin-bottom: 4vh; }

.post-meta {
  display: flex;
  gap: .8vw;
  align-items: center;
  color: var(--line);
  font-size: clamp(12px, 1.6vh, 17px);
  letter-spacing: .1em;
  margin-bottom: 2vh;
}

.post-title {
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .06em;
  line-height: 1.35;
  margin-bottom: 2vh;
}

.chips { display: flex; flex-wrap: wrap; gap: .6vw; }

.chip-sm {
  font-size: clamp(11px, 1.4vh, 15px);
  color: var(--desc);
  border: 1px solid rgba(201, 141, 133, .45);
  border-radius: 999px;
  padding: .25vh .9vw;
  transition: .25s;
}
.chip-sm:hover { color: var(--mauve); border-color: var(--mauve); }

.post-body {
  color: #6d5057;
  font-size: clamp(15px, 1.9vh, 19px);
  line-height: 2;
}

.post-body h2 {
  margin: 5vh 0 2vh;
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--ink);
  letter-spacing: .08em;
  padding-left: 1vw;
  border-left: 4px solid var(--salmon);
}

.post-body h3 {
  margin: 3.4vh 0 1.4vh;
  font-size: clamp(17px, 1.8vw, 24px);
  color: var(--mauve);
  letter-spacing: .06em;
}

.post-body p { margin: 0 0 1.9vh; }

.post-body a { color: var(--desc); border-bottom: 1px solid rgba(201, 141, 133, .5); }
.post-body a:hover { color: var(--mauve); }

.post-body strong { color: var(--ink); font-weight: 700; }

.post-body blockquote {
  margin: 3vh 0;
  padding: 2vh 2vw;
  background: var(--card);
  border-left: 4px solid var(--salmon);
  border-radius: 0 8px 8px 0;
  color: var(--mauve);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body ul, .post-body ol { margin: 0 0 2vh; padding-left: 1.6em; }
.post-body li { margin-bottom: .7vh; }
.post-body li::marker { color: var(--salmon); }

.post-body hr {
  margin: 4vh 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.post-body img { max-width: 100%; border-radius: 8px; display: block; margin: 3vh auto; }

.post-body code {
  font-family: Consolas, "Courier New", monospace;
  font-size: .88em;
  background: rgba(250, 193, 183, .3);
  color: #7d4a4a;
  padding: .15em .45em;
  border-radius: 4px;
}

.post-body pre {
  margin: 3vh 0;
  padding: 2.2vh 1.6vw;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(138, 97, 107, .18);
  border-left: 4px solid var(--salmon);
  border-radius: 0 8px 8px 0;
  overflow-x: auto;
  line-height: 1.7;
}
.post-body pre code { background: none; padding: 0; color: #5f444b; font-size: .92em; }

.post-body table { width: 100%; border-collapse: collapse; margin: 3vh 0; font-size: .95em; }
.post-body th, .post-body td {
  padding: 1.2vh 0.8vw;
  border-bottom: 1px dashed rgba(160, 136, 170, .35);
  text-align: left;
}
.post-body th { color: var(--mauve); }

.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4vw; margin: 5vh 0 2vh; }

.pn {
  display: flex;
  flex-direction: column;
  gap: .8vh;
  padding: 2vh 1.6vw;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  transition: .25s;
}
.pn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(138, 97, 107, .16); }
.pn.right { text-align: right; }
.pn span { font-size: clamp(11px, 1.4vh, 15px); color: var(--line); letter-spacing: .1em; }
.pn b { font-size: clamp(14px, 1.7vh, 19px); color: var(--mauve); }

.more-link {
  display: inline-block;
  margin-top: 3vh;
  color: var(--desc);
  font-size: clamp(13px, 1.7vh, 18px);
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(201, 141, 133, .5);
  padding-bottom: .3vh;
}
.more-link:hover { color: var(--mauve); }

.empty-note { color: var(--desc); padding: 2vh 2vw; }

.notfound { text-align: center; padding: 4vh 0 8vh; }
.nf-code {
  font-family: "Times New Roman", serif;
  font-size: clamp(90px, 12vw, 190px);
  font-weight: 700;
  color: var(--salmon);
  line-height: 1;
  margin: 2vh 0;
}
.nf-text { font-size: clamp(18px, 2vw, 28px); color: var(--ink); margin-bottom: 1.6vh; }

/* ============ 动画 ============ */
/* ============ 渐进增强：只有 JS 可用时才播放入场动画 ============ */
html.js .hero-title {
  opacity: 0; transform: translateY(-24px);
  animation: slideDown 1.1s cubic-bezier(.22, .9, .32, 1) .35s forwards;
}
html.js .hero-sub {
  opacity: 0; transform: translateY(-18px);
  animation: slideDown 1.1s cubic-bezier(.22, .9, .32, 1) .55s forwards;
}
html.js .hero-line {
  transform: scaleX(0);
  animation: growX .9s cubic-bezier(.22, .9, .32, 1) .85s forwards;
}
html.js .hero-desc { opacity: 0; animation: fadeIn 1.2s ease 1.05s forwards; }
html.js .hero-btns {
  opacity: 0; transform: translateY(16px);
  animation: slideUp 1s cubic-bezier(.22, .9, .32, 1) 1.25s forwards;
}
html.js .corner { opacity: 0; animation: fadeIn 1.2s ease .2s forwards; }
html.js .reveal { opacity: 0; transform: translateY(30px); }
html.js .reveal.in { opacity: 1; transform: translateY(0); }
html.js .section-title { clip-path: inset(0 0 108% 0); }
html.js .reveal.in .section-title { clip-path: inset(0 0 -12% 0); }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideDown { to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes growX { to { transform: scaleX(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4vh); } }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ 响应式 ============ */
@media (max-aspect-ratio: 1/1), (max-width: 900px) {
  .page { min-height: 100svh; }

  .hero-title { width: 80vw; top: 8vh; font-size: clamp(26px, 7.6vw, 46px); }
  .hero-sub { width: 60vw; top: 21vh; font-size: clamp(11px, 3.2vw, 18px); letter-spacing: .24em; }
  .hero-line { left: 4.35vw; top: 29vh; width: 62vw; }
  .hero-desc { top: 33vh; width: 80vw; font-size: clamp(14px, 4.2vw, 21px); }
  .hero-btns { left: 4.35vw; top: 52vh; gap: 4vw; }
  .hero-stage { right: -30vw; bottom: 4vh; width: 120vw; height: 60vh; }

  .page::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 22vh;
    background: linear-gradient(to top, var(--bg) 6%, rgba(253, 237, 235, .82) 42%, rgba(253, 237, 235, 0) 100%);
    z-index: 2;
    pointer-events: none;
  }

  .scroll-hint { left: 50%; bottom: 2.5vh; }

  .sidebar { display: none; }
  #content { margin-left: 0; }

  .section { padding: 9vh 6vw 8vh; }
  .about-grid { grid-template-columns: 1fr; }
  .interest-chips { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .post-item { gap: 3vw; flex-wrap: wrap; }
  .timeline { padding-left: 6vw; }
  .timeline::before { left: 1.6vw; }
  .tl-item::before { left: calc(-6vw + 1.6vw - 6px); }
  .pn-nav { grid-template-columns: 1fr; }

  .sakura-hero-a { left: 6vw; top: 3vh; width: 44vw; transform: rotate(-6deg); }
  .sakura-hero-b { left: auto; right: 6vw; top: 35vh; bottom: auto; width: 44vw; transform: rotate(6deg); }
  .sakura-fixed { display: none; }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .band-grid { grid-template-columns: repeat(2, 1fr); }
}

  .snav a { padding: .9vh .8vw; }
  .side-btn.b1 { top: 78vh; }
  .side-btn.b2 { top: 85vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .corner, .hero-title, .hero-sub, .hero-desc, .hero-btns,
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-line { transform: scaleX(1) !important; }
  .section-title { clip-path: none !important; }
  .cursor-glow, .petals { display: none !important; }
}

/* ============ 无首屏的页面（文章/归档/关于） ============ */
body.no-hero .sidebar { display: none; }
body.no-hero #content { margin-left: 0; }
main.solo { margin-left: 0; }
/* ============================================================
   新增组件：阅读进度、回到顶部、手机导航、搜索、标签、目录
   ============================================================ */

/* 阅读进度条 */
.readbar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 95;
  background: linear-gradient(90deg, var(--salmon), var(--peach));
  transition: width .1s linear;
}

/* 回到顶部 */
.totop {
  position: fixed;
  right: 3vw; bottom: 4vh;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(138, 97, 107, .35);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  color: var(--mauve);
  font-size: 18px;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { box-shadow: 0 10px 24px rgba(138, 97, 107, .22); }

/* 手机顶栏：桌面隐藏 */
.mnav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 70;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: rgba(253, 237, 235, .86);
  backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid rgba(138, 97, 107, .14);
}
.mnav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .1em;
}
.mnav-actions { display: flex; gap: 6px; }
.mnav-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: none;
  background: none;
  color: var(--mauve);
  cursor: pointer;
  border-radius: 8px;
}
.mnav-btn:active { background: rgba(250, 193, 183, .35); }

.mdrawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(43, 33, 36, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mdrawer.on { opacity: 1; pointer-events: auto; }
.mdrawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(84vw, 340px);
  background: var(--bg);
  padding: 18px 5vw 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, .9, .32, 1);
  overflow-y: auto;
}
.mdrawer.on .mdrawer-panel { transform: none; }
.mdrawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .08em;
}
.mdrawer-head button {
  border: none; background: none; font-size: 18px;
  color: var(--mauve); cursor: pointer; padding: 6px;
}
.msearch { display: flex; gap: 8px; }
.msearch input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(138, 97, 107, .25);
  background: rgba(255, 255, 255, .7);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--mauve);
  outline: none;
}
.msearch button {
  border: none;
  background: var(--peach);
  color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font-family: var(--serif);
  font-size: 14px;
  cursor: pointer;
}
.mnav-links { display: flex; flex-direction: column; }
.mnav-links a {
  padding: 14px 4px;
  border-bottom: 1px dashed rgba(160, 136, 170, .3);
  font-size: 16px;
  color: var(--mauve);
  letter-spacing: .08em;
}
.mnav-links a:active { color: var(--ink); }
.mdrawer-foot {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--desc);
}
.mdrawer-foot a { border-bottom: 1px solid rgba(201, 141, 133, .4); }

/* 侧栏搜索 */
.side-search {
  flex: 0 0 auto;
  margin: 0 0 1.6vh;
}
.side-search input {
  width: 100%;
  border: 1px solid rgba(138, 97, 107, .22);
  background: rgba(255, 255, 255, .6);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--serif);
  font-size: clamp(11px, 1.1vw, 15px);
  color: var(--mauve);
  outline: none;
  transition: background .25s ease, border-color .25s ease;
}
.side-search input:focus {
  background: #fff;
  border-color: rgba(138, 97, 107, .45);
}
.side-search input::placeholder { color: var(--line); }

/* 文章：正文 + 目录 */
.post-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 3vw;
  align-items: start;
}

.toc {
  position: sticky;
  top: 8vh;
  border-left: 2px solid rgba(250, 193, 183, .55);
  padding-left: 1vw;
  max-height: 78vh;
  overflow-y: auto;
}
.toc-title {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--line);
  margin-bottom: 1.2vh;
  text-transform: uppercase;
}
.toc-link {
  display: block;
  padding: .5vh 0;
  font-size: clamp(12px, 1.4vh, 15px);
  color: var(--desc);
  line-height: 1.6;
  transition: color .2s ease;
}
.toc-link.lv3 { padding-left: 1em; font-size: clamp(11px, 1.25vh, 14px); opacity: .82; }
.toc-link:hover, .toc-link.active { color: var(--mauve); }

/* 相关文章 */
.related { margin: 5vh 0 0; }
.related-label {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--line);
  margin-bottom: 1.6vh;
  text-transform: uppercase;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2vw; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: .8vh;
  padding: 2vh 1.4vw;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(138, 97, 107, .16); }
.related-date {
  font-family: "Times New Roman", serif;
  font-size: clamp(11px, 1.3vh, 14px);
  color: var(--line);
}
.related-title {
  font-size: clamp(13px, 1.6vh, 17px);
  color: var(--mauve);
  font-weight: 700;
  line-height: 1.6;
}

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 1.4vh 1vw; }
.tag-link {
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  padding: 1vh 1.5vw;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 999px;
  color: var(--mauve);
  letter-spacing: .06em;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tag-link:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(138, 97, 107, .16); }
.tag-link i { font-style: normal; font-size: .72em; color: var(--line); }

/* 搜索页 */
.search-form { display: flex; gap: 1vw; max-width: 620px; margin-bottom: 4vh; }
.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(138, 97, 107, .22);
  background: rgba(255, 255, 255, .72);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--serif);
  font-size: clamp(14px, 1.7vh, 18px);
  color: var(--mauve);
  outline: none;
}
.search-form input:focus { background: #fff; border-color: rgba(138, 97, 107, .45); }
.search-form button {
  border: none;
  background: var(--peach);
  color: #fff;
  border-radius: 999px;
  padding: 0 28px;
  font-family: var(--serif);
  font-size: clamp(14px, 1.7vh, 18px);
  letter-spacing: .1em;
  cursor: pointer;
}

.result-list { display: flex; flex-direction: column; gap: 1.2vh; }
.result-item {
  display: flex;
  align-items: flex-start;
  gap: 2vw;
  padding: 2vh 2vw;
  background: var(--card);
  border: 1px solid rgba(138, 97, 107, .18);
  border-radius: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.result-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(138, 97, 107, .16); }
.result-body { flex: 1; display: flex; flex-direction: column; gap: .6vh; min-width: 0; }
.result-title {
  font-size: clamp(15px, 1.9vh, 20px);
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: .04em;
}
.result-snippet {
  font-size: clamp(12px, 1.55vh, 16px);
  color: var(--desc);
  line-height: 1.75;
}

/* 归档分组 */
.archive-year { margin-bottom: 5vh; }
.archive-label {
  display: flex;
  align-items: baseline;
  gap: 1vw;
  margin-bottom: 1.6vh;
  padding-left: .4vw;
}
.archive-label span {
  font-family: "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 40px);
  font-weight: 700;
  color: var(--salmon);
  letter-spacing: .06em;
}
.archive-label i {
  font-style: normal;
  font-size: clamp(12px, 1.5vh, 16px);
  color: var(--line);
  letter-spacing: .1em;
}

/* ============================================================
   手机端重排
   ============================================================ */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  /* 顶栏 */
  .mnav { display: flex; }

  /* 首屏：取消绝对定位，改成正常流式排版 */
  .page {
    height: auto;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 56px;
  }
  .hero-fade {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4vh;
    padding: 10vh 7vw 12vh;
    z-index: 3;
  }
  .hero-title,
  .hero-sub,
  .hero-line,
  .hero-desc,
  .hero-btns,
  .scroll-hint {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: 100%;
    transform: none;
  }
  .hero-title {
    font-size: clamp(27px, 8.2vw, 40px);
    letter-spacing: .04em;
    line-height: 1.3;
    margin-bottom: .4vh;
  }
  .hero-sub { font-size: clamp(11px, 3vw, 14px); letter-spacing: .2em; }
  .hero-line { width: 42vw; margin: 1vh 0; }
  .hero-desc {
    font-size: clamp(14px, 3.9vw, 17px);
    line-height: 1.95;
    letter-spacing: .02em;
  }
  .hero-btns { gap: 3vw; flex-wrap: wrap; margin-top: 1vh; }
  .hero-btns .btn { width: auto; padding: 0 7vw; height: 46px; font-size: 15px; }
  .scroll-hint {
    position: static;
    align-self: center;
    margin-top: 4vh;
    animation: none;
    opacity: .5;
  }
  .scroll-hint span { display: none; }

  /* 手机上去掉角框和樱花，避免压字 */
  .corner { display: none; }
  .sakura-hero-a,
  .sakura-hero-b { display: none; }

  .hero-stage {
    right: -40vw;
    bottom: auto;
    top: 6vh;
    width: 130vw;
    height: 70vh;
    opacity: .75;
  }

  /* 侧栏在手机上本来就不显示 */
  .sidebar { display: none; }

  /* 正文页面顶部留出顶栏 */
  .page-section { padding-top: 88px; }

  .post-wrap { grid-template-columns: 1fr; }
  .toc {
    position: static;
    order: -1;
    max-height: none;
    margin-bottom: 3vh;
    border-left: none;
    border-top: 1px solid rgba(250, 193, 183, .6);
    padding: 2vh 0 0;
  }
  .related-grid { grid-template-columns: 1fr; }
  .result-item { flex-wrap: wrap; gap: 1vh; }
  .search-form { flex-direction: column; }
  .search-form button { height: 46px; }
  .totop { right: 4vw; bottom: 3vh; width: 42px; height: 42px; }
  footer { padding: 6vh 6vw 5vh; }
}

/* 很小的屏（<=380px）再压一档 */
@media (max-width: 380px) {
  .hero-title { font-size: 26px; }
  .hero-desc { font-size: 13.5px; }
  .hero-fade { padding: 8vh 6vw 10vh; gap: 2vh; }
}

/* 代码复制按钮 */
.post-body pre { position: relative; }
.code-copy {
  position: absolute;
  top: 10px; right: 10px;
  border: 1px solid rgba(138, 97, 107, .25);
  background: rgba(255, 255, 255, .88);
  color: var(--mauve);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 3px 12px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.post-body pre:hover .code-copy { opacity: 1; }
.code-copy:hover { background: #fff; }
@media (hover: none) { .code-copy { opacity: 1; } }
