/* ============================================================
   星轨工作室 · 前台主题（深空星轨 · 科技时尚）
   纯原生 CSS + 配套 tech.js，无外部依赖，可直接部署于 IIS
   ============================================================ */
:root {
  --bg: #04060c;
  --bg-2: #070b14;
  --panel: rgba(110, 150, 180, 0.035);
  --panel-strong: rgba(110, 150, 180, 0.07);
  --border: rgba(140, 165, 190, 0.10);
  --border-glow: rgba(var(--accent-rgb), 0.42);
  --text: #b9c4d6;
  --text-dim: #6f7d92;
  --cyan: #5a93b0;
  --ice: #6f9bb8;
  --teal: #4f9088;
  --purple: #7a6aa0;
  --blue: #6f8bb8;
  --grad: linear-gradient(100deg, #5a93b0 0%, #4a7d9c 48%, #4f9088 100%);
  --grad-soft: linear-gradient(100deg, rgba(var(--accent-rgb),.14), rgba(var(--teal-rgb),.14));
  --radius: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* 主题可切换变量（默认=星轨深空；其余主题在文件末尾 [data-theme] 覆盖） */
  --accent-rgb: 96, 150, 185;   /* 强调色 RGB，用于发光/阴影 */
  --teal-rgb: 82, 148, 142;     /* 次强调色 RGB */
  --text-strong: #eaf0fb;       /* 亮色标题文字 */
  --text-body: #c6d0e4;         /* 正文文字 */
  --on-accent: #f0f5fb;         /* 渐变按钮上的文字 */
  --nav-bg: rgba(6, 9, 18, 0.86);
  --nav-shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 基底光晕 + 细网格（位于动画层之后，内容之前） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(58vw 58vw at 12% -12%, rgba(var(--accent-rgb), 0.12), transparent 60%),
    radial-gradient(52vw 52vw at 100% 0%, rgba(var(--teal-rgb), 0.10), transparent 55%);
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}

/* Canvas 星轨粒子背景 */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

/* 极光漂浮光团 */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 56vw; height: 56vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .3;
  mix-blend-mode: screen;
}
.aurora::before {
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .6), transparent 70%);
  top: -16%; left: -12%;
  animation: float-a 19s var(--ease) infinite;
}
.aurora::after {
  background: radial-gradient(closest-side, rgba(var(--teal-rgb), .5), transparent 70%);
  bottom: -22%; right: -10%;
  animation: float-b 23s var(--ease) infinite;
}
@keyframes float-a { 50% { transform: translate(9vw, 7vh) scale(1.18); } }
@keyframes float-b { 50% { transform: translate(-7vw, -6vh) scale(1.12); } }

/* 跟随光标的光晕 */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .12), transparent 60%);
  transform: translate(var(--x, -999px), var(--y, -999px));
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
}
@media (pointer: fine) { .cursor-glow { opacity: 1; } }

/* 顶部滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 50;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .6);
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ice); }

.container { width: min(var(--maxw), 92vw); margin: 0 auto; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 34px var(--nav-shadow);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.brand .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .8);
  transform: rotate(45deg);
  animation: pulse 3.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: rotate(45deg) scale(1.25); } }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a {
  color: var(--text-dim); position: relative; padding: 6px 2px;
  transition: color .25s, transform .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); transform: rotate(-1.5deg); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Hero */
.hero { padding: 116px 0 72px; text-align: center; position: relative; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--border); padding: 7px 16px; border-radius: 999px;
  background: var(--panel); margin-bottom: 24px; backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(34px, 6.2vw, 66px); line-height: 1.08; margin: 0 0 20px; font-weight: 800;
  letter-spacing: -.5px;
}
.hero h1 .g {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--teal), var(--cyan));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }
.hero p { color: var(--text-dim); font-size: 18px; max-width: 640px; margin: 0 auto 34px; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 600;
  background: var(--grad); color: var(--on-accent); border: none; cursor: pointer; font-size: 15px;
  position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), .22);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(var(--teal-rgb), .42); color: var(--on-accent); }
.btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { border-color: var(--border-glow); background: var(--panel-strong); }

/* 区块标题 */
.section { padding: 58px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; gap: 16px; }
.section-head h2 { font-size: 27px; margin: 0; position: relative; padding-left: 16px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 22px; border-radius: 3px; background: var(--grad);
}
.section-head .more { font-size: 14px; color: var(--text-dim); }

/* 卡片网格 */
/* 用 auto-fit 而非 auto-fill：项数少于列容量时折叠空列，让内容拉伸填满整行
   （auto-fill 会保留空轨道占位，4 个卡片在 1120px 容器里会挤在左侧留白） */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
  will-change: transform;
  backdrop-filter: blur(8px);
  transform-style: preserve-3d;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  background: var(--panel-strong);
  box-shadow: 0 18px 44px rgba(var(--accent-rgb), .16);
}
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card .meta { color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.card .tag { color: var(--cyan); font-size: 12px; }

/* 光追高光：hover 时跟随光标的径向亮斑（需 overflow:hidden 裁剪） */
.card, .feature, .hero-card, .panel { position: relative; overflow: hidden; }
.card::after, .feature::after, .hero-card::after, .panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 150, 180, .16), transparent 62%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 3;
}
.card:hover::after, .feature:hover::after, .hero-card:hover::after, .panel:hover::after { opacity: 1; }

