

.pg-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 12px;
  position: relative; overflow: hidden;
  animation: cardFadeIn 0.8s ease both;
}
.pg-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: var(--glass-highlight); z-index: 0;
}
.pg-card > * { position: relative; z-index: 1; }

.pg-card-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.pg-card-title i {
  color: var(--accent); font-size: 13px;
}

.pg-profile-card {
  padding: 24px;
}
.pg-profile-top {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}
.pg-profile-avatar {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.pg-profile-avatar img {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block;
}
.pg-profile-avatar span {
  font-size: 26px; font-weight: 700; color: #fff;
}
.pg-profile-info { flex: 1; min-width: 0; }
.pg-profile-name {
  font-size: 20px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.pg-profile-bio {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.pg-profile-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pg-profile-links {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.pg-profile-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px; color: var(--text-secondary);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .2s;
}
.pg-profile-links a:hover {
  color: var(--accent); border-color: var(--accent);
  background: var(--accent-soft);
}
.pg-profile-links a i { font-size: 11px; }

.pg-stats-card {
  display: flex; align-items: center;
  padding: 18px 22px;
  gap: 0;
}
.pg-stat {
  flex: 1; text-align: center;
  padding: 4px 0;
}
.pg-stat-divider {
  width: 1px; height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
.pg-stat b {
  display: block;
  font-size: 24px; font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.pg-stat span {
  font-size: 12px; color: var(--text-light);
}

.pg-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pg-info-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.pg-info-item:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-md);
}
html.dark .pg-info-item:hover { box-shadow: var(--shadow-md); }
.pg-info-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.pg-info-text { display: flex; flex-direction: column; }
.pg-info-label { font-size: 11px; color: var(--text-light); margin-bottom: 2px; }
.pg-info-value { font-size: 13px; font-weight: 600; color: var(--text); }

@media (max-width: 600px) {
  .pg-info-grid { grid-template-columns: 1fr; }
}

.pg-tl {
  padding-left: 20px; position: relative;
}
.pg-tl::before {
  content: ''; position: absolute;
  left: 5px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  border-radius: 2px;
}
.pg-tl-item {
  position: relative;
  padding: 0 0 24px 20px;
}
.pg-tl-item:last-child { padding-bottom: 0; }
.pg-tl-item::before {
  content: ''; position: absolute;
  left: -18px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-soft), 0 0 8px var(--accent-glow);
}
.pg-tl-head {
  font-size: 15px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.pg-tl-item p, .pg-tl-item ul, .pg-tl-item ol {
  font-size: 13px; line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.pg-tl-item p:last-child { margin-bottom: 0; }
.pg-tl-item a { color: var(--accent); text-decoration: none; }
.pg-tl-item a:hover { text-decoration: underline; }
.pg-tl-item img {
  max-width: 100%; border-radius: var(--radius-xs);
  margin: 8px 0; cursor: pointer;
}
.pg-tl-item blockquote {
  margin: 8px 0; padding: 8px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: var(--text-secondary); font-size: 13px;
}
.pg-tl-item pre {
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-xs); padding: 12px;
  overflow-x: auto; font-size: 13px;
}
html.dark .pg-tl-item pre { background: rgba(255,255,255,0.06); }

@media (max-width: 480px) {
  .pg-profile-avatar { width: 48px; height: 48px; }
  .pg-profile-avatar img { width: 48px; height: 48px; }
  .pg-profile-avatar span { font-size: 22px; }
  .pg-profile-name { font-size: 18px; }
  .pg-stat b { font-size: 20px; }
}


.pg-arch-list {
  padding-top: 8px;
}

.pg-arch-panel {
  animation: archFadeIn .3s ease;
  position: relative; z-index: 2;
}
@keyframes archFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pg-arch-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  text-decoration: none; color: inherit;
  transition: background .2s, box-shadow .2s;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  position: relative; z-index: 2;
  opacity: 0; transform: translateY(16px);
}
.pg-arch-row.card-visible {
  animation: cardFadeIn 0.8s ease both;
}
.pg-arch-row:hover {
  background: var(--glass-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
html.dark .pg-arch-row:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.15); }

.pg-arch-row-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: all .2s;
}
.pg-arch-row:hover .pg-arch-row-dot {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.pg-arch-row-date {
  font-size: 13px; color: var(--text-light);
  flex-shrink: 0; min-width: 60px;
  font-weight: 500;
}
.pg-arch-row-title {
  font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; flex: 1;
  transition: color .15s;
  font-weight: 500;
}
.pg-arch-row:hover .pg-arch-row-title { color: var(--accent); }

.pg-arch-row-meta {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  font-size: 12px; color: var(--text-light);
}
.pg-arch-row-meta i { font-size: 11px; margin-right: 3px; }
.pg-arch-row-meta span {
  display: inline-flex; align-items: center; gap: 2px;
}

@media (max-width: 480px) {
  .pg-stats-card { flex-wrap: wrap; }
  .pg-stat { min-width: 45%; }
  .pg-stat-divider { display: none; }
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 17px 19px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  min-width: 0;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
  transition: background .25s, box-shadow .25s, border-color .25s, transform .25s;
}
.post-nav-item:not(.post-nav-empty):hover {
  background: var(--glass-bg-strong);
  box-shadow: 0 14px 32px rgba(15,23,42,.10);
  border-color: rgba(255,255,255,0.75);
  transform: translateY(-2px);
}
html.dark .post-nav-item { box-shadow: 0 10px 26px rgba(0,0,0,.24); }
html.dark .post-nav-item:not(.post-nav-empty):hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 14px 32px rgba(0,0,0,.34);
}
.post-nav-empty {
  opacity: .5;
  cursor: default;
}
.post-nav-label {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-nav-next .post-nav-label {
  justify-content: flex-end;
}
.post-nav-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .15s;
}
.post-nav-item:not(.post-nav-empty):hover .post-nav-title {
  color: var(--accent);
}
.post-nav-next {
  text-align: right;
}

@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr 1fr; gap: 8px; }
  .post-nav-item { padding: 11px 12px; border-radius: 12px; gap: 5px; }
  .post-nav-label { font-size: 10px; gap: 3px; letter-spacing: .02em; }
  .post-nav-title { font-size: 12.5px; }
}

