/* ==========================================================================
   Sunrise Theme — Ver 2.0.0 (含 V2.5 史诗级外观与动效升级包)
   ========================================================================== */

/* ── CSS 变量 ── */
:root {
    --bg: #f5f7fa; /* 更清透的浅灰蓝背景底色 */
    --bg-card: rgba(255, 255, 255, 0.85); /* 半透明卡片背景 */
    --border: rgba(232, 236, 242, 0.5); /* 极弱化的柔和边框 */
    --text:         #1a1d23;
    --text-2:       #5a6175;
    --text-3:       #9aa0b0;
    --primary:      #4e8cff;
    --primary-rgb:  78, 140, 255;
    --primary-dark: #2d6de8;
    --accent:       #7c5cfc;
    --shadow-sm: 0 8px 24px rgba(149, 157, 165, 0.08); /* 舒适的弥散初始阴影 */
    --shadow-hover: 0 22px 40px rgba(78, 140, 255, 0.18); /* 悬浮时的主题色发光阴影 */
    --shadow:       0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:    0 12px 36px rgba(78,140,255,0.18);
    --radius: 18px; /* 更大、更现代的圆角 */
    --radius-sm:    8px;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275); /* iOS 风格的果冻弹性动效曲线 */
    --bubble:       #f1f4f8;
    --bubble-child: #e5e9f0;
}
body.dark-mode {
    --bg: #0d1117;
    --bg-card: rgba(22, 27, 34, 0.75);
    --border: rgba(48, 54, 61, 0.5);
    --text:         #e2e6f0;
    --text-2:       #8892a8;
    --text-3:       #525d72;
    --primary:      #5b9fff;
    --primary-rgb:  91, 159, 255;
    --accent:       #9879ff;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 22px 40px rgba(91, 159, 255, 0.25);
    --shadow:       0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:    0 12px 36px rgba(91,159,255,0.2);
    --bubble:       #22262f;
    --bubble-child: #2a2f3c;
}

/* ── 基础重置 ── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg); color: var(--text);
    margin: 0; line-height: 1.7;
    transition: background .3s var(--ease), color .3s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
}
a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--primary); }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── 进度条 ── */
#reading-progress {
    position: fixed; top: 0; left: 0; z-index: 10001;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 60%, #fd79a8 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(var(--primary-rgb),.5);
    transition: width .1s linear;
    pointer-events: none;
}

/* ── 导航 ── */
.navbar {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    height: 64px; position: sticky; top: 0; z-index: 999;
    transition: background .3s;
}
body.dark-mode .navbar { 
    background: rgba(22, 27, 34, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.nav-container { display: flex; align-items: center; height: 100%; gap: 0; }
.logo { margin-right: auto; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.logo-text i { color: var(--primary); }
.nav-menu { display: flex; align-items: center; }
.nav-menu ul { display: flex; gap: 2px; margin: 0 20px; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--text-2); padding: 6px 12px; border-radius: 7px; transition: all .2s; }
.nav-menu li.active a, .nav-menu a:hover { color: var(--primary); background: rgba(var(--primary-rgb),.1); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.search-form { display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--border); border-radius: 24px; padding: 4px 12px 4px 16px; gap: 6px; transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.12); }
.search-input { border: none; background: transparent; outline: none; font-size: 13px; color: var(--text); width: 130px; }
.search-form button { border: none; background: transparent; cursor: pointer; color: var(--text-3); font-size: 15px; line-height: 1; display: flex; padding: 2px; }
.dark-mode-toggle, .mobile-menu-toggle {
    width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2); font-size: 18px;
    transition: background .2s, color .2s;
}
.dark-mode-toggle:hover, .mobile-menu-toggle:hover { background: rgba(var(--primary-rgb),.1); color: var(--primary); }
.mobile-menu-toggle { display: none; font-size: 22px; }

/* ── 布局 ── */
.main-wrapper { }
.layout-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 24px; margin-bottom: 64px; align-items: start; }
.content-area { min-width: 0; }
.sticky-sidebar { position: sticky; top: 80px; }

