:root {
  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --card: rgba(255, 255, 255, 0.72);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --danger: #ff3b30;
  --radius: 18px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Maple Mono CN", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "New York", "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --wm-w: 81.5px;
  --wm-h: 15px;
  --wm-s: 8;
  --wm-tx: 326px;
  --wm-ty: 78.5px;
  --wm-left: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* 非阅读页：纯白底 + 角落淡彩光晕（参考 PackyCode 的明亮通透感） */
body.glow { background: #fff; }
body.glow::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 8% -4%, rgba(99, 140, 255, 0.10), transparent 70%),
    radial-gradient(720px 480px at 92% 4%, rgba(186, 148, 255, 0.09), transparent 70%),
    radial-gradient(860px 620px at 96% 96%, rgba(110, 220, 180, 0.08), transparent 70%),
    radial-gradient(600px 460px at 2% 88%, rgba(255, 176, 120, 0.05), transparent 70%);
}
body.glow .nav {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0) 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--mono); font-size: 0.92em; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.65);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: transform 0.35s var(--ease);
}
/* 阅读页下滑时隐去（site.js 控制，仅阅读页挂监听） */
.nav.nav-hidden { transform: translateY(-100%); }
.nav-inner {
  position: relative;
  padding: 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 18px; }
/* 中间板块相对整条导航视觉居中，不随左右两侧内容宽度偏移 */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
/* 中间板块链接：颜色与品牌名一致，字号只比品牌名（15px 高）小一点 */
.nav-center .nav-link { color: var(--text); font-size: 15px; }
.nav-center .nav-link:hover { opacity: 0.55; }
.nav-center .nav-link.active { font-weight: 600; }
.nav-link { color: var(--text-2); font-size: 13px; padding: 10px 2px; }
.nav-link:hover, .nav-link.active { color: var(--text); text-decoration: none; }
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34c759; display: inline-block;
}

.main { min-height: calc(100vh - 160px); }

/* ---------- 首页片头 ---------- */
body.booting { overflow: hidden; animation: body-unlock 0s 1.85s forwards; }
@keyframes body-unlock { to { overflow: visible; } }

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff;
  pointer-events: none;
  animation: overlay-out 0.35s 1.35s var(--ease) forwards;
}
@keyframes overlay-out { to { opacity: 0; visibility: hidden; } }