.error-recommend {
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
}
.error-recommend-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}
.error-recommend-title i {
  color: var(--accent);
  font-size: 14px;
}
.error-recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.error-recommend-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--glass-bg, rgba(255,255,255,.45));
  border: 1px solid rgba(255,255,255,.2);
  text-decoration: none;
  transition: all .2s;
}
.error-recommend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: var(--accent);
}
.error-recommend-cover {
  width: 100%;
  height: 100px;
  overflow: hidden;
}
.error-recommend-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.error-recommend-card:hover .error-recommend-cover img {
  transform: scale(1.05);
}
.error-recommend-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft, rgba(99,102,241,.1)), var(--accent-glow, rgba(99,102,241,.25)));
}
.error-recommend-fallback span {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
}
.error-recommend-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.error-recommend-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #1f2937);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.error-recommend-date {
  font-size: 11px;
  color: var(--text-light, #9ca3af);
}

html.dark .error-recommend-card {
  background: rgba(26,29,39,.6);
  border-color: rgba(255,255,255,.06);
}
html.dark .error-recommend-card-title {
  color: #e5e7eb;
}
html.dark .error-recommend-title {
  color: #e5e7eb;
}

@media (max-width: 480px) {
  .error-recommend-grid { grid-template-columns: 1fr; }
}

.article-content pre code.hljs {
  padding: 18px 22px;
  background: transparent;
}
html.dark .article-content pre code.hljs {
  background: transparent;
}