/* ── 工具栏 ── */
.list-toolbar-card { 
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; margin-top: 18px; 
}
.list-toolbar { display: flex; align-items: center; gap: 12px; }
.list-toolbar.no-ticker { justify-content: flex-end; }
.ticker-label { font-size: 12px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 5px; flex-shrink: 0; white-space: nowrap; }
.ticker-track-wrapper { flex: 1; min-width: 0; overflow: hidden; height: 28px; position: relative; contain: layout style paint; }
.ticker-inner { display: flex; height: 100%; align-items: center; overflow: hidden; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-strip { display: flex; align-items: center; gap: 40px; white-space: nowrap; animation: tickerScroll 28s linear infinite; }
.ticker-inner:hover .ticker-strip { animation-play-state: paused; }
.ticker-item { font-size: 12.5px; color: var(--text-2); text-decoration: none; flex-shrink: 0; transition: color .2s; padding: 0 4px; }
.ticker-item:hover { color: var(--primary); }
.ticker-item i { color: #ff6b6b; margin-right: 3px; font-size: 12px; }
.layout-toggle { display: flex; gap: 4px; flex-shrink: 0; }
.toggle-btn { width: 30px; height: 30px; border-radius: 7px; cursor: pointer; color: var(--text-3); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.toggle-btn:hover { color: var(--primary); background: rgba(var(--primary-rgb),.08); transform: scale(1.1); }
.toggle-btn.active { color: var(--primary); background: rgba(var(--primary-rgb),.12); transform: scale(1.12); }
.toggle-btn:active { transform: scale(0.9); }

/* ── 文章卡片 (V2.5 高级动效版) ── */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(40px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.post-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease !important;
    animation: slideUpFade 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards !important;
}
.post-card:nth-child(1) { animation-delay: 0.05s !important; }
.post-card:nth-child(2) { animation-delay: 0.10s !important; }
.post-card:nth-child(3) { animation-delay: 0.15s !important; }
.post-card:nth-child(4) { animation-delay: 0.20s !important; }
.post-card:nth-child(5) { animation-delay: 0.25s !important; }
.post-card:nth-child(6) { animation-delay: 0.30s !important; }
.post-card:nth-child(7) { animation-delay: 0.35s !important; }
.post-card:nth-child(8) { animation-delay: 0.40s !important; }
.post-card:nth-child(9) { animation-delay: 0.45s !important; }

.post-card:hover {
    transform: translateY(-8px) scale(1.015) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: rgba(var(--primary-rgb), 0.4) !important;
    z-index: 2; 
}

/* 封面与图片骨架屏 */
.post-cover { height: 158px; overflow: hidden; position: relative; display: block; flex-shrink: 0; border-radius: var(--radius) var(--radius) 0 0; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important; }
.post-card:hover .post-cover img { transform: scale(1.12) !important; }

@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.post-cover img, .article-body img {
    background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
    background-size: 400% 100%; animation: skeleton-loading 1.5s infinite; color: transparent;
}

.cat-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 20px; letter-spacing: .3px; }

/* 无封面 */
.post-no-cover { height: 88px; flex-shrink: 0; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 0 16px 10px; }
.post-card:nth-child(6n+1) .post-no-cover { background: linear-gradient(135deg,#667eea,#764ba2); }
.post-card:nth-child(6n+2) .post-no-cover { background: linear-gradient(135deg,#f093fb,#f5576c); }
.post-card:nth-child(6n+3) .post-no-cover { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.post-card:nth-child(6n+4) .post-no-cover { background: linear-gradient(135deg,#43e97b,#38f9d7); }
.post-card:nth-child(6n+5) .post-no-cover { background: linear-gradient(135deg,#fa709a,#fee140); }
.post-card:nth-child(6n+6) .post-no-cover { background: linear-gradient(135deg,#a18cd1,#fbc2eb); }
.post-no-cover-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); line-height: 1.3; text-shadow: 0 1px 4px rgba(0,0,0,.3); position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-no-cover .cat-tag { position: absolute; top: 10px; left: 10px; }

/* 卡片内容 */
.post-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.post-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; line-height: 1.45; }
.post-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: 13px; color: var(--text-2); opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; margin-bottom: 14px; }
.post-meta { margin-top: auto; display: flex; gap: 12px; font-size: 11.5px; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 10px; flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 3px; }

/* 列表视图 */
.post-grid.list-view { grid-template-columns: 1fr; }
.post-grid.list-view .post-card { flex-direction: row; min-height: 140px; }
.post-grid.list-view .post-cover  { width: 220px; height: 100%; flex-shrink: 0; }
.post-grid.list-view .post-no-cover { width: 220px; height: 100%; flex-shrink: 0; align-items: center; padding: 0 20px; }
.post-grid.list-view .post-body   { padding: 18px 20px; justify-content: center; }

/* 空状态 */
.empty-state { grid-column: 1/-1; text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 80px; color: var(--border); display: block; margin-bottom: 14px; }
.empty-state p { color: var(--text-3); font-size: 14px; margin: 0; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 9px; color: var(--text-2); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a, .beautiful-search-btn { transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease !important; }
.pagination a:hover, .beautiful-search-btn:hover { transform: translateY(-4px) !important; box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35) !important; color: var(--primary); border-color: var(--primary); background: rgba(var(--primary-rgb),.06); }
.beautiful-search-btn:hover { background: var(--primary-dark); color: #fff; }

/* ── 侧边栏 ── */
.widget { 
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius); padding: 16px; margin-bottom: 16px; 
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.widget:hover { transform: translateY(-4px) !important; box-shadow: var(--shadow-hover) !important; border-color: rgba(var(--primary-rgb), 0.3) !important; }
.widget h3 { font-size: 13.5px; font-weight: 700; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; color: var(--text); }
.widget-icon { font-size: 15px; }
.widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.widget ul li:last-child { border: none; }
.widget ul li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80%; color: var(--text-2); transition: color .2s, padding-left .2s; }
.widget ul li a:hover { color: var(--primary); padding-left: 3px; }

/* ── 博主卡片 Card-A（全沉浸式） ─────────── */
.widget-profile {
    padding: 0; overflow: hidden; position: relative;
    isolation: isolate;
    /* 覆盖 widget 的白底 */
    background: transparent !important;
}

/* 全屏模糊头像背景 */
.profile-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    transform: scale(1.18);
    filter: blur(20px) brightness(.52) saturate(1.9);
}
/* 主题色渐变遮罩 */
.profile-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(145deg, rgba(78,140,255,.38) 0%, rgba(124,92,252,.32) 100%);
}

/* 内容层 */
.profile-inner {
    position: relative; z-index: 1;
    padding: 20px 18px 16px;
}

/* 头像 + 昵称/简介 横排 */
.profile-av-row {
    display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}

/* 彩虹光圈头像 */
.profile-av-ring {
    width: 68px; height: 68px; border-radius: 50%; flex-shrink: 0;
    padding: 3px;
    background: conic-gradient(from 180deg, #4e8cff, #a78bfa, #fd79a8, #fda085, #4e8cff);
    box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 8px 28px rgba(0,0,0,.4);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.profile-av-ring:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 0 4px rgba(255,255,255,.22), 0 12px 36px rgba(0,0,0,.5);
}
.profile-avatar {
    width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; display: block;
    border: 2px solid rgba(255,255,255,.2);
}

/* 文字信息 */
.profile-av-info { flex: 1; min-width: 0; }
.profile-name {
    font-size: 17px; font-weight: 900; color: #fff;
    letter-spacing: -.2px; line-height: 1.2; margin-bottom: 5px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.profile-bio {
    font-size: 12px; color: rgba(255,255,255,.72);
    line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 社交图标行 */
.profile-social { display: flex; gap: 7px; flex-wrap: wrap; }
.social-item {
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    transition: all .22s cubic-bezier(.34,1.56,.64,1);
    position: relative; cursor: pointer;
}
.social-item:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.4); transform: translateY(-3px) scale(1.1); color: #fff; }
.si-qq:hover   { background: #12b7f5; border-color: #12b7f5; }
.si-gh:hover   { background: #24292e; border-color: #24292e; }
.si-bili:hover { background: #fb7299; border-color: #fb7299; }
.si-x:hover    { background: #111;    border-color: #111; }
.si-wb:hover   { background: #e6162d; border-color: #e6162d; }
.si-wc:hover   { background: #07c160; border-color: #07c160; }

/* 微信二维码弹出（位置由 JS 动态注入为 position:fixed，此处只定义外观） */
.wechat-qr {
    display: none; position: fixed;
    width: 120px; padding: 8px;
    background: var(--bg-card); border-radius: 10px;
    box-shadow: var(--shadow); border: 1px solid var(--border); z-index: 9999;
    pointer-events: none;
}
.wechat-qr img { width: 100%; border-radius: 6px; }
/* CSS hover 不再负责显示，由 JS 控制 class .show */
.wechat-qr.show { display: block; }

/* 磨砂玻璃统计条 */
.profile-stats-glass {
    position: relative; z-index: 1;
    display: flex;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,.18);
}
.pstat { flex: 1; text-align: center; padding: 13px 8px; position: relative; }
.pstat:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 16%; bottom: 16%;
    width: 1px; background: rgba(255,255,255,.2);
}
.pstat-num {
    font-size: 21px; font-weight: 900; color: #fff; display: block;
    text-shadow: 0 2px 12px rgba(78,140,255,.5);
    letter-spacing: -.5px; line-height: 1;
}
.pstat-lbl { font-size: 10.5px; color: rgba(255,255,255,.6); margin-top: 4px; display: block; letter-spacing: .3px; }

/* 热门文章 */
.widget-hot li { display: flex; align-items: center; }
.widget-hot li a { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--text-2); padding: 7px 0; }
.widget-hot li a:hover { color: var(--primary); }
.rank-num { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--text-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-1 { background: linear-gradient(135deg,#f6d365,#fda085); color:#fff; }
.rank-2 { background: linear-gradient(135deg,#d4d4d4,#a8a8a8); color:#fff; }
.rank-3 { background: linear-gradient(135deg,#f5af19,#f12711); color:#fff; }
.hot-info { flex: 1; display: flex; justify-content: space-between; align-items: center; overflow: hidden; gap: 6px; }
.hot-title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-views { font-size: 11px; color: var(--text-3); flex-shrink: 0; display: flex; align-items: center; gap: 2px; }

/* 分类 */
.widget-categories li { border: none !important; margin-bottom: 4px; }
.widget-categories li a { background: var(--bg) !important; padding: 7px 12px !important; border-radius: 8px !important; display: flex !important; justify-content: space-between !important; max-width: 100% !important; overflow: visible !important; text-overflow: unset !important; white-space: unset !important; transition: all .2s !important; }
.widget-categories li a:hover { background: linear-gradient(90deg, var(--primary), var(--accent)) !important; color: #fff !important; padding-left: 16px !important; }
.cat-count { font-size: 11px; background: rgba(0,0,0,.06); padding: 1px 7px; border-radius: 10px; flex-shrink: 0; }
.widget-categories li a:hover .cat-count { background: rgba(255,255,255,.25); color: #fff; }

/* 彩色标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    font-size: 12.5px; padding: 5px 13px; border-radius: 20px;
    border: 1.5px solid; font-weight: 600;
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, background 0.2s ease;
    cursor: pointer; display: inline-flex; align-items: center; gap: 4px; line-height: 1;
}
.tag-item:nth-child(5n+1) { color: #0984e3; border-color: #74b9ff; background: rgba(116,185,255,.1); }
.tag-item:nth-child(5n+2) { color: #d63031; border-color: #ff7675; background: rgba(255,118,117,.1); }
.tag-item:nth-child(5n+3) { color: #00b894; border-color: #55efc4; background: rgba(85,239,196,.1); }
.tag-item:nth-child(5n+4) { color: #e17055; border-color: #fdcb6e; background: rgba(253,203,110,.1); }
.tag-item:nth-child(5n+5) { color: #6c5ce7; border-color: #a29bfe; background: rgba(162,155,254,.1); }
.tag-item:hover, .article-cat-tag:hover { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; transform: translateY(-3px) scale(1.05) !important; box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35) !important; }

/* 最新评论 */
.comm-item-link { display: flex; gap: 10px; align-items: center; width: 100%; }
.comm-avatar-small { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; background: var(--bg); }
.comm-right { flex: 1; overflow: hidden; }
.comm-author { font-size: 13px; font-weight: 600; display: block; }
.comm-content { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* 最新文章 */
.widget-newlog li a { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 13px; color: var(--text-2); }
.widget-newlog .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: all .25s; }
.widget-newlog li:hover .dot { background: var(--primary); transform: scale(1.4); }

/* 搜索 */
.beautiful-search-wrapper { display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 4px; transition: border-color .2s, box-shadow .2s; }
.beautiful-search-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.1); }
.beautiful-search-icon { color: var(--text-3); font-size: 14px; margin: 0 6px 0 8px; flex-shrink: 0; }
.beautiful-search-input { flex: 1; border: none; background: transparent; outline: none; font-size: 13px; color: var(--text); padding: 7px 4px; }
.beautiful-search-btn { width: 34px; height: 34px; background: var(--primary); color: #fff; border: none; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── 文章详情页 ── */
.article-hero { width: 100%; aspect-ratio: 21/7; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; position: relative; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%); }
.single-content-wrapper { 
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0; overflow: hidden; 
}
.article-header { text-align: center; padding: 30px 32px 24px; border-bottom: 1px solid var(--border); }
.article-cat-tag { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg,var(--primary),var(--accent)); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 14px; cursor: pointer; transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease !important; }
.article-title { font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -.3px; margin: 0 0 14px; }
.article-meta { color: var(--text-3); font-size: 13px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 4px; }
.article-body { font-size: 16px; line-height: 1.9; padding: 30px 32px; overflow-wrap: break-word; word-break: break-word; }
.article-body h2 { font-size: 1.45em; font-weight: 800; margin: 1.8em 0 .8em; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.article-body h3 { font-size: 1.2em; font-weight: 700; margin: 1.5em 0 .6em; }
.article-body h3::before { content: '▌'; color: var(--primary); margin-right: 6px; font-size: .9em; }
.article-body p  { margin: 0 0 1.2em; }
.article-body blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 4px solid var(--primary); background: rgba(var(--primary-rgb),.06); border-radius: 0 10px 10px 0; color: var(--text-2); font-style: italic; }
.article-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb),.3); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--primary); }
.article-body img { border-radius: 10px; box-shadow: var(--shadow); max-width: 100%!important; margin: 16px 0; cursor: zoom-in; }

/* Mac 风格代码块 */
.article-body pre { background: #1e222a!important; color: #abb2bf!important; border-radius: 10px; padding: 20px 18px; font-size: 14px; line-height: 1.65; overflow: auto; max-width: 100%; position: relative; text-shadow: none!important; font-family: "JetBrains Mono",Consolas,"Courier New",monospace; padding-top: 40px !important; }
.article-body pre::before { content: ''; position: absolute; top: 14px; left: 16px; width: 12px; height: 12px; border-radius: 50%; background: #ff5f56; box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f; z-index: 2; }
.article-body code:not(pre code) { background: rgba(var(--primary-rgb),.1); color: var(--primary); padding: 2px 7px; border-radius: 5px; font-size: .875em; font-family: Consolas,monospace; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; cursor: pointer; opacity: 0; transition: all .2s; z-index: 10; }
.article-body pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: var(--primary); color: #fff; }

/* 版权 */
.copyright-mini-bar { display: flex; justify-content: flex-end; padding: 0 32px 20px; }
.copyright-icon-wrapper { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: all .4s; position: relative; }
.copyright-icon-wrapper:hover { background: var(--primary); color: #fff; transform: rotate(360deg); }
.copyright-tooltip { position: absolute; bottom: 42px; right: 0; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 14px 16px; border-radius: 10px; width: 250px; font-size: 12px; line-height: 1.8; opacity: 0; visibility: hidden; transition: all .2s; box-shadow: var(--shadow); z-index: 20; text-align: left; transform: translateY(6px); }
.copyright-icon-wrapper:hover .copyright-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }

/* 互动栏 */
.action-bar {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 8px; padding: 4px 32px 24px;
}
/* 主题自带的点赞/分享小胶囊 */
.act-pill {
    position: relative;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: 99px;
    background: var(--bg); border: 1.5px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text-2);
    cursor: pointer; line-height: 1;
    transition: all .22s cubic-bezier(.34,1.56,.64,1);
}
.act-pill i { font-size: 13px; line-height: 1; }
.act-pill:hover { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb),.07); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--primary-rgb),.2); }
.like-btn.active { background: #ff6b6b; color: #fff !important; border-color: #ff6b6b; }
.like-count-num { font-size: 11px; font-weight: 700; }
.like-plus-one { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-weight: 800; color: #ff6b6b; font-size: 16px; opacity: 0; pointer-events: none; }
@keyframes floatUp { 0%{opacity:1;transform:translate(-50%,0) scale(.8)} 100%{opacity:0;transform:translate(-50%,-44px) scale(1.3)} }
.like-plus-one.animate { animation: floatUp .8s ease-out forwards; }
/* 插件（充电等）注入内容：限制最大高度，让它和胶囊等高 */
.action-bar > *:not(.act-pill) { font-size: 12px !important; }
.action-bar > *:not(.act-pill) a,
.action-bar > *:not(.act-pill) button,
.action-bar > *:not(.act-pill) .btn { padding: 5px 14px !important; font-size: 12px !important; border-radius: 99px !important; line-height: 1 !important; }
.share-popup { position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: var(--bg-card); padding: 12px; border-radius: 12px; width: 144px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); display: none; z-index: 100; text-align: center; }
.share-popup.show { display: block; animation: popUp .2s var(--ease); }
@keyframes popUp { from{opacity:0;transform:translate(-50%,8px)} to{opacity:1;transform:translate(-50%,0)} }

/* 相关文章 */
.related-posts { padding: 24px 32px 0; margin-bottom: 32px; border-top: 1px solid var(--border); }
.related-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.related-title i { color: #e84393; }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.related-item { display: block; }
.related-thumb { height: 90px; border-radius: 9px; overflow: hidden; margin-bottom: 8px; background: var(--bg); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.related-item:hover .related-thumb img { transform: scale(1.08); }
.related-info h4 { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--text); transition: color .2s; }
.related-item:hover .related-info h4 { color: var(--primary); }

/* ── 文章标签 ── */
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 32px 24px; border-top: 1px solid var(--border); padding-top: 18px; align-items: center; }
.article-tags-label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.article-tag-item { font-size: 12px; padding: 3px 11px; border-radius: 20px; border: 1.5px solid; font-weight: 500; transition: all .2s; }
.article-tag-item:nth-child(5n+2) { color: #0984e3; border-color: #74b9ff; background: rgba(116,185,255,.08); }
.article-tag-item:nth-child(5n+3) { color: #d63031; border-color: #ff7675; background: rgba(255,118,117,.08); }
.article-tag-item:nth-child(5n+4) { color: #00b894; border-color: #55efc4; background: rgba(85,239,196,.08); }
.article-tag-item:nth-child(5n+5) { color: #e17055; border-color: #fdcb6e; background: rgba(253,203,110,.08); }
.article-tag-item:nth-child(5n+6) { color: #6c5ce7; border-color: #a29bfe; background: rgba(162,155,254,.08); }
.article-tag-item:hover { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; transform: translateY(-1px); }

/* ── 评论区 ── */
.comments-section { padding: 28px 32px 32px; border-top: 1px solid var(--border); }
.com-section-title { font-size: 17px; font-weight: 800; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.com-section-title::before { content:''; width: 4px; height: 18px; background: linear-gradient(var(--primary),var(--accent)); border-radius: 3px; flex-shrink: 0; }
.comment-post-box { background: var(--bg); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; border: 1px solid var(--border); }
.comment-form-title { font-size: 14px; font-weight: 700; color: var(--text-2); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.cancel-reply a { font-size: 12px; color: var(--text-3); background: var(--bg-card); border: 1px solid var(--border); padding: 3px 10px; border-radius: 6px; display: inline-block; margin-bottom: 10px; }
.comment-inputs { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.comment-inputs input { flex: 1; min-width: 130px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text); font-size: 13px; outline: none; transition: border-color .2s; }
.comment-inputs input:focus { border-color: var(--primary); }
.comment-editor { position: static; }
.comment-editor textarea { width: 100%; min-height: 100px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 9px; background: var(--bg-card); color: var(--text); font-size: 14px; font-family: inherit; resize: vertical; outline: none; transition: border-color .2s; }
.comment-editor textarea:focus { border-color: var(--primary); }
.comment-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
/* 表情按钮 */
.emoji-toggle {
    font-size: 13px; color: var(--text-3); cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    transition: all .2s; user-select: none;
}
.emoji-toggle:hover,
.emoji-toggle.active { background: rgba(var(--primary-rgb),.08); color: var(--primary); border-color: rgba(var(--primary-rgb),.3); }
.emoji-toggle.active { color: var(--primary); }

/* 内联展开面板：max-height 动画，不脱离文档流 */
.emoji-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .28s cubic-bezier(.4,0,.2,1), opacity .2s ease, padding .28s;
    background: var(--bg);
    border-radius: 0 0 10px 10px;
    border: 0px solid var(--border);
    border-top: none;
    display: flex; flex-wrap: wrap; gap: 2px;
    padding: 0 6px;
    margin-top: -2px;
}
.emoji-panel.show {
    max-height: 220px;
    opacity: 1;
    padding: 10px 8px 8px;
    border-width: 1px;
    border-top-width: 0;
}
.emoji-item {
    cursor: pointer; font-size: 22px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: background .12s, transform .12s;
    flex-shrink: 0;
}
.emoji-item:hover { background: var(--bg-card); transform: scale(1.2); }
#comment_submit { background: linear-gradient(135deg,var(--primary),var(--accent)); color: #fff; border: none; padding: 10px 26px; border-radius: 24px; cursor: pointer; font-size: 14px; font-weight: 700; transition: all .25s; box-shadow: 0 4px 12px rgba(var(--primary-rgb),.35); }
#comment_submit:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(var(--primary-rgb),.45); }

/* 评论列表 */
.comment-list { margin-top: 4px; }
.comment-item { display: flex; gap: 13px; margin-bottom: 22px; }
.comment-avatar img { width: 42px; height: 42px; border-radius: 50%; background: var(--bg); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.comment-main { flex: 1; background: var(--bubble); padding: 13px 16px; border-radius: 4px 16px 16px 16px; min-width: 0; }
.comment-header { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.comment-user { font-weight: 700; font-size: 13.5px; }
.comment-date { font-size: 12px; color: var(--text-3); }
.comment-reply-link { font-size: 12px; color: var(--primary); opacity: .7; margin-left: auto; cursor: pointer; }
.comment-reply-link:hover { opacity: 1; }
.comment-content { font-size: 14px; line-height: 1.65; word-break: break-word; }
.comment-children { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.comment-children .comment-item { margin-bottom: 0; }
.comment-children .comment-avatar img { width: 32px; height: 32px; }
.comment-children .comment-main { background: var(--bubble-child); border-radius: 4px 13px 13px 13px; }

/* ── TOC ── */
.toc-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.toc-container h3 { font-size: 13.5px; font-weight: 700; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 7px; }
.toc-list li a { font-size: 13px; color: var(--text-2); display: block; padding: 4px 8px; border-radius: 6px; transition: all .2s; line-height: 1.5; }
.toc-list li a:hover { color: var(--primary); background: rgba(var(--primary-rgb),.07); }
.toc-list li.toc-active > a { color: var(--primary); background: rgba(var(--primary-rgb),.1); font-weight: 700; border-left: 2px solid var(--primary); }
.toc-level-1 { padding-left: 0; font-weight: 600; }
.toc-level-2 { padding-left: 12px; }
.toc-level-3 { padding-left: 22px; color: var(--text-3); }

/* 友链 */
.friend-links-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 10px; }
.friend-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; min-height: 52px; transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease !important; }
.friend-card:hover { transform: translateY(-4px) !important; box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35) !important; border-color: rgba(var(--primary-rgb),.3); }
.friend-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.friend-icon-placeholder { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.friend-text { display: flex; flex-direction: column; gap: 2px; overflow: hidden; flex: 1; }
.friend-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-desc { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 页脚 ── */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 40px; text-align: center; position: relative; overflow: hidden; }
.footer-inner { position: relative; z-index: 2; }
.footer-inner .copyright { font-size: 13px; color: var(--text-3); line-height: 2.2; }
.footer-inner .copyright a { color: var(--text-3); transition: color .2s; }
.footer-inner .copyright a:hover { color: var(--primary); }
#footer-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.footer-links-box { margin-bottom: 28px; position: relative; z-index: 2; }
.footer-links-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* 返回顶部 */
.back-to-top { position: fixed; bottom: calc(32px + env(safe-area-inset-bottom)); right: 20px; width: 42px; height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: all .3s; z-index: 99; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(var(--primary-rgb),.45); }
.back-to-top i { font-size: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(var(--primary-rgb),.55); }

/* ── 移动端抽屉 ── */
.mobile-drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; opacity: 0; visibility: hidden; transition: all .3s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mobile-drawer { position: fixed; top: 0; right: -320px; width: 290px; height: 100%; background: var(--bg); z-index: 1001; transition: right .32s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 40px rgba(0,0,0,.12); display: flex; flex-direction: column; visibility: hidden; padding-bottom: env(safe-area-inset-bottom); }
.mobile-drawer.active { right: 0; visibility: visible; }
.mobile-drawer-mask.active { opacity: 1; visibility: visible; }
.drawer-header { padding: 22px 20px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.drawer-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.drawer-close { font-size: 20px; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: background .2s; color: var(--text-2); border: 1px solid var(--border); }
.drawer-close:hover { background: var(--bg-card); color: var(--text); }
.mobile-menu { overflow-y: auto; flex: 1; padding: 10px 16px; -webkit-overflow-scrolling: touch; }
.mobile-menu ul { display: block; }
.mobile-menu li { display: block; }
.mobile-menu li a { display: flex; align-items: center; padding: 14px 4px; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--border); min-height: 50px; transition: color .2s; gap: 10px; }
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu li a::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); opacity: .5; flex-shrink: 0; }
.mobile-menu li a:hover, .mobile-menu li.active a { color: var(--primary); }
.mobile-menu li.active a::before { opacity: 1; width: 6px; height: 6px; }
.drawer-footer { padding: 14px 20px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--text-3); }

/* ── 灯箱 (已废弃手动版，保留 CSS 防止覆盖冲突) ── */
#theme-lightbox { display: none !important; }

/* ── 响应式 ── */
/* ==========================================================================
   响应式适配
   ========================================================================== */

/* ── 平板横屏 ≤ 1024px ── */
@media (max-width: 1024px) {
    .layout-grid { grid-template-columns: 1fr 260px; gap: 16px; }
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ── 平板竖屏 / 大手机 ≤ 768px ── */
@media (max-width: 768px) {

    /* 布局：单列，侧边栏移到内容下方（不再隐藏） */
    .layout-grid {
        grid-template-columns: 1fr;
        margin-top: 12px; gap: 0;
    }
    .sidebar, .sticky-sidebar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding: 0 16px 20px !important;
        margin: 0 -16px !important;
        position: static !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .sidebar::-webkit-scrollbar,
    .sticky-sidebar::-webkit-scrollbar { display: none; }

    /* 每个 widget 固定宽度，高度由内容自然决定 */
    .sidebar .widget,
    .sticky-sidebar .widget {
        min-width: 220px !important;
        max-width: 240px !important;
        width: 220px !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
        transition: none !important;
        transform: none !important;
    }
    /* 个人卡片同步宽度 */
    .sidebar .widget-profile,
    .sticky-sidebar .widget-profile {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }

    /* 导航 */
    .nav-menu, .search-form { display: none !important; }
    .mobile-menu-toggle { display: flex !important; }

    /* 文章卡片：单列 */
    .post-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .post-card { animation-delay: 0s !important; }
    .post-cover { height: 180px; }

    /* 列表视图 */
    .post-grid.list-view .post-card { flex-direction: row !important; min-height: 100px; }
    .post-grid.list-view .post-cover,
    .post-grid.list-view .post-no-cover { width: 120px !important; min-height: 100px; flex-shrink: 0; }
    .post-grid.list-view .post-body { padding: 10px 12px; }
    .post-grid.list-view .post-excerpt { display: none; }

    /* 工具栏 */
    .list-toolbar-card { margin-top: 12px; margin-bottom: 12px; }
    .layout-toggle { margin-left: auto; }

    /* 文章详情页 */
    .article-body,
    .comments-section,
    .related-posts,
    .action-bar,
    .copyright-mini-bar { padding-left: 16px !important; padding-right: 16px !important; }
    .article-header { padding: 20px 16px; }
    .article-title { font-size: 22px; }
    .article-hero { aspect-ratio: 16/7; }
    .single-content-wrapper { border-radius: 14px; }

    /* 相关文章 */
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* 评论 */
    .comment-inputs { flex-direction: column; }
    /* emoji-panel 已改为内联展开，无需覆盖宽度 */

    /* TOC */
    .toc-container { display: none; }  /* 移动端文章侧边 TOC 隐藏，避免遮挡 */

    /* 页脚 */
    .footer-links-box { display: none; }
    .footer-inner { flex-direction: column; gap: 10px; text-align: center; }

    /* 返回顶部 */
    .back-to-top { right: 14px; bottom: 20px; }

    /* 文章卡片 hover 去掉 scale，手机上 hover 没意义且卡 */
    .post-card:hover { transform: none !important; box-shadow: var(--shadow-sm) !important; }
    .widget:hover { transform: none !important; box-shadow: var(--shadow-sm) !important; }
}

/* ── 小手机 ≤ 480px ── */
@media (max-width: 480px) {
    .container { padding: 0 12px; }

    /* 导航栏 */
    .navbar { height: 56px; }
    .nav-container { height: 56px; }
    .logo img { height: 28px; }

    /* 文章卡片 */
    .post-cover { height: 160px; }
    .post-body { padding: 12px; }
    .post-title { font-size: 14px; }
    .post-meta { gap: 8px; font-size: 11px; }

    /* 文章详情 */
    .article-title { font-size: 19px; }
    .article-body { font-size: 15px; line-height: 1.85; padding: 20px 14px !important; }
    .article-body h2 { font-size: 1.25em; }
    .article-body h3 { font-size: 1.1em; }
    .article-meta { gap: 10px; font-size: 12px; }

    /* 个人卡片在超小屏 */
    .profile-inner { padding: 16px 14px 14px; }
    .profile-av-ring { width: 58px; height: 58px; }
    .profile-name { font-size: 15px; }
    .pstat-num { font-size: 18px; }

    /* 相关文章：超小屏也能双列 */
    .related-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .related-thumb { height: 80px; }

    /* 分页 */
    .pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 10px; font-size: 12px; }

    /* 评论 */
    .comment-item { gap: 10px; }
    .comment-avatar img { width: 34px; height: 34px; }

    /* 侧边栏横滚区：在超小屏给更小的 min-width */
    .sidebar .widget,
    .sticky-sidebar .widget { min-width: 210px !important; }
}

/* ── 超小屏 ≤ 360px ── */
@media (max-width: 360px) {
    .article-title { font-size: 17px; }
    .article-body { font-size: 14.5px; padding: 16px 12px !important; }
    .post-cover { height: 140px; }
    .profile-av-ring { width: 52px; height: 52px; }
}
/* ── 文章详情页标签 ─────────────────────────────── */
.article-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 16px 32px;
    font-size: 13px; color: var(--text-3);
    border-top: 1px solid var(--border); margin-top: 4px;
}
.article-tags-label {
    font-size: 12px; font-weight: 600; color: var(--text-3);
    letter-spacing: .5px; white-space: nowrap;
    display: flex; align-items: center; gap: 4px;
}
.article-tags-label i { font-size: 14px; color: var(--primary); }
.article-tags .tag-item {
    display: inline-block; padding: 3px 12px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; font-size: 12px; color: var(--text-2);
    transition: background .2s, color .2s, border-color .2s;
    text-decoration: none;
}
.article-tags .tag-item:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ── 点赞/分享按钮图标尺寸修正 ───────────────────── */
.btn-action i { font-size: 14px; line-height: 1; flex-shrink: 0; }

/* ── 动态登录状态导航项 ─────────────────────────────── */
.nav-menu .nav-user-list {
    display: flex; gap: 2px; margin: 0; padding: 0; list-style: none;
}.nav-user-list a {
    font-size: 14px; font-weight: 500; color: var(--text-2);
    padding: 6px 12px; border-radius: 7px;
    display: flex; align-items: center; gap: 4px;
    transition: all .2s; white-space: nowrap;
}
.nav-user-list a i { font-size: 14px; }
.nav-user-list a:hover { color: var(--primary); background: rgba(var(--primary-rgb),.1); }

/* ── 暂无标签提示 ─── */
.tag-empty { font-size: 12px; color: var(--text-3); font-style: italic; }

/* ── 修正 btn-action 旧选择器（插件兼容） ─── */
.btn-action { position: relative; padding: 5px 14px; border-radius: 99px; background: var(--bg); border: 1.5px solid var(--border); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1; transition: all .22s; }
.btn-action i { font-size: 13px; line-height: 1; }
