/* ============================================================
   Alright·轻博客 — 前台样式
   复刻 nicetheme Alright 主题设计令牌，支持 深色(data-scheme=dark)
   ============================================================ */
/* 两栏列表仅输出一张等比左图；详情与三栏不受影响。 */
.post-card-horizontal .item-body { display:flex; align-items:flex-start; gap:18px; }
.post-card-horizontal .item-desc { flex:1; min-width:0; overflow-wrap:anywhere; }
.post-card-horizontal .item-thumbnail { flex:0 0 160px; width:160px; }
.post-card-horizontal .item-thumbnail img { display:block; width:100%; height:120px; object-fit:contain; border-radius:6px; }
@media (max-width:600px) {
  .post-card-horizontal .item-body { gap:12px; }
  .post-card-horizontal .item-thumbnail { flex-basis:96px; width:96px; }
  .post-card-horizontal .item-thumbnail img { height:80px; }
}
:root {
  --gray-1: #f7f8fa;
  --gray-2: #f6f6f6;
  --gray-3: #eee;
  --gray-4: #c9cdd4;
  --gray-5: #86909c;
  --gray-6: #4e5969;
  --gray-7: #2c343c;
  --gray-8: #1d2129;
  --red: #ff3e3e;
  --blue: #3858f6;
  --blue-hover: #2b46d9;
  --blue-soft: rgba(56, 88, 246, .1);
  --orange: #ffba3a;
  --green: #4abd86;
  /* 登录后按钮与未登录 btn-grad 同款亮色渐变规格；个人中心=黄橙，管理后台=天蓝，蓝橙成对 */
  --profile-btn: #ffb15c;
  --profile-btn-deep: #ff8338;
  --profile-btn-focus: rgba(255, 131, 56, .32);
  --profile-btn-shadow: rgba(255, 131, 56, .30);
  --admin-btn: #4fb2ff;
  --admin-btn-deep: #2b7fff;
  --admin-btn-focus: rgba(43, 127, 255, .32);
  --admin-btn-shadow: rgba(43, 127, 255, .30);
  --gradient-hot: linear-gradient(135deg, #ff2f43, #ff6327);
  /* RiPro 权限卡片专属购买按钮渐变；深浅色通用，不在深色主题覆写 */
  --gradient-buy: linear-gradient(135deg, #ff5f6d, #ff2d55);
  --card-bg: #fff;
  --card-border: var(--gray-1);
  --shadow: 0 6px 16px 0 rgba(27, 26, 49, .01);
  --shadow-hover: 0 12px 28px 0 rgba(27, 26, 49, .09);
  --header-bg: rgba(247, 248, 250, .94);
  --lock-fade: rgba(255, 255, 255, 96%);
  --chip-bg: rgba(0, 0, 0, .06);
  --code-bg: rgba(135, 131, 120, .15);
  --aurora:
    radial-gradient(640px 300px at 4% -30px, rgba(255, 186, 58, .40), transparent 62%),
    radial-gradient(560px 280px at 46% -140px, rgba(120, 155, 236, .28), transparent 62%),
    radial-gradient(680px 320px at 97% -30px, rgba(255, 110, 196, .32), transparent 62%);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-max: 999px;
  --font-base: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica,
    "Segoe UI", Arial, Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  --font-title: "LXGW WenKai", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 深色主题（参考 Alright data-scheme 方案） ---------- */
body[data-scheme="dark"] {
  --gray-1: #14161c;
  --gray-2: #1e212a;
  --gray-3: #2a2e39;
  --gray-4: #3d4354;
  --gray-5: #8a92a6;
  --gray-6: #b3bacb;
  --gray-7: #d4d9e6;
  --gray-8: #eef0f7;
  --blue: #6d86ff;
  --blue-hover: #869aff;
  --blue-soft: rgba(109, 134, 255, .16);
  /* 深色模式与未登录按钮同样不换渐变色，仅阴影/焦点环随底色调整 */
  --profile-btn: #ffb15c;
  --profile-btn-deep: #ff8338;
  --profile-btn-focus: rgba(255, 177, 92, .40);
  --profile-btn-shadow: rgba(0, 0, 0, .35);
  --admin-btn: #4fb2ff;
  --admin-btn-deep: #2b7fff;
  --admin-btn-focus: rgba(79, 178, 255, .42);
  --admin-btn-shadow: rgba(0, 0, 0, .38);
  --card-bg: #1b1e26;
  --card-border: #23262f;
  --shadow: 0 6px 16px 0 rgba(0, 0, 0, .22);
  --shadow-hover: 0 14px 32px 0 rgba(0, 0, 0, .40);
  --header-bg: rgba(20, 22, 28, .94);
  --lock-fade: rgba(27, 30, 38, 96%);
  --chip-bg: rgba(255, 255, 255, .08);
  --code-bg: rgba(255, 255, 255, .10);
  --aurora:
    radial-gradient(640px 300px at 4% -30px, rgba(255, 186, 58, .13), transparent 62%),
    radial-gradient(560px 280px at 46% -140px, rgba(109, 134, 255, .12), transparent 62%),
    radial-gradient(680px 320px at 97% -30px, rgba(255, 110, 196, .10), transparent 62%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; }

/* ---------- 字体模式（后台：前台展示 → 字体设置） ---------- */
/* 模式一：仅博客前台统一系统字体；复用令牌，不覆盖代码或图标字体。 */
body.site-font-default {
  --font-title: var(--font-base);
  --site-font: var(--font-base);
  font-family: var(--font-base);
}
/* 低优先级补齐原生表单控件，图标类自己的 font-family 仍可生效。 */
:where(body.site-font-default) :where(button, input, select, textarea, option, optgroup) { font-family: var(--font-base); }
body.site-font-default .archive-date { font-family: var(--font-base); }
/* 模式二：全站自定义字体（代码块保持等宽） */
body.site-font-custom { font-family: var(--site-font, var(--font-base)); }
body.site-font-custom :not(code):not(pre):not(kbd):not(samp):not(code *):not(pre *):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-solid *):not(.fa-regular *):not(.fa-brands *) { font-family: inherit; }
/* 模式三：手写体（个性字体）——与模式二一样全站生效（body 会同时挂 site-font-custom）。
   .font-personal 仍保留在第二栏上作为兜底：即使 body 类缺失，主内容栏也能拿到手写体。 */
.font-personal { font-family: var(--site-font, var(--font-title)); }
.font-personal :not(code):not(pre):not(kbd):not(samp):not(code *):not(pre *):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-solid *):not(.fa-regular *):not(.fa-brands *) { font-family: inherit; }
/* 必须置于字体模式规则之后，防止自定义字体覆盖 Font Awesome。 */
.fa-solid { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.fa-regular { font-family: "Font Awesome 6 Free" !important; font-weight: 400 !important; }
.fa-brands { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }
body {
  font-family: var(--font-base);
  background: var(--gray-1);
  color: var(--gray-8);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  transition: background .3s ease, color .3s ease;
  animation: page-in .45s ease both;
}
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* 顶部极光渐变背景（缓慢漂移） */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 420px;
  background: var(--aurora);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  /* 卡片与整页区块入场是一次性动画，不在此关闭（原因见 page-pop 注释） */
}
a { color: inherit; text-decoration: none; }

/* 鼠标指针样式：对齐参考站桌面端（≥992px）——把 a / button 的系统手型换成
   主题自带的白色小手图标（32px / @2x 64px，热区 9 9，取自参考站原图）。
   参考站用 !important 覆盖各处 cursor:pointer，这里保持一致。 */
@media (min-width: 992px) {
  a, button {
    cursor: -webkit-image-set(url("/static/img/cursor/link-2x.png") 2x, url("/static/img/cursor/link-1x.png") 1x) 9 9, auto !important;
    cursor: image-set(url("/static/img/cursor/link-2x.png") 2x, url("/static/img/cursor/link-1x.png") 1x) 9 9, auto !important;
  }
  /* 个人资料卡整块都是"进个人中心"的入口（头像/昵称/统计已是链接），
     卡片内的空白区也统一给小手，否则会出现"一半手型一半箭头"的割裂感。
     用 :has 限定登录态卡片，未登录的卡片不误报可点。 */
  .user-panel:has(a[href="/user/center"]) {
    cursor: -webkit-image-set(url("/static/img/cursor/link-2x.png") 2x, url("/static/img/cursor/link-1x.png") 1x) 9 9, auto;
    cursor: image-set(url("/static/img/cursor/link-2x.png") 2x, url("/static/img/cursor/link-1x.png") 1x) 9 9, auto;
  }
  /* 个人中心头部资料卡：昵称、徽章、属地/邮箱 chips 这些静态文字区域，
     以及头像，同样统一为自定义光标（内部的 a/button 由上面的规则兜住）。 */
  .uc-head,
  .uc-head-body,
  .uc-id,
  .uc-meta,
  .uc-avatar {
    cursor: -webkit-image-set(url("/static/img/cursor/link-2x.png") 2x, url("/static/img/cursor/link-1x.png") 1x) 9 9, auto;
    cursor: image-set(url("/static/img/cursor/link-2x.png") 2x, url("/static/img/cursor/link-1x.png") 1x) 9 9, auto;
  }
  /* 禁用态仍用系统禁止手势，避免"可点"的误导 */
  button:disabled, [aria-disabled="true"] { cursor: not-allowed !important; }
}
img { max-width: 100%; display: block; }
code { font-family: "JetBrains Mono", Consolas, "Courier New", monospace; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.container.layout-wide { max-width: 1400px; }

/* ---------- 滚动入场特效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 卡片基类 ---------- */
.box-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .25s ease;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(27, 26, 49, .05);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo {
  font-family: var(--font-title);
  font-weight: 700; font-size: 22px; color: var(--gray-8);
  white-space: nowrap; letter-spacing: -.02em;
  transition: color .25s, transform .25s;
  display: inline-block;
}
.logo:hover { color: var(--blue); transform: translateY(-1px); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--gray-7); font-size: 16px; transition: color .2s, transform .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a:hover { transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gray-6); transition: .25s;
}
.icon-btn:hover { background: var(--gray-2); transform: scale(1.1) rotate(8deg); }
.theme-toggle { cursor: pointer; border: none; background: transparent; }
.header-search {
  display: flex; align-items: center; background: var(--gray-2);
  border-radius: var(--radius-max); padding: 2px 4px 2px 14px;
  border: 1px solid transparent; transition: .25s;
}
.header-search:focus-within { background: var(--card-bg); border-color: var(--blue); }
.header-search input {
  border: none; outline: none; background: transparent; width: 130px;
  font-size: 14px; color: var(--gray-8);
}
.header-search button {
  border: none; background: transparent; cursor: pointer; font-size: 14px; padding: 5px 7px;
}
/* 头部间距全局收紧（原 1920/2K 下 logo+导航+搜索+按钮 会横向溢出换行） */
.header-inner{gap:18px}
.nav a{padding:8px 9px; font-size:15px}
.header-search input{width:96px}
.user-menu { position: relative; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--card-bg); box-shadow: var(--shadow);
  transition: transform .25s;
}
.user-avatar:hover { transform: scale(1.08); }
.user-dropdown {
  display: none; position: absolute; right: 0; top: 44px; min-width: 160px;
  background: var(--card-bg); border: 1px solid var(--gray-3); border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(27, 26, 49, .12); padding: 6px; z-index: 90;
  animation: drop-in .22s ease both;
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.user-dropdown::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown { display: block; }
.user-dropdown-name {
  font-size: 12px; color: var(--gray-5); padding: 8px 10px 6px;
  border-bottom: 1px solid var(--gray-3); margin-bottom: 6px;
}
.user-dropdown a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-7); }
.user-dropdown a:hover { background: var(--blue-soft); color: var(--blue); }
.nav-toggle {
  display: none; border: none; background: transparent; font-size: 20px;
  cursor: pointer; padding: 6px; color: var(--gray-7);
}

/* ---------- 按钮 / 提示 ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-align: center;
  border-radius: var(--radius-sm); font-size: 15px; padding: 8px 20px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  line-height: 1.5;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(56, 88, 246, .32); }
.btn-primary:active { transform: translateY(0); }
.btn-light { background: var(--gray-2); color: var(--gray-6); border: 1px solid var(--gray-2); }
.btn-light:hover { color: var(--blue); border-color: var(--blue-soft); transform: translateY(-2px); }
.btn-sm { padding: 5px 14px; font-size: 14px; }
.btn-block { display: block; width: 100%; }
.flash { margin: 14px auto 0; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; box-shadow: var(--shadow); animation: drop-in .3s ease both; }
.flash-error { background: var(--card-bg); color: var(--red); border: 1px solid rgba(255, 62, 62, .25); }
.flash-ok { background: var(--card-bg); color: var(--green); border: 1px solid rgba(74, 189, 134, .3); }

/* ---------- 三栏布局 ---------- */
.layout {
  display: flex; gap: 16px; margin-top: 16px;
  align-items: flex-start; padding-bottom: 40px;
}
.aside-left { width: 260px; flex-shrink: 0; }
/* 第一栏滑动跟随（sticky）：矮栏吸顶、高栏吸底，均钳制在布局高度内 */
.aside-left.stick-top { position: sticky; top: 92px; }
.aside-left.stick-bottom { position: sticky; top: auto; bottom: 16px; }
.content { flex: 1; min-width: 0; }
.aside-right { width: 340px; flex-shrink: 0; }