@media print {
  .orb, .sidebar, .topbar, .bottom-bar, .sidebar-overlay,
  .like-wrap, .post-nav, .toc-wrap,
  .cmt-section, .topbar-actions,
  .hamburger, .mobile-search,
  .code-copy-btn, .lightbox, .fade-top, .fade-bottom { display: none !important; }
  
  .page { box-shadow: none; border: none; max-width: 100%; margin: 0; }
  .shell { background: #fff !important; backdrop-filter: none !important; }
  .main-body { display: block; }
  .content-area { overflow: visible; }
  .content-inner { overflow: visible; }
  .content-scroll { overflow: visible; height: auto; }
  
  .article-title { font-size: 24px; margin-bottom: 12px; }
  .article-meta { font-size: 12px; color: #666; }
  .article-content { font-size: 14px; line-height: 1.8; }
  .article-content img { max-width: 100%; height: auto; page-break-inside: avoid; }
  .article-content pre { white-space: pre-wrap; word-break: break-all; border: 1px solid #ddd; }
  .article-content table { border-collapse: collapse; width: 100%; }
  .article-content th, .article-content td { border: 1px solid #ddd; padding: 6px 8px; }
  
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 11px; color: #999; }
  a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
}

/* ==================== 顶栏与输入控件（原 header.php 内联样式） ==================== */
/* 输入框统一主题字体，提示文字与界面文字保持同一比例 */
.topbar-search,
.mobile-search input,
.cmt-fields input,
.cmt-textarea-wrap textarea,
.cmt-modal-card .cmt-fields input,
.cmt-modal-card .cmt-textarea-wrap textarea {
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0;
}
@media (max-width: 920px) {
  .topbar-search,
  .mobile-search input,
  .cmt-fields input,
  .cmt-textarea-wrap textarea,
  .cmt-modal-card .cmt-fields input,
  .cmt-modal-card .cmt-textarea-wrap textarea { font-size: 14px; }
}

/* ==================== 文章正文排版与图片占位（原 post.php 内联样式） ==================== */
/* 正文图片：懒加载占位与图片集一致（圆角 + 真实比例占位，避免高度抖动） */
.article-content > img, .article-content p img { height: auto; }
.article-content .img-shimmer-wrap {
    margin: 22px 0;
    border-radius: var(--radius-sm);
}
.article-content .img-shimmer-wrap img { margin: 0; }
/* 图片单独成行时，编辑器留下的换行 <br> 会多撑出一整行空白 */
.article-content .img-shimmer-wrap + br,
.article-content p > img + br { display: none; }

/* —— 文章页排版：间距与层级 —— */
.article-content {
    font-size: 16px;
    line-height: 1.85;
    padding-top: 0;
    letter-spacing: .012em;
}
.article-content p { margin: 0 0 18px; }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content > hr:last-child { display: none; }
.article-content > :nth-last-child(2) { margin-bottom: 0; }

/* 标题统一为左侧竖条样式，靠字号区分层级 */
.article-content h2 {
    display: block;
    margin: 36px 0 16px;
    padding: 0 0 0 14px;
    font-size: 22px; font-weight: 700; line-height: 1.5;
    letter-spacing: -.01em;
    background: none;
    position: relative;
}
.article-content h2::before {
    content: '';
    position: absolute; left: 0; top: .24em; bottom: .24em;
    width: 4px; border-radius: 2px;
    background: var(--accent);
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
    margin: 28px 0 14px;
    padding: 0 0 0 12px;
    font-size: 17px; font-weight: 600; line-height: 1.55;
    background: none;
    border-radius: 0;
}
.article-content h3::before {
    left: 0; top: 3px; bottom: 3px;
    width: 3px; border-radius: 2px;
    opacity: .55;
}
.article-content h4 {
    margin: 24px 0 10px;
    font-size: 16px; font-weight: 600;
    color: var(--text);
}

/* 列表：圆点与序号对齐首行光学中心 */
.article-content ul, .article-content ol { padding-left: 26px; margin: 0 0 18px; }
.article-content ul > li, .article-content ol > li {
    margin-bottom: 10px; padding-left: 2px; line-height: 1.85;
}
.article-content li:last-child { margin-bottom: 0; }
.article-content li ul, .article-content li ol { margin-top: 10px; margin-bottom: 0; }
.article-content ul > li::before {
    left: -17px; top: 12px;
    width: 5px; height: 5px;
    opacity: .55;
}
.article-content ol > li::before {
    content: counter(list-counter) ".";
    left: -26px; top: 0;
    width: 22px; height: auto;
    background: none;
    color: var(--accent);
    font-size: 13px; font-weight: 600;
    line-height: 29.6px;
    text-align: right;
    transform: none;
}

/* 代码块：压缩装饰条，首尾留白平衡 */
.article-content pre { margin: 22px 0; border-radius: 14px; }
.article-content pre::before {
    height: 26px;
    background-size: 10px 10px;
    background-position: 14px center, 28px center, 42px center;
}
.article-content pre code,
.article-content pre code.hljs {
    padding: 12px 18px 14px;
    font-size: 13px; line-height: 1.7;
}
.article-content .code-copy-btn { top: 2px; right: 8px; }

/* 表格：提升表头识别度，收紧缩放 */
.article-content .table-wrap { margin: 22px 0; }
.article-content table { font-size: 13.5px; }
.article-content th, .article-content td { padding: 9px 13px; line-height: 1.65; }
.article-content th {
    font-size: 12.5px; letter-spacing: .2px;
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}
html.dark .article-content th { background: rgba(255, 255, 255, .06); }

/* 引用块 */
.article-content blockquote {
    margin: 22px 0;
    padding: 16px 20px 16px 46px;
    font-size: 15.5px; line-height: 1.8;
}
.article-content blockquote::before { top: 2px; left: 12px; font-size: 38px; }

/* 分割线：更清晰、与标题节奏一致 */
.article-content hr {
    width: 100%;
    margin: 30px 0;
    background: linear-gradient(to right, transparent, var(--border) 18%, var(--border) 82%, transparent);
}

/* 图注与配图 */
.article-content figcaption { margin: 10px 0 22px; font-size: 12.5px; color: var(--text-light); }
.article-content figure { margin: 22px 0; }

/* 顶部信息区保持主题原有样式 */

/* 关闭状态下的目录不再占 2px 槽位 */
.toc-wrap:not(.open) { border: 0; }

/* 收尾节奏：点赞与上下篇不再松散 */
.like-wrap { padding: 16px 0; margin: 12px 0 4px; }
.post-nav { margin-top: 24px; padding-top: 20px; }

/* 顶部图片与首页同源：高度对齐首屏，图片不做载入动画（标题动画保留） */
.article-hero-content { min-height: 188px; }
@media (max-width: 920px) {
    .article-hero-content { min-height: 188px; }
}
@media (max-width: 640px) {
    .article-hero-content { min-height: 164px; }
}

/* ==================== 评论区与私密评论遮罩（原 comments.php 内联样式） ==================== */
/* 私密评论：非站长/非作者视角只显示骨架遮挡，正文不会输出到页面 */
.cmt-text-masked { position: relative; margin-bottom: 4px; }
.cmt-mosaic {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .03);
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}
html.dark .cmt-mosaic { background: rgba(255, 255, 255, .04); }
.cmt-mosaic-bar {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(26, 26, 26, .11), rgba(26, 26, 26, .05));
    filter: blur(1.6px);
    opacity: .85;
}
html.dark .cmt-mosaic-bar {
    background: linear-gradient(90deg, rgba(232, 234, 237, .13), rgba(232, 234, 237, .05));
}
.cmt-mosaic-bar-1 { width: 82%; }
.cmt-mosaic-bar-2 { width: 56%; }
.cmt-text-masked .cmt-mosaic-hint {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 5px;
    margin: 0; padding: 4px 11px;
    border-radius: 999px;
    background: var(--glass-bg-solid);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .18);
    font-size: 11px; line-height: 1;
    color: var(--text-secondary, #8a94a6);
    white-space: nowrap;
    pointer-events: none;
}
.cmt-mosaic-hint i { font-size: 10px; color: var(--accent); }

/* 私密开关（评论表单内），与「已就绪」验证标签同尺寸 */
.cmt-form-bar .cmt-form-left { gap: 6px; }
.cmt-private-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.cmt-private-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cmt-private-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px;
    font-size: 10px; line-height: 1;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .18s var(--ease-soft);
}
.cmt-private-pill i { font-size: 11px; }
.cmt-private-pill > span { line-height: 1; }
.cmt-private-toggle:hover .cmt-private-pill {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent-glow);
}
.cmt-private-toggle:active .cmt-private-pill { transform: scale(.96); }
.cmt-private-toggle input:checked + .cmt-private-pill {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 3px 10px -4px var(--accent-glow);
}
.cmt-private-toggle:hover input:checked + .cmt-private-pill { background: var(--accent-hover); }
.cmt-private-toggle input:focus-visible + .cmt-private-pill {
    box-shadow: 0 0 0 2px var(--accent-soft);
}