.intro-mark {
  position: fixed;
  top: 18.5px;
  left: var(--wm-left);
  width: var(--wm-w);
  height: var(--wm-h);
  z-index: 60;
  pointer-events: none;
  transform-origin: 0 0;
  animation: wm-fly 0.55s 0.95s var(--ease) both;
}
.intro-mark svg { width: 100%; height: 100%; display: block; }
@keyframes wm-fly {
  from {
    transform: translate(
      calc(50vw - var(--wm-tx) - var(--wm-left)),
      calc(50vh - var(--wm-ty))
    ) scale(var(--wm-s));
  }
  to { transform: translate(0px, 0px) scale(1); }
}
.wm-stroke {
  fill: var(--text);
  fill-opacity: 0;
  stroke: var(--text);
  stroke-opacity: 1;
  stroke-width: 19;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 导航静态字标：始终实心，苹果风格 */
.wm-static .wm-stroke { fill-opacity: 1; stroke-opacity: 0; }
/* 全屏阶段：五字母同时从锚点生长描边（带呼吸感），不填充；起飞后填充随飞行淡入 */
.wm-r { transform-box: fill-box; transform-origin: center; animation: wm-grow-wm-r 0.95s var(--ease) 0s both, wm-breathe 1.1s var(--ease) 0s both, wm-solid 0.35s ease 1.0s forwards; }
.wm-u { transform-box: fill-box; transform-origin: center; animation: wm-grow-wm-u 0.95s var(--ease) 0s both, wm-breathe 1.1s var(--ease) 0s both, wm-solid 0.35s ease 1.0s forwards; }
.wm-a { transform-box: fill-box; transform-origin: center; animation: wm-grow-wm-a 0.95s var(--ease) 0s both, wm-breathe 1.1s var(--ease) 0s both, wm-solid 0.35s ease 1.0s forwards; }
.wm-w1 { transform-box: fill-box; transform-origin: center; animation: wm-grow-wm-w1 0.95s var(--ease) 0s both, wm-breathe 1.1s var(--ease) 0s both, wm-solid 0.35s ease 1.0s forwards; }
.wm-w2 { transform-box: fill-box; transform-origin: center; animation: wm-grow-wm-w2 0.95s var(--ease) 0s both, wm-breathe 1.1s var(--ease) 0s both, wm-solid 0.35s ease 1.0s forwards; }
@keyframes wm-grow-wm-r {
  from { stroke-dasharray: 0 563.4; stroke-dashoffset: 0; }
  to { stroke-dasharray: 563.4 0; stroke-dashoffset: 281.7; }
}
@keyframes wm-grow-wm-u {
  from { stroke-dasharray: 0 609.4; stroke-dashoffset: 0; }
  to { stroke-dasharray: 609.4 0; stroke-dashoffset: 304.7; }
}
@keyframes wm-grow-wm-a {
  from { stroke-dasharray: 0 588.4; stroke-dashoffset: 0; }
  to { stroke-dasharray: 588.4 0; stroke-dashoffset: 294.2; }
}
@keyframes wm-grow-wm-w1 {
  from { stroke-dasharray: 0 593.3; stroke-dashoffset: 0; }
  to { stroke-dasharray: 593.3 0; stroke-dashoffset: 296.6; }
}
@keyframes wm-grow-wm-w2 {
  from { stroke-dasharray: 0 593.3; stroke-dashoffset: 0; }
  to { stroke-dasharray: 593.3 0; stroke-dashoffset: 296.6; }
}
/* 锚点生长的呼吸感：轻微吸入-回稳 */
@keyframes wm-breathe {
  0% { transform: scale(0.96); }
  55% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
/* 飞行途中：填充淡入、描边淡出，落定即为实心字标 */
@keyframes wm-solid { to { fill-opacity: 1; stroke-opacity: 0; } }

/* ---------- 彗星拖尾：与写字同步绕行一圈，转完即起飞 ---------- */
.comet {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1200px;
  height: 500px;
  transform: translate(-50%, -50%);
  z-index: 55;
  pointer-events: none;
  animation: comet-out 0.25s 0.55s ease forwards;
}
.comet-arc {
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-dasharray: 0 1000;
}
.comet-tail { stroke-width: 5; opacity: 0.10; filter: blur(1.2px); animation: comet-run-tail 0.55s linear 0s both, comet-cycle-tail 0.55s ease-out 0s both; }
.comet-mid  { stroke-width: 3.5; opacity: 0.30; animation: comet-run-mid 0.55s linear 0s both, comet-cycle-mid 0.55s ease-out 0s both; }
.comet-head { stroke-width: 2.5; opacity: 0.95; animation: comet-run-head 0.55s linear 0s both, comet-cycle-head 0.55s ease-out 0s both; }
@keyframes comet-run-tail { from { stroke-dashoffset: -525; } to { stroke-dashoffset: -1525; } }
@keyframes comet-run-mid  { from { stroke-dashoffset: -548; } to { stroke-dashoffset: -1548; } }
@keyframes comet-run-head { from { stroke-dashoffset: -570; } to { stroke-dashoffset: -1570; } }
/* 拖尾从锚点长出，转满一圈后收拢闭合 */
@keyframes comet-cycle-tail { 0% { stroke-dasharray: 0 1000; } 20% { stroke-dasharray: 55 945; } 80% { stroke-dasharray: 55 945; } 100% { stroke-dasharray: 0 1000; } }
@keyframes comet-cycle-mid  { 0% { stroke-dasharray: 0 1000; } 20% { stroke-dasharray: 32 968; } 80% { stroke-dasharray: 32 968; } 100% { stroke-dasharray: 0 1000; } }
@keyframes comet-cycle-head { 0% { stroke-dasharray: 0 1000; } 20% { stroke-dasharray: 10 990; } 80% { stroke-dasharray: 10 990; } 100% { stroke-dasharray: 0 1000; } }
@keyframes comet-out { to { opacity: 0; } }

.wm-slot {
  display: block;
  width: var(--wm-w);
  height: var(--wm-h);
}
.wm-slot svg { width: 100%; height: 100%; display: block; }

body.booting .nav { opacity: 0; animation: nav-in 0.45s 1.05s var(--ease) forwards; }
body.booting .wm-slot { visibility: hidden; }
@keyframes nav-in { to { opacity: 1; } }

.boot-fade { opacity: 0; animation: boot-fade 0.8s 1.4s var(--ease) forwards; }
@keyframes boot-fade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 首页 hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 136px);
  display: flex;
  align-items: center;
  padding: 48px 22px;
  overflow: hidden;
}
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 30% 40%, #000 30%, transparent 75%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.6);
}
.hero-eyebrow b {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  background-image: linear-gradient(90deg, #0071e3, #bf5af2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-top: 22px;
}
/* 末行向下渐变淡出（参考页同款效果） */
.hero-title-fade {
  background: linear-gradient(to bottom, var(--text) 30%, rgba(29, 29, 31, 0.12));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-2);
  font-family: Georgia, 'Songti SC', 'Times New Roman', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.8;
  margin-top: 20px;
}
.hero-actions { margin-top: 32px; }

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero-card:nth-child(2) { margin-left: 40px; }
.hero-card:nth-child(3) { margin-left: 80px; }
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}
.hero-card-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
}
.hero-card-ico-1 { background: linear-gradient(135deg, #0a84ff, #0071e3); }
.hero-card-ico-2 { background: linear-gradient(135deg, #bf5af2, #9d4edd); }
.hero-card-ico-3 { background: linear-gradient(135deg, #ff6482, #ff375f); }
.hero-card-t { font-size: 15px; font-weight: 600; }
.hero-card-v { color: var(--text-2); font-size: 13px; margin-top: 5px; line-height: 1.6; }

/* ---------- 通用按钮/表单 ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.03); text-decoration: none; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 59, 48, 0.3); }
.btn-danger:hover { background: rgba(255, 59, 48, 0.06); text-decoration: none; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { font-size: 12px; padding: 5px 12px; }

.input {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(0, 113, 227, 0.18);
}
.textarea { resize: vertical; line-height: 1.6; }
.form-error { color: var(--danger); font-size: 13px; margin: 10px 0; }
.form-actions { display: flex; gap: 12px; margin-top: 18px; }
.inline-form { display: inline; }
.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative;
  width: min(400px, 100%);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.14);
  padding: 34px 30px 30px;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.35s var(--ease);
}
.modal-mask.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 30px; height: 30px;
  border: none; border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-2);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.09); }
.modal-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.modal-sub { color: var(--text-2); font-size: 14px; margin: 8px 0 20px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 页面头 ---------- */
.page-head {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 22px 30px;
}
.page-title { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.03em; }
.page-sub { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.page-head .inline-form { margin-top: 14px; }

.empty {
  max-width: 1080px;
  margin: 20px auto 80px;
  padding: 0 22px;
  color: var(--text-3);
  text-align: center;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  max-width: 1080px;
  margin: 0 auto 90px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
  text-decoration: none;
}
.card-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.card-summary {
  color: var(--text-2);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { color: var(--text-3); font-size: 12.5px; margin-top: auto; }
.card-type {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 980px;
  border: 1px solid var(--hairline);
  color: var(--text-2);
  background: var(--bg-soft);
}
.type-article { color: #0071e3; border-color: rgba(0, 113, 227, 0.25); background: rgba(0, 113, 227, 0.06); }
.type-page { color: #bf5af2; border-color: rgba(191, 90, 242, 0.25); background: rgba(191, 90, 242, 0.06); }
.type-animation { color: #ff375f; border-color: rgba(255, 55, 95, 0.25); background: rgba(255, 55, 95, 0.06); }

/* ---------- 内容页 ---------- */
.post { max-width: 780px; margin: 0 auto; padding: 64px 22px 20px; }
.post-head { margin-bottom: 34px; }
.post-title { font-size: clamp(28px, 5vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin: 14px 0 10px; }
.post-meta { color: var(--text-3); font-size: 13.5px; }

.media-wrap, .embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #000;
}
.media-video, .media-img { width: 100%; display: block; }
.embed-wrap { aspect-ratio: 16 / 10; }
.embed-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

.markdown { font-size: 16.5px; line-height: 1.75; word-break: break-word; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin: 1.6em 0 0.6em; }
.markdown h1 { font-size: 1.7em; } .markdown h2 { font-size: 1.45em; } .markdown h3 { font-size: 1.2em; }
.markdown p { margin: 1em 0; }
.markdown a { text-decoration: underline; text-underline-offset: 3px; }
.markdown ul, .markdown ol { margin: 1em 0; padding-left: 1.6em; }
.markdown blockquote {
  margin: 1.2em 0;
  padding: 4px 18px;
  border-left: 3px solid var(--hairline);
  color: var(--text-2);
}
.markdown code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 2.5px 7px;
}
.markdown pre {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.2em 0;
}
.markdown pre code { background: none; padding: 0; font-size: 0.88em; line-height: 1.7; }
.markdown img { max-width: 100%; border-radius: 12px; }
.table-wrap { margin: 1.6em 0; overflow-x: auto; }
.markdown table { border-collapse: collapse; width: 100%; font-size: 0.92em; margin: 0; }
.markdown th {
  color: var(--text-3);
  font-weight: 500;
  font-size: 0.82em;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-top: 1px solid var(--hairline);
}
.markdown th, .markdown td {
  border-bottom: 1px solid var(--hairline);
  padding: 15px 22px 15px 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
/* 表格里不用正文的 break-word：英文/编号短词（P1、L0、M1…）会被挤到逐字母断行；中文本来就不受影响 */
.markdown td { word-break: normal; }
.markdown th:last-child, .markdown td:last-child { padding-right: 0; }
.markdown td:first-child { font-weight: 600; }
.markdown tbody tr:last-child td { border-bottom: none; }
.markdown hr { border: none; border-top: 1px solid var(--hairline); margin: 2em 0; }

/* ---------- 评论区 ---------- */
.comments { max-width: 780px; margin: 0 auto; padding: 40px 22px 80px; border-top: 1px solid var(--hairline); }
.comments-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.comments-count { color: var(--text-3); font-weight: 400; font-size: 15px; margin-left: 4px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 30px; }
.comment-form .btn { align-self: flex-start; }
.comments-empty { color: var(--text-3); font-size: 14px; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.comment { display: flex; gap: 14px; }
.comment-avatar {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8ed, #d2d2d7);
  color: var(--text-2);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comment-nick { font-weight: 600; font-size: 14.5px; }
.comment-time { color: var(--text-3); font-size: 12.5px; }
.comment-content { font-size: 14.5px; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.comment-body .inline-form { margin-top: 8px; }

/* ---------- 后台 ---------- */
.auth-page {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 22px;
}
.auth-card {
  width: min(380px, 100%);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 36px 30px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.auth-logo { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px; }
.auth-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }

.panel {
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
}
.panel-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  color: var(--text-3);
  font-weight: 500;
  font-size: 12.5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
}
.table td { padding: 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.row-actions { white-space: nowrap; display: flex; gap: 8px; justify-content: flex-end; }
.row-actions .inline-form { display: inline; }

.admin-edit { max-width: 860px; margin: 0 auto; padding: 0 22px 80px; }
.admin-edit .page-head { padding-left: 0; padding-right: 0; }

/* ---------- 页脚 ---------- */
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 22px 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12.5px;
}
.footer-icp { color: inherit; }

/* ---------- 阅读器 ---------- */
.reader-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  z-index: 70;
  pointer-events: none;
}
.reader-progress-bar {
  display: block;
  width: 100%; height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* 阅读栏宽由 JS 按文中最宽元素写入 --reader-cw，默认 1000px */
.reader { max-width: calc(var(--reader-cw, 1000px) + 44px); }
.reader .post-head { max-width: var(--reader-cw, 1000px); margin-left: auto; margin-right: auto; }

/* ---------- 文档式阅读布局（Claude Docs 三栏：文档树 | 正文 | 本页目录） ---------- */
/* 正文固定 800；侧栏收窄（左树 200、右目录 216）、栏距 96，让侧栏离正文更舒展 */
.doc-layout {
  max-width: 1464px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  gap: 96px;
  grid-template-columns: minmax(0, 1fr);
}
.doc-layout .post { max-width: none; margin: 0; padding: 56px 0 20px; }
.doc-layout .reader { max-width: none; }
.doc-layout .reader .post-head { max-width: none; }
.doc-layout .reader-content { max-width: 800px; margin: 0; transition: max-width 0.35s var(--ease); }
.doc-layout .reader-toc-mobile { max-width: none; margin: 0 0 26px; }

@media (min-width: 1024px) {
  .doc-layout.has-tree { grid-template-columns: 200px minmax(0, 1fr); }
  .doc-layout.has-toc { grid-template-columns: minmax(0, 1fr) 216px; }
  .doc-layout.has-tree.has-toc { grid-template-columns: 200px minmax(0, 1fr) 216px; }
  /* 目录收起态 */
  body.toc-hidden .reader-toc-rail { display: none; }
  body.toc-hidden .doc-layout.has-tree.has-toc { grid-template-columns: 200px minmax(0, 1fr); }
  body.toc-hidden .doc-layout.has-toc:not(.has-tree) { grid-template-columns: minmax(0, 1fr); }
  /* 正文补位：吃掉目录释放出的栏宽（上限 1000px，保住行长可读性） */
  body.toc-hidden .doc-layout .reader-content { max-width: 1000px; }
}
@media (max-width: 1023px) {
  .doc-side { display: none; }
}

/* 左栏：文档树 */
.doc-side {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 64px 0 20px;
}
/* 侧栏滚动条：装得下/没滚动时不出现；滚动或悬停时浮现一根细圆角滑块，无轨道框 */
.reader-toc, .doc-side { scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color 0.25s var(--ease); }
.reader-toc:hover, .doc-side:hover,
.reader-toc.is-scrolling, .doc-side.is-scrolling { scrollbar-color: rgba(0, 0, 0, 0.18) transparent; }
.reader-toc::-webkit-scrollbar, .doc-side::-webkit-scrollbar { width: 5px; }
.reader-toc::-webkit-scrollbar-track, .doc-side::-webkit-scrollbar-track { background: transparent; }
.reader-toc::-webkit-scrollbar-thumb, .doc-side::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background-color 0.25s var(--ease);
}
.reader-toc:hover::-webkit-scrollbar-thumb, .doc-side:hover::-webkit-scrollbar-thumb,
.reader-toc.is-scrolling::-webkit-scrollbar-thumb, .doc-side.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}
.reader-toc::-webkit-scrollbar-thumb:hover, .doc-side::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.32); }
.doc-tree-back { display: inline-block; color: var(--text-3); font-size: 13px; margin-bottom: 14px; }
.doc-tree-back:hover { color: var(--text); text-decoration: none; }
.doc-tree-list { list-style: none; }
.doc-tree-link {
  display: block;
  color: var(--text-2);
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.45;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.doc-tree-link:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); text-decoration: none; }
.doc-tree-link.active { color: var(--accent); background: rgba(0, 113, 227, 0.08); font-weight: 600; }
.doc-tree-current { cursor: default; }
.doc-tree-current:hover { background: rgba(0, 113, 227, 0.08); }
.doc-tree-link.active-parent { color: var(--text); font-weight: 600; }
.doc-tree-sublist { list-style: none; padding-left: 14px; margin: 2px 0 6px; }
.doc-tree-sublist .doc-tree-link { font-size: 13px; color: var(--text-3); }
.doc-tree-sublist .doc-tree-link:hover { color: var(--text); }
.doc-tree-sublist .doc-tree-link.active { color: var(--accent); }
.doc-tree-sublist .doc-tree-link.active-parent { color: var(--text); }
.doc-tree-sub {
  display: block;
  color: var(--accent);
  font-size: 12.5px;
  padding: 2px 10px 6px 24px;
  line-height: 1.45;
}

.reader-content { max-width: var(--reader-cw, 1000px); margin: 0 auto; font-size: 17px; line-height: 1.85; }
.reader-content h2, .reader-content h3 { scroll-margin-top: 84px; }

/* 目录：宽屏右侧吸附栏 */
.reader-toc-rail { display: none; }
.reader-toc {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-top: 6px;
  font-size: 13px;
}
.reader-toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 10px;
}
/* 目录头：标题 + 收起按钮 */
.reader-toc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.reader-toc-head .reader-toc-title { margin-bottom: 0; }
.toc-toggle {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.toc-toggle:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
/* 收起后右缘的展开把手 */
.toc-reopen {
  position: fixed;
  right: 0;
  top: 120px;
  z-index: 40;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-2);
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 9px 12px 9px 10px;
  cursor: pointer;
}
.toc-reopen:hover { color: var(--text); }
@media (max-width: 1023px) { .toc-reopen { display: none; } }
.reader-toc-list { list-style: none; }
.reader-toc-item { margin: 2px 0; }
.reader-toc-item.toc-sub { padding-left: 14px; }
.reader-toc-link {
  display: block;
  color: var(--text-3);
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.45;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.reader-toc-link:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); text-decoration: none; }
.reader-toc-link.active { color: var(--accent); background: rgba(0, 113, 227, 0.08); font-weight: 600; }
/* 大标题（h2）：颜色更深、略重，与小标题拉开层级 */
.reader-toc-item:not(.toc-sub) > .reader-toc-link { color: var(--text); font-weight: 500; }
.reader-toc-item:not(.toc-sub) > .reader-toc-link.active { color: var(--accent); font-weight: 600; }
/* 小标题被选中时，其所属大标题同步高亮（由 JS 标注）。目录是苹方 UI 字体，粗细分级无效，只能靠颜色 */
.reader-toc-item:not(.toc-sub) > .reader-toc-link.active-parent { color: var(--accent); }

/* 目录：窄屏折叠块 */
.reader-toc-mobile {
  max-width: 700px;
  margin: 0 auto 26px;
  padding: 12px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--card);
}
.reader-toc-mobile summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.reader-toc-mobile .reader-toc-list { margin-top: 10px; }
.reader-toc-mobile .reader-toc-link { font-size: 14px; padding: 9px 10px; }

.doc-layout .reader-toc-rail { padding: 64px 0 20px; }

@media (min-width: 1024px) {
  .reader-toc-rail { display: block; }
  .reader-toc-mobile { display: none; }
}

/* ---------- 图书馆 ---------- */
.type-library { color: #30a14e; border-color: rgba(52, 199, 89, 0.3); background: rgba(52, 199, 89, 0.07); }

.lib-parents { font-size: 13.5px; margin-bottom: 18px; }
.lib-parents-label { color: var(--text-3); margin-right: 8px; }
.lib-parents-link:hover { text-decoration: underline; }

/* 图书馆是陈列页，不用阅读器的窄栏：与 page-head 同宽（1080），卡片网格自适应列数 */
.lib-grid {
  list-style: none;
  max-width: 1080px;
  margin: 0 auto 90px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}
.lib-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 112px;
  height: 100%;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.05);
  color: var(--text);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lib-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lib-card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}
.lib-card-note {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-card-arrow {
  flex: none;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.lib-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .lib-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.18);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  }
  .lib-card:hover .lib-card-title { color: var(--accent); }
  .lib-card:hover .lib-card-arrow { transform: translateX(3px); color: var(--accent); }
}

/* ---------- 书架随手摆放 ---------- */
.shelf { position: relative; }
.shelf-reset {
  position: absolute;
  top: 70px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text-3);
  border: none;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.shelf-reset svg { width: 17px; height: 17px; }
.shelf-reset[hidden] { display: none; }
.shelf-reset:hover { color: var(--text); background: rgba(0, 0, 0, 0.05); }
.lib-card {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-x pan-y;
}
/* 被拿起的卡片脱离网格，li 留在原位占住格子；height:auto 抵消网格里的 height:100%，否则会撑满整个书架 */
.lib-card.placed {
  position: absolute;
  z-index: 20;
  margin: 0;
  height: auto;
  /* 归位/摆放时平滑滑动；拖拽中由 .dragging 覆盖为仅 transform/shadow，保证跟手 */
  transition: left 0.35s var(--ease), top 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease),
    transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.lib-card.dragging {
  z-index: 70;
  cursor: grabbing;
  transform: scale(1.04) rotate(-1.5deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

/* 卡片入场：依次发牌；动画结束后 JS 移除 deal 类，不让 transform 残留（会改变绝对定位的参照系） */
.lib-grid.deal .lib-card { opacity: 0; animation: lib-deal 0.5s var(--ease) forwards; }
.lib-grid.deal li:nth-child(2) .lib-card { animation-delay: 0.07s; }
.lib-grid.deal li:nth-child(3) .lib-card { animation-delay: 0.14s; }
.lib-grid.deal li:nth-child(4) .lib-card { animation-delay: 0.21s; }
.lib-grid.deal li:nth-child(5) .lib-card { animation-delay: 0.28s; }
.lib-grid.deal li:nth-child(n+6) .lib-card { animation-delay: 0.35s; }
@keyframes lib-deal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.lib-source {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
}
.lib-note {
  max-width: 700px;
  margin: 0 auto 30px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: 14px;
}
.lib-note-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-3); }
.lib-note-text { margin-top: 6px; font-size: 15px; line-height: 1.65; }
.lib-goto { max-width: 700px; margin: 8px auto 0; }

/* ---------- 阅读器细节 ---------- */
html { scroll-behavior: smooth; }

::selection { background: rgba(0, 113, 227, 0.18); }

/* 阅读设置：导航栏右侧图标按钮（仅阅读页渲染） */
.nav-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 8px; }
.nav-tool {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font);
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-tool svg { width: 17px; height: 17px; display: block; }
.nav-tool:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.nav-tool:active { transform: scale(0.92); }
.nav-tool.on { color: var(--accent); background: rgba(0, 113, 227, 0.08); }

/* 字号由 JS 写入 --reader-fs；衬线模式切整栏字体 */
.reader-content { font-size: var(--reader-fs, 17px); }
.reader-serif .reader-content,
.reader-serif .post-title { font-family: "LXGW WenKai Screen", "LXGW WenKai", var(--serif); letter-spacing: 0; }

/* 标点悬挂（支持的浏览器生效，其余忽略） */
.reader-content p, .reader-content li {
  hanging-punctuation: first allow-end;
}

/* 图片说明 */
.reader-content figure { margin: 1.4em 0; }
.reader-content figure img { width: 100%; }
.reader-content figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* 代码块复制按钮 */
.reader-content pre { position: relative; }
.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 980px;
  padding: 4px 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.reader-content pre:hover .copy-btn, .copy-btn.done { opacity: 1; }
.copy-btn:hover { background: rgba(0, 0, 0, 0.1); }
.copy-btn.done { color: #1e8e3e; background: rgba(52, 199, 89, 0.18); }
@media (hover: none) { .copy-btn { opacity: 0.75; } }

/* 标题锚点 # */
.h-anchor {
  margin-left: 0.35em;
  font-weight: 400;
  font-size: 0.85em;
  color: var(--text-3);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.reader-content h2:hover .h-anchor,
.reader-content h3:hover .h-anchor,
.h-anchor:focus { opacity: 1; }
.h-anchor:hover { color: var(--accent); text-decoration: none; }
@media (hover: none) { .h-anchor { opacity: 0.45; } }

/* 上一篇 / 下一篇 */
/* 文章底部：返回上一级 */
.reader-up {
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.reader-up-link { color: var(--text-3); font-size: 13.5px; transition: color 0.2s var(--ease); }
.reader-up-link:hover { color: var(--text); text-decoration: none; }

.reader-nav {
  max-width: 700px;
  margin: 56px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.reader-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
  color: var(--text);
  transition: transform 0.25s var(--ease);
}
a.reader-nav-item:hover { text-decoration: none; transform: translateY(-2px); }
a.reader-nav-item:hover .reader-nav-title { color: var(--accent); }
.reader-nav-next { text-align: right; margin-left: auto; }
.reader-nav-label { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }
.reader-nav-title { font-size: 15px; font-weight: 600; line-height: 1.4; transition: color 0.2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 施工中占位页 ---------- */
.soon {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 22px;
  text-align: center;
  min-height: calc(100vh - 240px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.soon-tape {
  height: 14px;
  border-radius: 7px;
  background: repeating-linear-gradient(-45deg, #f7d038 0 16px, #1d1d1f 16px 32px);
}
.soon-icon { font-size: 56px; margin: 38px 0 12px; animation: soon-bob 3s ease-in-out infinite; }
@keyframes soon-bob { 50% { transform: translateY(-5px); } }
.soon-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.soon-blurb { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.soon-back { margin: 36px 0; font-size: 14px; }

/* ---------- 入场动效 ---------- */
.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; }
  .soon-tape, .soon-icon { animation: none; }
  .lib-grid.deal .lib-card { animation: none; opacity: 1; }
  .lib-card.placed { transition: none; }
  * { transition-duration: 0.01ms !important; }
  body.booting { animation: none; overflow: visible; }
  .intro-overlay { display: none; }
  .intro-mark { display: none; }
  .comet { display: none; }
  .wm-stroke { animation: none; stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
  body.booting .nav { animation: none; opacity: 1; }
  body.booting .wm-slot { visibility: visible; }
  .boot-fade { animation: none; opacity: 1; }
}

/* ---------- 会话内已播过片头：直接呈现终态 ---------- */
html.no-intro .intro-overlay,
html.no-intro .intro-mark,
html.no-intro .comet { display: none; }
html.no-intro body.booting { animation: none; overflow: visible; }
html.no-intro body.booting .nav { animation: none; opacity: 1; }
html.no-intro body.booting .wm-slot { visibility: visible; }
html.no-intro .boot-fade { animation: none; opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  :root { --wm-s: 4.47; --wm-tx: 182.2px; --wm-ty: 52px; }
  .nav-inner { padding: 0 16px; }
  .nav-center { position: static; transform: none; flex: 1; justify-content: center; gap: 12px; }
  .nav-status, .nav-side .nav-dot { display: none; }
  .hero { padding: 64px 18px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card:nth-child(2), .hero-card:nth-child(3) { margin-left: 0; }
  .panel { padding: 22px 18px; }
  .table { display: block; overflow-x: auto; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .comment-form .btn { align-self: stretch; }
  .nav-tools { display: none; }
}

/* ---------- 探索 ---------- */
.explore-list {
  list-style: none;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  gap: 18px;
}
.explore-card {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.05);
}
.explore-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.explore-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.explore-status, .explore-version {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  line-height: 1.4;
}
.explore-status { color: var(--accent); background: rgba(0, 113, 227, 0.08); }
.explore-version { color: var(--text-2); background: rgba(0, 0, 0, 0.045); }
.explore-title { font-size: clamp(22px, 3vw, 28px); line-height: 1.3; letter-spacing: -0.025em; }
.explore-project-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  white-space: nowrap;
}
.explore-summary { max-width: 820px; margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.explore-support { margin-top: 20px; font-size: 14px; font-weight: 600; }
.explore-beta-note { margin-top: 8px; color: var(--text-3); font-size: 13px; line-height: 1.6; }
.explore-feedback {
  max-width: 1080px;
  margin: 22px auto 90px;
  padding: 0 22px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .nav-brand, .nav-side { flex: none; }
  .nav-brand { margin-right: 8px; }
  .nav-center {
    min-width: 0;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-center::-webkit-scrollbar { display: none; }
  .nav-center .nav-link { flex: none; font-size: 14px; }
  .explore-card { padding: 22px 18px; }
  .explore-card-head { flex-direction: column; gap: 4px; }
  .explore-feedback { margin-top: 20px; text-align: left; }
}