/* ---------- 徽标 ---------- */
.badge-hot {
  display: inline-block; font-size: 12px; line-height: 1.2;
  padding: 2px 5px; border-radius: 4px; color: #fff; font-weight: 400;
  vertical-align: 2px;
  background-image: var(--gradient-hot);
}
.badge-code { background: #7c3aed; }
/* 付费阅读 / 付费下载：统一为参考站「付费阅读」标签样式——橙色实底 + 白色文字 + 小圆角 */
.badge-paid, .badge-dl {
  display: inline-block; padding: 2px 5px; border-radius: 3px;
  background: #ff882e; color: #fff;
  font-size: 12px; font-weight: 500; line-height: 14px; letter-spacing: 0;
  vertical-align: 2px; white-space: nowrap;
}

/* ---------- 左栏：用户面板（参考 Alright 登录卡） ---------- */
.user-panel { padding: 0; overflow: hidden; }
.user-cover { height: 112px; }
.user-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.user-panel:hover .user-cover img { transform: scale(1.05); }
.panel-avatar {
  display: block; width: 84px; height: 84px; border-radius: 50%;
  margin: -42px auto 10px; position: relative;
  box-shadow: 0 6px 16px rgba(27, 26, 49, .12);
  transition: transform .3s;
}
.user-panel:hover .panel-avatar { transform: scale(1.05); }
.panel-avatar-wrap { position: relative; display: block; width: fit-content; margin: -42px auto 10px; }
.panel-avatar-wrap .panel-avatar { margin: 0; }
.user-hello a { color: inherit; }
.avatar-gem {
  position: absolute; right: -4px; bottom: 0; font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(27, 26, 49, .25));
}
.user-cover { position: relative; }
.checkin-btn {
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, #ffb15c, #ff8338); color: #fff;
  font-size: 12.5px; border-radius: var(--radius-max); padding: 4px 13px;
  box-shadow: 0 4px 10px rgba(255, 131, 56, .35);
  transition: transform .2s, filter .2s;
}
.checkin-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.checkin-btn.done { background: var(--gray-2); color: var(--gray-5); box-shadow: none; }
.checkin-btn.pop { animation: bounce .5s ease; }
.u-verify {
  font-style: normal; display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; vertical-align: 2px;
  background: #3490f3; color: #fff; font-size: 10px; margin-left: 4px;
}
.u-level {
  display: inline-block; vertical-align: 2px; margin-left: 4px;
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #a46cff, #7a3ff2);
  border-radius: var(--radius-max); padding: 1px 8px;
}
.u-level.level-admin { background: linear-gradient(135deg, #ffb15c, #ff8338); }
.user-stat-row { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.u-stat { font-size: 11.5px; border-radius: var(--radius-max); padding: 2px 10px; }
.u-stat.s-blue { background: var(--blue-soft); color: var(--blue); }
.u-stat.s-green { background: rgba(74, 189, 134, .12); color: var(--green); }
.u-stat.s-red { background: rgba(255, 62, 62, .10); color: var(--red); }
.user-sign {
  font-size: 12.5px; color: var(--gray-5); text-align: center;
  margin: 12px 22px 0; line-height: 1.7;
}
.panel-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 0; border-radius: 5px; color: #fff; font-size: 14px;
  font-weight: 500; line-height: 1; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.panel-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
/* 个人中心：与未登录 btn-grad 同款亮色渐变规格（小圆角/细字重/同款阴影），黄橙配蓝色按钮 */
.personal-center-btn {
  background: linear-gradient(135deg, var(--profile-btn), var(--profile-btn-deep));
  box-shadow: 0 4px 12px var(--profile-btn-shadow);
}
.personal-center-btn:focus-visible {
  outline: 3px solid var(--profile-btn-focus); outline-offset: 2px;
}
.personal-center-btn:active {
  filter: brightness(.95); transform: translateY(0);
  box-shadow: 0 2px 6px var(--profile-btn-shadow);
}
.pb-teal { background: linear-gradient(135deg, #3ed0c4, #17a8b8); box-shadow: 0 4px 12px rgba(23, 168, 184, .3); }
/* 管理后台：与未登录蓝色按钮同款天蓝渐变，规格与个人中心一致 */
.pb-blue, .admin-panel-btn {
  background: linear-gradient(135deg, var(--admin-btn), var(--admin-btn-deep));
  box-shadow: 0 4px 12px var(--admin-btn-shadow);
}
.pb-blue:focus-visible, .admin-panel-btn:focus-visible {
  outline: 3px solid var(--admin-btn-focus); outline-offset: 2px;
}
.pb-blue:active, .admin-panel-btn:active {
  filter: brightness(.95); transform: translateY(0);
  box-shadow: 0 2px 6px var(--admin-btn-shadow);
}
.user-btns .panel-btn:only-child { grid-column: 1 / -1; width: 62%; margin: 0 auto; }
.user-hello {
  font-family: var(--font-title); font-size: 19px; font-weight: 700;
  color: var(--gray-8); text-align: center;
}
.user-badge {
  display: block; width: fit-content; margin: 8px auto 0; font-size: 12px; color: var(--gray-6);
  background: var(--gray-2); border-radius: var(--radius-max); padding: 2px 12px;
}
.user-ip { font-size: 12.5px; color: var(--gray-5); text-align: center; margin-top: 6px; }
.user-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 22px; margin-top: 16px;
}
/* 图片按钮（管理后台 / 退出登录） */
.img-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 76px; margin: 0 auto;
  transition: transform .25s ease;
}
.img-btn img {
  width: 100%; border-radius: 10px; display: block;
  box-shadow: 0 4px 12px rgba(27, 26, 49, .10);
  transition: box-shadow .25s ease, transform .25s ease;
}
.img-btn span { font-size: 12px; color: var(--gray-6); }
.img-btn:hover { transform: translateY(-3px); }
.img-btn:hover img { box-shadow: 0 10px 22px rgba(43, 127, 255, .35); }
.img-btn-wide { grid-column: 1 / -1; }

.social-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 22px 12px; color: var(--gray-5); font-size: 12.5px;
}
.social-divider::before, .social-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--gray-3);
}
.social-login { display: flex; justify-content: center; gap: 13px; padding: 0 22px 26px; }
.soc-ic {
  --soc: #4b7fff;
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 800;
  background-color: var(--soc);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--soc) 62%, #fff), var(--soc));
  box-shadow: 0 4px 10px rgba(27, 26, 49, .14), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.soc-ic svg { width: 21px; height: 21px; display: block; }
.soc-ic::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--soc); opacity: 0; transform: scale(.8);
  transition: opacity .3s, transform .3s;
}
.soc-ic:hover { transform: translateY(-5px) scale(1.06); }
.soc-ic:hover::after { opacity: .4; transform: scale(1); }
.soc-ic:hover { box-shadow: 0 9px 18px color-mix(in srgb, var(--soc) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .28); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-stats .box-card { margin-bottom: 16px; padding: 16px 18px; }
/* 统计卡悬停对齐 Alright data-block：箭头转正变主色、角标图标滑入清晰，卡片本身不位移 */
.stat-head { display: flex; justify-content: space-between; align-items: center; }
.stat-label { font-size: 12px; color: var(--gray-5); }
.stat-arrow { font-style: normal; font-size: 12px; color: var(--gray-4); transition: all .3s ease-in-out; transform: rotate(-45deg); }
.stat-card:hover .stat-arrow { color: var(--blue); transform: rotate(0deg); }
.stat-body { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.stat-num { font-family: var(--font-title); font-size: 26px; font-weight: 700; color: var(--gray-8); line-height: 1; }
.stat-icon { font-size: 24px; line-height: 1; display: inline-block; opacity: .25; transform: translate(8px, 8px); transition: all .3s ease-in-out; }
.stat-card:hover .stat-icon { opacity: 1; transform: translate(0, 0); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}
/* ---------- 侧栏组件 ---------- */
.widget-title {
  font-family: var(--font-title);
  font-size: 15.5px; font-weight: 700; color: var(--gray-8); margin-bottom: 14px;
}
.notice-card { padding: 18px 22px; font-size: 15px; }
.notice-card a { color: var(--gray-7); transition: color .2s; }
.notice-card a:hover { color: var(--blue); }
.ad-banner {
  display: block; position: relative; text-align: center; padding: 26px 24px;
  background: linear-gradient(135deg, #23283d, #14161f); border: none; overflow: hidden;
}
.ad-banner::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .08), transparent);
  transform: skewX(-20deg) translateX(-160%);
  animation: ad-shine 4.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes ad-shine {
  0%, 55% { transform: skewX(-20deg) translateX(-160%); }
  85%, 100% { transform: skewX(-20deg) translateX(260%); }
}
.ad-banner .ad-tag {
  position: absolute; left: 14px; top: 14px; font-size: 10px; letter-spacing: .1em;
  color: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px; padding: 1px 6px;
}
.ad-banner b { font-family: var(--font-title); display: block; color: #fff; font-size: 18px; letter-spacing: .04em; }
.ad-banner i { font-style: normal; display: block; color: rgba(255, 255, 255, .55); font-size: 12px; margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-list { display: flex; flex-direction: column; gap: 8px; }
.forum-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-1); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; color: var(--gray-7);
  transition: .3s;
}
/* 文章聚合项悬停对齐 Alright blog-list：整项轻放大上浮，不变色 */
.forum-item:hover { transform: scale(1.02) translateY(-4px); }
.forum-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-grid a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; position: relative; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: all .3s ease-in-out; }
/* 图集悬停对齐 Alright custom-hover：图片放大微旋 + 黑色遮罩浮出全屏图标 */
.gallery-grid a:hover img { transform: scale(1.1) rotate(2deg); }
.gallery-grid a:hover .hover-content { opacity: 1; visibility: visible; }
.gallery-grid a:hover .hover-content svg { transform: translateY(0); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tab {
  font-size: 14px; color: var(--gray-6); background: var(--gray-1);
  border-radius: var(--radius-sm); padding: 5px 12px;
  display: inline-flex; gap: 5px; align-items: center;
  transition: color .2s, background .2s, box-shadow .2s;
}
.cat-tab:hover, .cat-tab.active { color: #fff; background: var(--blue); }
.cat-tab.active { box-shadow: 0 4px 12px rgba(56, 88, 246, .28); }
.cat-count {
  font-size: 11px; background: var(--chip-bg); border-radius: 4px;
  padding: 0 5px; color: var(--gray-5);
}
.cat-tab.active .cat-count { background: rgba(255, 255, 255, .22); color: #fff; }
/* ============================================================
   最新评论（1:1 对齐参考站 zibll `.comments-block-list`）
   胶囊条目：小头像 + 评论正文；逐行横向跑马灯；左右两端 50px 渐隐遮罩
   ============================================================ */
.cmt-widget { overflow: hidden; }
.cmt-empty { font-size: 12.5px; color: var(--gray-5); padding: 6px 0 2px; }
.comments-block-list {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* 抵消 .box-card 的 24px 内边距，让渐隐遮罩贴住卡片左右边缘（参考站是通栏的）；
     左侧再留 26px，保证静止时第一条胶囊完整可读，不会被遮罩洗白 */
  margin: 0 -24px;
  padding: 1px 0 1px 26px;
}
.comments-block-list::before,
.comments-block-list::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  z-index: 2;
  pointer-events: none;
}
.comments-block-list::before {
  left: 0;
  background-image: linear-gradient(to left, rgba(255, 255, 255, 0) 30%, var(--card-bg) 100%);
}
.comments-block-list::after {
  right: 0;
  width: 50px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, var(--card-bg) 100%);
}
.cmt-row {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  will-change: transform;
}
.cmt-row:last-child { margin-bottom: 0; }
.cmt-row li { flex: none; }
.cmt-row li a {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  padding: 5px 11px 5px 6px;
  border-radius: 100px;
  background-color: var(--gray-1);
  transition: background-color .22s ease;
}
.cmt-row li a:hover { background-color: var(--blue-soft); }
.cmt-row .item-avatar {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--gray-3);
}
.cmt-row .item-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmt-row .item-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-6);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .22s ease;
}
.cmt-row li a:hover .item-text { color: var(--blue); }
body[data-scheme="dark"] .cmt-row li a { background-color: rgba(255, 255, 255, .07); }
body[data-scheme="dark"] .cmt-row li a:hover { background-color: var(--blue-soft); }
/* 鼠标停在任意一条上就暂停跑马灯，方便阅读和点击 */
.cmt-row:hover { animation-play-state: paused; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  font-size: 13px; color: var(--gray-6); background: var(--gray-1);
  border-radius: var(--radius-sm); padding: 3px 10px;
  display: inline-flex; align-items: center; gap: 4px; transition: .2s;
}
.tag-chip i { font-style: normal; font-size: 11px; color: var(--gray-5); }
/* 标签 chips 悬停对齐 Alright widget_categories：主色底白字，无位移 */
.tag-chip:hover { color: #fff; background: var(--blue); }
.tag-chip:hover i { color: rgba(255, 255, 255, .8); }

/* ---------- Hero 卡片 ---------- */
/* ---------- 首页轮播海报（独立于分类按钮） ---------- */
.banner-carousel {
  position: relative; overflow: hidden; padding: 0;
  border-radius: var(--radius-md); touch-action: pan-y;
}
.banner-track { display: flex; transition: transform .55s cubic-bezier(.45, .05, .25, 1); }
.banner-slide {
  flex: 0 0 100%; display: block; position: relative; user-select: none;
}
.banner-slide img {
  width: 100%; height: 300px; object-fit: cover; display: block; pointer-events: none;
}
.banner-scrim {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 42%, rgba(10, 12, 20, .76));
  padding: 20px 24px;
}
.banner-scrim h3 {
  font-family: var(--font-title); color: #fff; font-size: 21px; font-weight: 700;
  line-height: 1.45; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transform: translateY(6px); opacity: .92;
  transition: transform .45s ease .1s, opacity .45s ease .1s;
}
.banner-slide.is-active .banner-scrim h3 { transform: translateY(0); opacity: 1; }
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .22); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); opacity: 0;
  transition: opacity .3s, background .3s;
}
.banner-carousel:hover .banner-nav { opacity: 1; }
.banner-nav:hover { background: rgba(255, 255, 255, .38); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
  position: absolute; bottom: 12px; right: 16px; z-index: 3;
  display: flex; gap: 6px;
}
.banner-dot {
  width: 7px; height: 7px; border-radius: 99px; border: none; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .45);
  transition: width .3s, background .3s;
}
.banner-dot.is-active { width: 20px; background: #fff; }

/* ---------- 分类筛选卡（独立于轮播） ---------- */
.cat-card { padding: 10px 14px; }
.hero-tabs { padding: 2px; }

/* ---------- 文章卡片（严格复刻 Alright .forum-posts .item） ---------- */
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .25s ease;
}
.post-card:last-child { margin-bottom: 0; }
.post-card:hover { box-shadow: var(--shadow-hover); border-color: var(--gray-3); }
@media (min-width: 768px) { .post-card { padding: 20px; } }