/* 工作室简介 */
.studio-teaser { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; align-items: center; }
.about-figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: #16273f; }
.about-figure img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.studio-teaser .panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; backdrop-filter: blur(8px); position: relative; overflow: hidden;
}
.studio-teaser .panel::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none;
}
.studio-teaser h2 { margin-top: 0; font-size: 29px; }
/* 「关于我」第三列：栏目排行（可点击，占满整列，避免空旷） */
.teaser-side-title {
  margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--text-dim);
}
.teaser-rank {
  display: block; position: relative; padding-bottom: 15px; margin-bottom: 15px;
  border-bottom: 1px dashed var(--border); text-decoration: none; color: var(--text);
}
.teaser-rank:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.tr-name { font-size: 15px; color: var(--text-body); transition: color .25s var(--ease); }
.tr-num { position: absolute; right: 0; top: 0; font-size: 13px; color: var(--text-dim); }
.tr-track { display: block; margin-top: 10px; height: 4px; border-radius: 999px; background: var(--panel-strong); overflow: hidden; }
.tr-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); }
.teaser-rank:hover .tr-name { color: var(--text-strong); }
.teaser-rank:hover .tr-track { background: var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  padding: 9px 15px; border-radius: 999px; background: var(--panel-strong);
  border: 1px solid var(--border); font-size: 13px; color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.chip:hover { transform: translateY(-3px) rotate(-2deg); border-color: var(--border-glow); color: #fff; }

/* 页脚（仿 7062 深色四栏 widget） */
.footer { background: #1b2230; color: #aeb6c4; font-size: 14px; }
.footer-widgets { padding: 54px 0 38px; }
.fw-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 38px; }
.fw-title { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 20px; padding-bottom: 13px; position: relative; }
.fw-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--cyan, #619ff1); border-radius: 2px; }
.fw-about-text { margin: 0 0 16px; line-height: 1.8; color: #aeb6c4; }
.fw-contact { list-style: none; margin: 0; padding: 0; }
.fw-contact li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: #aeb6c4; }
.fc-ico { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.08); color: #cfd6e2; font-size: 12px; line-height: 22px; text-align: center; }
.fw-contact a { color: #cfd6e2; }
.fw-contact a:hover { color: var(--cyan, #619ff1); }
.fw-ph { color: #7c8595; font-style: italic; }
.fw-posts-list { list-style: none; margin: 0; padding: 0; }
.fw-posts-list li { padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); }
.fw-posts-list li:first-child { border-top: 0; padding-top: 0; }
.fw-p-title { display: block; color: #dde2ec; font-size: 14px; line-height: 1.5; transition: color .2s; }
.fw-p-title:hover { color: var(--cyan, #619ff1); }
.fw-p-date { display: block; margin-top: 3px; font-size: 12px; color: #7c8595; }
.fw-links-list { list-style: none; margin: 0; padding: 0; }
.fw-links-list li { padding: 6px 0; }
.fw-links-list a { color: #aeb6c4; transition: color .2s, padding .2s; }
.fw-links-list a::before { content: "›"; margin-right: 8px; color: #5d6675; }
.fw-links-list a:hover { color: var(--cyan, #619ff1); padding-left: 4px; }
.fw-sub-text { margin: 0 0 14px; line-height: 1.7; color: #aeb6c4; }
.fw-sub-form { display: flex; gap: 8px; margin-bottom: 16px; }
.fw-sub-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(255,255,255,.04); color: #e8ecf3; outline: none; }
.fw-sub-input::placeholder { color: #79829a; }
.fw-sub-input:focus { border-color: var(--cyan, #619ff1); }
.fw-sub-btn { flex: 0 0 auto; width: 42px; border: 0; border-radius: 6px; background: var(--cyan, #619ff1); color: #fff; font-size: 16px; cursor: pointer; transition: transform .12s, box-shadow .2s; }
.fw-sub-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(97,159,241,.35); }
.fw-social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.fw-soc { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); color: #cfd6e2; font-size: 14px; line-height: 38px; text-align: center; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.fw-soc:hover { transform: translateY(-4px); color: #fff; }
.fw-soc-weibo:hover { background: #e6162d; }
.fw-soc-wechat:hover { background: #07c160; }
.fw-soc-github:hover { background: #24292e; }
.fw-soc-zhihu:hover { background: #0084ff; }
/* 说明：微博/微信/GitHub/知乎/QQ 用品牌固有色（跨主题一致，属刻意保留）；
   email 无品牌色，必须走 --cyan 才能跟随当前主题（勿写死 azure 的 #619ff1） */
.fw-soc-email:hover { background: var(--cyan, #619ff1); }
.fw-soc-qq:hover { background: #12b7f5; }
.footer-bottom { background: #11151d; padding: 15px 0; }
.fb-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fb-copy { color: #c3cad6; font-size: 13px; letter-spacing: .2px; }
.fb-powered { color: #7c8595; font-size: 13px; }
/* 备案信息：跟在「订阅 / 关注」模块之后；公安 + ICP 两条都带徽章图标 */
.fw-beian { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.10); text-align: left; }
.fw-beian .beian-item { display: block; margin: 6px 0; color: #8b94a3; font-size: 12.5px; line-height: 1.6; }
.fw-beian .beian-item:first-child { margin-top: 0; }
.fw-beian .beian-item a,
.fw-beian a.beian-item { color: #b8c0cd; text-decoration: none; }
.fw-beian .beian-item a:hover,
.fw-beian a.beian-item:hover { color: var(--cyan, #619ff1); }
.beian-ico { width: 15px; height: 15px; display: inline-block; vertical-align: -3px; margin-right: 5px; border-radius: 2px; }
/* 窄屏时两条备案并排更省高度；放不下自动换行 */
@media (min-width: 1100px) {
  .fw-beian { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
  .fw-beian .beian-item { margin: 0; }
}
@media (max-width: 900px) {
  .fw-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-widgets { padding: 40px 0 28px; }
}
@media (max-width: 560px) {
  .fw-grid { grid-template-columns: 1fr; }
  .fb-inner { justify-content: center; text-align: center; }
}

/* 关于页细化（仿 7062 指纹） */
.page-crumb { font-size: 13px; color: var(--text-dim); margin-bottom: 30px; letter-spacing: .5px; }
.page-crumb a { color: var(--text-dim); }
.page-crumb a:hover { color: var(--cyan); }
.page-crumb span { margin: 0 6px; color: var(--text-dim); opacity: .6; }
.testi { position: relative; }
.testi::before { content: "\201C"; position: absolute; top: -8px; left: 14px; font-size: 46px; line-height: 1; color: var(--cyan); opacity: .22; font-family: Georgia, serif; }
.testi .q { padding-top: 18px; }
.studio-stats .stat { border-top: 2px solid var(--cyan); border-radius: var(--radius) var(--radius) 0 0; }

/* 文章详情 */
.post-wrap { max-width: 760px; margin: 64px auto; }
.post-wrap h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.25; margin: 0 0 14px; }
.post-meta { color: var(--text-dim); font-size: 14px; margin-bottom: 32px; }
.post-body { font-size: 17px; color: var(--text-body); }
.post-body img { max-width: 100%; border-radius: 14px; }
.post-body h2, .post-body h3 { color: var(--text-strong); }
.post-body a { border-bottom: 1px solid rgba(var(--accent-rgb), .45); }

/* 文章正文：代码块 / 引用块 + 多模板风格 */
.post-body pre {
  position: relative;
  margin: 24px 0;
  padding: 18px 20px;
  background: #0a0f1a;
  border: 1px solid rgba(120, 150, 180, .22);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.7;
}
.post-body pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  color: #9fe8ff;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}
.post-body :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  background: rgba(120, 150, 180, .12);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .9em;
  color: var(--text-body);
}
.post-body blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--cyan);
  background: rgba(120, 150, 180, .08);
  color: var(--text-body);
  font-style: italic;
  border-radius: 0 12px 12px 0;
}
.post-body blockquote p { margin: 0 0 8px; }
.post-body blockquote p:last-child { margin-bottom: 0; }

/* 风格一 · 星轨科技（默认） */
.post-body.style-tech pre { border-left-color: var(--cyan); }
.post-body.style-tech pre code { color: #9fe8ff; }
.post-body.style-tech blockquote { border-left-color: var(--cyan); }

/* 风格二 · 雅致（衬线·暖调） */
.post-body.style-elegant {
  font-family: "Noto Serif SC", Georgia, "Songti SC", "SimSun", serif;
  color: #c9d0dc;
}
.post-body.style-elegant h2, .post-body.style-elegant h3 { font-family: inherit; color: #e7ddc9; }
.post-body.style-elegant pre {
  background: #0c1118;
  border: 1px solid rgba(111, 174, 142, .25);
  border-left: 3px solid #6fae8e;
}
.post-body.style-elegant pre code { color: #bfe6cf; }
.post-body.style-elegant blockquote {
  position: relative;
  border-left: 3px solid #8a9b6f;
  background: rgba(138, 155, 111, .08);
  font-family: inherit;
  padding-left: 34px;
}
.post-body.style-elegant blockquote::before {
  content: "\201C";
  position: absolute;
  top: -10px; left: 6px;
  font-size: 44px; line-height: 1;
  color: rgba(138, 155, 111, .35);
  font-family: Georgia, serif;
}

/* 风格三 · 极简 */
.post-body.style-minimal pre {
  background: #0e131b;
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-glow);
}
.post-body.style-minimal pre code { color: #cdd6e6; }
.post-body.style-minimal blockquote {
  border-left: 2px solid var(--border);
  background: none;
  color: var(--text-dim);
  font-style: normal;
}

/* 日志列表 */
.journal-head { padding: 84px 0 30px; }
.journal-head h1 { font-size: 42px; margin: 0 0 8px; }

/* 回到顶部按钮 */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border); background: var(--panel-strong);
  color: var(--cyan); font-size: 20px; line-height: 1;
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), box-shadow .3s, color .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: #fff; box-shadow: 0 10px 28px rgba(var(--accent-rgb), .4); border-color: var(--border-glow); }

/* 移动端菜单按钮（点击展开） */
.nav-toggle {
  display: none;
  width: 42px; height: 38px; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 10px; cursor: pointer; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel);
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero 卡片化 */
.hero-card {
  position: relative; max-width: 840px; margin: 0 auto; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: 26px;
  padding: 58px 42px; backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 26px; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6; pointer-events: none;
}

/* 能力卡片网格（卡片式效果） */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.feature:hover {
  transform: translateY(-6px) rotate(-1.2deg); border-color: var(--border-glow);
  background: var(--panel-strong); box-shadow: 0 18px 44px rgba(var(--accent-rgb), .16);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: var(--on-accent); font-size: 22px;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), .32);
}
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* 链接箭头旋转 */
.section-head .more { transition: transform .3s var(--ease), color .25s; display: inline-block; }
.section-head .more:hover { transform: translateX(6px) rotate(3deg); color: var(--cyan); }
.post-wrap > a { display: inline-block; transition: transform .3s var(--ease); }
.post-wrap > a:hover { transform: translateX(-5px) rotate(-2deg); }

/* 点击水波纹 */
.btn, .card, .chip, .nav-links a { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 70%);
  pointer-events: none; z-index: 0; animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(2.8); opacity: 0; } }

/* 分类标签（日志卡 / 文章 / 工作室共用） */
.post-cat {
  display: inline-block; font-size: 12px; letter-spacing: 1px; font-weight: 600;
  color: var(--ice); padding: 4px 12px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border-glow); margin-bottom: 12px;
}

/* 日志列表卡片 */
.post-card { display: flex; flex-direction: column; }
.post-card h3 { transition: color .25s; }
.post-card:hover h3 { color: #fff; }
.read-more {
  margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 4px;
}
.read-more i {
  display: inline-block; transition: transform .3s var(--ease); font-style: normal;
}
.post-card:hover .read-more i { transform: translateX(7px) rotate(-2deg); }

/* 日志卡封面图：内缩于卡片 24px 内边距内，与下方文字左/右/上对齐，四角圆角 */
.post-cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center;
  border-radius: 12px; margin: 0 0 16px; display: block;
  border: 1px solid var(--border);
}

/* 分类筛选 tab */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.cat-tab {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; color: var(--text-dim);
  background: var(--panel); border: 1px solid var(--border);
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease);
}
.cat-tab:hover { color: #fff; border-color: var(--border-glow); transform: translateY(-2px); }
.cat-tab.active { color: var(--on-accent); background: var(--grad); border-color: transparent; font-weight: 600; }

/* 当前分类介绍 */
.cat-intro { padding: 22px 26px; margin-bottom: 26px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--border); }
.cat-intro h2 { margin: 0 0 8px; font-size: 24px; }
.cat-intro p { margin: 0; color: var(--text-dim); }

/* 分类页头图 */
.cat-hero { padding: 84px 0 24px; }
.cat-hero-inner {
  display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: center;
  padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cat-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.cat-hero-text h1 { margin: 6px 0 10px; font-size: 38px; }
.cat-hero-text p { color: var(--text-dim); margin: 0 0 18px; max-width: 640px; }

/* 文章头图 */
.post-banner {
  width: calc(100% + 92px); margin: -44px -46px 26px; aspect-ratio: 16 / 7;
  object-fit: cover; border-bottom: 1px solid var(--border);
}

/* 首页分类卡片 */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cat-card {
  display: block; padding: 0; overflow: hidden; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s, background .25s;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--border-glow);
  background: var(--panel-strong); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
.cat-card-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border); }
.cat-card h3 { margin: 16px 20px 6px; font-size: 19px; }
.cat-card p { margin: 0 20px 20px; color: var(--text-dim); font-size: 14px; }

/* 文章详情：玻璃卡化 */
.post-wrap {
  max-width: 780px; margin: 56px auto; padding: 44px 46px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 24px;
  backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  position: relative; overflow: hidden;
}
.post-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none;
}
.back-pill {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 14px;
  background: var(--panel-strong); border: 1px solid var(--border); color: var(--text);
  transition: transform .3s var(--ease), border-color .25s, color .25s;
}
.back-pill:hover { color: #fff; border-color: var(--border-glow); transform: translateX(-4px) rotate(-2deg); }
.post-divider {
  height: 1px; margin: 22px 0 30px; border: 0;
  background: linear-gradient(90deg, var(--border-glow), transparent);
}
.post-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.post-sign { color: var(--text-dim); font-size: 14px; }

/* 工作室 hero 卡 */
.studio-hero { padding: 40px 38px; }
.studio-hero .panel { background: transparent; border: none; padding: 0; }
.studio-hero .panel::before { display: none; }

/* 工作室团队卡 */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.team-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(8px); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.team-card:hover {
  transform: translateY(-5px); border-color: var(--border-glow);
  background: var(--panel-strong); box-shadow: 0 16px 40px rgba(var(--accent-rgb), .16);
}
.team-card .avatar {
  width: 42px; height: 42px; flex: none; border-radius: 12px; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; color: var(--on-accent); background: var(--grad);
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), .3);
}
.team-card .tname { font-size: 15px; font-weight: 600; }

/* ============================================================
   其他页新增组件（工作室·关于我 / 日志列表·侧栏·分页 / 文章详情·上下篇·相关）
   统一用 :root 共享变量书写，四套主题在各自 theme-*.css 根节点加别名即可适配
   ============================================================ */

/* 工作室·关于我 新版 */
.studio-hero .about-panel { background: transparent; border: none; padding: 0; }
.studio-hero .about-top { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.studio-hero .about-avatar {
  width: 76px; height: 76px; flex: none; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: var(--on-accent); background: var(--grad);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), .35);
}
.studio-hero .about-id { display: flex; flex-direction: column; gap: 4px; }
.studio-hero .about-id .post-cat { margin-bottom: 2px; }
.studio-hero .about-slogan { font-size: 17px; color: var(--cyan); margin: 0; font-weight: 600; }
.studio-hero .about-bio { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin: 0 0 16px; }

/* 统计条 */
.studio-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.studio-stats .stat {
  text-align: center; padding: 22px 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.studio-stats .stat-num { display: block; font-size: 30px; font-weight: 800; color: var(--text-strong); line-height: 1.1; }
.studio-stats .stat-label { display: block; margin-top: 6px; font-size: 13px; color: var(--text-dim); }

/* 联系 CTA */
.about-cta {
  margin-top: 54px; text-align: center; padding: 40px; border-radius: 20px;
  background: var(--grad-soft); border: 1px solid var(--border-glow);
}
.about-cta h2 { margin: 0 0 8px; font-size: 26px; }
.about-cta p { color: var(--text-dim); margin: 0 0 18px; }

/* 列表两栏布局（主 + 侧栏） */
.layout-2col { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start; }
.main-col { min-width: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; color: var(--text-dim); font-size: 14px; }
.list-head b { color: var(--text-strong); }

/* 侧栏 */
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.side-widget { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(8px); }
.side-title { margin: 0 0 14px; font-size: 16px; padding-left: 12px; position: relative; }
.side-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; border-radius: 3px; background: var(--grad); }
.side-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-cats a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--text-dim); font-size: 14px; transition: background .2s, color .2s; }
.side-cats a:hover { background: var(--panel-strong); color: var(--text-strong); }
.side-cats a.active { color: var(--cyan); background: var(--panel-strong); }
.side-cats span { font-size: 12px; background: var(--panel-strong); border-radius: 999px; padding: 1px 9px; color: var(--text-dim); }
.side-cats a.active span { color: var(--on-accent); background: var(--grad); }
.side-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-stats li { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-dim); }
.side-stats b { color: var(--text-strong); font-size: 15px; }

/* 分页器 */
.paginator { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px 0 4px; flex-wrap: wrap; }
.page-link {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text); font-size: 14px;
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.page-link:hover { color: var(--cyan); border-color: var(--border-glow); transform: translateY(-2px); }
.page-link.disabled { opacity: .45; pointer-events: none; }
.page-cur { font-size: 14px; color: var(--text-dim); }

/* 文章详情·上一篇 / 下一篇 */
.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.pager-item.pager-right { text-align: right; }
.pager-item a {
  display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.pager-item a:hover { border-color: var(--border-glow); background: var(--panel-strong); transform: translateY(-3px); }
.pager-dir { font-size: 12px; color: var(--cyan); font-weight: 600; letter-spacing: .5px; }
.pager-title { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.pager-empty { display: inline-block; padding: 18px 20px; color: var(--text-dim); font-size: 14px; border: 1px dashed var(--border); border-radius: var(--radius); }

/* 文章详情·相关文章 */
.post-related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-title { margin: 0 0 18px; font-size: 18px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-list a {
  display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.related-list a:hover { border-color: var(--border-glow); transform: translateY(-3px); background: var(--panel-strong); }
.related-cover { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; border: 1px solid var(--border); }
.related-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.related-h { font-size: 14px; font-weight: 600; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.related-d { font-size: 12px; color: var(--text-dim); }

/* 滚动揭示动画（仅在 JS 可用时隐藏初始状态） */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* 移动端 */
@media (max-width: 720px) {
  .studio-teaser { grid-template-columns: 1fr; }
  .about-figure { max-width: 240px; margin: 0 auto; }
  .hero { padding: 88px 0 56px; }
  .post-wrap { padding: 28px 22px; margin: 40px auto; }
  .post-banner { width: calc(100% + 44px); margin: -28px -22px 22px; }
  .cat-hero { padding: 72px 0 18px; }
  .cat-hero-inner { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .studio-hero { padding: 26px 22px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--nav-bg); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 6px 0;
    transform-origin: top center;
    transform: rotateX(-88deg) scaleY(.7); opacity: 0; pointer-events: none;
    transition: transform .4s var(--ease), opacity .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 24px; }
}

/* 尊重无障碍偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   整站主题（后台 config 可切换，layout 输出 data-theme）
   默认=星轨深空（:root）；以下三套按真实模板风格复刻：
   · machia → templatemo_632_machina：深空黑 + 霓虹青 + 工程网格 + 辉光
   · split  → templatemo_616_split_index：暖纸白 + 衬线标题 + 颗粒纹理 + 黑色擦除
   · pixel  → templatemo_617_pixel_forge：深暗玻璃拟态 + 玫瑰金渐变 + Bebas 粗标题
   字体优先用 Google Fonts（有网生效），均带系统回退，无外部依赖也能正常显示。
   ============================================================ */

/* 主题动效关键帧 */
@keyframes machiaGrid  { to { background-position: 46px 46px, 46px 46px; } }
@keyframes glowPulse   { 0%, 100% { text-shadow: 0 0 10px rgba(var(--accent-rgb), .4); } 50% { text-shadow: 0 0 26px rgba(var(--accent-rgb), .85); } }
@keyframes fadeUp      { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ===== 主题一 · Machia（深空工业暗色 / 霓虹青 / 工程网格 + 辉光） ===== */

/* ============================================================
   整站主题（后台 config 可切换，layout 输出 data-theme）
   当前启用：dreamhub（绛砂）；azure 段保留，dreamhub 见 theme-dreamhub.css
   ============================================================ */

/* ===== 主题 · azure（晴蓝 · 清朗商务，Open Sans） ===== */
[data-theme="azure"] {
  --bg: #f7f9fc; --bg-2: #eef3f9;
  --panel: #ffffff; --panel-strong: #fbfcfe;
  --border: rgba(34,34,34,0.10); --border-glow: rgba(97,159,241,0.5);
  --text: #222222; --text-dim: #777777;
  --cyan: #619ff1; --ice: #4a8fe0; --teal: #3a7bd5; --purple: #5a7fd0; --blue: #6db0f5;
  --grad: linear-gradient(100deg,#619ff1 0%,#4a8fe0 100%);
  --grad-soft: linear-gradient(100deg,rgba(97,159,241,.12),rgba(74,143,224,.12));
  --radius: 10px;
  --accent-rgb: 97,159,241; --teal-rgb: 58,123,213;
  --text-strong: #111418; --text-body: #343a40; --on-accent: #ffffff;
  --nav-bg: rgba(255,255,255,0.92); --nav-shadow: rgba(34,34,34,0.08);
  font-family: "Open Sans", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-theme="azure"] #starfield { display: none; }
[data-theme="azure"] body::before, [data-theme="azure"] body::after { background: none; }
[data-theme="azure"] .nav { border-bottom: 1px solid rgba(97,159,241,0.35); box-shadow: 0 6px 24px rgba(34,34,34,0.06); }
[data-theme="azure"] .brand .dot { color: var(--cyan); }
[data-theme="azure"] .section-head h2, [data-theme="azure"] .page, [data-theme="azure"] .brand { color: #111418; }
[data-theme="azure"] .card, [data-theme="azure"] .cat-card, [data-theme="azure"] .feature, [data-theme="azure"] .panel, [data-theme="azure"] .hero-card {
  border: 1px solid rgba(34,34,34,0.10); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
[data-theme="azure"] .card:hover, [data-theme="azure"] .cat-card:hover, [data-theme="azure"] .feature:hover {
  border-color: rgba(97,159,241,0.6); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(97,159,241,0.20);
}
[data-theme="azure"] .btn { background: var(--cyan); color: var(--on-accent); border: 1px solid var(--cyan); transition: box-shadow .3s, transform .12s; }
[data-theme="azure"] .btn:hover { box-shadow: 0 0 20px rgba(97,159,241,0.45); transform: translateY(-1px); }

/* ============================================================
   主题 · 布局版式（仿 iProof / moban7062 真实布局，非仅配色）
   azure 主题由 Home 控制器按 site_theme 渲染 index_azure.html；其余使用默认 index.html
   ============================================================ */

/* 通用辅助 */
.muted { color: var(--text-dim); }
.read { display: inline-block; color: var(--cyan); font-weight: 600; font-size: 13px; }

/* ---------- 主题布局 · 响应式 ---------- */
@media (max-width: 860px) {
  [data-theme="azure"] .hero-azure-grid { grid-template-columns: 1fr; }
  [data-theme="azure"] .about-azure { grid-template-columns: 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-widget { flex: 1 1 240px; }
  .studio-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .post-pager { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr; }
  .studio-stats { grid-template-columns: repeat(2, 1fr); }
  .about-cta { padding: 30px 20px; }
}

/* ---------- 每主题导航栏 / 页脚版式（让头尾也随模板不同） ---------- */

/* azure：首页透明悬浮在深色 hero 上；内页浅色实底 */
body[data-theme="azure"][data-home] .nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  background: transparent; border-bottom: none; box-shadow: none; color: #eaf1fb;
}
body[data-theme="azure"][data-home] .nav .brand,
body[data-theme="azure"][data-home] .nav-links a { color: #eaf1fb; }
body[data-theme="azure"][data-home] .nav-links a.active { color: #9cc4f7; }
body[data-theme="azure"][data-home] .nav-toggle { border-color: rgba(234,241,251,.4); background: transparent; }
body[data-theme="azure"][data-home] .nav-toggle span { background: #eaf1fb; }
body[data-theme="azure"]:not([data-home]) .nav { border-bottom: 1px solid rgba(97,159,241,0.4); }

/* 页脚顶边点缀由 theme-azure.css 接管 */

/* =========================================================
   内页通用版式（关于我 / 博客列表 / 文章详情）
   仅用共享变量（--panel/--cyan/--text/--on-accent/--grad/--border/--radius/--text-strong/--text-dim/--panel-strong/--ease），
   四套主题 + 默认深空均自动适配，无需在各 theme-*.css 重写。
   ========================================================= */

/* 内页 hero（拉到固定导航下）——版式向首页 banner 靠拢：大标题 + 副标题 + 分隔线，居中 */
.page-hero { position: relative; padding: 110px 0 72px; margin-top: 60px; text-align: center;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel)); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(32px, 5.5vw, 50px); line-height: 1.2; color: var(--text-strong); margin: 0 0 20px; letter-spacing: -.5px; font-weight: 700; }
.page-hero .ph-sub { color: var(--text-dim); font-size: clamp(16px, 2.4vw, 19px); line-height: 1.7; margin: 0; letter-spacing: .2px; }
.page-hero .ph-rule { width: 60px; height: 4px; background: var(--grad); border-radius: 2px; margin: 28px auto 0; }

/* 内页深色 banner（仿首页 ip-banner，四主题共用基线）——全宽、顶到 sticky 导航下 */
.page-banner { position: relative; z-index: 0; color: #fff;
  padding: 130px 0 70px; margin-top: -67px;
  background: #1a1a2e url("../img/hero-inner.svg") center center / cover no-repeat; }
.page-banner::before { content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.55); z-index: -1; }
.page-banner > .container { position: relative; z-index: 1; }
.page-banner h1 { margin: 0; color: #fff;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: -.3px; }
.page-banner .ph-sub { color: rgba(255,255,255,.85);
  font-size: clamp(16px, 2.2vw, 20px); line-height: 1.6; margin: 14px 0 0; max-width: 52em; }
.page-banner .page-crumb { color: rgba(255,255,255,.6); }
.page-banner .page-crumb a { color: rgba(255,255,255,.75); }
.page-banner .page-crumb a:hover { color: #fff; }
.page-banner .page-crumb span { color: rgba(255,255,255,.5); }
.ct-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ct-banner-text { flex: 1 1 360px; min-width: 0; }
.ct-banner-fig { flex: 0 0 220px; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 36px rgba(0, 0, 0, .35); background: #16273f; }
.ct-banner-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 720px) {
  .ct-banner-fig { flex-basis: 150px; margin: 0 auto; }
}

/* 内页正文容器（替代原 .section 的上下留白） */
.page-body { padding: 58px 0; }

/* banner 内分类按钮行（首页 CTA 大按钮仍用 .ip-buttons + .btn） */
.page-banner .ip-buttons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius); font-size: 14px; line-height: 1.4;
  text-decoration: none; cursor: pointer; transition: .2s; border: 1px solid transparent; }
.btn.primary { background: var(--cyan, #e91e63); color: #fff; border-color: var(--cyan, #e91e63); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn.ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.45); }
/* banner 内分类筛选：纯文字行 + 细下划线（低调版；配色走 --cat-* 变量，主题在 theme-*.css 覆盖） */
.page-banner .cat-nav {
  --cat-fg: rgba(255,255,255,.60);
  --cat-fg-h: #fff;
  --cat-on-fg: #fff;
  --cat-on-bar: var(--cyan, #5a93b0);
  --cat-cnt-op: .5;
  --cat-cnt-op-on: .8;
  margin-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 26px;
}
.page-banner .cat-link {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 0 9px;
  font-size: 15px; line-height: 1.2; letter-spacing: .5px; white-space: nowrap;
  color: var(--cat-fg); background: none; border: 0; border-radius: 0;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.page-banner .cat-link:hover { color: var(--cat-fg-h); }
.page-banner .cat-link.is-active { color: var(--cat-on-fg); font-weight: 500; }
.page-banner .cat-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--cat-on-bar);
}
.cc-ico { font-size: 13px; line-height: 1; opacity: .75; }
.cat-link .cc-name { line-height: 1; }
.cat-link .cc-cnt {
  font-size: 11.5px; font-weight: 400; line-height: 1;
  margin-left: 1px; opacity: var(--cat-cnt-op);
  font-variant-numeric: tabular-nums;
}
.cat-link:hover .cc-cnt { opacity: .75; }
.cat-link.is-active .cc-cnt { opacity: var(--cat-cnt-op-on); }
/* 分类页 banner 是「左文右图」两栏，筛选行靠左对齐 */
.ct-banner-text .cat-nav { justify-content: flex-start; }
@media (max-width: 640px) {
  .page-banner .cat-nav { margin-top: 18px; gap: 0 18px; }
  .page-banner .cat-link { font-size: 14px; gap: 5px; padding-bottom: 7px; }
}

/* 关于我 · 简介 2 栏 */
.about-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.about-bio p { color: var(--text); line-height: 1.95; margin: 0 0 16px; font-size: 15px; }
.about-portrait { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.about-portrait-img { margin: 0 0 18px; border-radius: 12px; overflow: hidden; background: #16273f; }
.about-portrait-img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.about-portrait .nm { font-size: 20px; color: var(--text-strong); margin: 0 0 4px; }
.about-portrait .rl { color: var(--text-dim); font-size: 14px; margin: 0; }

/* 关于我 · 技能进度条 */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 40px; }
.skill { margin-bottom: 6px; }
.skill .sk-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.skill .sk-label { color: var(--text-strong); font-weight: 600; font-size: 15px; }
.skill .sk-pct { color: var(--cyan); font-weight: 600; font-size: 14px; }
.skill .sk-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.skill .sk-fill { height: 100%; background: var(--grad); border-radius: 99px; }

/* 关于我 · 评价 */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.testi .q { color: var(--text); font-style: italic; line-height: 1.85; margin: 0 0 12px; }
.testi .q::before { content: "\201C"; color: var(--cyan); font-size: 28px; font-weight: 700; margin-right: 4px; vertical-align: -6px; }
.testi .who { color: var(--text-dim); font-size: 13px; }

/* 博客列表 · 主列 + 侧栏 */
.blog-section { padding: 54px 0 64px; }
.blog-row { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.blog-row.sidebar-left { grid-template-columns: 320px 1fr; }
.blog-row.sidebar-left .blog-sidebar { order: -1; }
.blog-main { min-width: 0; }

/* 列表头（计数 + 清除筛选） */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px; color: var(--text-dim); font-size: 14px; }
.list-head-clear { color: var(--cyan); font-size: 13px; }
.list-head-clear:hover { text-decoration: underline; }

/* 文章卡片（列表）
   DOM 结构对齐 7062 的 post--item：整宽封面（hover 遮罩 + 按钮）/ 分类 / 标题 / 摘要 /
   Read More 描边按钮 / 页脚（作者 + 分享圆钮）。
   这里只给「四主题通用」的共享变量基线；7062 的精确指纹由 theme-azure.css 覆写。 */
.post-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.post-item:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 16px 40px rgba(var(--accent-rgb), .14); }
.post-cover-wrap { position: relative; display: block; overflow: hidden; }
/* 封面媒体区：包裹封面 + 分类徽标（徽标绝对定位叠在封面左上角） */
.post-media { position: relative; }
.post-cat--float {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  margin: 0; padding: 4px 12px; border-radius: 999px;
  background: var(--panel); color: var(--cyan);
  font-size: 12px; letter-spacing: .6px; line-height: 1.7;
  box-shadow: 0 2px 10px rgba(0,0,0,.16);
}
.post-cat--float a { color: inherit; display: inline-block; }
.post-cat--float a::before { display: none; }
.post-cat--float a:hover { color: var(--cyan); text-decoration: underline; }
.post-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; background: var(--grad); transition: transform .5s var(--ease); }
.post-item:hover .post-cover { transform: scale(1.04); }
.post-cover-action { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); opacity: 0; transition: opacity .35s var(--ease); }
.post-cover-wrap:hover .post-cover-action { opacity: 1; }
.btn-ghost { display: inline-block; padding: 9px 22px; border: 1px solid #fff; border-radius: var(--radius);
  color: #fff; font-size: 14px; letter-spacing: .5px; transition: all .25s var(--ease); }
.post-cover-wrap:hover .btn-ghost { background: #fff; color: #161616; }
.post-body { padding: 22px 24px 24px; }

/* 分类：小色块 + 主题色文字（详情页 / 工作室共用基线） */
.post-cat { margin-bottom: 8px; font-size: 13px; letter-spacing: .6px; color: var(--cyan); }
.post-cat a { color: inherit; display: inline-flex; align-items: center; gap: 7px; }
.post-cat a::before { content: ""; width: 14px; height: 2px; background: var(--cyan); display: inline-block; flex: none; }
.post-cat a:hover { text-decoration: none; color: var(--cyan); }

/* 日志列表卡片分类 = 7062 .post--cat：封面图下方居中、18px 大写纯文字标签 */
.post-item .post-cat {
  display: block; margin: 0 0 10px; padding: 0; background: none; border: 0;
  font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cyan);
}
.post-item .post-cat a { color: inherit; display: inline; text-decoration: none; border-bottom: 0; }
.post-item .post-cat a::before { display: none; }
.post-item .post-cat a:hover { text-decoration: none; border-bottom: 0; color: var(--cyan); }

/* 文章详情页分类 = 7062 .post--cat：居中大号 18px uppercase 纯文字标签 */
.post-article .post-cat {
  display: block; margin: 0 0 10px; padding: 0; background: none; border: 0;
  font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; text-align: center; color: var(--cyan);
}
.post-article .post-cat a { color: inherit; display: inline; }
.post-article .post-cat a::before { display: none; }
.post-article .post-cat a:hover { text-decoration: none; color: var(--cyan); }

.post-title { font-size: 21px; color: var(--text-strong); margin: 0 0 8px; line-height: 1.35; }
.post-title a { color: inherit; text-decoration: none; border-bottom: 0; }
.post-title a:hover { color: var(--cyan); text-decoration: none; border-bottom: 0; }
.post-content p { color: var(--text-dim); font-size: 14px; line-height: 1.85; margin: 0; }

/* Read More 描边按钮 */
.post-action { margin-top: 18px; }
.btn-outline { display: inline-block; padding: 9px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 14px; background: transparent; transition: all .25s var(--ease); }
.btn-outline:hover { background: var(--cyan); border-color: var(--cyan); color: var(--on-accent); }

/* 卡片页脚：作者 + 元信息 + 分享圆钮 */
.post-footer { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.post-footer .pf-author { margin: 0; color: var(--text-dim); font-size: 13px; }
.post-footer .pf-author a { color: var(--text); font-weight: 600; }
.post-footer .pf-author a:hover { color: var(--cyan); }
.post-footer .pf-meta { margin: 0; color: var(--text-dim); font-size: 13px; display: flex; gap: 14px; }
.post-footer .pf-social { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 8px; }
.post-footer .pf-social a { display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-dim); font-size: 13px; transition: all .25s var(--ease); }
.post-footer .pf-social a:hover { color: var(--on-accent); background: var(--cyan); border-color: var(--cyan); }

.list-empty { padding: 46px 20px; text-align: center; color: var(--text-dim); font-size: 14px;
  border: 1px dashed var(--border); border-radius: var(--radius); background: var(--panel); }

/* 侧栏小工具 */
.widget { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.widget .w-title { font-size: 16px; color: var(--text-strong); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); position: relative; }
.widget .w-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--cyan); border-radius: 2px; }
/* 搜索框：按钮内嵌在输入框右侧（仿 7062 search--widget） */
.search-box { position: relative; }
.search-box input { width: 100%; height: 40px; padding: 0 44px 0 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 14px; outline: none; }
.search-box input:focus { border-color: var(--cyan); }
.search-box button { position: absolute; top: 0; right: 0; width: 44px; height: 40px; border: none; background: transparent;
  color: var(--text-dim); font-size: 17px; line-height: 1; cursor: pointer; }
.search-box button:hover { color: var(--cyan); }
.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.links-list li:last-child { border-bottom: none; }
.links-list a { color: var(--text); display: flex; justify-content: space-between; }
.links-list a:hover { color: var(--cyan); }
.links-list a.on { color: var(--cyan); font-weight: 600; }
.links-list .ct { color: var(--text-dim); font-size: 13px; }

/* 侧栏归档：按年折叠（每年仅占一行）+ 月份横排 chip。
   只用共享变量，四主题通用；折叠用原生 details，无需 JS。 */
.arch-list { margin: 0; }
.arch-year { border-bottom: 1px solid var(--border); }
.arch-year:last-child { border-bottom: none; }
.arch-year > summary {
  display: flex; align-items: center; gap: 8px; padding: 9px 0;
  cursor: pointer; list-style: none;
  color: var(--text-strong); font-size: 14px; font-weight: 600;
  transition: color .2s;
}
.arch-year > summary::-webkit-details-marker { display: none; }
.arch-year > summary:hover { color: var(--cyan); }
.arch-year > summary .ct {
  margin-left: auto; color: var(--text-dim);
  font-size: 12px; font-weight: 400;
}
.arch-year > summary::after {
  content: ""; flex: none; width: 5px; height: 5px;
  border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg) translateY(-1px); transition: transform .2s;
}
.arch-year[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.arch-months {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0; padding: 2px 0 12px;
}
.arch-months a {
  display: inline-block; padding: 3px 9px;
  border: 1px solid var(--border); border-radius: 99px;
  color: var(--text-dim); font-size: 12px; line-height: 1.7;
  transition: color .2s, border-color .2s, background .2s;
}
.arch-months a:hover { border-color: var(--cyan); color: var(--cyan); }
.arch-months a.on {
  background: var(--cyan); border-color: var(--cyan);
  color: var(--on-accent); font-weight: 600;
}
.posts-mini .pm { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.posts-mini .pm:last-child { border-bottom: none; padding-bottom: 0; }
.posts-mini .pm-img-link { flex: none; display: block; }
.posts-mini .pm-img { width: 56px; height: 56px; flex: none; border-radius: 8px; background: var(--grad); object-fit: cover; }
.posts-mini .pm-txt { min-width: 0; }
.posts-mini .pm-title { color: var(--text-strong); font-size: 14px; line-height: 1.4; display: block; }
.posts-mini .pm-title:hover { color: var(--cyan); }
.posts-mini .pm-date { color: var(--text-dim); font-size: 12px; }
.tags-cloud .tag { display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 99px; color: var(--text-dim); font-size: 12px; margin: 0 6px 8px 0; }
.tags-cloud .tag:hover { border-color: var(--cyan); color: var(--cyan); }
.w-about .w-av { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 10px; }
.w-about .w-name { color: var(--text-strong); font-weight: 600; margin: 0 0 4px; }
.w-about .w-bio { color: var(--text-dim); font-size: 13px; margin: 0; line-height: 1.7; }

/* 分页器（DOM 由 Home::buildPager 生成，结构对齐 7062 的
   .pagination--wrapper > ul.pagination；外观基线用共享变量，四主题通用） */
.pagination--wrapper { text-align: center; margin-top: 34px; }
.pagination { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination > li > a, .pagination > li > span { display: block; min-width: 38px; padding: 7px 13px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  color: var(--text); font-size: 14px; line-height: 22px; transition: all .25s var(--ease); }
.pagination > li > a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--on-accent); }
.pagination > li.active > span { background: var(--cyan); border-color: var(--cyan); color: var(--on-accent); font-weight: 600; }
.pagination > li.disabled > span { opacity: .45; cursor: not-allowed; }
.pagination > li.pg-gap > span { border: none; background: transparent; min-width: 0; padding: 7px 2px; }

/* 旧分页器：保留给尚未改动的模板调用，新模板统一用 .pagination */
.paginator { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.paginator a, .paginator .pg-cur, .paginator .pg-ellipsis { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; background: var(--panel); }
.paginator a:hover { border-color: var(--cyan); color: var(--cyan); }
.paginator .pg-cur { background: var(--cyan); color: var(--on-accent); border-color: var(--cyan); }
.paginator .pg-ellipsis { border: none; background: transparent; }

/* 文章详情 */
.post-article { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pa-cover { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; background: var(--grad); }
.pa-cover.ph { display: flex; align-items: center; justify-content: center; color: var(--on-accent); font-size: 64px; font-weight: 700; letter-spacing: 3px; }
.pa-body { padding: 28px 30px 32px; }
.pa-title { font-size: clamp(24px, 3.4vw, 32px); color: var(--text-strong); margin: 6px 0 12px; line-height: 1.35; }
.pa-meta { color: var(--text-dim); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.pa-content { color: var(--text); line-height: 1.95; font-size: 15px; }
.pa-content img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.pa-content h2, .pa-content h3 { color: var(--text-strong); margin: 22px 0 10px; }
.pa-content a { color: var(--cyan); }
.pa-content pre { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; overflow: auto; }
.pa-tags { margin-top: 20px; }

/* 作者框 */
.post-author { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-top: 24px; }
.post-author .pa-av { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.post-author .pa-name { color: var(--text-strong); font-weight: 600; margin: 0 0 4px; }
.post-author .pa-bio { color: var(--text-dim); font-size: 14px; margin: 0; line-height: 1.7; }

/* 上下篇 */
.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-pager a { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; color: var(--text); display: block; transition: border-color .3s; }
.post-pager a:hover { border-color: var(--cyan); }
.post-pager .pp-dir { color: var(--text-dim); font-size: 12px; }
.post-pager .pp-title { color: var(--text-strong); font-weight: 600; font-size: 15px; margin-top: 4px; }
.post-pager .next { text-align: right; }

/* 相关文章 */
.post-related { margin-top: 30px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.rel-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.rel-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .55); }
.rel-card .rc-img { width: 100%; aspect-ratio: 16 / 9; background: var(--grad); object-fit: cover; display: block; }
.rel-card .rc-body { padding: 12px 14px; }
.rel-card .rc-title { color: var(--text-strong); font-size: 14px; line-height: 1.4; }

/* ============================================================
   留言 / 评论（程序模块：仅用共享变量，四主题共用同一份 DOM）
   ============================================================ */
.gb-banner { margin-top: -67px; padding-top: 110px; padding-bottom: 64px; text-align: center; }

/* 留言表单（工作室 / 留言墙 / 文章页共用） */
.gb-form { margin-top: 6px; }
.gb-row { display: flex; gap: 12px; flex-wrap: wrap; }
.gb-row input { flex: 1; min-width: 180px; }
.gb-field { margin-top: 12px; }
.gb-form input, .gb-form textarea {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: inherit; line-height: 1.6;
  color: var(--text-strong); background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; outline: none; box-sizing: border-box;
}
.gb-form input:focus, .gb-form textarea:focus { border-color: var(--border-glow); background: var(--panel-strong); }
.gb-form textarea { resize: vertical; min-height: 88px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.gb-actions { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gb-actions .btn { background: var(--grad); color: var(--on-accent); border: none; cursor: pointer; border-radius: 999px; padding: 10px 22px; font-size: 14px; }
.gb-actions .btn:hover { filter: brightness(1.06); }
.gb-actions .btn:disabled { opacity: .6; cursor: default; }
.gb-tip { color: var(--text-dim); font-size: 12px; }
.gb-msg { margin-top: 12px; font-size: 13px; min-height: 18px; }
.gb-msg.ok { color: var(--teal); }
.gb-msg.err { color: #e57373; }

/* 留言墙（通用留言列表） */
.gb-wall { margin-top: 8px; }
.gb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gb-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.gb-text { margin: 0 0 14px; color: var(--text-body); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.gb-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.gb-name { color: var(--ice); font-weight: 600; }
.gb-empty { color: var(--text-dim); padding: 18px 0; }

/* 文章评论 */
.post-comments { margin-top: 28px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.pc-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.pc-item { display: flex; gap: 12px; }
.pc-av { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center; color: var(--text-strong); font-weight: 600; }
.pc-body { flex: 1; min-width: 0; }
.pc-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pc-name { color: var(--ice); font-weight: 600; font-size: 14px; }
.pc-date { color: var(--text-dim); font-size: 12px; }
.pc-text { margin: 0; color: var(--text-body); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.pc-empty { color: var(--text-dim); font-size: 14px; margin: 0 0 16px; }
.pc-form-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }

/* 工作室页留言 CTA 微调 */
.gb-studio-cta { margin-top: 40px; }

@media (max-width: 1024px) {
  .blog-row, .blog-row.sidebar-left { grid-template-columns: 1fr; }
  .blog-row.sidebar-left .blog-sidebar { order: 0; }
  .about-intro { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .post-pager { grid-template-columns: 1fr; }
  .post-pager .next { text-align: left; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .about-portrait { padding: 24px; }
}