/* ==================== 关于页 ==================== */
.abt { padding: 0 0 10px; }

/* 资料卡：沿用留言板头卡的玻璃渐变 */
.abt-head {
    position: relative; overflow: hidden;
    padding: 24px 24px 0;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(120% 130% at 100% 0%, var(--accent-glow), transparent 58%),
        linear-gradient(120deg, var(--accent-soft), rgba(255,255,255,.34) 62%, transparent),
        var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
    box-shadow: var(--shadow-sm);
}
html.dark .abt-head {
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(148,200,216,.2), transparent 58%),
        linear-gradient(120deg, rgba(148,200,216,.12), rgba(255,255,255,.04) 62%, transparent),
        var(--glass-bg);
}
.abt-deco {
    position: absolute; right: 12px; top: 4px;
    font-size: 104px; line-height: 1;
    color: var(--accent); opacity: .13;
    transform: rotate(-8deg);
    pointer-events: none; user-select: none;
}
html.dark .abt-deco { opacity: .1; }

.abt-profile { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.abt-avatar {
    flex: none; width: 58px; height: 58px; border-radius: 18px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    box-shadow: 0 8px 20px -10px var(--accent-glow);
}
.abt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.abt-intro { flex: 1; min-width: 0; }
.abt-eyebrow {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.5);
    font-size: 10px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-hover);
}
html.dark .abt-eyebrow { background: rgba(255,255,255,.06); color: var(--accent); }
.abt-eyebrow i { font-size: 10px; }
.abt-title {
    margin: 5px 0 7px;
    font-size: 24px; font-weight: 700; line-height: 1.34; letter-spacing: -.4px;
    color: var(--text);
}
.abt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; color: var(--text-light); letter-spacing: .2px; }
.abt-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; }

