

.pg-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  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;
}


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

.pg-lb-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pg-lb-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  transition: all .2s;
  opacity: 0; transform: translateY(16px);
}
.pg-lb-item.card-visible {
  animation: cardFadeIn 0.8s ease both;
}
.pg-lb-item:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.7);
}
html.dark .pg-lb-item { box-shadow: var(--shadow-sm); }
html.dark .pg-lb-item:hover { box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.1); }
.pg-lb-rank {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
  background: var(--glass-bg);
  color: var(--text-light);
}
.pg-lb-rank-1 { background: rgba(234,179,8,0.15); color: #ca8a04; }
.pg-lb-rank-2 { background: rgba(156,163,175,0.15); color: #6b7280; }
.pg-lb-rank-3 { background: rgba(180,83,9,0.15); color: #b45309; }
.pg-lb-avatar {
  width: 28px; height: 28px;
  border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
}
.pg-lb-name {
  font-size: 13px; font-weight: 500; color: var(--text);
  max-width: 100px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.pg-lb-count {
  font-size: 11px; color: var(--text-light);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .pg-lb-list { flex-direction: column; }
  .pg-lb-item { border-radius: var(--radius-sm); }
  .pg-stats-card { flex-wrap: wrap; }
  .pg-stat { min-width: 45%; }
  .pg-stat-divider { display: none; }
}

.article-meta-updated {
  color: var(--accent);
}
.article-meta-updated i {
  color: var(--accent);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border, rgba(0,0,0,.06));
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-decoration: none;
  border: 1px solid var(--glass-border);
  min-width: 0;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.post-nav-item:not(.post-nav-empty):hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.7);
}
html.dark .post-nav-item:not(.post-nav-empty):hover {
  border-color: rgba(255,255,255,0.1);
}
.post-nav-empty {
  opacity: .5;
  cursor: default;
}
.post-nav-label {
  font-size: 12px;
  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;
}

html.dark .post-nav-item {
  background: var(--glass-bg);
}

@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
}

.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));
  backdrop-filter: blur(var(--glass-blur, 20px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 20px));
  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, .content-tabs, .hitokoto-banner,
  .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;
    gap: 9px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px dashed rgba(139, 92, 246, .28);
    background: linear-gradient(180deg, rgba(139, 92, 246, .05), rgba(139, 92, 246, .09));
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}
.cmt-mosaic-bar {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(139, 92, 246, .30), rgba(139, 92, 246, .14));
    filter: blur(2.2px);
    opacity: .9;
}
.cmt-mosaic-bar-1 { width: 88%; }
.cmt-mosaic-bar-2 { width: 64%; }
html.dark .cmt-mosaic {
    border-color: rgba(167, 139, 250, .30);
    background: linear-gradient(180deg, rgba(167, 139, 250, .06), rgba(167, 139, 250, .11));
}
html.dark .cmt-mosaic-bar {
    background: linear-gradient(90deg, rgba(167, 139, 250, .34), rgba(167, 139, 250, .16));
}
.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: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 12px; line-height: 1;
    color: var(--text-secondary, #8a94a6);
    white-space: nowrap;
    pointer-events: none;
}
html.dark .cmt-text-masked .cmt-mosaic-hint { background: rgba(24, 24, 32, .66); }
.cmt-mosaic-hint i { font-size: 11px; color: #8B5CF6; }
html.dark .cmt-mosaic-hint i { color: #A78BFA; }
.cmt-is-masked > .cmt-card { border-style: dashed; }

/* 私密开关（评论表单内），尺寸与「已就绪」验证标签一致 */
.cmt-form-bar .cmt-form-left { gap: 6px; }
.cmt-private-pill {
    gap: 4px;
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, .28);
    background: rgba(139, 92, 246, .06);
    transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cmt-private-toggle:hover .cmt-private-pill {
    color: #8B5CF6;
    background: rgba(139, 92, 246, .10);
    border-color: rgba(139, 92, 246, .45);
}
.cmt-private-toggle input:checked + .cmt-private-pill {
    color: #fff;
    background: linear-gradient(135deg, #8B5CF6, #7C6CF6);
    border-color: transparent;
    box-shadow: 0 4px 12px -4px rgba(124, 92, 246, .55);
}
html.dark .cmt-private-pill {
    color: #A78BFA;
    border-color: rgba(167, 139, 250, .30);
    background: rgba(167, 139, 250, .08);
}
html.dark .cmt-private-toggle:hover .cmt-private-pill {
    background: rgba(167, 139, 250, .14);
    border-color: rgba(167, 139, 250, .50);
}

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

.abt-head { position: relative; }
.abt-title {
    margin: 0 0 12px;
    font-size: 29px; font-weight: 700; line-height: 1.42; letter-spacing: -.5px;
    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 { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.abt-links a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--text-secondary); text-decoration: none;
    padding-bottom: 2px; border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.abt-links a i { font-size: 11px; color: var(--text-light); transition: color .2s; }
.abt-links a:hover { color: var(--accent); border-bottom-color: var(--accent-glow); }
.abt-links a:hover i { color: var(--accent); }

.abt-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    margin-top: 22px; padding: 16px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.abt-stat { position: relative; padding-left: 16px; }
.abt-stat:first-child { padding-left: 0; }
.abt-stat + .abt-stat::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: var(--border); }
.abt-stat b { display: block; font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -.4px; color: var(--text); font-variant-numeric: tabular-nums; }
.abt-stat span { display: block; margin-top: 5px; font-size: 10.5px; color: var(--text-light); letter-spacing: .2px; }

.abt-sec { margin-top: 26px; }
.abt-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.abt-sec-head h2 { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; color: var(--text); }
.abt-sec-head h2::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.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 { font-size: 13px; line-height: 1.9; color: var(--text-secondary); }
.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 { padding: 13px 0; border-top: 1px solid var(--border); }
.abt-story li:first-child { border-top: 0; padding-top: 0; }
.abt-story li > time { display: block; margin-bottom: 3px; font-size: 10.5px; letter-spacing: .5px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.abt-story li > strong { display: block; margin-bottom: 2px; font-size: 14px; line-height: 1.5; }

.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: baseline; gap: 14px; padding: 11px 0; text-decoration: none; }
.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: 28px; padding-top: 16px; border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-light);
}
.abt-cta a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.abt-cta a i { font-size: 10px; transition: transform .2s; }
.abt-cta a:hover i { transform: translateX(3px); }

@media (max-width: 640px) {
    .abt-title { font-size: 23px; letter-spacing: -.3px; margin-top: 0; }
    .abt-stats { grid-template-columns: repeat(2, 1fr); gap: 14px 0; padding: 14px 0; }
    .abt-stat { padding-left: 14px; }
    .abt-stat:nth-child(odd) { padding-left: 0; }
    .abt-stat:nth-child(odd)::before { display: none; }
    .abt-stat b { font-size: 18px; }
    .abt-sec { margin-top: 22px; }
    .abt-links { gap: 8px 16px; }
}

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