/* 头部：40px 头像（右下角橙色徽章）+ 名字 / 时间·IP 两行 */
.item-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.info-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.info-avatar { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.info-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-badge {
  position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px;
  border-radius: 100%; background-position: center; background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgZmlsbD0ibm9uZSI+PGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjYSkiLz48cGF0aCBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yOC4yNSAxMS44NDRhMi4yMzIgMi4yMzIgMCAwIDEgMCAzLjE1NkwxNy41ODggMjUuNjYyYTIuMzggMi4zOCAwIDAgMS0zLjM2NiAwbC01LjY0NC01LjY0NGEyLjIzMiAyLjIzMiAwIDAgMSAzLjE1Ni0zLjE1NWw0LjE3IDQuMTcgOS4xOS05LjE4OWEyLjIzMiAyLjIzMiAwIDAgMSAzLjE1NiAwWiIgY2xpcHAtcnVsZT0iZXZlbm9kZCIvPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9IjMxLjcxNCIgeDI9Ii0zLjczMSIgeTE9Ii44NTciIHkyPSIxMS44MzkiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZCNzRBIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkQ5MDBGIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PC9zdmc+");
}
.info-content { min-width: 0; }
.info-name { font-weight: 600; font-size: 14px; color: var(--gray-8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-data { font-size: 12px; color: var(--gray-5); margin-top: 2px; }
.info-data .sep { margin: 0 5px; opacity: .6; }

/* 标题（3 行截断）+ 摘要（3 行截断） */
.item-desc { display: block; }
.post-title {
  font-family: var(--font-title);
  font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--gray-8);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal;
  transition: color .2s;
}
.item-desc:hover .post-title { color: var(--blue); }
.item-badge {
  position: relative; top: -1px; display: inline-block; margin-right: 6px;
  font-size: 12px; line-height: 1.2; padding: 2px 4px; border-radius: 4px;
  background-image: linear-gradient(135deg, #ff2f43, #ff6327); color: #fff;
}
.item-badge.points { background-image: linear-gradient(135deg, #ff952f, #ff662b); }
.item-badge.code { background-image: linear-gradient(135deg, #7c3aed, #9333ea); }
/* 付费下载与付费阅读统一样式与配色 */
.item-badge.dl { background-image: linear-gradient(135deg, #ff952f, #ff662b); }
.post-excerpt {
  color: var(--gray-6); font-size: 14px; line-height: 1.75; margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal;
}
@media (min-width: 768px) { .post-excerpt { margin-top: 8px; } }

/* 图集：66.667% 宽、两列 1:1 方图、hover 放大旋转 + 全屏图标 */
.item-images {
  position: relative; overflow: hidden; width: 100%;
  border-radius: var(--radius-sm);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin-top: 8px;
}
@media (min-width: 768px) { .item-images { gap: 6px; margin-top: 12px; } }
.item-images .media { position: relative; display: block; overflow: hidden; background: rgba(120, 120, 120, .1); }
.item-images .media::after { content: ""; display: block; padding-top: 100%; }
.item-images .media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: all .3s ease-in-out;
}
.item-images .media:hover img { transform: scale(1.1) rotate(2deg); }
.hover-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0, 0, 0, .65);
  opacity: 0; visibility: hidden; transition: .3s;
}
.hover-content svg { width: 22px; height: 22px; transform: translateY(10px); transition: .3s; }
.item-images .media:hover .hover-content,
.item-poster:hover .hover-content { opacity: 1; visibility: visible; }
.item-images .media:hover .hover-content svg,
.item-poster:hover .hover-content svg { transform: translateY(0); }

/* 单图海报：全宽 3:2，hover 遮罩 + 全屏图标（与图集一致） */
.item-poster { display: block; position: relative; overflow: hidden; border-radius: var(--radius-sm); margin-top: 12px; background: rgba(120, 120, 120, .1); }
.item-poster::after { content: ""; display: block; padding-top: 66.67%; }
.item-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: all .3s ease-in-out; }
.item-poster:hover img { transform: scale(1.1) rotate(2deg); }

/* 个性标签：分类（蓝渐变标签图标）+ 标签（红渐变 # 图标），浅灰胶囊、单行横向滚动 */
.item-tags {
  display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 12px;
  overflow-x: auto; scrollbar-width: none; list-style: none; padding: 0; margin-bottom: 0;
}
.item-tags::-webkit-scrollbar { display: none; }
.item-tags li { white-space: nowrap; flex-shrink: 0; }
.item-tags li a {
  display: flex; align-items: center; gap: 6px;
  color: var(--gray-5); background: var(--gray-1);
  padding: 4px 12px 4px 10px; border-radius: 30px; font-size: 12px; line-height: 1.6;
  transition: color .2s;
}
.item-tags li a::before {
  content: ""; flex-shrink: 0;
  width: 20px; height: 15px;
  background-position: center; background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI2MCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTAgMzBDMCAxMy40MzEgMTMuNDMxIDAgMzAgMGgyMGMxNi41NjkgMCAzMCAxMy40MzEgMzAgMzAgMCAxNi41NjktMTMuNDMxIDMwLTMwIDMwSDMwQzEzLjQzMSA2MCAwIDQ2LjU2OSAwIDMwWiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik01MS43MTcgMjcuNjk0YTUuMDgzIDUuMDgzIDAgMCAxLTcuMTg4IDBsLTEuOTk2LTEuOTk3YTUuMDgzIDUuMDgzIDAgMCAxIDAtNy4xODhsMS45OTYtMS45OTdhNS4wODMgNS4wODMgMCAwIDEgNy4xODggMGwxLjk5NyAxLjk5N2E1LjA4MyA1LjA4MyAwIDAgMSAwIDcuMTg4bC0xLjk5NyAxLjk5N1ptLTEzLjgyMS00LjE4YTUuMDgzIDUuMDgzIDAgMCAxLTUuMDgzIDUuMDg0SDI5Ljk5YTUuMDgzIDUuMDgzIDAgMCAxLTUuMDgyLTUuMDgzVjIwLjY5YTUuMDgzIDUuMDgzIDAgMCAxIDUuMDgyLTUuMDgzaDIuODI0YTUuMDgzIDUuMDgzIDAgMCAxIDUuMDgzIDUuMDgzdjIuODI0Wm0xNi43MjIgMTYuMzY3YTUuMDgzIDUuMDgzIDAgMCAxLTUuMDgzIDUuMDgzaC0yLjgyNGE1LjA4MyA1LjA4MyAwIDAgMS01LjA4Mi01LjA4M3YtMi44MjRhNS4wODMgNS4wODMgMCAwIDEgNS4wODItNS4wODNoMi44MjRhNS4wODMgNS4wODMgMCAwIDEgNS4wODMgNS4wODN2Mi44MjRabS0xNi43MjIgMGE1LjA4MyA1LjA4MyAwIDAgMS01LjA4MyA1LjA4M0gyOS45OWE1LjA4MyA1LjA4MyAwIDAgMS01LjA4Mi01LjA4M3YtMi44MjRhNS4wODMgNS4wODMgMCAwIDEgNS4wODItNS4wODNoMi44MjRhNS4wODMgNS4wODMgMCAwIDEgNS4wODMgNS4wODN2Mi44MjRaIi8+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCIgeDI9IjgwIiB5MT0iMjkuMTQzIiB5Mj0iMjkuMTQzIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iIzMyQUNGRiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzEzOTRGMiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjwvc3ZnPg==");
}
.item-tags li a.istag::before {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI2MCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTAgMzBDMCAxMy40MzEgMTMuNDMxIDAgMzAgMGgyMGMxNi41NjkgMCAzMCAxMy40MzEgMzAgMzAgMCAxNi41NjktMTMuNDMxIDMwLTMwIDMwSDMwQzEzLjQzMSA2MCAwIDQ2LjU2OSAwIDMwWiIvPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik01Ni42MTQgMjYuMzAzSDI2Ljc4Yy0yLjAzNCAwLTMuMzktMS42OTUtMy4zOS0zLjM5czEuNjk1LTMuMzkgMy4zOS0zLjM5aDI5LjQ5NWMyLjAzNCAwIDMuMzkgMS42OTUgMy4zOSAzLjM5cy0xLjAxNyAzLjM5LTMuMDUxIDMuMzlaIi8+PGcgZmlsdGVyPSJ1cmwoI2IpIj48cGF0aCBmaWxsPSJ1cmwoI2MpIiBkPSJNMzEuMTg4IDQ4aC0uNjc4Yy0yLjAzNS0uMzM5LTMuMDUyLTIuMDM0LTIuNzEzLTQuMDY4bDUuMDg2LTI5LjE1NmMuMzM5LTIuMDM0IDIuMDM0LTMuMDUgNC4wNjgtMi43MTIgMi4wMzQuMzQgMy4wNTEgMi4wMzQgMi43MTIgNC4wNjhsLTUuMDg1IDI5LjE1NmMtLjM0IDEuNjk1LTEuNjk1IDIuNzEyLTMuMzkgMi43MTJabTEyLjIwNCAwaC0uNjc4Yy0yLjAzNC0uMzM5LTMuMDUxLTIuMDM0LTIuNzEyLTQuMDY4bDUuMDg1LTI5LjE1NmMuMzQtMi4wMzQgMi4wMzQtMy4wNSA0LjA2OC0yLjcxMiAyLjAzNS4zNCAzLjA1MiAyLjAzNCAyLjcxMyA0LjA2OGwtNS4wODYgMjkuMTU2QzQ2LjQ0MyA0Ni45ODMgNDUuMDg3IDQ4IDQzLjM5MiA0OFoiLz48L2c+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTUyLjg4NSA0MC41NDJIMjMuMzljLTIuMDM0IDAtMy4zOS0xLjY5Ni0zLjM5LTMuMzkgMC0xLjY5NiAxLjY5NS0zLjM5IDMuMzktMy4zOWgyOS40OTVjMi4wMzQgMCAzLjM5IDEuNjk0IDMuMzkgMy4zOSAwIDEuNjk0LTEuMzU2IDMuMzktMy4zOSAzLjM5WiIvPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9IjAiIHgyPSI4MCIgeTE9IjI5LjE0MyIgeTI9IjI5LjE0MyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNGRTZGNjYiLz48c3RvcCBvZmZzZXQ9Ii45OTQiIHN0b3AtY29sb3I9IiNGRDUwNDMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYyIgeDE9IjM5LjgzMyIgeDI9IjM5LjgzMyIgeTE9IjEyIiB5Mj0iNDgiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRjFGMUYxIi8+PC9saW5lYXJHcmFkaWVudD48ZmlsdGVyIGlkPSJiIiB3aWR0aD0iMzQuMTk5IiBoZWlnaHQ9IjQ2IiB4PSIyMi43MzMiIHk9IjciIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPjxmZUNvbG9yTWF0cml4IGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJoYXJkQWxwaGEiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiLz48ZmVPZmZzZXQvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuNSIvPjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xIDAiLz48ZmVCbGVuZCBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfNDA3XzYyIi8+PGZlQmxlbmQgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzQwN182MiIgcmVzdWx0PSJzaGFwZSIvPjwvZmlsdGVyPjwvZGVmcz48L3N2Zz4=");
}
.item-tags li a:hover { color: var(--gray-8); }
@media (max-width: 767px) {
  .item-tags li a { padding: 2px 10px 2px 7px; }
}

/* 底部操作栏：均分排布，线性图标 + 数字 */
.item-actions { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
@media (min-width: 768px) { .item-actions { margin-top: 16px; } }
.item-actions .act {
  position: relative;
  flex: 1; max-width: 96px; justify-content: center; /* 等宽按钮：数量文字长短不一也保持对齐 */
  display: flex; align-items: center; gap: 6px;
  color: var(--gray-5); font-size: 13px; line-height: 1;
  padding: 6px 8px; border-radius: 30px; cursor: pointer;
  transition: color .2s, background .2s, transform .15s;
  user-select: none;
}
.item-actions .act:hover { background: rgba(120, 120, 120, .08); }
.item-actions .act:active { transform: scale(.9); }
.item-actions .act svg { width: 19px; height: 19px; flex-shrink: 0; transition: transform .2s; }
.item-actions .act:hover svg { transform: scale(1.12); }
.item-actions .act .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 各图标专属色 */
.item-actions .act-view:hover { color: #3b82f6; }
.item-actions .act-comment:hover { color: #10b981; }
.item-actions .act-like:hover { color: #ff2f43; }
.item-actions .act-fav:hover { color: #ff952f; }
.item-actions .act-share:hover { color: #8b5cf6; }
/* 点亮态：填充 + 弹跳 */
.item-actions .act.liked { color: #ff2f43; }
.item-actions .act.liked svg { fill: #ff2f43; stroke: #ff2f43; }
.item-actions .act.faved { color: #ff952f; }
.item-actions .act.faved svg { fill: #ff952f; stroke: #ff952f; }
.item-actions .act.pop svg { animation: act-pop .35s ease; }
@keyframes act-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.45) rotate(-8deg); }
  70% { transform: scale(.9); }
  100% { transform: scale(1); }
}
/* ---------- 分享弹出层 ---------- */
.share-pop {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
  padding: 10px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 30; white-space: nowrap;
}
.share-pop.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.share-arrow {
  position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background: var(--card-bg);
  border-right: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
}
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.share-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 46px; padding: 8px 0 6px; border-radius: 10px; cursor: pointer;
  color: var(--gray-6); transition: background .2s, color .2s, transform .15s;
}
.share-item:hover { background: rgba(120, 120, 120, .08); transform: translateY(-2px); }
.share-item:active { transform: scale(.92); }
.share-item svg { width: 22px; height: 22px; }
.share-item em { font-style: normal; font-size: 11px; }
.si-weibo svg { color: #e6162d; }
.si-qzone svg { color: #fece00; }
.si-qq svg { color: #12b7f5; }
.si-wechat svg { color: #09bb07; }
.si-copy svg { color: var(--gray-6); }
.share-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 2px 2px; }
.share-qr img { width: 132px; height: 132px; border-radius: 8px; background: #f3f4f6; }
.share-qr em { font-style: normal; font-size: 12px; color: var(--gray-6); }

/* 文章详情页/侧栏仍在用的通用类 */
.post-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-stats { display: flex; gap: 14px; color: var(--gray-5); font-size: 12.5px; white-space: nowrap; }
.post-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  border-radius: var(--radius-sm); overflow: hidden;
}
.post-gallery a { aspect-ratio: 16/10; overflow: hidden; }
.post-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-gallery a:hover img { transform: scale(1.06); }
.load-more-wrap { text-align: center; margin: 22px 0 8px; min-height: 40px; }
.load-more-wrap .btn { padding: 8px 32px; }
.load-more-wrap .btn.loading { display: none; }

/* 加载态一律不加视觉指示（骨架屏 / 扫光条 / 悬浮 toast 全部移除）：
   与参考站 Alright 一致——滚动到底直接插入新文章，由卡片自身的 zoom-in 入场动画
   提供"新内容出现"的感知。 */

/* 新文章入场：完全对齐参考站 AOS zoom-in
   参考站真实标记：data-aos="zoom-in" data-aos-duration="400"
   AOS 的 zoom-in = opacity 0 + scale(.6) 起步，进入视口后 400ms ease 放大回原尺寸。
   之前用的是 scale(.92)，幅度太小几乎看不出"弹出"，这里按原值放大到 .6。 */
.post-card.card-aos { opacity: 0; transform: scale(.6) translateZ(0); }
.card-zoom { animation: card-pop .4s ease both; }
.post-card.card-aos.card-zoom { opacity: 1; animation: card-pop .4s ease both; }
.post-card.card-shown { animation: none !important; opacity: 1 !important; transform: none !important; }
@keyframes card-pop {
  0% { opacity: 0; transform: scale(.6) translateZ(0); }
  100% { opacity: 1; transform: scale(1) translateZ(0); }
}
/* 卡片入场是唯一保留的动效，不再有 shimmer / 扫光 / 圆环需要在此关闭。
   注意：卡片入场动画**不**放进 reduced-motion 的关闭清单——
   它是一次性的 0.4s 入场，不是循环装饰；系统关闭"显示动画"时若连它也关掉，
   效果就完全消失（卡片直接闪现），这正是"看不到特效"的原因之一。 */

/* ============================================================
   整页区块入场（对齐参考站全站 AOS zoom-in）
   参考站首页除文章卡外，侧栏 widget、页脚等几乎所有区块都带
   data-aos="zoom-in"（duration 600~800），整页载入时依次弹出。
   这里同步同一行为：html.js-reveal 由 header 内联脚本在首帧前打上，
   元素以 opacity:0 + scale(.94) 起始；进入视口后播放 page-pop。
   ============================================================ */
html.js-reveal .page-head,
html.js-reveal .post-detail,
html.js-reveal .aside-left > .box-card,
html.js-reveal .aside-right > .box-card,
html.js-reveal .archive-group,
html.js-reveal .site-footer .container > * {
  opacity: 0;
  transform: scale(.6) translateZ(0);
}
.rv-in { animation: page-pop .6s ease both; }
.rv-done { animation: none !important; opacity: 1 !important; transform: none !important; }
@keyframes page-pop {
  0% { opacity: 0; transform: scale(.6) translateZ(0); }
  100% { opacity: 1; transform: scale(1) translateZ(0); }
}
.empty-state {
  text-align: center; color: var(--gray-5); padding: 60px 20px; font-size: 14px;
}
.empty-state.small { padding: 20px; }

/* ---------- 列表页头 ---------- */
.page-head { padding: 8px 4px 4px; background: transparent; border: none; box-shadow: none; }
.page-head h1 { font-family: var(--font-title); font-size: 24px; font-weight: 700; color: var(--gray-8); }
.page-head p { font-size: 14px; color: var(--gray-5); margin-top: 4px; }

/* ---------- 归档 ---------- */
.archive-group { margin-bottom: 20px; }
.archive-ym { font-family: var(--font-title); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.archive-ym small { color: var(--gray-5); font-weight: 400; }
.archive-list { list-style: none; }
.archive-list li {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-bottom: 1px dashed var(--gray-3); font-size: 14.5px;
  transition: background .2s, padding-left .2s;
}
.archive-list li:hover { background: var(--card-bg); padding-left: 10px; border-radius: var(--radius-sm); }
.archive-list li:last-child { border-bottom: none; }
.archive-date { color: var(--gray-5); font-size: 12.5px; font-family: Consolas, monospace; }
.archive-list a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archive-list a:hover { color: var(--blue); }
.archive-cat { font-style: normal; font-size: 12px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 1px 8px; }
.archive-views { color: var(--gray-5); font-size: 12px; }

/* ---------- 友链 ---------- */
.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.link-card {
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius-md); padding: 16px;
  transition: transform .25s, box-shadow .25s;
}
.link-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.link-logo {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--blue);
  color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  transition: transform .3s;
}
.link-card:hover .link-logo { transform: rotate(-6deg) scale(1.08); }
.link-info b { display: block; font-size: 14.5px; }
.link-info i { font-style: normal; font-size: 12.5px; color: var(--gray-5); }
.links-apply h3 { font-family: var(--font-title); font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.links-apply p { font-size: 14px; color: var(--gray-6); }

/* ---------- 文章详情 ---------- */
.article-page,
.article-page button,
.article-page input,
.article-page textarea,
.article-page select {
  font-family: var(--font-title);
}
.article-page code,
.article-page pre,
.article-page pre code {
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
}
.post-detail { padding: 28px 32px; }
.detail-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--gray-5); flex-wrap: wrap; }
.detail-title {
  font-family: var(--font-title);
  font-size: 26px; font-weight: 700; line-height: 1.5; color: var(--gray-8); margin-bottom: 14px;
}
.detail-info {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-bottom: 18px; border-bottom: 1px solid var(--gray-3); font-size: 13.5px;
}
.detail-info .cat-chip {
  color: var(--blue); background: var(--blue-soft);
  border-radius: var(--radius-sm); padding: 2px 10px; font-size: 13px; font-weight: 500;
  transition: .2s;
}
.detail-info .cat-chip:hover { background: var(--blue); color: #fff; }
.detail-info .post-stats { margin-left: auto; }
.detail-cover { border-radius: var(--radius-sm); overflow: hidden; margin: 18px 0; }
.detail-gallery { margin: 18px 0; }
.detail-gallery img { height: 150px; }
.detail-content { margin-top: 18px; }
.article-bottom-info {
  margin: 30px -32px -28px;
  padding-top: 1px;
  border-top: 1px solid var(--gray-3);
  background: var(--card-bg);
}
.article-source-note {
  margin: 20px 20px 0;
  padding: 15px 14px;
  border: 1px solid var(--gray-3);
  border-radius: var(--radius-sm);
  background: var(--gray-1);
  color: var(--gray-6);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.article-source-note a { color: var(--blue); }
.article-source-note a:hover { text-decoration: underline; }
.article-like-row { display: flex; justify-content: center; padding: 28px 20px 26px; }
.article-like-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 139px; height: 42px; padding: 0 22px;
  border: 1px solid var(--blue); border-radius: 5px;
  background: var(--card-bg); color: var(--blue); font-size: 15px;
  transition: background .2s, color .2s, transform .15s;
}
.article-like-button svg { width: 18px; height: 18px; }
.article-like-button b { font-weight: 500; }
.article-like-button:hover,
.article-like-button.liked { background: var(--blue); color: #fff; }
.article-like-button:active { transform: scale(.96); }
.article-author-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 62px; padding: 10px 20px;
  border-top: 1px solid var(--gray-3);
}
.article-author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--blue); }
.article-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.article-author-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.article-vip-mark { color: #f4a900; font-size: 11px; font-style: normal; font-weight: 700; }
.article-admin-mark {
  padding: 2px 6px; border: 1px solid var(--blue); border-radius: 2px;
  color: var(--blue); font-size: 11px; font-style: normal; line-height: 1.25;
}
.article-author-actions { display: flex; align-items: center; gap: 0; color: var(--gray-5); }
.article-footer-action {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 0 10px; color: var(--gray-5); font-size: 12px;
  white-space: nowrap; cursor: pointer; transition: color .2s, transform .15s;
}
.article-footer-action svg { width: 17px; height: 17px; flex-shrink: 0; }
.article-footer-action:hover { color: var(--blue); }
.article-footer-action:active { transform: scale(.92); }
.article-footer-action.faved { color: #f59e0b; }
.article-footer-action.faved svg { fill: #f59e0b; stroke: #f59e0b; }
.article-action-divider { width: 1px; height: 20px; margin: 0 4px; background: var(--gray-4); opacity: .8; }
.article-author-actions .share-pop { bottom: calc(100% + 8px); }
.detail-locked { position: relative; max-height: 320px; overflow: hidden; }
.lock-overlay {
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(180deg, transparent, var(--lock-fade) 45%, var(--card-bg));
  display: flex; align-items: flex-end; justify-content: center;
}
.lock-box { text-align: center; padding-bottom: 8px; }
.lock-icon { font-size: 34px; display: block; animation: lock-pulse 2.2s ease-in-out infinite; }
@keyframes lock-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.lock-box h3 { font-family: var(--font-title); margin: 6px 0 4px; font-size: 17px; }
.lock-box p { font-size: 13.5px; color: var(--gray-6); margin-bottom: 14px; }
.like-bar {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--gray-3);
}
.like-btn, .share-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--gray-2); background: var(--gray-2); border-radius: var(--radius-sm);
  padding: 8px 24px; font-size: 14px; transition: .2s; color: var(--gray-6);
}
.like-heart { color: var(--red); transition: .2s; display: inline-block; }
.like-btn:hover, .share-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--card-bg); }
.like-btn.liked { background: var(--blue); border-color: var(--blue); color: #fff; }
.like-btn.liked .like-heart { color: #fff; animation: heart-pop .45s ease; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.6) rotate(-8deg); }
  70% { transform: scale(.9); }
  100% { transform: scale(1.12); }
}
.tag-lg { font-size: 13px; padding: 4px 12px; margin-right: 8px; }

.post-nav { display: flex; gap: 16px; margin-top: 16px; }
.post-nav-item {
  flex: 1; padding: 14px 16px; font-size: 14px; color: var(--gray-7);
  transition: .25s; overflow: hidden; border-radius: var(--radius-md);
}
.post-nav-item small { display: block; color: var(--gray-5); font-size: 12px; margin-bottom: 4px; }
.post-nav-item:hover { color: var(--blue); background: var(--card-bg); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-nav-item.next { text-align: right; }
.related h3 { font-family: var(--font-title); font-size: 15.5px; font-weight: 700; margin-bottom: 12px; }
.related-list { list-style: none; }
.related-list li {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--gray-3); font-size: 14.5px;
}
.related-list li:last-child { border-bottom: none; }
.related-list li:hover a { color: var(--blue); }
.related-list span { color: var(--gray-5); font-size: 12.5px; white-space: nowrap; }

/* ---------- Markdown 正文 ---------- */
.markdown { font-size: 16px; line-height: 1.9; color: var(--gray-7); word-break: break-word; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 {
  font-family: var(--font-title); margin: 26px 0 12px; font-weight: 700; color: var(--gray-8);
}
.markdown h2 { font-size: 21px; }
.markdown h3 { font-size: 18px; }
.markdown p { margin: 12px 0; }
.markdown ul, .markdown ol { padding-left: 26px; margin: 12px 0; }
.markdown li { margin: 6px 0; }
.markdown blockquote {
  margin: 16px 0; padding: 12px 18px; background: var(--blue-soft);
  border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; color: var(--gray-6);
}
.markdown code {
  background: var(--code-bg); border-radius: 4px; padding: 2px 6px;
  font-size: 14px; color: #d6336c;
}
.markdown pre {
  position: relative; background: #2b303b; color: #e6e9f2; border-radius: 6px;
  padding: 18px 54px 18px 20px; overflow-x: auto; margin: 16px 0; line-height: 1.65;
  border-bottom: 4px solid #414754;
}
.markdown pre code { display: block; background: transparent; color: #e6e9f2; padding: 0; font-size: 13px; white-space: pre; }
.markdown pre code.hljs { background: transparent; }
.markdown pre .hljs-comment, .markdown pre .hljs-quote { color: #8b929e; font-style: normal; }
.markdown pre .hljs-keyword, .markdown pre .hljs-selector-tag, .markdown pre .hljs-literal { color: #c792ea; }
.markdown pre .hljs-string, .markdown pre .hljs-attr, .markdown pre .hljs-attribute { color: #c3e88d; }
.markdown pre .hljs-title, .markdown pre .hljs-function, .markdown pre .hljs-name { color: #82aaff; }
.markdown pre .hljs-number, .markdown pre .hljs-symbol, .markdown pre .hljs-bullet { color: #f78c6c; }
.code-copy-button {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  color: #d8dbe2; background: rgba(255,255,255,.04); border: 1px solid #515764;
  border-radius: 5px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.code-copy-button:hover, .code-copy-button:focus-visible { color: #fff; background: rgba(255,255,255,.12); border-color: #858c98; }
.code-copy-button svg { width: 16px; height: 16px; }
.code-copy-button.is-copied { color: #c3e88d; border-color: #78945c; }
.markdown img { border-radius: var(--radius-sm); margin: 14px 0; transition: transform .3s; }
.markdown img:hover { transform: scale(1.01); }
.markdown a { color: var(--blue); border-bottom: 1px dashed rgba(56, 88, 246, .5); }
.markdown table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.markdown th, .markdown td { border: 1px solid var(--gray-3); padding: 8px 12px; font-size: 14px; }
.markdown th { background: var(--gray-1); }
.markdown hr { border: none; border-top: 1px dashed var(--gray-3); margin: 24px 0; }
@media (max-width: 600px) {
  .markdown pre { padding: 16px 48px 16px 14px; margin-right: -4px; margin-left: -4px; }
  .markdown pre code { font-size: 12px; }
  .code-copy-button { top: 8px; right: 8px; }
}

/* ---------- 评论区（1:1 对齐 wpcom JustNews） ---------- */
.comment-reply-title, .comments-title {
  font-size: 18px; font-weight: 500; margin: 0 0 20px;
  padding: 0 0 0 12px; position: relative;
}
.comment-reply-title:before, .comments-title:before {
  content: ""; position: absolute; left: 0; top: 1px; width: 3px;
  height: calc(100% - 2px); background: var(--blue); border-radius: 2px;
}
.comment-form textarea {
  width: 100%; display: block; border: 1px solid var(--gray-3); border-radius: 8px;
  background: var(--gray-1); padding: 12px 14px; font-size: 14px; outline: none;
  transition: .2s; font-family: inherit; color: var(--gray-8); resize: vertical;
}
.comment-form textarea:focus { border-color: var(--blue); background: var(--card-bg); }
.comment-login-tip { font-size: 13px; color: var(--gray-5); margin: 0 0 10px; }
.comment-login-tip b { color: var(--gray-7); font-weight: 500; }
/* 人机验证预留挂载点：极验组件渲染前不占位，渲染后位于输入框与提交行之间 */
.comment-captcha-slot { margin: 10px 0 0; display: flex; justify-content: flex-start; }
.comment-captcha-slot:empty { display: none; }
/* 内置验证码行：图片 + 刷新 + 输入框（默认模式） */
.comment-captcha-row { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.comment-captcha-row .captcha-img { border: 1px solid var(--gray-3); border-radius: 6px; background: #fff; cursor: pointer; display: block; }
.comment-captcha-row .captcha-refresh {
  width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--gray-3); border-radius: 6px;
  background: var(--gray-1); color: var(--gray-6); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.comment-captcha-row .captcha-refresh:hover { color: var(--blue); border-color: var(--blue); background: var(--card-bg); }
.comment-captcha-row .captcha-input {
  flex: 1; min-width: 0; height: 40px; border: 1px solid var(--gray-3); border-radius: 6px;
  background: var(--gray-1); padding: 0 12px; font-size: 14px; color: var(--gray-8);
  outline: none; transition: .2s; font-family: inherit; letter-spacing: 2px;
}
.comment-captcha-row .captcha-input:focus { border-color: var(--blue); background: var(--card-bg); }
.comment-must-login {
  min-height: 110px; border: 1px solid var(--gray-3); border-radius: 8px;
  background: var(--gray-1); padding: 12px 14px; font-size: 14px; color: var(--gray-5);
}
.form-submit { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.form-submit-text { font-size: 13px; color: var(--gray-5); }
.form-submit-text a { color: var(--blue); }
.replying-tip { font-size: 13px; color: var(--gray-6); }
.replying-tip b { color: var(--gray-7); font-weight: 500; }
.replying-tip a { color: var(--blue); margin-left: 6px; }
.submit-btn {
  border: none; cursor: pointer; background: var(--blue); color: #fff;
  border-radius: 6px; padding: 8px 26px; font-size: 13px; transition: background .2s;
}
.submit-btn:hover { background: var(--blue-hover); }
.comments-title { margin-top: 34px; }
.comments-list { list-style: none; margin: 0; padding: 0; }
.comments-list .comment { border-bottom: 1px solid var(--gray-3); margin: 0; padding: 15px 0; }
.comments-list .comment:last-child { border-bottom: none; }
.comment-inner { display: flex; position: relative; }
.comment-author { width: 40px; margin-right: 15px; flex-shrink: 0; }
.comment-author img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.comment-body { flex: 1; min-width: 0; }
.comment-body .nickname {
  font-size: 14px; font-weight: 500; line-height: 20px; color: var(--gray-8);
  margin: 0 0 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px;
}
.comment-body .nickname b { font-weight: 500; }
.comment-body .nickname .meta-loc { font-size: 12px; color: var(--gray-5); font-style: normal; }
.comment-body .comment-time { font-size: 12px; color: var(--gray-5); font-weight: 400; }
.comment-text { font-size: 14px; line-height: 1.6; color: var(--gray-7); white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { position: absolute; right: 0; top: 0; line-height: 20px; visibility: hidden; }
.comment-inner:hover .reply, .comment-inner:focus-within .reply { visibility: visible; }
@media (hover: none) { .reply { visibility: visible; } }
.reply a { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-5); text-decoration: none; }
.reply a:hover { color: var(--blue); }
.reply .fa-regular { font-size: 13px; }
.comment-children {
  list-style: none; margin: 12px 0 0 55px; padding: 4px 14px;
  background: rgba(56, 88, 246, .04); border-radius: 10px; position: relative;
}
.comment-children:before {
  content: ""; position: absolute; left: 15px; top: -9px;
  border: 9px solid transparent; border-bottom: 10px solid rgba(56, 88, 246, .04);
}
body[data-scheme="dark"] .comment-children { background: rgba(109, 134, 255, .07); }
body[data-scheme="dark"] .comment-children:before { border-bottom-color: rgba(109, 134, 255, .07); }
.comment-children .comment { border-bottom: 1px dashed var(--gray-3); padding: 8px 0; margin: 0; }
.comment-children .comment:last-child { border-bottom: none; }
.comment-children .comment-author { width: 24px; margin-right: 10px; }
.comment-children .comment-author img { width: 24px; height: 24px; }
.comment-children .comment-body .nickname { line-height: 24px; margin: 0; }
.comment-children .comment-body .comment-text { color: var(--gray-6); }

.comment-children .comment-body .comment-text { color: var(--gray-6); }

/* ==================== 海报推广弹窗（1:1 对齐 wpcom 生成海报） ==================== */
.poster-modal {
  position: fixed; inset: 0; z-index: 99998;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.poster-modal.show { opacity: 1; visibility: visible; transition-delay: 0s; }
.poster-card {
  width: 400px; max-width: 94vw; max-height: calc(100vh - 60px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .35);
  transform: translateY(18px) scale(.95);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.poster-modal.show .poster-card { transform: translateY(0) scale(1); }
.poster-scroll { flex: 1; overflow-y: auto; border-radius: 18px 18px 0 0; background: #fff; }
.poster-canvas { display: block; width: 100%; height: auto; }
.poster-status {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .8); color: var(--gray-5); font-size: 14px; z-index: 2;
  border-radius: 18px 18px 0 0;
}
.poster-actions {
  display: flex; gap: 14px; justify-content: center;
  padding: 14px; background: #fff; border-radius: 0 0 18px 18px;
  border-top: 1px solid var(--gray-2);
}
.poster-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border-radius: 999px; padding: 9px 28px; font-size: 14px;
  border: 1px solid var(--gray-3); background: var(--gray-1); color: var(--gray-6);
  transition: all .2s;
}
.poster-btn:hover { color: var(--blue); border-color: var(--blue); background: var(--card-bg); }
.poster-btn.dl {
  background: linear-gradient(135deg, #4fb2ff, #2b7fff); border: none; color: #fff;
  box-shadow: 0 6px 16px rgba(43, 127, 255, .35);
}
.poster-btn.dl:hover { background: linear-gradient(135deg, #4fb2ff, #2b7fff); filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.poster-btn[disabled] { opacity: .55; cursor: not-allowed; }
body[data-scheme="dark"] .poster-card { background: #23262f; }
body[data-scheme="dark"] .poster-actions { background: #23262f; border-top-color: #3d4354; }
body[data-scheme="dark"] .poster-btn { background: #2c313d; border-color: #3d4354; color: #b3bacb; }
body[data-scheme="dark"] .poster-btn:hover { color: #86a5ff; border-color: #6d86ff; background: #2c313d; }
textarea.form-input, input.form-input, select.form-input {
  width: 100%; border: 1px solid var(--gray-3); border-radius: var(--radius-sm);
  background: var(--gray-1); padding: 10px 14px; font-size: 14px; outline: none;
  transition: .2s; font-family: inherit; color: var(--gray-8);
}
textarea.form-input:focus, input.form-input:focus, select.form-input:focus {
  border-color: var(--blue); background: var(--card-bg); box-shadow: 0 0 0 3px var(--blue-soft);
}
textarea.form-input { resize: vertical; margin-top: 8px; }

/* ---------- 认证页 ---------- */
.auth-page { background: var(--gray-1); }
.auth-wrap { max-width: 420px; margin: 56px auto 80px; padding: 0 16px; position: relative; z-index: 1; }
.auth-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 32px 30px; box-shadow: var(--shadow);
  animation: rise-in .5s ease both;
}
@keyframes rise-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.auth-card h1 { font-family: var(--font-title); font-size: 22px; font-weight: 700; }
.auth-sub { font-size: 13.5px; color: var(--gray-5); margin: 6px 0 20px; }
.form-label { display: block; font-size: 13px; color: var(--gray-6); margin: 14px 0 6px; }
.auth-card .btn-block { margin-top: 22px; }
.auth-alt { text-align: center; font-size: 13.5px; margin-top: 16px; color: var(--gray-6); }
.auth-alt a { color: var(--blue); }
.auth-tip {
  margin-top: 16px; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 12.5px; background: var(--gray-1); color: var(--gray-5); text-align: center;
}
.auth-tip code { color: var(--blue); }

/* ---------- 分页 ---------- */
.pager { margin: 20px 0; }
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; flex-wrap: wrap; }
.pagination li a, .pagination li span {
  display: inline-block; min-width: 34px; text-align: center; padding: 6px 10px;
  background: var(--card-bg); border: 1px solid var(--gray-3); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--gray-6); transition: .2s;
}
.pagination li.active span { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination li a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.site-footer { padding: 26px 0 34px; text-align: center; position: relative; z-index: 1; }
.site-footer p { font-size: 13px; color: var(--gray-6); }
.footer-icp { margin-top: 4px; font-size: 12px; color: var(--gray-5); }
.back-top {
  position: fixed; right: 24px; bottom: 24px; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--gray-3); background: var(--card-bg); cursor: pointer;
  font-size: 16px; color: var(--gray-6); box-shadow: 0 6px 16px rgba(27, 26, 49, .10);
  display: none; z-index: 99; transition: .25s;
}
.back-top.show { display: block; animation: rise-in .3s ease both; }
.back-top:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .aside-left { display: none; }
}
@media (max-width: 992px) {
  .layout { flex-direction: column; }
  .aside-right { width: 100%; order: 2; }
  .aside-right .box-card { display: inline-block; width: calc(50% - 8px); margin-right: 8px; vertical-align: top; }
  .aside-right .box-card:nth-of-type(2n) { margin-right: 0; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--card-bg); flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--gray-3); padding: 10px 16px;
    box-shadow: 0 10px 30px rgba(27, 26, 49, .10);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
  .nav-toggle { display: block; }
  .header-search { display: none; }
}
@media (max-width: 640px) {
  .aside-right .box-card { width: 100%; margin-right: 0; }
  .post-detail { padding: 20px; }
  .article-bottom-info { margin-left: -20px; margin-right: -20px; margin-bottom: -20px; }
  .article-source-note { margin-left: 14px; margin-right: 14px; font-size: 12px; }
  .article-author-bar { padding-left: 14px; padding-right: 14px; }
  .article-author-actions { gap: 0; }
  .article-footer-action { padding-left: 6px; padding-right: 6px; }
  .article-footer-action.act-share > span:not(.share-pop) { display: none; }
  .detail-title { font-size: 21px; }
  .links-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .post-nav { flex-direction: column; }
  .banner-slide img { height: 190px; }
  .banner-scrim h3 { font-size: 17px; }
  .logo { font-size: 19px; }
}

/* Blog-only layout; tools and member pages retain their existing layout. */
.blog-page .header-inner { flex-wrap:wrap; height:auto; min-height:76px; gap:12px; padding-top:10px; padding-bottom:10px; }
.blog-page .header-actions { flex-wrap:wrap; min-width:0; }
.blog-page .nav { flex-wrap:wrap; }
.blog-layout .item-actions, .blog-layout .item-tags { flex-wrap:wrap; }
.blog-layout .item-tags li { max-width:100%; white-space:normal; }
@media (max-width:640px) {
  .blog-page .header-inner { padding-left:12px; padding-right:12px; }
  .blog-page .header-actions { gap:5px; }
  .blog-page .header-actions .icon-btn { width:30px; }
  .panel-btn { min-height: 44px; padding-left: 12px; padding-right: 12px; }
}

.container.layout.blog-layout { width:100%; max-width:1240px; }
.container.layout.blog-layout.layout-wide { max-width:1400px; }
.layout.blog-layout { display:grid; grid-template-columns:minmax(0,1fr) clamp(300px,25vw,340px); gap:24px; }
.layout.blog-layout-three { grid-template-columns:260px minmax(0,1fr) 300px; }
.blog-layout > .content, .blog-layout > .aside-right, .blog-layout > .aside-left { width:100%; min-width:0; overflow-wrap:anywhere; }
.blog-layout > .aside-left { display:block; position:static; }
/* Stack rather than hide the original left column: account and tag links remain accessible. */
@media (max-width:1180px) {
  .layout.blog-layout-three { grid-template-columns:minmax(0,1fr); }
  .blog-layout-three > .content { order:0; }
  .blog-layout-three > .aside-left { order:1; }
  .blog-layout-three > .aside-right { order:2; }
}
.blog-layout .aside-right > .aside-left { display:block; width:100%; position:static; }
.blog-layout .aside-right .box-card { display:block; width:100%; margin-right:0; }
.blog-layout .aside-right .profile-stats .box-card { width:auto; }
.blog-layout img, .blog-layout video, .blog-layout iframe { max-width:100%; }
.blog-layout pre { max-width:100%; overflow-x:auto; white-space:pre; }
.blog-layout table { display:block; max-width:100%; overflow-x:auto; }
.blog-layout :is(pre,code,kbd,samp,pre *,code *) { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
@media (max-width:992px) {
  .layout.blog-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
  .blog-layout > .aside-right { order:2; }
}
@media (max-width:640px) {
  .container.blog-layout { padding-left:12px; padding-right:12px; }
  .blog-layout .post-detail { padding:16px; }
  .blog-layout .article-bottom-info { margin-left:-16px; margin-right:-16px; margin-bottom:-16px; }
  .blog-layout .post-title, .blog-layout .detail-title { overflow-wrap:anywhere; }
}

/* 登录后面板的按钮区（面板以按钮结尾，需要底部留白） */
.user-btns.panel-btns { padding: 0 22px 24px; margin-top: 14px; }
/* ---------- 弹窗登录 / 注册 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 18, 28, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.show { opacity: 1; }
.auth-modal {
  width: 380px; max-width: 100%;
  background: var(--card-bg); border-radius: 16px; overflow: hidden;
  position: relative; box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  transform: translateY(28px) scale(.9); opacity: 0;
  transition: transform .38s cubic-bezier(.34, 1.56, .64, 1), opacity .22s ease;
}
.modal-overlay.show .auth-modal { transform: none; opacity: 1; }
.auth-modal.shake { animation: modal-shake .4s ease; }
@keyframes modal-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.modal-banner { height: 92px; }
.modal-banner img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .9); color: var(--gray-7);
  font-size: 14px; cursor: pointer; transition: .2s;
}
.modal-close:hover { background: #fff; transform: rotate(90deg); }
.modal-tabs {
  display: flex; gap: 4px; margin: 16px 24px 0;
  background: var(--gray-1); border-radius: 10px; padding: 4px;
}
.modal-tab {
  flex: 1; padding: 8px 0; border: none; border-radius: 8px;
  background: transparent; font-size: 14.5px; cursor: pointer;
  color: var(--gray-5); transition: .25s; font-family: inherit;
}
.modal-tab.active {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 10px rgba(56, 88, 246, .3);
}
.modal-form { display: none; flex-direction: column; gap: 10px; padding: 18px 24px 24px; }
.modal-form.active { display: flex; }
.modal-form .form-input { animation: rise-in .4s ease both; }
.modal-form .form-input:nth-child(2) { animation-delay: .05s; }
.modal-form .form-input:nth-child(3) { animation-delay: .1s; }
.modal-form .form-input:nth-child(4) { animation-delay: .15s; }
.modal-error {
  display: none; font-size: 12.5px; color: var(--red);
  background: rgba(255, 62, 62, .08); border-radius: 6px; padding: 6px 10px;
}
.modal-error.show { display: block; animation: drop-in .25s ease both; }
.modal-tip { font-size: 12px; color: var(--gray-5); text-align: center; margin: 2px 0 0; }
.img-btn.pumping { animation: bounce .45s ease; }
/* ---------- 个人中心页 ---------- */
.uc-wrap { padding-bottom: 40px; }
.uc-head { padding: 0; overflow: hidden; }
.uc-banner { height: 170px; }
.uc-banner img { width: 100%; height: 100%; object-fit: cover; }
.uc-head-body {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 0 24px 20px; margin-top: -34px; position: relative;
}
.uc-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  box-shadow: 0 6px 16px rgba(27, 26, 49, .14);
  flex-shrink: 0;
}
.uc-id { flex: 1; min-width: 0; padding-top: 40px; }
.uc-id h1 {
  font-family: var(--font-title); font-size: 21px; font-weight: 700;
  color: var(--gray-8); display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.uc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.uc-chip {
  font-size: 12px; color: var(--gray-6); background: var(--gray-2);
  border-radius: var(--radius-max); padding: 3px 11px;
}
.uc-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-top: 44px; }
.uc-actions .checkin-btn { position: static; }
.uc-bell {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gray-1); display: inline-flex; align-items: center;
  justify-content: center; font-size: 17px; transition: .2s;
}
.uc-bell:hover { background: var(--gray-2); transform: scale(1.06); }
.bell-badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px;
  background: var(--red); color: #fff; font-size: 10.5px; font-style: normal;
  border-radius: var(--radius-max); display: flex; align-items: center;
  justify-content: center; padding: 0 4px; border: 2px solid var(--card-bg);
}
.uc-grid { display: grid; grid-template-columns: 352px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.uc-side > .box-card, .uc-main > .box-card { margin-bottom: 16px; }
.uc-stats4 { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 6px; }
.uc-stat4 { text-align: center; }
.uc-stat4 b { font-family: var(--font-base); font-size: 19px; font-weight: 700; color: var(--gray-8); display: block; line-height: 1.3; }
.uc-stat4 span { font-size: 12px; color: var(--gray-5); }
.uc-vip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: linear-gradient(135deg, #23283d, #14161f);
  border-radius: var(--radius-md); padding: 15px 18px; margin-bottom: 16px;
  color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); position: relative; overflow: hidden;
}
.uc-vip::after {
  content: ""; position: absolute; right: -22px; top: -22px; width: 70px; height: 70px;
  border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.uc-vip b { font-family: var(--font-title); font-size: 15px; }
.uc-vip-chip {
  font-size: 11px; background: linear-gradient(135deg, #ffb15c, #ff8338);
  border-radius: var(--radius-max); padding: 2px 10px; font-weight: 600;
}
.uc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.uc-duo .box-card { margin-bottom: 16px; padding: 14px 16px; }
.uc-duo-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-5); }
.uc-duo-head i { font-style: normal; color: var(--gray-4); }
.uc-duo-body { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.uc-duo-body b { font-family: var(--font-base); font-size: 19px; font-weight: 700; color: var(--gray-8); }
.uc-duo-body span { font-size: 19px; }
.uc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; }
.uc-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border-radius: 10px; transition: .2s; }
.uc-tile:hover { background: var(--gray-1); transform: translateY(-2px); }
.ut-icon {
  width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-style: normal;
}
.ut-blue { background: var(--blue-soft); }
.ut-green { background: rgba(74, 189, 134, .14); }
.ut-purple { background: rgba(139, 92, 246, .14); }
.ut-orange { background: rgba(255, 131, 56, .14); }
.ut-dark { background: var(--gray-2); }
.ut-red { background: rgba(255, 62, 62, .10); }
.ut-teal { background: rgba(23, 168, 184, .14); }
.ut-indigo { background: rgba(99, 102, 241, .14); }
.uc-tile span { font-size: 12px; color: var(--gray-6); }
.uc-card { position: relative; overflow: hidden; }
.uc-ribbon {
  position: absolute; top: 0; right: 0; font-size: 11px; color: #fff;
  background: var(--gradient-hot); border-radius: 0 0 0 10px; padding: 3px 12px;
}
.uc-ribbon-green { background: linear-gradient(135deg, #3ed0c4, #17a8b8); }
.uc-post-row, .uc-cmt-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px dashed var(--gray-3);
}
.uc-post-row:last-child, .uc-cmt-row:last-child { border-bottom: none; }
.uc-post-info { min-width: 0; }
.uc-post-info a { font-size: 14.5px; font-weight: 600; color: var(--gray-8); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-post-info a:hover { color: var(--blue); }
.uc-post-info small, .uc-cmt-row small { font-size: 12px; color: var(--gray-5); }
.uc-post-status { font-size: 11px; border-radius: 4px; padding: 2px 8px; white-space: nowrap;
  background: rgba(74, 189, 134, .12); color: var(--green); }
.uc-cmt-row { display: block; }
.uc-cmt-row p { font-size: 14px; color: var(--gray-7); }
.uc-cmt-row small a { color: var(--blue); }
.uc-cmt-pending { font-style: normal; color: var(--orange); }
.uc-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.uc-more { font-size: 13px; color: var(--gray-5); }
.uc-more:hover { color: var(--blue); }
@media (max-width: 992px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-head-body { flex-wrap: wrap; }
  .uc-actions { padding-top: 10px; margin-left: 0; width: 100%; justify-content: flex-end; }
  .uc-tiles { grid-template-columns: repeat(4, 1fr); }
}
/* ---------- 文章页排版细节（对齐 Alright 参考站） ---------- */
.detail-content { font-size: 16px; line-height: 28px; }
.detail-content p { margin: 0 0 16px; }
.detail-content h1, .detail-content h2, .detail-content h3 { line-height: 1.5; margin: 32px 0 24px; }
.detail-content h2 { position: relative; padding-left: 16px; }
.detail-content h2::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 20px; border-radius: 10px;
  background: linear-gradient(180deg, var(--blue), #7c9bff);
}
.detail-content h4, .detail-content h5, .detail-content h6 { margin: 32px 0 24px; }
.detail-content hr { margin: 48px auto; border: none; border-top: 1px solid var(--gray-3); }
.detail-content ul { list-style: none; padding-left: 0; }
.detail-content ul li { position: relative; padding-left: 24px; margin: 0 0 16px; }
.detail-content ul li::before {
  content: ""; position: absolute; top: 5px; left: 0; width: 18px; height: 18px;
  background-repeat: no-repeat; background-size: contain; background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath fill-rule='evenodd' d='M10.001.833A9.17 9.17 0 0 0 .834 10a9.17 9.17 0 0 0 9.167 9.167A9.17 9.17 0 0 0 19.167 10A9.17 9.17 0 0 0 10.001.833zm4.339 7.256c.325-.325.325-.853 0-1.179s-.853-.325-1.178 0l-4.411 4.411L6.84 9.411c-.325-.325-.853-.325-1.179 0s-.325.853 0 1.178l2.5 2.5c.325.325.853.325 1.179 0l5-5z' fill='%2300A656'/%3E%3C/svg%3E");
}
.detail-content ul ul { list-style: circle; margin: 16px 0; padding-left: 18px; }
.detail-content ul ul li::before { display: none; }
.detail-content ol { padding-left: 24px; }
.detail-content blockquote {
  margin: 16px 0; padding: 14px 18px;
  background: var(--gray-1); border: none; border-radius: var(--radius-sm);
  color: var(--gray-6);
}
.detail-content img, .detail-cover img, .detail-gallery img { cursor: zoom-in; }

/* ---------- 图片灯箱（对齐参考站 Fancybox 交互） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: none;
  background: rgba(10, 12, 20, .93); backdrop-filter: blur(8px);
}
.lightbox.open { display: block; animation: lb-fade .25s ease; }
.lightbox-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 64px 84px 96px; overflow: hidden; cursor: zoom-out;
  touch-action: none;
}
.lightbox-img {
  max-width: 100%; max-height: 100%; border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  animation: lb-zoom .3s cubic-bezier(.2, .8, .3, 1);
  user-select: none; -webkit-user-drag: none;
  will-change: transform;
}
.lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.6; padding: 0 96px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lightbox-toolbar {
  position: absolute; top: 18px; right: 20px; display: flex; gap: 10px; align-items: center;
}
.lightbox-counter {
  color: rgba(255, 255, 255, .7); font-size: 13px; font-variant-numeric: tabular-nums;
  margin-right: 2px;
}
.lightbox-btn {
  width: 38px; height: 38px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s; font-family: inherit;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox-nav { position: absolute; top: 50%; margin-top: -19px; opacity: .75; }
.lightbox-nav:hover { opacity: 1; background: rgba(255, 255, 255, .22); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-stage.is-zoomed { cursor: move; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.86); } }
@media (max-width: 768px) {
  .lightbox-stage { padding: 56px 10px 88px; }
  .lightbox-nav { display: none; }
  .lightbox-caption { padding: 0 20px; }
}

/* ---------- 文章页：仿 Alright 信息条 / 阅读信息 / 智能摘要 / 点赞墙 / 操作栏 ---------- */
.post-info { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-info .info-avatar { position: relative; width: 42px; height: 42px; flex-shrink: 0; }
.post-info .info-avatar img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block; }
.post-info .avatar-dot {
  position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%;
  background: #10b981; border: 2px solid var(--card-bg);
}
.post-info .info-content { flex: 1; min-width: 0; }
.post-info .info-name { font-size: 14px; font-weight: 700; color: var(--gray-8); }
.post-info .info-data { font-size: 12px; color: var(--gray-5); margin-top: 2px; }
.post-info .info-loc { margin-left: 10px; }
.post-info .info-actions { display: flex; gap: 6px; }

.reading-info {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 12px 28px; text-align: center;
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  padding: 8px 16px; margin: 14px 0 0; font-size: 12px; color: var(--gray-5);
}

/* 智能摘要（仿参考站 chatgpt-summary） */
.chatgpt-summary {
  font-size: 14px; line-height: 24px;
  padding: 8px; margin: 14px 0 0;
  color: var(--gray-7);
  background: rgba(120, 120, 120, .07);
  border-radius: var(--radius-sm);
}
.chatgpt-summary .summary-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px 4px; color: var(--gray-8); font-weight: 600;
}
.chatgpt-summary .summary-title span { display: flex; align-items: center; gap: 5px; }
.chatgpt-summary .summary-title small { font-size: 12px; opacity: .4; font-weight: 400; }
.chatgpt-summary .summary-icon { display: flex; color: #7c5cff; }
.chatgpt-summary .summary-icon svg { fill: currentColor; }
.chatgpt-summary .summary-content {
  padding: 12px; border-radius: var(--radius-xs, 4px);
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(27, 26, 49, .05);
}

/* ---------- 付费解锁阅读全文（1:1 仿参考图，无会员折扣行） ---------- */
.paywall { margin-top: 18px; }
.pay-teaser { opacity: .92; }
.lock-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 18px; color: var(--blue);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.lock-divider::before, .lock-divider::after {
  content: ""; flex: 1; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(91, 123, 255, 0), rgba(91, 123, 255, .55));
}
.lock-divider::after { background: linear-gradient(90deg, rgba(91, 123, 255, .55), rgba(91, 123, 255, 0)); }
.paycard {
  position: relative; overflow: hidden;
  padding: 30px 24px 22px; text-align: center;
  border-radius: var(--radius-md);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(91, 123, 255, .22), transparent 60%),
    radial-gradient(70% 100% at 0% 100%, rgba(91, 123, 255, .16), transparent 60%),
    linear-gradient(160deg, var(--card-bg) 30%, rgba(91, 123, 255, .12));
}
.paycard-help {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--gray-4); color: var(--gray-4);
  font-size: 12px; line-height: 17px; text-align: center; cursor: help;
}
.paycard-lock { color: var(--blue); }
.paycard-title { margin-top: 10px; font-size: 15px; color: var(--gray-7); }
.paycard-actions {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  margin-top: 16px; flex-wrap: wrap;
}
.paycard-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 132px; padding: 10px 22px;
  border: none; border-radius: 7px;
  font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer;
  text-decoration: none; transition: filter .2s, transform .15s;
}
.paycard-btn:active { transform: scale(.97); }
.paycard-btn-primary { background: var(--blue); color: #fff; }
.paycard-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.paycard-btn-vip {
  background: linear-gradient(135deg, #ff5f57, #f43f5e);
  color: #fff;
}
.paycard-btn-vip:hover { filter: brightness(1.06); color: #fff; }
.paycard-stat {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 16px; font-size: 13px; color: var(--gray-5);
}
.paycard-stat svg { color: var(--blue); }
.paycard-stat b { color: var(--blue); font-weight: 700; }

/* ---------- 付费阅读隐藏框 · RiPro 权限卡片（虚线边框+角标+渐变按钮） ---------- */
/* 根元素同时带 .paycard，继承居中布局；此处覆写边框/底色/内边距。 */
.paycard-ripro {
  position: relative; overflow: hidden;
  padding: 28px 20px 18px; text-align: center;
  border: 1.5px dashed rgba(56, 88, 246, .45);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(56, 88, 246, .06), rgba(56, 88, 246, .02)), var(--card-bg);
}
body[data-scheme="dark"] .paycard-ripro {
  border-color: var(--gray-4);
  background: linear-gradient(180deg, rgba(109, 134, 255, .08), rgba(109, 134, 255, .03)), var(--card-bg);
}
.paycard-ripro-corner {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px;
  background: var(--gradient-hot); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  border-radius: 0 10px 0 10px;
}
.paycard-ripro-corner svg { width: 12px; height: 12px; }
.paycard-ripro-title {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; color: var(--blue);
  font-size: 15px; font-weight: 700;
}
.paycard-ripro-price {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px 10px; margin-top: 14px; padding: 8px 14px;
  background: var(--gray-2); border-radius: var(--radius-max);
  font-size: 13.5px; color: var(--gray-6);
}
.paycard-ripro-price-base { color: var(--gray-7); }
.paycard-ripro-price-base b { color: var(--gray-7); font-weight: 700; }
.paycard-ripro-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); font-weight: 600; }
.paycard-ripro-chip.is-free { color: var(--green); }
.paycard-ripro-vip-link { color: var(--blue); border-bottom: 1px dashed rgba(56, 88, 246, .5); }
.paycard-ripro-vip-link:hover { color: var(--blue-hover); }
.paycard-ripro-actions {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  margin-top: 16px; flex-wrap: wrap;
}
.paycard-ripro-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 34px;
  border: none; border-radius: var(--radius-max);
  background: var(--gradient-buy); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(255, 45, 85, .35);
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.paycard-ripro-btn:hover {
  color: #fff; filter: brightness(1.07) saturate(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 45, 85, .45);
}
.paycard-ripro-btn:active { transform: translateY(0); filter: brightness(.97); box-shadow: 0 6px 16px rgba(255, 45, 85, .35); }
.paycard-ripro-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.paycard-ripro-stat {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 14px; font-size: 13px; color: var(--gray-5);
}
.paycard-ripro-stat svg { color: var(--orange); }
.paycard-ripro-stat b { color: var(--orange); font-weight: 700; }
@media (max-width: 600px) {
  .paycard-ripro { padding: 20px 14px 14px; }
  .paycard-ripro-corner { font-size: 11px; padding: 3px 10px; }
}

/* ---------- 付费下载 · RiPro 权限卡片（与付费阅读 paycard-ripro 同款视觉） ---------- */
/* 复用 .paycard-ripro-* 系（角标/标题/价格条/渐变按钮/解锁行）与 --gradient-buy/--gradient-hot 令牌；
   此处仅覆写卡片级虚线边框与头部布局，不影响 param/simple 卡。 */
.pdl-card.pdl-ripro {
  position: relative; overflow: hidden; text-align: center;
  border: 1.5px dashed rgba(56, 88, 246, .45);
  background: linear-gradient(180deg, rgba(56, 88, 246, .06), rgba(56, 88, 246, .02)), var(--card-bg);
}
body[data-scheme="dark"] .pdl-card.pdl-ripro {
  border-color: var(--gray-4);
  background: linear-gradient(180deg, rgba(109, 134, 255, .08), rgba(109, 134, 255, .03)), var(--card-bg);
}
.pdl-ripro-head {
  display: flex; align-items: center; gap: 14px;
  margin-top: 4px; padding-right: 6px; text-align: left;
}
.pdl-ripro-head .pdl-thumb { flex: 0 0 96px; }
.pdl-ripro-info { flex: 1; min-width: 0; }
.pdl-card.pdl-ripro .paycard-ripro-title { margin-top: 16px; }
.pdl-card.pdl-ripro .paycard-ripro-actions { margin-top: 16px; }
/* 已解锁/免费资源角标与下载按钮统一红色主题（用户要求）；类名保留 is-green/is-success 兼容现有标记与测试 */
.paycard-ripro-corner.is-green {
  background: var(--gradient-hot);
}
.pdl-card.pdl-ripro .pdl-pass { display: inline-flex; margin-top: 8px; }
.pdl-card.pdl-ripro .pdl-foot { margin-top: 10px; }
/* 紧凑化：缩略图 96→56 正方形，块间距 14~16→8~10，整卡高度约降 30%，
   信息一条不缺，只是不再"一段一行"地铺开。 */
.pdl-card.pdl-ripro { padding: 14px 16px 12px; }
/* 卡片处在正文容器里，会继承 .detail-content 的 line-height:28px，且 h4 被正文样式
   加了 32/24 的上下外边距 —— 这两条是卡片"看着很空"的真正原因，先重置掉。 */
.pdl-card.pdl-ripro { line-height: 1.6; }
.pdl-card.pdl-ripro .pdl-title { margin: 0; }
.pdl-card.pdl-ripro .paycard-ripro-corner { font-size: 11px; padding: 3px 10px; }
.pdl-card.pdl-ripro .pdl-ripro-head { gap: 10px; margin-top: 2px; padding-right: 4px; }
.pdl-card.pdl-ripro .pdl-ripro-head .pdl-thumb {
  flex: 0 0 56px; height: 56px; aspect-ratio: auto; border-radius: 6px; align-self: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ea2ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5-5 5 5M12 5v12'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(91, 123, 255, .18), rgba(147, 51, 234, .14));
  background-repeat: no-repeat;
  background-position: center, center;
  background-size: 22px 22px, cover;
}
.pdl-card.pdl-ripro .pdl-thumb-ph svg { width: 22px; height: 22px; }
.pdl-card.pdl-ripro .pdl-title { font-size: 14.5px; line-height: 1.45; }
.pdl-card.pdl-ripro .pdl-notice { margin-top: 3px; font-size: 11.5px; }
.pdl-card.pdl-ripro .paycard-ripro-title { margin-top: 8px; font-size: 13.5px; gap: 5px; }
.pdl-card.pdl-ripro .paycard-ripro-title svg { width: 13px; height: 13px; }
.pdl-card.pdl-ripro .paycard-ripro-price { margin-top: 8px; padding: 5px 12px; font-size: 12.5px; gap: 4px 9px; }
.pdl-card.pdl-ripro .paycard-ripro-actions { margin-top: 10px; }
.pdl-card.pdl-ripro .paycard-ripro-btn { padding: 8px 28px; font-size: 13.5px; box-shadow: 0 5px 13px rgba(255, 45, 85, .3); }
.pdl-card.pdl-ripro .paycard-ripro-stat { margin-top: 8px; font-size: 12px; }
.pdl-card.pdl-ripro .pdl-foot { padding-top: 8px; font-size: 11.5px; }
@media (max-width: 600px) {
  .pdl-card.pdl-ripro { padding: 12px 12px 10px; }
  .pdl-card.pdl-ripro .pdl-ripro-head .pdl-thumb { flex: 0 0 48px; }
  .pdl-card.pdl-ripro .pdl-title { font-size: 14px; }
}

/* ---------- 免登陆下载购买三页 · RiPro 视觉（checkout / pay / success 共用） ---------- */
/* 独立成套 .ck-ripro 系，叠加在 .box-card.checkout-card 之上；不改动 guest-* 收银台共用的 .checkout-* 原类。
   复用 --gradient-buy / --gradient-hot 令牌与 paywall_ripro_price_row() 输出的 .paycard-ripro-* 价格行。 */
.ck-ripro {
  position: relative; overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 26px 64px -30px rgba(27, 26, 49, .24), 0 2px 10px rgba(27, 26, 49, .04);
}
/* 顶部品牌渐变条，与前台 aurora 主题呼应 */
.ck-ripro::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--gradient-hot); opacity: .95; z-index: 1;
  transition: background .3s ease;
}
/* 支付成功页：顶部条跟随绿色状态语义，避免红条与绿色角标冲突 */
.ck-ripro:has(.ck-ripro-corner.is-green)::before {
  background: linear-gradient(135deg, #3ed0c4, #17a8b8);
}
/* 右上角柔光，避免纯色卡片单薄 */
.ck-ripro::after {
  content: ""; position: absolute; top: -70px; right: -50px; width: 230px; height: 230px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(56, 88, 246, .10), transparent 68%);
}
body[data-scheme="dark"] .ck-ripro {
  border-color: var(--gray-4);
  background: var(--card-bg);
  box-shadow: 0 26px 64px -30px rgba(0, 0, 0, .6), 0 2px 10px rgba(0, 0, 0, .3);
}
body[data-scheme="dark"] .ck-ripro::after {
  background: radial-gradient(circle, rgba(109, 134, 255, .14), transparent 68%);
}
.ck-ripro-corner {
  position: absolute; top: 0; right: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px;
  background: var(--gradient-hot); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .3px; line-height: 1.4;
  border-radius: 0 12px 0 12px;
  box-shadow: 0 8px 18px -8px rgba(255, 45, 85, .65);
}
.ck-ripro-corner svg { width: 12px; height: 12px; }
.ck-ripro-corner.is-green { background: linear-gradient(135deg, #3ed0c4, #17a8b8); box-shadow: 0 8px 18px -8px rgba(23, 168, 184, .6); }
.ck-ripro-head { text-align: center; padding: 6px 0 0; margin-bottom: 18px; }
.ck-ripro-emblem {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 10px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 88, 246, .16), rgba(120, 155, 236, .10));
  color: var(--blue);
}
.ck-ripro-emblem svg { width: 22px; height: 22px; }
.ck-ripro-title {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 0 6px; color: var(--gray-8);
  font-size: 20px; font-weight: 700; letter-spacing: .3px;
}
.ck-ripro-title.is-ok { color: var(--green); }
.ck-ripro-sub { margin: 0; font-size: 13px; color: var(--gray-5); text-align: center; }
.ck-ripro-sub b {
  display: inline-block; max-width: 100%; margin-left: 3px; padding: 1px 9px;
  border-radius: 999px; background: var(--gray-1);
  color: var(--gray-7); font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
body[data-scheme="dark"] .ck-ripro-sub b { background: var(--gray-2); }
/* 收银台账单摘要：左侧金额、右侧商品信息 */
.ck-ripro-bill {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px; margin-bottom: 18px; border-radius: 16px;
  border: 1px solid rgba(56, 88, 246, .12);
  background: linear-gradient(135deg, rgba(56, 88, 246, .06), rgba(255, 94, 109, .05));
}
body[data-scheme="dark"] .ck-ripro-bill {
  border-color: rgba(109, 134, 255, .18);
  background: linear-gradient(135deg, rgba(109, 134, 255, .10), rgba(255, 94, 109, .06));
}
.ck-ripro-bill-amount {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px;
  padding-right: 18px; border-right: 1px dashed rgba(127, 127, 127, .34);
}
.ck-ripro-bill-amount small { font-size: 12px; color: var(--gray-5); }
.ck-ripro-bill-amount em {
  font-style: normal; font-size: 30px; font-weight: 800; line-height: 1.12;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-hot); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ck-ripro-bill-goods { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ck-ripro-bill-goods b { font-size: 14.5px; color: var(--gray-8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-ripro-bill-goods small { font-size: 12px; color: var(--gray-5); }
.ck-ripro-seller { opacity: .85; }
/* 可用支付方式预览 */
.ck-ripro-channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.ck-ripro-channel {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px 5px 5px; border-radius: 999px;
  border: 1px solid var(--gray-3); background: var(--gray-1);
  color: var(--gray-6); font-size: 12.5px; font-weight: 600;
}
.ck-ripro-channel i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  color: #fff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 1;
}
.ck-ripro-channel.is-wechat i { background: #07c160; }
.ck-ripro-channel.is-alipay i { background: #1677ff; }
body[data-scheme="dark"] .ck-ripro-channel { background: var(--gray-2); border-color: var(--gray-3); color: var(--gray-6); }
/* 支付安全提示 */
.ck-ripro-safe {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px 0 0; font-size: 12px; color: var(--gray-5); text-align: center;
}
.ck-ripro-safe svg { flex: 0 0 auto; opacity: .8; }
/* 未开通支付通道时的空状态 */
.ck-ripro-empty {
  padding: 18px 16px; border-radius: 14px;
  border: 1px dashed var(--gray-3); background: var(--gray-1);
}
body[data-scheme="dark"] .ck-ripro-empty { background: var(--gray-2); border-color: var(--gray-3); }
/* 收银台内输入框：白底 + 清晰边框 + 与新容器同款圆角（不影响全站表单） */
.ck-ripro .form-input {
  border-color: var(--gray-4); background: var(--card-bg); border-radius: 12px;
}
.ck-ripro-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; margin-bottom: 14px; border-radius: 12px;
  background: var(--gray-1);
}
.ck-ripro-item .pdl-thumb { width: 72px; height: 54px; flex: 0 0 72px; align-self: center; aspect-ratio: auto; }
.ck-ripro-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.ck-ripro-info b { font-size: 14px; }
.ck-ripro-info small { font-size: 12px; color: var(--gray-5); }
.ck-ripro-price {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px 10px; margin: 0 0 6px; padding: 8px 14px;
  background: var(--gray-2); border-radius: var(--radius-max);
  font-size: 13.5px; color: var(--gray-6);
}
.ck-ripro-price-note { display: block; text-align: center; margin-bottom: 14px; font-size: 12px; color: var(--gray-5); }
.ck-ripro-form { display: flex; flex-direction: column; gap: 10px; }
.ck-ripro-form label { font-size: 13px; color: var(--gray-6); font-weight: 600; }
.ck-ripro-form .form-input { width: 100%; }
.ck-ripro-form small { text-align: center; color: var(--gray-5); font-size: 12px; }
/* 叠加 .pay-btn 时需更高优先级压过其蓝色底（.pay-btn 定义在本文件更靠后位置） */
.ck-ripro .ck-ripro-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 0; border: none; border-radius: var(--radius-max);
  background: var(--gradient-buy); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: .5px; line-height: 1.5; text-align: center;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(255, 45, 85, .55);
  transition: filter .2s, transform .18s ease, box-shadow .2s;
}
.ck-ripro .ck-ripro-btn:hover {
  color: #fff; filter: brightness(1.06) saturate(1.04);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(255, 45, 85, .62);
}
.ck-ripro .ck-ripro-btn:active { transform: translateY(0) scale(.99); filter: brightness(.98); box-shadow: 0 8px 20px -8px rgba(255, 45, 85, .5); }
.ck-ripro .ck-ripro-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
/* 成功页“立即下载”按钮同样统一红色主题（is-success 不再覆写颜色，继承基础红渐变）；“支付成功”角标保留绿色状态语义 */
.ck-ripro .qr-side em { font-style: normal; font-size: 28px; font-weight: 800; color: var(--orange); }
.ck-ripro-stat {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 14px; font-size: 13px; color: var(--gray-5);
}
.ck-ripro-stat svg { color: var(--orange); }
.ck-ripro-stat b { color: var(--orange); font-weight: 700; }
.ck-ripro-note { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--gray-5); }
.ck-ripro-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; margin: 4px auto 0;
  background: linear-gradient(135deg, #3ed0c4, #17a8b8); color: #fff;
  font-size: 26px; font-weight: 700;
}
.ck-ripro-pass { text-align: center; margin-top: 10px; font-size: 13px; color: var(--gray-5); }
.ck-ripro-pass b { color: #e6534f; font-size: 15px; letter-spacing: 1px; }
@media (max-width: 600px) {
  .ck-ripro.checkout-card { padding: 20px 14px 14px; }
  .ck-ripro-corner { font-size: 11px; padding: 3px 10px; border-radius: 0 10px 0 10px; }
  .ck-ripro-item { gap: 10px; padding: 12px; }
  .ck-ripro-item .pdl-thumb { width: 64px; height: 48px; flex-basis: 64px; }
  .ck-ripro-title { font-size: 17px; }
  .ck-ripro-emblem { width: 42px; height: 42px; }
  .ck-ripro-bill { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 16px; }
  .ck-ripro-bill-amount { padding: 0 0 10px; border-right: 0; border-bottom: 1px dashed rgba(127, 127, 127, .28); width: 100%; }
  .ck-ripro-bill-amount em { font-size: 25px; }
  .ck-ripro-channel { font-size: 12px; padding: 4px 11px 4px 4px; }
}

/* ---------- 付费下载模块（精仿 wpcom premium-download） ---------- */
.pdl-card {
  margin: 18px 0; padding: 20px;
  border: 1px solid var(--card-border); border-radius: var(--radius-md);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(91, 123, 255, .10), transparent 55%),
    radial-gradient(100% 90% at 0% 100%, rgba(147, 51, 234, .08), transparent 55%),
    var(--card-bg);
}
.pdl-main { display: flex; gap: 18px; align-items: stretch; }
.pdl-thumb {
  flex: 0 0 128px; align-self: center;
  border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(91, 123, 255, .18), rgba(147, 51, 234, .14));
}
.pdl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdl-thumb-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #8ea2ff;
}
.pdl-body { flex: 1; min-width: 0; }
.pdl-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--gray-8); }
.pdl-notice { margin-top: 6px; font-size: 12px; color: var(--gray-5); }
.pdl-info { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: 13px; line-height: 1.8; }
.pdl-info-label { color: var(--gray-5); }
.pdl-info-value { color: var(--gray-7); font-weight: 600; }
.pdl-info-value a { color: var(--blue); }
.pdl-price { color: #e6534f; font-weight: 700; }
.pdl-action {
  flex: 0 0 auto; min-width: 150px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.pdl-card .pdl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border: none; border-radius: 8px;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: filter .2s, transform .15s;
}
.pdl-card .pdl-btn:hover { filter: brightness(1.1); color: #fff; }
.pdl-card .pdl-btn:active { transform: scale(.97); }
.pdl-pass {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-5);
}
.pdl-pass b { color: var(--gray-7); letter-spacing: 1px; }
.pdl-copy {
  border: 1px solid var(--card-border); border-radius: 999px; background: transparent;
  color: var(--blue); font-size: 11px; padding: 1px 9px; cursor: pointer;
  transition: background .2s;
}
.pdl-copy:hover { background: rgba(91, 123, 255, .1); }
.pdl-foot {
  margin-top: 14px; padding-top: 11px; border-top: 1px dashed var(--card-border);
  font-size: 12px; color: var(--gray-5); text-align: center;
}
.pdl-foot a { color: var(--blue); margin: 0 2px; }
@media (max-width: 640px) {
  .pdl-main { flex-wrap: wrap; }
  .pdl-thumb { flex-basis: 96px; }
  .pdl-action { min-width: 100%; }
  .pdl-btn { width: 100%; }
}

/* 标签胶囊：复用 item-tags 视觉 */
.detail-tags { margin-top: 20px; }

/* 智能摘要打字光标 */
.summary-content.typing::after {
  content: ""; display: inline-block; width: 2px; height: 14px;
  margin-left: 2px; vertical-align: -2px; background: currentColor;
  animation: caret-blink .9s steps(2) infinite;
}
@keyframes caret-blink { to { visibility: hidden; } }

/* ---------- 无参数通用下载模板（精仿 wpcom 无资源参数卡片） ---------- */
.pdl-card.pdl-simple {
  position: relative; display: flex; align-items: flex-start; gap: 18px;
}
.pdl-help {
  position: absolute; top: 10px; right: 12px; width: 20px; height: 20px;
  border-radius: 50%; border: 1px solid var(--card-border);
  color: var(--gray-5); font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: help;
}
.pdl-simple-thumb { flex: 0 0 150px; }
.pdl-simple-thumb img {
  width: 150px; height: 110px; object-fit: cover; border-radius: 8px; display: block;
}
.pdl-simple-thumb .pdl-thumb-ph {
  width: 150px; height: 110px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-1, rgba(127,127,127,.08)); color: var(--gray-5);
}
.pdl-simple-body { flex: 1; min-width: 0; padding-top: 2px; }
.pdl-simple-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-right: 26px; }
.pdl-card .pdl-simple-title h4 { margin: 0; font-size: 16px; line-height: 1.45; color: var(--text, inherit); }
.pdl-simple-price { color: #ff5b57; font-size: 17px; font-weight: 700; white-space: nowrap; }
.pdl-simple-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pdl-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 1.4; padding: 3px 10px; border-radius: 4px;
}
.pdl-chip-silver { background: rgba(127, 127, 127, .13); color: var(--gray-5); }
.pdl-chip-gold { background: #ff5b7d; color: #fff; }
.pdl-simple-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pdl-card .pdl-btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 22px; border: none; border-bottom: none; border-radius: 6px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #fff; line-height: 1.2;
  transition: filter .2s;
}
.pdl-card .pdl-btn2:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.pdl-btn2-blue { background: #3f7bfd; }
.pdl-btn2-red { background: #ff4d6a; }
.pdl-simple-actions .pdl-pass { margin-left: 4px; }
@media (max-width: 640px) {
  .pdl-card.pdl-simple { flex-direction: column; }
  .pdl-simple-thumb, .pdl-simple-thumb img, .pdl-simple-thumb .pdl-thumb-ph { width: 100%; flex-basis: auto; }
  .pdl-simple-thumb img, .pdl-simple-thumb .pdl-thumb-ph { height: 160px; }
  .pdl-btn2 { flex: 1 1 auto; }
}

/* ---------- 口令独立模式（引流免费解锁，与付费通道分开） ----------
   文章页 .code-card / 下载卡片 .pdl-code-card，绿色系区别于付费蓝色 */
.code-card, .pdl-code-card {
  margin-top: 14px; padding: 13px 16px; border-radius: 12px;
  border: 1px dashed rgba(22, 163, 74, .45);
  background: rgba(22, 163, 74, .06);
}
.pdl-code-card { margin-top: 10px; }
/* 口令独立体系（纯口令文章）：单独成卡、居中，不与付费卡并排 */
.code-card-solo {
  max-width: 480px; margin-left: auto; margin-right: auto; margin-top: 18px;
  padding: 18px 20px;
}
.code-card-stat {
  margin-top: 12px; text-align: center; font-size: 12px; color: var(--gray-5);
}
.code-card-stat b { color: #16a34a; }
.code-card-head { display: flex; align-items: center; gap: 10px; }
.code-card-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.code-card-text b { display: block; font-size: 14px; color: var(--text, inherit); }
.code-card-text small { font-size: 12px; color: var(--gray-5); }
.code-card-form {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.pdl-code-input {
  flex: 1 1 150px; min-width: 0; padding: 7px 12px; border: 1px solid var(--border, rgba(127,127,127,.25));
  border-radius: 8px; background: var(--card-bg, transparent); color: var(--text-color, inherit); font-size: 13px; outline: none;
}
.pdl-code-input:focus { border-color: #16a34a; }
.pdl-code-btn {
  padding: 7px 18px; border: none; border-radius: 8px;
  background: #16a34a; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: filter .2s;
}
.pdl-code-btn:hover { filter: brightness(1.1); }
.pdl-code-msg { width: 100%; font-size: 12px; }
.pdl-code-msg.ok { color: #16a34a; }
.pdl-code-msg.err { color: #e6534f; }

/* ---------- 免登陆收银台（checkout / pay / success / query） ---------- */
.checkout-card { max-width: 560px; margin: 24px auto; padding: 28px 30px; }
.checkout-head { text-align: center; margin-bottom: 18px; }
.checkout-head h1 { font-size: 20px; margin: 8px 0 6px; }
.checkout-head p { font-size: 13px; color: var(--gray-5); }
.checkout-badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--blue);
  background: rgba(59, 130, 246, .12);
}
.checkout-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; margin-bottom: 18px; border-radius: 12px;
  background: var(--gray-1, rgba(127,127,127,.06));
}
.checkout-item .pdl-thumb { width: 72px; height: 54px; flex: 0 0 72px; border-radius: 8px; overflow: hidden; }
.checkout-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.checkout-item-info b { font-size: 14px; }
.checkout-item-info small { font-size: 12px; color: var(--gray-5); }
.checkout-item-info em { font-style: normal; font-size: 17px; font-weight: 700; color: #e6534f; }
.checkout-form { display: flex; flex-direction: column; gap: 10px; }
.checkout-form label { font-size: 13px; color: var(--gray-6); font-weight: 600; }
.checkout-form .form-input { width: 100%; }
.checkout-form small { text-align: center; color: var(--gray-5); font-size: 12px; }
.qr-wrap {
  display: flex; align-items: center; gap: 18px;
  padding: 16px; margin-bottom: 16px; border-radius: 12px;
  background: var(--gray-1, rgba(127,127,127,.06));
}
.qr-box {
  flex: 0 0 128px; height: 128px; border-radius: 10px; border: 1.5px dashed var(--border, rgba(127,127,127,.35));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--gray-5); font-size: 12px; text-align: center;
}
.qr-icon { font-size: 15px; font-weight: 700; color: var(--blue); }
.qr-side { display: flex; flex-direction: column; gap: 4px; }
.qr-side em { font-style: normal; font-size: 26px; font-weight: 800; color: #e6534f; }
.qr-side b { font-size: 14px; }
.qr-side small { font-size: 12px; color: var(--gray-5); }
.pay-btn {
  display: block; width: 100%; padding: 11px 0; border: none; border-radius: 10px;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; text-align: center;
  cursor: pointer; text-decoration: none; transition: filter .2s, transform .15s;
}
.pay-btn:hover { filter: brightness(1.08); color: #fff; }
.pay-btn:active { transform: scale(.98); }
.checkout-note { display: block; text-align: center; margin-top: 12px; font-size: 12px; color: var(--gray-5); }
.checkout-success .checkout-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 6px;
  background: #16a34a; color: #fff; font-size: 26px; font-weight: 700;
}
.checkout-pass { text-align: center; margin-top: 10px; font-size: 13px; color: var(--gray-5); }
.checkout-pass b { color: #e6534f; font-size: 15px; letter-spacing: 1px; }

/* ==================== 免登陆快捷支付弹窗（1:1 对齐 zibll 收银台） ==================== */
.paymodal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  /* 关闭时延迟隐藏，保证淡出动画完成；避免遮罩常驻导致全站滚动重绘顿挫 */
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.paymodal.show { opacity: 1; visibility: visible; transition-delay: 0s; }
.paymodal-card {
  --pm-accent: #07c160;
  display: flex; flex-direction: column;
  width: 420px; max-width: 100%; max-height: calc(100vh - 40px); overflow: hidden;
  background: #fff; border-radius: 10px; box-shadow: 0 24px 64px rgba(0, 0, 0, .32);
  transform: translateY(12px) scale(.98); transition: transform .22s cubic-bezier(.34, 1.4, .64, 1);
}
.paymodal.show .paymodal-card { transform: translateY(0) scale(1); }

/* 顶部彩色头：120px 蓝色渐变 + 大圆装饰（对齐参考站 modal-colorful-header / colorful-make） */
.paymodal-hero {
  position: relative; flex: 0 0 auto; height: 120px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #59c3fb 10%, #268df7 100%);
  background-size: 120%;
}
.paymodal-hero-make,
.paymodal-hero-make::before,
.paymodal-hero-make::after {
  position: absolute; content: ""; border-radius: 100%; pointer-events: none;
  background: rgba(255, 255, 255, .055);
}
.paymodal-hero-make { left: 50%; top: 74%; width: 280px; height: 260px; transform: translateX(-50%); }
.paymodal-hero-make::before { right: -270px; top: -250px; width: 600px; height: 280px; }
.paymodal-hero-make::after { left: -230px; top: -150px; width: 360px; height: 190px; background: rgba(255, 255, 255, .035); }
.paymodal-hero-body { position: relative; z-index: 2; text-align: center; color: #fff; }
.paymodal-hero-ico { display: block; margin: 0 auto 10px; font-size: 27px; line-height: 1; }
.paymodal-hero-title { font-size: 18px; font-weight: 700; letter-spacing: .06em; line-height: 1; }
.paymodal-x {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  width: 30px; height: 30px; padding: 0; border: 0; background: transparent;
  color: #fff; opacity: .7; font-size: 18px; line-height: 1; cursor: pointer;
  transition: opacity .15s;
}
.paymodal-x:hover { opacity: 1; }

.paymodal-body { padding: 16px 20px 20px; overflow-y: auto; min-height: 0; }
.paymodal-confirm { display: block; }

/* 商品行：[付费资源] 标签 + 标题 */
.paymodal-order { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
.paymodal-tag {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 5px; border-radius: 3px;
  background: linear-gradient(135deg, #ff5e7f 30%, #ff967e 100%);
  color: #fff; font-size: 12px; line-height: 18px; white-space: nowrap;
}
.paymodal-tag i { font-size: 10px; }
.paymodal-order-title {
  flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; color: #2b2b2b;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 价格条 */
.paymodal-price {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px; margin-bottom: 12px; background: #f7f7f8; border-radius: 8px;
}
.paymodal-price-label { font-size: 14px; color: #777; }
.paymodal-price-val { display: inline-flex; align-items: baseline; gap: 10px; }
.paymodal-price-old { position: relative; font-size: 13px; color: #9aa0a6; }
.paymodal-price-old::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px;
  background: currentColor; transform: rotate(8deg); transform-origin: center;
}
.paymodal-price-now { font-size: 18px; font-weight: 700; color: #ff343b; }

.paymodal-field { margin: 12px 0 6px; font-size: 12px; color: #85888e; }
.paymodal-coupon { position: relative; }
.paymodal-coupon-input {
  width: 100%; height: 38px; padding: 0 104px 0 12px;
  border: 1px solid #e6e6e8; border-radius: 6px; background: #fff;
  font-family: inherit; font-size: 13px; color: #333; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.paymodal-coupon-input::placeholder { color: #b1b1b1; }
.paymodal-coupon-input:focus { border-color: #2d8cf0; box-shadow: 0 0 0 3px rgba(45, 140, 240, .12); }
.paymodal-coupon-btn {
  position: absolute; right: 2px; top: 2px; bottom: 2px; padding: 0 12px;
  border: 0; border-radius: 5px; background: #e8f3fe; color: #2d8cf0;
  font-family: inherit; font-size: 13px; cursor: pointer; transition: background .15s;
}
.paymodal-coupon-btn:hover { background: #d8ebfd; }
.paymodal-coupon-tip { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #b1b1b1; }
.paymodal-coupon-tip.is-error { color: #ff6b6b; }
.paymodal-coupon-tip.is-ok { color: #07c160; }

/* KEY 兑换：等宽大写，便于对照卡密；成功回执用绿色 */
.paymodal-keysection[hidden] { display: none; }
.paymodal-key-input {
  text-transform: uppercase; letter-spacing: .04em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.paymodal-key-tip.is-ok { color: #07c160; }
.paymodal-key-btn.is-loading { opacity: .65; pointer-events: none; }
.paymodal-key-btn:disabled { cursor: default; }

/* 支付方式卡片 */
.paymodal-methods { display: flex; justify-content: center; gap: 10px; }
.paymodal-method {
  flex: 1 1 0; min-width: 0; max-width: 132px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px 9px; border: 1px solid #ececee; border-radius: 6px; background: #fff;
  font-family: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.paymodal-method-ico { display: block; height: 34px; width: auto; }
.paymodal-method span { font-size: 14px; line-height: 1; color: #333; }
.paymodal-method:hover { border-color: var(--pm-accent); }
.paymodal-method.active { border-color: var(--pm-accent); background: color-mix(in srgb, var(--pm-accent) 6%, #fff); }
.paymodal-method.active::after {
  content: "\2713"; position: absolute; left: 6px; bottom: 6px;
  width: 15px; height: 15px; border-radius: 3px;
  background: var(--pm-accent); color: #fff;
  font-size: 10px; line-height: 15px; text-align: center;
}
.paymodal-methods-empty {
  flex: 1; margin: 0; padding: 14px 10px; text-align: center;
  font-size: 12px; color: #b1b1b1; background: #f7f7f8; border-radius: 6px;
}

/* 主按钮：对齐参考站 but jb-red */
.paymodal-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 46px; margin-top: 14px;
  border: 0; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
  color: #fff; font-family: inherit; font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(251, 45, 45, .24);
  transition: filter .15s, transform .1s;
}
.paymodal-submit b { font-size: 14px; font-weight: 600; }
.paymodal-submit:hover { filter: brightness(1.04); }
.paymodal-submit:active { transform: scale(.995); }
.paymodal-submit.is-loading { pointer-events: none; opacity: .8; }
.paymodal-submit.is-disabled,
.paymodal-submit:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.paymodal-orderno { margin-top: 10px; text-align: center; font-size: 11px; color: #b1b1b1; }

/* 支付阶段（二维码 / 等待 / 成功 / 失败） */
.paymodal-stage { display: flex; align-items: center; justify-content: center; min-height: 330px; }
.paymodal-stage[hidden] { display: none; }
.paymodal-qr { display: flex; flex-direction: column; align-items: center; width: 100%; }
.paymodal-qr-img {
  position: relative; width: 210px; height: 210px; padding: 10px; overflow: hidden;
  border: 1px solid #ececee; border-radius: 8px; background: #fff;
}
.paymodal-qr-img img { display: block; width: 190px; height: 190px; }
.paymodal-qr-img::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 44px;
  pointer-events: none; border-bottom: 2px solid var(--pm-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--pm-accent) 26%, transparent), transparent);
  animation: paymodal-scan 2.1s ease-in-out infinite;
}
@keyframes paymodal-scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(146px); }
}
.paymodal-qr-demo {
  width: 190px; height: 190px; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: #cbd5e1; background:
    repeating-linear-gradient(45deg, #f1f5f9 0 8px, #fff 8px 16px);
  border-radius: 6px;
}
.paymodal-qr-tip { margin-top: 12px; font-size: 12px; color: #85888e; }
.paymodal-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #85888e; }
.paymodal-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #e9e9eb; border-top-color: var(--pm-accent);
  animation: paymodal-rot .8s linear infinite;
}
@keyframes paymodal-rot { to { transform: rotate(360deg); } }
.paymodal-wait p { margin-top: 12px; font-size: 13px; }

/* 顶部头部的结果配色：成功转绿、失败转红，与正文状态区一致 */
.paymodal-hero.is-ok { background: linear-gradient(135deg, #4ade80 10%, #10b981 100%); }
.paymodal-hero.is-err { background: linear-gradient(135deg, #ff8a65 0%, #ef3b3b 100%); }
.paymodal-hero.is-ok .paymodal-hero-ico,
.paymodal-hero.is-err .paymodal-hero-ico { animation: paymodal-hero-pop .42s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes paymodal-hero-pop {
  0% { transform: scale(.4); opacity: .2; }
  100% { transform: scale(1); opacity: 1; }
}

/* 结果状态区：成功 / 失败共用一套排版，只换图标与配色 */
.paymodal-result {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; text-align: center; animation: paymodal-fadein .2s ease;
}
@keyframes paymodal-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.paymodal-result-ico {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px; font-weight: 700; line-height: 1;
  animation: paymodal-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}
.paymodal-ok-ico {
  background: linear-gradient(135deg, #16baaa, #10a37f);
  box-shadow: 0 10px 26px rgba(22, 186, 170, .4);
}
.paymodal-err-ico {
  background: linear-gradient(135deg, #ff7a59, #e5484d);
  box-shadow: 0 10px 26px rgba(229, 72, 77, .36);
}
.paymodal-err-ico i { font-size: 28px; }
@keyframes paymodal-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.paymodal-result-title { margin-top: 14px; font-size: 17px; font-weight: 600; color: #1f2937; }
.paymodal-result-sub { margin-top: 6px; font-size: 12px; color: #94a3b8; }
.paymodal-err-msg {
  margin-top: 14px; max-width: 290px; font-size: 14px; font-weight: 500; line-height: 1.6;
  color: #dc2626; text-align: center; word-break: break-word;
}
.paymodal-err-link { margin-top: 10px; font-size: 13px; color: var(--pm-accent); text-decoration: none; }
.paymodal-err-link:hover { text-decoration: underline; }
.paymodal-err-acts { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.paymodal-retry {
  padding: 8px 26px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--pm-accent); color: #fff; font-family: inherit; font-size: 13px; transition: filter .15s;
}
.paymodal-retry:hover { filter: brightness(1.08); }
.paymodal-back {
  padding: 8px 20px; border: 1px solid #e3e6ec; border-radius: 8px; cursor: pointer;
  background: #fff; color: #4b5563; font-family: inherit; font-size: 13px; transition: border-color .15s, color .15s;
}
.paymodal-back:hover { border-color: #c9cfda; color: #1f2937; }

/* 深色主题适配 */
body[data-scheme="dark"] .paymodal-result-title { color: #e5e7eb; }
body[data-scheme="dark"] .paymodal-err-msg { color: #f87171; }
body[data-scheme="dark"] .paymodal-back { background: #23272f; border-color: #3a4050; color: #cbd5e1; }
body[data-scheme="dark"] .paymodal-back:hover { border-color: #4b5563; color: #f8fafc; }
@media (max-width: 480px) {
  .paymodal { padding: 0; align-items: flex-end; }
  .paymodal-card { width: 100%; max-height: 94vh; border-radius: 12px 12px 0 0; }
  .paymodal-hero { height: 104px; }
  .paymodal-hero-ico { font-size: 24px; margin-bottom: 8px; }
  .paymodal-hero-title { font-size: 17px; }
  .paymodal-body { padding: 14px 14px 16px; }
  .paymodal-methods { gap: 8px; }
  .paymodal-method-ico { height: 26px; }
  .paymodal-stage { min-height: 300px; }
  .paymodal-qr-img { width: 190px; height: 190px; }
  .paymodal-qr-img img { width: 170px; height: 170px; }
  .paymodal-qr-img::after { animation: none; opacity: 0; }
}

/* 弹窗邮箱行（文章页直接购买时展开） */
.paymodal-email { margin-top: 2px; }
.paymodal-email-input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid #e6e6e8; border-radius: 6px; background: #fff;
  font-family: inherit; font-size: 13px; color: #333; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.paymodal-email-input::placeholder { color: #b1b1b1; }
.paymodal-email-input:focus { border-color: #2d8cf0; box-shadow: 0 0 0 3px rgba(45, 140, 240, .12); }
.paymodal-email-tip { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #b1b1b1; }
.paymodal-email-tip.is-error { color: #ff6b6b; }
.paymodal-coupon-input.shake, .paymodal-email-input.shake { animation: paymodal-shake .4s; border-color: #ef4444; }
@keyframes paymodal-shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-6px); }
50% { transform: translateX(6px); }
75% { transform: translateX(-4px); }
}

/* 会员收银台：余额行 / 登录态说明 / 内联错误提示 */
.paymodal-method-ico-svg { display: flex; align-items: center; justify-content: center; height: 34px; }
.paymodal-method-ico-svg svg { display: block; }
.paymodal-balance {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #85888e;
}
.paymodal-balance[hidden] { display: none; }
.paymodal-balance b { font-weight: 600; color: #2b2b2b; }
.paymodal-balance b.is-enough { color: #07c160; }
.paymodal-balance b.is-short { color: #ff343b; }
.paymodal-recharge { color: #2d8cf0; text-decoration: none; }
.paymodal-recharge:hover { text-decoration: underline; }
.paymodal-member-tip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 10px 0 0; padding: 8px 10px; border-radius: 6px;
  background: rgba(7, 193, 96, .08); color: #0b9a53; font-size: 12px; line-height: 1.5;
}
.paymodal-member-tip[hidden] { display: none; }
.paymodal-tip { margin: 10px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: #ff343b; }
.paymodal-tip[hidden] { display: none; }
.paymodal-submit.shake { animation: paymodal-shake .4s; }
body[data-scheme="dark"] .paymodal-balance b { color: #e6e8ee; }
body[data-scheme="dark"] .paymodal-balance b.is-enough { color: #4ade80; }
body[data-scheme="dark"] .paymodal-member-tip { background: rgba(7, 193, 96, .14); color: #6ee7a8; }

/* ==================== 文章操作条 entry-bar（1:1 对齐 wpcom JustNews） ==================== */
/* 操作条：随 article-bottom-info 容器，左右固定内缩与来源注释对齐，图标绝不贴边；文字不加粗 */
.entry-bar { margin: 12px 20px 4px; padding: 12px 0 0; border-top: 1px solid var(--gray-2); font-weight: 400; }
.entry-bar .author-name, .entry-bar .meta-item, .entry-bar .mobile, .entry-bar .num { font-weight: 400; }
.entry-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; position: relative;
}
.entry-bar-author a { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex-shrink: 0; }
.entry-bar-author img { width: 36px; height: 36px; border-radius: 50%; margin-right: 8px; }
.entry-bar-author .author-name {
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; line-height: 36px; color: var(--blue);
}
/* 作者标识不参与压缩，避免昵称截断、徽章竖排换行 */
.entry-bar-author .article-vip-mark { margin-left: 6px; flex-shrink: 0; }
.entry-bar-author .article-admin-mark {
  display: inline-block; flex-shrink: 0; white-space: nowrap;
  border: 1px solid var(--blue); border-radius: 4px; color: var(--blue);
  font-size: 12px; font-weight: 400; font-style: normal; line-height: 1;
  padding: 4px 8px; margin-left: 8px;
}
/* 操作簇整体紧凑靠右，与作者之间仅留适度间距（对齐参考站） */
.entry-bar-info { display: flex; justify-content: flex-end; align-items: center; margin-left: auto; flex-shrink: 0; }
.entry-bar .info-item {
  display: inline-flex; align-items: center; line-height: 36px;
  margin-right: 12px; padding-left: 12px; position: relative;
  color: var(--gray-5);
}
.entry-bar .info-item:before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 18px; margin-top: -9px;
  background: var(--gray-5); opacity: .6;
}
.entry-bar .info-item.meta { padding-left: 0; }
.entry-bar .info-item.meta:before { display: none; }
.entry-bar .info-item.act { margin-right: 0; }
.entry-bar .info-item a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.entry-bar .info-item a:hover { color: var(--blue); }
.entry-bar .meta-item { display: inline-block; padding: 0 5px; transition: all .3s ease-out; }
.entry-bar .meta-item:first-child { padding-left: 0; }
.entry-bar .meta-item .fa-solid, .entry-bar .meta-item .fa-regular, .entry-bar .meta-item .fa-brands { font-size: 16px; }
.entry-bar .meta-item.wechat:hover { color: #44b549; }
.entry-bar .meta-item.weibo:hover { color: #e05244; }
.entry-bar .meta-item.qq:hover { color: #22a4ff; }
.entry-bar .act-fav.hearted, .entry-bar .act-fav.hearted:hover { color: #ff5e5e; }
/* 生成海报：参考站药丸按钮（描边），悬停扫光 + 图标动效 */
.entry-bar .share .mobile {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--gray-4); border-radius: 999px;
  color: var(--gray-6); line-height: 30px; padding: 0 16px; font-size: 13.5px;
  transition: all .25s ease-out; position: relative; overflow: hidden; background: var(--card-bg);
}
.entry-bar .share .mobile::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(56, 88, 246, .16), transparent);
  transform: skewX(-20deg); transition: left .55s ease;
}
.entry-bar .share .mobile:hover {
  color: var(--blue); border-color: var(--blue);
  background: rgba(56, 88, 246, .06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 127, 255, .20);
}
.entry-bar .share .mobile:hover::after { left: 130%; }
.entry-bar .share .mobile .fa-solid { font-size: 14px; transition: transform .3s ease; }
.entry-bar .share .mobile:hover .fa-solid { transform: rotate(-15deg) scale(1.12); }
/* 微信二维码悬停弹层（与 wpcom share-wx-wrap 一致） */
.share-wx-wrap {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 14px 10px; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(27, 26, 49, .16);
  opacity: 0; visibility: hidden; transition: all .25s ease-out;
  z-index: 60; pointer-events: none; cursor: default;
}
.share-wx-wrap:after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff;
}
.meta-item.wechat:hover .share-wx-wrap, .share-wx-wrap.show { opacity: 1; visibility: visible; }
.share-wx-wrap .j-share-qrcode {
  width: 132px; height: 132px; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.share-wx-wrap .j-share-qrcode canvas, .share-wx-wrap .j-share-qrcode img { display: block; }
.share-wx-wrap > span:last-child { font-size: 12px; color: var(--gray-6); white-space: nowrap; }
/* 阅读模式：隐藏侧栏与周边模块，正文居中（对齐 wpcom body.reading） */
body.reading .aside-left, body.reading .aside-right, body.reading .entry-bar,
body.reading .post-nav, body.reading .site-footer, body.reading .back-top { display: none !important; }
body.reading .container.layout { grid-template-columns: minmax(0, 1fr) !important; max-width: 860px; }
/* 赞按钮：参考站为白底蓝描边胶囊 */
.detail-actions .like-btn {
  background: var(--card-bg); border: 1px solid var(--blue); color: var(--blue);
  border-radius: 8px; padding: 10px 30px; font-size: 15px;
}
.detail-actions .like-btn .like-heart { color: var(--blue); }
.detail-actions .like-btn:hover { background: var(--blue); color: #fff; }
.detail-actions .like-btn:hover .like-heart { color: #fff; }
.detail-actions .like-btn.liked { background: var(--blue); color: #fff; }
.detail-actions .like-btn.liked .like-heart { color: #fff; }
/* 窄屏操作条允许换行，避免溢出容器 */
@media (max-width: 640px) {
  .entry-bar { margin-left: 12px; margin-right: 12px; }
  .entry-bar-inner { flex-wrap: wrap; row-gap: 4px; }
  .entry-bar-info { flex-wrap: wrap; row-gap: 4px; }
  .entry-bar .info-item { line-height: 34px; margin-right: 12px; padding-left: 12px; }
  .entry-bar .info-item.share { padding-left: 0; }
  .entry-bar .info-item.share:before { display: none; }
}

/* ============================================================
   站点载入蒙层已按需求移除（原 .site-preloader 全屏遮罩样式删除）
   ============================================================ */