/* 社交胶囊 */
.abt-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.abt-links a {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.5);
    font-size: 11.5px; color: var(--text-secondary); text-decoration: none;
    transition: color .2s, background .2s, border-color .2s, transform .2s;
}
html.dark .abt-links a { background: rgba(255,255,255,.06); }
.abt-links a i { font-size: 11px; color: var(--text-light); transition: color .2s; }
.abt-links a:hover {
    color: var(--accent); border-color: var(--accent-glow);
    background: var(--accent-soft); transform: translateY(-1px);
}
.abt-links a:hover i { color: var(--accent); }

/* 数据条 */
.abt-stats {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin: 20px 0 0; padding: 12px 0 14px;
    border-top: 1px solid var(--border);
}
.abt-stat { position: relative; padding-left: 18px; }
.abt-stat:first-child { padding-left: 0; }
.abt-stat + .abt-stat::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.abt-stat b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.2px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abt-stat span { display: block; margin-top: 1px; font-size: 10.5px; color: var(--text-light); letter-spacing: .2px; }

/* 区块标题 */
.abt-sec { margin-top: 30px; }
.abt-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.abt-sec-head h2 {
    display: inline-flex; align-items: center; gap: 8px; margin: 0;
    font-size: 12.5px; font-weight: 600; letter-spacing: .12em; color: var(--text);
}
.abt-sec-head h2::before {
    content: ''; width: 4px; height: 12px; border-radius: 2px;
    background: linear-gradient(var(--accent), var(--accent-hover));
}
.abt-sec-head > span { font-size: 10.5px; color: var(--text-light); letter-spacing: .4px; font-variant-numeric: tabular-nums; }
.abt-more { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-light); text-decoration: none; transition: color .2s; }
.abt-more i { font-size: 9px; }
.abt-more:hover { color: var(--accent); }

/* 建站历程：时间轴 */
.abt-story { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.9; color: var(--text-secondary); }
.abt-story::before { content: ''; position: absolute; left: 5px; top: 5px; bottom: 8px; width: 1px; background: var(--border); }
.abt-story p { margin: 0 0 10px; }
.abt-story h3, .abt-story h2, .abt-story h4 { margin: 14px 0 6px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--text); }
.abt-story strong { color: var(--text); font-weight: 600; }
.abt-story a { color: var(--accent); text-decoration: none; }
.abt-story a:hover { text-decoration: underline; }
.abt-story img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.abt-story ul, .abt-story ol { margin: 0; padding: 0; list-style: none; }
.abt-story li { position: relative; padding: 0 0 16px; border-top: 0; }
.abt-story li:last-child { padding-bottom: 0; }
.abt-story li::before {
    content: ''; position: absolute; left: -22px; top: 5px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent); box-sizing: border-box;
}
.abt-story li > time {
    display: inline-block; margin-bottom: 4px; padding: 1px 7px;
    border-radius: 5px; background: var(--accent-soft);
    font-size: 10px; letter-spacing: .5px; color: var(--accent); font-variant-numeric: tabular-nums;
}
.abt-story li > strong { display: block; margin-bottom: 2px; font-size: 13.5px; line-height: 1.55; }

/* 最近更新 */
.abt-posts { margin: 0; padding: 0; list-style: none; }
.abt-posts li + li { border-top: 1px solid var(--border); }
.abt-posts a {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 10px; margin: 0 -10px; border-radius: 10px;
    text-decoration: none;
    transition: background .2s;
}
.abt-posts a:hover { background: var(--accent-soft); }
.abt-posts time { flex: none; width: 44px; font-size: 10.5px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.abt-post-title { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.abt-posts i { flex: none; font-size: 9px; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.abt-posts a:hover .abt-post-title { color: var(--accent); }
.abt-posts a:hover i { opacity: 1; transform: none; }

/* 留言引导条 */
.abt-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 30px; padding: 16px 20px;
    border-radius: var(--radius); border: 1px solid var(--glass-border);
    background: linear-gradient(120deg, var(--accent-soft), rgba(255,255,255,.3) 70%), var(--glass-bg);
    font-size: 12px; color: var(--text-secondary);
}
html.dark .abt-cta {
    background: linear-gradient(120deg, rgba(148,200,216,.14), rgba(255,255,255,.05) 70%), var(--glass-bg);
}
.abt-cta a {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px;
    border-radius: var(--radius-pill); background: var(--accent-strong); color: #fff;
    font-size: 12px; font-weight: 600; text-decoration: none;
    transition: background .2s, transform .2s;
}
.abt-cta a:hover { background: var(--accent-strong-hover); }
.abt-cta a i { font-size: 10px; transition: transform .2s; }
.abt-cta a:hover i { transform: translateX(3px); }

@media (max-width: 640px) {
    .abt-head { padding: 20px 18px 0; }
    .abt-deco { font-size: 76px; right: 4px; top: 2px; opacity: .11; }
    .abt-avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 18px; }
    .abt-title { font-size: 20px; letter-spacing: -.3px; }
    .abt-stats { grid-template-columns: repeat(4, 1fr); gap: 0; margin: 18px 0 0; padding: 14px 0; }
    .abt-stat { min-width: 0; padding-left: 10px; }
    .abt-stat:nth-child(odd) { padding-left: 10px; }
    .abt-stat:first-child { padding-left: 0; }
    .abt-stat:nth-child(odd)::before { display: block; }
    .abt-stat:first-child::before { display: none; }
    .abt-stat b { font-size: 15px; line-height: 1.3; }
    .abt-stat span { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .abt-sec { margin-top: 24px; }
    .abt-links { gap: 8px; }
    .abt-links a { height: 29px; padding: 0 11px; }
}

/* 关于页：复用首页卡片入场（cardFadeIn + .card-visible） */
.abt-head, .abt-sec, .abt-cta { opacity: 0; transform: translateY(16px); }
.abt-head.card-visible, .abt-sec.card-visible,
.abt-cta.card-visible { animation: cardFadeIn 0.8s ease both; }

/* ================= 留言板 ================= */
.gb-page { display: flex; flex-direction: column; gap: 16px; }

.gb-hero {
  position: relative; overflow: hidden;
  padding: 24px 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(120% 130% at 100% 0%, var(--accent-glow), transparent 58%),
    linear-gradient(120deg, var(--accent-soft), rgba(255,255,255,.34) 62%, transparent),
    var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  box-shadow: var(--shadow-sm);
}
html.dark .gb-hero {
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(148,200,216,.2), transparent 58%),
    linear-gradient(120deg, rgba(148,200,216,.12), rgba(255,255,255,.04) 62%, transparent),
    var(--glass-bg);
}
.gb-deco {
  position: absolute; right: 12px; top: 4px;
  font-size: 104px; line-height: 1;
  color: var(--accent); opacity: .13;
  transform: rotate(-8deg);
  pointer-events: none; user-select: none;
}
html.dark .gb-deco { opacity: .1; }

.gb-hero-body { position: relative; z-index: 1; }
.gb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.5);
  border: 1px solid var(--glass-border);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-hover);
}
html.dark .gb-badge { background: rgba(255,255,255,.06); color: var(--accent); }
.gb-badge i { font-size: 10px; }
.gb-title {
  margin-top: 10px;
  font-size: clamp(22px, 3vw, 27px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.3; color: var(--text);
}
.gb-sub { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }

.gb-stats {
  position: relative; z-index: 1;
  display: flex; margin-top: 20px; padding: 12px 0 14px;
  border-top: 1px solid var(--border);
}
.gb-stat {
  flex: 1; min-width: 0; padding-left: 18px; position: relative;
  display: flex; flex-direction: column; gap: 1px;
}
.gb-stat:first-child { padding-left: 0; }
.gb-stat::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 1px; background: var(--border);
}
.gb-stat:first-child::before { display: none; }
.gb-stat b {
  font-size: 17px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gb-stat span { font-size: 10.5px; color: var(--text-light); }

.gb-intro {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font-size: 13.5px; color: var(--text-secondary);
}
.gb-intro p:last-child { margin-bottom: 0; }

.gb-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.gb-tip {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  font-size: 11.5px; line-height: 1.55;
  color: var(--text-secondary);
}
.gb-tip > i { flex: none; font-size: 13px; color: var(--accent); }
.gb-tip > span { flex: 1; min-width: 0; }
.gb-tip b { color: var(--text); font-weight: 600; }

.gb-tips + #comments {
  margin-top: 4px; padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .gb-hero { padding: 20px 18px 0; }
  .gb-deco { font-size: 76px; right: 4px; top: 2px; opacity: .11; }
  .gb-title { margin-top: 8px; }
  .gb-tips { gap: 6px; }
  .gb-tip { gap: 5px; padding: 8px 8px; font-size: 11px; }
  .gb-tip > i { font-size: 12px; }
  .gb-tip > span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .gb-stat { padding-left: 14px; }
  .gb-stat b { font-size: 15px; }
}

/* ================= 归档页 ================= */
.arch-hero { margin-bottom: 16px; }
.arch-page .gb-intro { margin-bottom: 16px; }

/* 年份：头卡内的分段控件（滑块跟随悬停/选中） */
.arch-years {
  position: relative;
  display: inline-flex; align-items: center;
  gap: 2px;
  margin: 13px 0 0; padding: 3px;
  border: 1px solid rgba(0,0,0,.045);
  border-radius: 999px;
  background: rgba(0,0,0,.045);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
  overflow: visible;
}
html.dark .arch-years {
  border-color: rgba(255,255,255,.05);
  background: rgba(255,255,255,.06);
  box-shadow: none;
}
.arch-years .links-cat-tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: baseline; gap: 5px;
  margin: 0; padding: 5px 12px;
  border: none; border-radius: 999px;
  background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  font-size: 12.5px; font-weight: 500; line-height: 1.45;
  letter-spacing: .01em;
  color: var(--text-secondary);
  transition: color .2s;
}
.arch-years .links-cat-tab:hover { color: var(--text); background: none; }
.arch-years .links-cat-tab .links-cat-count {
  margin: 0; padding: 0;
  border: none; background: none; border-radius: 0;
  font-size: 10.5px; font-weight: 500;
  color: var(--text-light); opacity: .9;
  transition: color .2s, opacity .2s;
}
.arch-years .links-cat-tab.active {
  color: var(--text); font-weight: 600;
  background: none; box-shadow: none;
}
.arch-years .links-cat-tab.active .links-cat-count { color: var(--accent-hover); opacity: 1; }
html.dark .arch-years .links-cat-tab.active .links-cat-count { color: var(--accent); }

/* 共用滑块（尺寸/位置由 JS 写入） */
.slide-thumb {
  position: absolute; left: 0; top: 0;
  z-index: 0; width: 0; height: 0;
  border-radius: 999px;
  pointer-events: none;
  will-change: transform, width, height;
  transition: transform .34s var(--spring), width .34s var(--spring), height .34s var(--spring);
}
.arch-years .slide-thumb {
  background: var(--glass-bg);
  background: var(--glass-thumb);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-thumb-line), inset 0 0 0 1px var(--glass-border), 0 1px 3px rgba(0,0,0,.05);
}

/* ================= 侧栏导航：竖向滑动高亮 ================= */
.nav-group { position: relative; }
.nav-group .slide-thumb {
  border-radius: 8px;
  background: var(--glass-bg);
  background: var(--glass-thumb);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-thumb-line), inset 0 0 0 1px var(--glass-border), 0 1px 3px rgba(0,0,0,.04);
  transition: transform .22s var(--ease-out-quint), width .22s var(--ease-out-quint), height .22s var(--ease-out-quint), opacity .2s;
}
.sidebar .nav-group .nav-item { position: relative; z-index: 1; transition: color .18s; }
.sidebar .nav-group .nav-item,
.sidebar .nav-group .nav-item:hover,
.sidebar .nav-group .nav-item.active,
.sidebar .nav-group .nav-item:focus-visible {
  background: none !important;
  box-shadow: none !important;
}
.nav-group.is-previewing .nav-item.active:not(:hover) { color: var(--text-secondary); }
.nav-group.is-previewing .nav-item.active:not(:hover) i { color: var(--text-light); }
.nav-group.is-previewing .nav-item:hover { color: var(--text); }

/* ================= 友链分类：同款滑动胶囊 ================= */
#linksCategoryTabs:not(.arch-years) {
  position: relative;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 3px; margin-bottom: 16px;
  border: none; border-radius: 999px;
  background: rgba(20,30,45,.045);
}
html.dark #linksCategoryTabs:not(.arch-years) { background: rgba(255,255,255,.06); }
#linksCategoryTabs:not(.arch-years) .links-cat-tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0; padding: 5px 12px;
  border: none; border-radius: 999px;
  background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  font-size: 12.5px; font-weight: 500; line-height: 1.45;
  color: var(--text-secondary);
  transition: color .2s;
}
#linksCategoryTabs:not(.arch-years) .links-cat-tab:hover {
  color: var(--text); background: none;
}
#linksCategoryTabs:not(.arch-years) .links-cat-tab .links-cat-count {
  margin: 0; padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px; font-weight: 500;
  background: rgba(0,0,0,.05); color: var(--text-secondary);
  transition: background .2s, color .2s;
}
#linksCategoryTabs:not(.arch-years) .links-cat-tab.active {
  color: var(--text); background: none; box-shadow: none;
}
#linksCategoryTabs:not(.arch-years) .links-cat-tab.active .links-cat-count {
  background: var(--accent-soft); color: var(--accent-hover);
}
html.dark #linksCategoryTabs:not(.arch-years) .links-cat-tab.active .links-cat-count {
  background: rgba(148,200,216,.14); color: var(--accent);
}
html.dark #linksCategoryTabs:not(.arch-years) .links-cat-tab .links-cat-count {
  background: rgba(255,255,255,.08);
}
#linksCategoryTabs:not(.arch-years) .slide-thumb {
  background: var(--glass-bg);
  background: var(--glass-thumb);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-thumb-line), inset 0 0 0 1px var(--glass-border), 0 1px 3px rgba(0,0,0,.05);
}

/* ================= 通知卡片：同款滑动胶囊 ================= */
.notice-tabs { position: relative; }
.notice-tabs .notice-tab {
  position: relative; z-index: 1;
  transition: color .2s;
}
.notice-tabs .notice-tab.is-active {
  background: transparent; box-shadow: none; color: var(--text);
}
.notice-tabs .notice-tab.is-active .notice-tab-count {
  background: #e5484d; color: #fff;
}

/* 悬停预览时，选中项让位给滑块位置 */
#linksCategoryTabs.is-previewing .links-cat-tab.active:not(:hover),
.notice-tabs.is-previewing .notice-tab.is-active:not(:hover) { color: var(--text-secondary); }
#linksCategoryTabs:not(.arch-years).is-previewing .links-cat-tab:hover,
.notice-tabs.is-previewing .notice-tab:hover { color: var(--text); }
#linksCategoryTabs:not(.arch-years).is-previewing .links-cat-tab:hover .links-cat-count {
  background: var(--accent-soft); color: var(--accent-hover);
}
.arch-years.is-previewing .links-cat-tab:hover .links-cat-count {
  color: var(--accent-hover); opacity: 1;
}
#linksCategoryTabs:not(.arch-years).is-previewing .links-cat-tab.active:not(:hover) .links-cat-count {
  background: rgba(0,0,0,.05); color: var(--text-secondary);
}
html.dark #linksCategoryTabs:not(.arch-years).is-previewing .links-cat-tab.active:not(:hover) .links-cat-count {
  background: rgba(255,255,255,.08);
}
html.dark .arch-years.is-previewing .links-cat-tab:hover .links-cat-count {
  color: var(--accent);
}
.notice-tabs.is-previewing .notice-tab.is-active:not(:hover) .notice-tab-count {
  background: #e5484d; color: #fff;
}

.arch-list { padding-top: 2px; }
.arch-month {
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 6px; padding: 0 6px;
}
.arch-month:first-child { margin-top: 6px; }
.arch-month b {
  font-size: 12px; font-weight: 600; color: var(--text);
  letter-spacing: .04em;
}
.arch-month span { font-size: 10.5px; color: var(--text-light); }
.arch-month i {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.arch-list .pg-arch-row { padding: 10px 12px; margin-bottom: 2px; }
.arch-list .pg-arch-row-dot {
  width: 5px; height: 5px;
  background: transparent;
  border: 1.5px solid var(--border); box-sizing: border-box;
}
.arch-list .pg-arch-row:hover .pg-arch-row-dot {
  background: var(--accent); border-color: var(--accent);
}
.arch-list .pg-arch-row-date {
  display: inline-flex; align-items: baseline; gap: 5px;
  min-width: 62px;
}
.arch-list .pg-arch-row-date b {
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.arch-list .pg-arch-row-date i {
  font-style: normal; font-size: 10px; color: var(--text-light);
}

.arch-empty {
  padding: 36px 0; text-align: center;
  font-size: 13px; color: var(--text-light);
}
.arch-empty i { margin-right: 6px; }

@media (max-width: 640px) {
  .arch-years { margin-top: 11px; padding: 2px; }
  .arch-years .links-cat-tab { padding: 5px 10px; font-size: 12px; }
  .arch-list .pg-arch-row { gap: 9px; padding: 10px 8px; }
  .arch-list .pg-arch-row-meta { gap: 8px; }
  .arch-list .pg-arch-row-date { min-width: 52px; }
  .arch-list .pg-arch-row-date i { display: none; }
}
