/*!
 * Theme Name: 5iml_xing
 * Description: 一款简洁清新的卡片式博客主题
 * Version: 1.0.0
 * Author: 茉莉小栈
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary-color: #4a90d9;
    --primary-dark: #357abd;
    --primary-light: rgba(74, 144, 217, 0.15);
    --text-color: #1d1d1f;
    --text-light: #515154;
    --text-muted: #86868b;
    --bg-color: #e8edf2;
    /* 拟态磨砂玻璃核心变量（轻微透明 + 模糊滤镜 + 双阴影） */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-hover: rgba(255, 255, 255, 0.38);
    --glass-bg-active: rgba(255, 255, 255, 0.52);
    --glass-bg-solid: rgba(255, 255, 255, 0.78);
    --glass-blur: blur(14px);
    --glass-blur-strong: blur(22px);
    --glass-blur-light: blur(8px);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-border-hover: rgba(255, 255, 255, 0.45);
    --glass-highlight: rgba(255, 255, 255, 0.4);
    /* 拟态双阴影：暗面（右下）+ 亮面（左上）制造浮凸感 */
    --glass-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.06),
        -2px -2px 6px rgba(255, 255, 255, 0.7);
    --glass-shadow-hover:
        5px 5px 14px rgba(0, 0, 0, 0.08),
        -3px -3px 10px rgba(255, 255, 255, 0.9);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    --max-width: 1200px;
    --content-width: 70%;
    --sidebar-width: 28%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background:
        /* 几何网格纹理 — 磨砂玻璃底层纹理 */
        repeating-linear-gradient(45deg,
            transparent 0px, transparent 22px,
            rgba(80, 80, 80, 0.04) 22px, rgba(80, 80, 80, 0.04) 23px),
        repeating-linear-gradient(-45deg,
            transparent 0px, transparent 22px,
            rgba(80, 80, 80, 0.04) 22px, rgba(80, 80, 80, 0.04) 23px),
        /* 中心彩色光晕 */
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(130, 170, 220, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 85% 90%, rgba(190, 150, 200, 0.45) 0%, transparent 50%),
        radial-gradient(ellipse 45% 55% at 15% 40%, rgba(220, 185, 150, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 60% 100%, rgba(200, 210, 180, 0.35) 0%, transparent 50%),
        linear-gradient(180deg, #ede6db 0%, #e2dad0 25%, #ece5db 50%, #e0d7cc 75%, #e8e0d5 100%);
    background-attachment: fixed;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-wrapper {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    flex: 1;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.content-area-centered {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-bottom: 1px solid var(--glass-border);
    box-shadow:
        3px 0 10px rgba(0, 0, 0, 0.04),
        -2px 0 6px rgba(255, 255, 255, 0.55);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    height: 36px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.site-title a {
    color: var(--text-color);
}

.site-title a:hover {
    color: var(--primary-color);
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    position: relative;
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
    border-radius: var(--radius-sm);
    min-width: 140px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* Search Form */
.header-search {
    position: relative;
    margin-left: 16px;
}

.header-search input {
    width: 180px;
    padding: 8px 14px;
    padding-right: 36px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    background: var(--glass-bg);
    color: var(--text-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.header-search input:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.65);
    width: 220px;
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 4px 8px;
}

/* ============================================
   Hero Slider - 幻灯片
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 16px 0 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    max-width: calc(100% - 80px);
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 箭头按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 5;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.45);
}

.hero-slider:hover .slider-btn {
    opacity: 1;
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* 圆点指示器 */
.slider-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    width: 20px;
    border-radius: 4px;
}

/* 全宽模式：铺满视口 */
.hero-slider-full {
    border-radius: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

@media (max-width: 768px) {
    .hero-slider-full {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
}

@media (max-width: 480px) {
    .hero-slider-full {
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
    }
}

/* ============================================
   Article List (log_list) - post-card 布局
   ============================================ */
.post-card {
    position: relative;
    display: flex;
    height: 170px;
    background: var(--glass-bg-hover);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow:
        4px 4px 12px rgba(0, 0, 0, 0.05),
        -3px -3px 8px rgba(255, 255, 255, 0.55),
        /* 玻璃顶部高光 */
        inset 0 1.5px 0 rgba(255, 255, 255, 0.65),
        /* 玻璃底部暗边 */
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    margin-bottom: 16px;
}

/* 顶部高光 */
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--glass-highlight) 50%,
        transparent 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.35s ease;
}

/* 底部微光反射 */
.post-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.post-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 2px 0 rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-4px);
}

.post-card:hover::before {
    opacity: 1;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 100%);
}

.post-card:hover::after {
    background: linear-gradient(to top,
        rgba(255, 255, 255, 0.10) 0%,
        transparent 100%);
}

/* 左：缩略图 — 自身透明，让背景纹理从缩略图下方透出 */
.post-card-thumb {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 170px;
    max-height: 170px;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
    padding: 10px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.post-card-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}

/* 右：内容体 — 几乎全透明 */
.post-card-body {
    flex: 1;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    justify-content: space-between;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* 标题 — 文字阴影保持锐利 */
.post-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 6px;
}

.post-card-title a {
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 8px rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.post-card-title a:hover {
    color: var(--primary-color);
}

/* 摘要 — 增强对比度 */
.post-card-excerpt {
    color: #444;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* 元信息行 */
.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 20px;
}

/* 标签胶囊 — 半透明材质 */
.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 12px;
}

.post-card-tags .tag-item {
    font-size: 0.72rem;
    color: #4a6cf7;
    background: rgba(74, 108, 247, 0.10);
    border: 1px solid rgba(74, 108, 247, 0.20);
    padding: 2px 10px;
    border-radius: 4px;
    transition: var(--transition);
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.post-card-tags .tag-item:hover {
    color: #fff;
    background: #4a6cf7;
}

/* 卡片底部：作者信息 + 数据 — 半透明分隔 */
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.author-name {
    color: var(--text-color);
    font-weight: 500;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.post-date-full,
.post-date-short {
    color: #555;
    font-size: 0.72rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.post-date-short {
    display: none;
}

.post-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.post-card-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #555;
    font-size: 0.76rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.post-card-stats .stat-item i {
    font-size: 0.85rem;
}


/* 空状态 */
.post-card.empty-state {
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 置顶 / NEW 标记 (位于缩略图左上角) */
.post-card-thumb .article-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
    color: #fff;
}

.badge-top {
    background: #ff6b6b;
}

.badge-new {
    background: #4a90d9;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
}

/* ============================================
   Card Grid Mode (card-grid-list) — FLY Style
   ============================================ */
.card-grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card-grid-list.card-cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-list.card-cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-list.card-cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-list.card-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* 空状态跨越整行 */
.card-grid-list .post-card.empty-state {
    grid-column: 1 / -1;
}

/* 单个卡片 */
.card-grid-item {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.card-grid-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-3px);
}

/* 缩略图区域 */
.card-grid-thumb {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
}

.card-grid-thumb a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.card-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card-grid-item:hover .card-grid-thumb img {
    transform: scale(1.06);
}

/* 缩略图渐变遮罩 */
.card-grid-thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
    pointer-events: none;
    z-index: 1;
}

/* 置顶/NEW 标记在缩略图上 */
.card-grid-thumb .article-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
    color: #fff;
}

/* 卡片内容区 */
.card-grid-body {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 分类 + 日期行 */
.card-grid-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.card-grid-cat-tag,
.card-grid-date-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.card-grid-cat-tag i,
.card-grid-date-tag i {
    font-size: 0.75rem;
}

.card-grid-cat-tag a {
    color: var(--primary-color);
}

.card-grid-cat-tag a:hover {
    text-decoration: underline;
}

/* 标题 */
.card-grid-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}

.card-grid-title a {
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.card-grid-title a:hover {
    color: var(--primary-color);
}

/* 底部信息栏 */
.card-grid-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
}

.card-grid-meta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.card-grid-meta i {
    font-size: 0.75rem;
}

.card-grid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: auto;
}

.card-grid-tags .tag-item {
    font-size: 0.68rem;
    color: var(--primary-color);
    background: var(--primary-light);
    border: 1px solid rgba(74, 144, 217, 0.15);
    padding: 1px 7px;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1.4;
}

.card-grid-tags .tag-item:hover {
    color: #fff;
    background: var(--primary-color);
}

/* 分页：在 grid 中跨越整行 */
.card-grid-list + .pagination {
    grid-column: 1 / -1;
    margin-top: 8px;
}

/* ============================================
   AJAX 无限滚动加载指示器
   ============================================ */
.ajax-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 0;
}

.ajax-loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: ajaxDotBounce 1.4s ease-in-out infinite both;
}

.ajax-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.ajax-loading-dot:nth-child(2) { animation-delay: -0.16s; }
.ajax-loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes ajaxDotBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.ajax-no-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* 响应式：平板端 */
@media (max-width: 1024px) {
    .card-grid-list,
    .card-grid-list.card-cols-4,
    .card-grid-list.card-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid-list,
    .card-grid-list.card-cols-3,
    .card-grid-list.card-cols-4,
    .card-grid-list.card-cols-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-grid-body {
        padding: 12px;
        gap: 6px;
    }

    .card-grid-title {
        font-size: 0.88rem;
    }

    .card-grid-category {
        font-size: 0.7rem;
    }

    .card-grid-footer {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .card-grid-list,
    .card-grid-list.card-cols-2,
    .card-grid-list.card-cols-3,
    .card-grid-list.card-cols-4,
    .card-grid-list.card-cols-5 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-grid-thumb {
        padding-top: 56%;
    }

    .card-grid-title {
        font-size: 0.95rem;
    }
}

/* ============================================
   Article Detail (echo_log)
   ============================================ */
.article-detail {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow),
        0 1px 0 var(--glass-highlight) inset;
    padding: 24px;
    overflow: hidden;
}

.article-detail .article-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.article-detail .article-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.article-detail .article-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
    color: var(--text-color);
}

.article-detail .article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-detail .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-detail .article-cover {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-detail .article-cover img {
    width: 100%;
    display: block;
}

.article-detail .article-content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-color);
    word-wrap: break-word;
}

.article-detail .article-content h2 {
    font-size: 1.3rem;
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--primary-color);
}

.article-detail .article-content h3 {
    font-size: 1.15rem;
    margin: 22px 0 12px;
}

.article-detail .article-content p {
    margin-bottom: 16px;
}

.article-detail .article-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.03);
    padding: 14px 20px;
    margin: 16px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-light);
}

.article-detail .article-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 16px 0;
}

.article-detail .article-content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
    color: #e83e8c;
}

.article-detail .article-content pre code {
    background: none;
    color: #abb2bf;
    padding: 0;
}

.article-detail .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

.article-detail .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.article-detail .article-content th,
.article-detail .article-content td {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 14px;
    font-size: 0.9rem;
}

.article-detail .article-content th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
}

.article-detail .article-tags {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.article-detail .tag-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 12px;
    border-radius: 14px;
    transition: var(--transition);
}

.article-detail .tag-item:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* === 文章全宽页头（Hero Header） === */
.post-hero {
    position: relative;
    margin: 0 0 15px;
    padding: 50px 20px 60px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    overflow: hidden;
}
.post-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
.post-hero-breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    justify-content: center;
}
.post-hero-breadcrumb a {
    color: rgba(255,255,255,.75);
    transition: color .2s;
}
.post-hero-breadcrumb a:hover {
    color: #fff;
}
.post-hero-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0 auto 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
    max-width: 800px;
}
.post-hero-title .article-badge {
    vertical-align: middle;
    margin-right: 8px;
}
.post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-size: 14px;
}
.hero-meta-item {
    color: rgba(255,255,255,.75);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.hero-meta-item i {
    font-size: 15px;
}
/* 横向波浪滚动（底部三波浪层叠） */
.hero-wave-scroll {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
    margin-left: -1px;
    margin-right: -1px;
    background: transparent;
}
.hero-wave-scroll .editorial {
    display: block;
    width: 100%;
    height: 60px;
    margin: 0;
}
.hero-wave-scroll .parallax > use {
    animation: hero-wave-move 12s linear infinite;
}
.hero-wave-scroll .parallax > use:nth-child(1) {
    animation-delay: -2s;
}
.hero-wave-scroll .parallax > use:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 5s;
}
.hero-wave-scroll .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 3s;
}
@keyframes hero-wave-move {
    0% { transform: translate(-90px, 0); }
    100% { transform: translate(85px, 0); }
}

/* Neighbor Posts */
.neighbor-posts {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
}

.neighbor-posts a {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.neighbor-posts a:hover {
    color: var(--primary-color);
}

/* Comments */
.comment-area {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow),
        0 1px 0 var(--glass-highlight) inset;
    padding: 30px;
    margin-top: 20px;
    overflow: hidden;
}

/* 评论列表卡片头部（隐藏blog_comments内部重复的"收到X条评论"） */
.comment-list-card .comment-header {
    display: none;
}

/* 发表评论卡片：顶部用户信息 */
.comment-form-card .comment-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.comment-form-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.comment-form-user {
    flex: 1;
    min-width: 0;
}

.comment-form-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.comment-form-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 2px;
}

/* 评论表单样式调整 */
.comment-form-card .comment-form {
    margin-top: 0;
}

.comment-form-card .comment-form h4 {
    display: none;
}

.comment-form-card .comment-form textarea {
    min-height: 100px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    transition: var(--transition);
    margin-bottom: 12px;
}

.comment-form-card .comment-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--glass-bg-hover);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

/* 表单底部工具栏 */
.comment-form-card .form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-form-card .form-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.comment-form-card .form-tools i {
    font-size: 1.15rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color .2s;
}

.comment-form-card .form-tools i:hover {
    color: var(--primary-color);
}

.comment-form-card .form-verify {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-form-card .form-verify input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    outline: none;
}

.comment-form-card .form-verify span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-form-card .form-submit {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-form-card .form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

/* 评论区卡片：标题+筛选 */
.comment-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
}

.comment-list-header .comment-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 1.05rem;
}

.comment-list-tabs {
    display: flex;
    gap: 6px;
}

.comment-list-tabs .tab {
    padding: 4px 12px;
    font-size: 0.78rem;
    color: var(--text-light);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all .2s;
}

.comment-list-tabs .tab:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.comment-list-tabs .tab.active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 表情面板 */
.smiley-box {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 14px;
    display: none;
    z-index: 10;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.smiley-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: background .15s;
}

.smiley-box a:hover {
    background: var(--primary-light, rgba(74,144,217,.1));
}

.smiley-box img {
    width: 28px;
    height: 28px;
    display: block;
}

/* 表单底部相对定位容器（表情面板锚点） */
.comment-form-card .form-tools {
    position: relative;
}

.comment-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.comment-list {
    margin-bottom: 24px;
}

/* 评论数量栏 */
.comment-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-count-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-color);
}

.comment-count-text i {
    color: var(--primary-color);
    font-size: 1.1em;
}

.comment-count-pager {
    font-size: 0.8rem;
}

.comment-count-pager a {
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
}

.comment-count-pager a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* 评论项主体 */
.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 10px;
    background: var(--glass-bg);
    border: 1px solid rgba(228, 220, 209, 0.45);
    border-radius: var(--radius-md);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.comment-item:hover {
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-1px);
    border-color: rgba(228, 220, 209, 0.65);
}

.comment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), transparent);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.comment-item:hover::before,
.comment-item.replying::before {
    opacity: 1;
}

.comment-item.replying {
    border-color: rgba(228, 220, 209, 0.8);
    box-shadow: 0 0 0 2px rgba(228, 220, 209, 0.15), var(--glass-shadow);
}
/* 头像区域 */
.comment-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.comment-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.35));
    box-shadow: 2px 2px 6px rgba(0,0,0,0.04), -2px -2px 5px rgba(255,255,255,0.5);
    z-index: 0;
}

.comment-avatar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.85);
    transition: var(--transition);
}

.comment-item:hover .comment-avatar {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* 评论主内容区 */
.comment-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
}

.comment-author-name a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-author-name a:hover {
    color: var(--primary-color);
}

.comment-author-badge {
    display: inline-flex;
    color: var(--primary-color);
    font-size: 0.85rem;
    opacity: 0.8;
}

.comment-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* 评论内容 */
.comment-content {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    word-break: break-word;
}

.comment-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 4px 0;
}

.comment-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: var(--transition);
}

.comment-content a:hover {
    border-bottom-style: solid;
    opacity: 0.8;
}

/* 评论底部操作区 */
.comment-footer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

/* 回复表单插槽 — 表单被移动时显示，表单移走后塌陷 */
.comment-reply-slot:empty {
    display: none;
}

.comment-reply-slot .comment-form-card {
    margin-top: 8px;
    border: 1px solid rgba(228, 220, 209, 0.5);
    border-radius: var(--radius-md);
    animation: replyFormIn 0.25s ease-out;
}

.comment-reply-slot .comment-form-card .comment-form-header {
    padding: 12px 14px;
}

.comment-reply-slot .comment-form-card textarea {
    min-height: 60px;
}

.comment-reply-slot .comment-form-card .form-footer {
    padding: 8px 14px 10px;
}

.comment-children-wrap .comment-reply-slot .comment-form-card {
    margin-top: 6px;
    border-radius: var(--radius-sm);
}

.comment-children-wrap .comment-reply-slot .comment-form-card .comment-form-header {
    padding: 10px 12px;
}

.comment-children-wrap .comment-reply-slot .comment-form-card textarea {
    min-height: 50px;
}

.comment-children-wrap .comment-reply-slot .comment-form-card .form-footer {
    padding: 6px 12px 8px;
}

.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
}

.comment-reply-btn:hover {
    color: var(--primary-color);
    background: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.15);
}

.comment-reply-btn i {
    font-size: 0.9em;
}

/* 子评论嵌套 */
.comment-children-wrap {
    position: relative;
    padding-left: 28px;
    margin-left: 22px;
    margin-bottom: 10px;
}

.comment-children-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, rgba(228, 220, 209, 0.35), rgba(228, 220, 209, 0.55));
    border-radius: 1px;
}


.comment-children-wrap .comment-item {
    margin-bottom: 8px;
    padding: 12px 14px;
}

.comment-children-wrap .comment-avatar-wrap {
    width: 36px;
    height: 36px;
}

.comment-children-wrap .comment-avatar-wrap::before {
    inset: -2px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.03), -1px -1px 3px rgba(255,255,255,0.4);
}

.comment-children-wrap .comment-avatar {
    border-width: 1.5px;
}

.comment-children-wrap .comment-author-name {
    font-size: 0.88rem;
}

.comment-children-wrap .comment-content {
    font-size: 0.85rem;
}

.comment-children-wrap .comment-time {
    font-size: 0.72rem;
}

/* 分页 */
.comment-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0;
    font-size: 0.85rem;
}

.comment-pagination a,
.comment-pagination span {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.comment-pagination a {
    color: var(--text-light);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.comment-pagination a:hover {
    color: var(--primary-color);
    background: var(--glass-bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.comment-pagination span {
    color: #fff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* 回复提示条（主评论框顶部） */
.reply-to-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    animation: replyFormIn 0.25s ease-out;
}

.reply-to-bar .reply-target-name {
    color: var(--text-color);
    font-weight: 500;
}

.reply-to-bar .reply-cancel {
    padding: 2px 10px;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    font-family: var(--font-family);
    margin-left: 4px;
}

.reply-to-bar .reply-cancel:hover {
    background: var(--glass-bg-hover);
    color: var(--text-color);
    border-color: var(--glass-border-hover);
}

@keyframes replyFormIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 旧类兼容（仅隐藏评论项内不再使用的旧结构） */
.comment-item > .comment-meta,
.comment-item > .comment-body,
.comment-item > .comment-reply {
    display: none;
}


/* Comment Form */
.comment-form {
    margin-top: 20px;
}

.comment-form h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.login-to-comment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin-top: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.login-to-comment:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--glass-bg-hover);
}

/* ========== 登录弹窗 ========== */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.login-modal {
    position: relative;
    width: 400px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--glass-bg-solid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow-hover), 0 20px 60px rgba(0,0,0,0.15);
    padding: 30px 28px 24px;
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.login-modal-close:hover {
    background: var(--glass-bg-hover);
    color: var(--text-color);
}

.login-modal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 3px;
    background: var(--glass-bg);
    border-radius: 10px;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    user-select: none;
}

.login-tab:hover {
    color: var(--text-color);
}

.login-tab.active {
    background: var(--glass-bg-hover);
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.login-tab-content {
    display: none;
}

.login-tab-content.active {
    display: block;
}

.login-form-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-field {
    position: relative;
    display: flex;
    align-items: center;
}

.login-field > i {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.login-field input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    color: var(--text-color);
    outline: none;
    font-family: var(--font-family);
    transition: var(--transition);
}

.login-field input:focus {
    border-color: var(--primary-color);
    background: var(--glass-bg-hover);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.08);
}

.login-pwd-toggle {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    line-height: 1;
}

.login-pwd-toggle:hover {
    color: var(--text-color);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.login-options input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.login-submit-btn {
    width: 100%;
    padding: 11px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    letter-spacing: 2px;
}

.login-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(74, 144, 217, 0.25);
}

.login-msg {
    font-size: 0.82rem;
    text-align: center;
    min-height: 20px;
}

.login-msg.error {
    color: #e74c3c;
}

.login-msg.success {
    color: #27ae60;
}

/* 弹窗移动端适配 */
@media (max-width: 480px) {
    .login-modal {
        padding: 24px 18px 20px;
        border-radius: var(--radius-md);
    }
    .login-modal-tabs {
        margin-bottom: 18px;
    }
    .login-tab {
        font-size: 0.82rem;
        padding: 6px 0;
    }
    .login-field input {
        padding: 10px 12px 10px 34px;
        font-size: 0.85rem;
    }
    .login-submit-btn {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}


[class^="ri-"], [class*=" ri-"] {
    font-style: normal;
    display: inline-block;
    line-height: 1;
    vertical-align: -0.125em;
    font-weight: normal;
    speak: none;
}

.com-reply i {
    margin-right: 4px;
    font-size: 0.95em;
}

.comment-title i,
.widget-title i {
    margin-right: 6px;
    font-size: 1.1em;
    color: var(--primary-color);
}

.article-meta i {
    margin-right: 4px;
    color: var(--primary-color);
}

.header-search button i {
    font-size: 1rem;
}

.comment-form .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form input,
.comment-form textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-family);
    background: var(--glass-bg);
    color: var(--text-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--glass-bg-hover);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 12px;
}

.comment-form button {
    padding: 10px 28px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form button:hover {
    background: var(--primary-dark);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar .widget {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    padding: 20px;
    margin-bottom: 16px;
    overflow: hidden;
}



.sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Blog Info Widget */
.blog-info {
    text-align: center;
    padding: 40px 20px 32px;
}

.blog-info-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
}

.blog-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    box-shadow: 4px 4px 10px rgba(0,0,0,0.06), -3px -3px 8px rgba(255,255,255,0.7);
    z-index: 0;
}

.blog-avatar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.85);
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.06), inset -2px -2px 5px rgba(255,255,255,0.5);
    transition: var(--transition);
}

.blog-avatar-wrap:hover .blog-avatar {
    transform: scale(1.04);
    box-shadow: inset 3px 3px 8px rgba(0,0,0,0.08), inset -2px -2px 6px rgba(255,255,255,0.6);
}

.blog-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.blog-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.6;
    max-width: 90%;
}

.blog-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.blog-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.blog-btn i {
    font-size: 1.05rem;
}

.blog-btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

.blog-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 144, 217, 0.4);
    color: #fff;
}

.blog-btn-secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.05), -2px -2px 6px rgba(255, 255, 255, 0.5);
}

.blog-btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--glass-bg-hover);
    color: var(--primary-color);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.07), -2px -2px 6px rgba(255, 255, 255, 0.6);
}

/* Widget Search & Archive */
.widget-search-form {
    display: flex;
    gap: 8px;
}

.widget-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    background: var(--glass-bg);
    color: var(--text-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
}

.widget-search-input:focus {
    border-color: var(--primary-color);
    background: var(--glass-bg-hover);
}

.widget-search-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.widget-search-btn:hover {
    background: var(--primary-dark);
}

.widget-archive-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    background: var(--glass-bg);
    color: var(--text-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    cursor: pointer;
}

.widget-archive-select:focus {
    border-color: var(--primary-color);
}

/* Widget Twitter & Newlog */
.widget-twitter-list .twitter-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--glass-border);
}

.widget-twitter-list .twitter-item:last-child {
    border-bottom: none;
}

.twitter-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.twitter-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.twitter-author {
    font-weight: 600;
    color: var(--text-color);
}

.twitter-time {
    color: var(--text-muted);
    margin-left: auto;
}

.twitter-content {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.widget-newlog-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--glass-border);
}

.widget-newlog-list li:last-child {
    border-bottom: none;
}

.widget-newlog-list a {
    font-size: 0.85rem;
    color: var(--text-color);
}

.widget-newlog-list a:hover {
    color: var(--primary-color);
}

.newlog-cover {
    height: 100px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.newlog-cover a {
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff !important;
    font-size: 0.82rem;
}

.widget-link-list li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--glass-border);
}

.widget-link-list li:last-child {
    border-bottom: none;
}

.widget-link-list a {
    font-size: 0.85rem;
    color: var(--text-color);
}

.widget-link-list a:hover {
    color: var(--primary-color);
}

.widget-custom-content {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Comment List Widget */
.newcomm-list {
    margin: 0;
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
}

.newcomm-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px dashed var(--glass-border);
    font-size: 0.82rem;
    line-height: 1.4;
}

.newcomm-item:last-child {
    border-bottom: none;
}

.newcomm-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    padding: 0 10px;
}

.newcomm-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.newcomm-name {
    font-weight: 600;
    color: var(--text-color);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
}

.newcomm-meta {
    margin-left: auto;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.newcomm-bubble {
    position: relative;
    background: rgba(255, 192, 203, 0.35);
    border-radius: 6px;
    padding: 5px 8px;
    margin-bottom: 3px;
    margin-left: 10px;
    margin-right: 10px;
}

.newcomm-bubble::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 3px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(255, 192, 203, 0.35);
}

.newcomm-text {
    font-size: 0.8rem;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.newcomm-post {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 10px;
    margin-right: 10px;
}

.newcomm-post a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.newcomm-post a:hover {
    color: var(--primary-color);
}

.newcomm-from {
    color: var(--primary-color);
    margin-right: 2px;
}

/* 兼容旧类（避免被新规则完全取代） */
.comment-widget-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--glass-border);
    font-size: 0.85rem;
    line-height: 1.5;
}

.comment-widget-item:last-child {
    border-bottom: none;
}

.comment-widget-item a {
    color: var(--text-color);
}

.comment-widget-item a:hover {
    color: var(--primary-color);
}

.comment-widget-item .comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-widget-item .comment-text {
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Widget */
.category-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-light);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.category-list .cat-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Hot Posts Widget */
.hot-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-post-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--glass-border);
}

.hot-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-post-item:first-child {
    padding-top: 0;
}

/* 缩略图区域 */
.hot-post-cover {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.hot-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hot-post-item:hover .hot-post-cover img {
    transform: scale(1.08);
}

/* TOP 徽章 */
.hot-post-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px 1px 4px;
    border-bottom-right-radius: 6px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 1px;
    box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3);
}

.hot-post-badge i {
    font-size: 0.6rem;
}

/* 右侧信息 */
.hot-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hot-post-title {
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.25s ease;
}

.hot-post-title:hover {
    color: var(--primary-color);
}

.hot-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hot-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hot-post-meta i {
    font-size: 0.75rem;
    opacity: 0.85;
}

.hot-post-views {
    color: var(--primary-color);
    opacity: 0.85;
}

/* TOP 1 - 大图布局 */
.hot-post-item.top-1 .hot-post-cover {
    width: 100%;
    height: 130px;
    border-radius: 10px;
}

.hot-post-item.top-1 {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 0 10px 0;
    margin-bottom: 4px;
    border-bottom: 1px dashed var(--glass-border);
}

.hot-post-item.top-1 .hot-post-info {
    padding: 0 2px;
}

/* Tag Cloud Widget - 样式一：经典胶囊 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 12px;
    border-radius: 14px;
    transition: var(--transition);
}

.tag-cloud a:hover {
    color: #fff;
    background: var(--primary-color);
}

/* Latest Posts Widget */
.latest-post-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--glass-border);
}

.latest-post-item:last-child {
    border-bottom: none;
}

.latest-post-item a {
    font-size: 0.85rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-post-item a:hover {
    color: var(--primary-color);
}

.latest-post-item .post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   Footer - 三栏品牌+链接+二维码 + 底部版权
   ============================================ */
.site-footer {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    padding: 40px 0 0;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 主内容区：三栏 */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
}

/* 品牌栏 */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.footer-site-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

/* 社交图标 */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.04);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s;
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 链接区 */
.footer-links-col {
    display: flex;
    gap: 32px;
}

.footer-link-group {
    flex: 1;
}

.footer-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-list a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-link-list a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* 二维码 */
.footer-qr-col {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.footer-qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-qr-item img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.footer-qr-item span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 图片弹窗 */
.img-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.img-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-popup-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: block;
}

.img-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.img-popup-close:hover {
    background: rgba(255,255,255,0.3);
}

/* 底部版权栏 */
.footer-bottom-bar {
    padding: 16px 0 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copyright-text {
    opacity: 0.8;
}

.footer-icp-text {
    opacity: 0.7;
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page .error-msg {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-page .back-home {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.error-page .back-home:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Bing Daily Background */
#bing-bg {
    height: 200px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-image 0.5s ease;
    border: 1px solid var(--glass-border);
}

/* Password Protected Page */
.pw-card {
    text-align: center;
    padding: 40px 30px;
}

.pw-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.pw-title {
    margin-bottom: 12px;
}

.pw-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pw-form {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pw-form input[type="password"] {
    padding: 10px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    width: 220px;
    background: var(--glass-bg);
    color: var(--text-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.pw-form input[type="password"]:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.65);
}

.pw-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pw-form button:hover {
    background: var(--primary-dark);
}

/* ============================================
   Page Template
   ============================================ */
.page-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.page-content .page-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-color);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}


/* ============================================
   Mobile Navigation (FLY Style)
   ============================================ */

/* 移动端头部顶栏 - 默认隐藏 */
.mobile-header-item {
    display: none;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 55px;
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-bottom: 1px solid var(--glass-border);
    z-index: 130;
    padding: 0;
    box-shadow: var(--glass-shadow-hover);
    transition: all .25s ease-out;
}

.mobile-header-item > div {
    display: flex;
    align-items: center;
    flex: 1;
}

.mobile-header-item > div:first-child {
    justify-content: flex-start;
}

.mobile-header-item > div:nth-child(2) {
    justify-content: center;
}

.mobile-header-item > div:last-child {
    justify-content: flex-end;
}

.mobile-header-item .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    color: var(--text-color);
    height: 40px;
    margin: 5px 0;
    padding: 0 16px;
    font-size: 0.875rem;
    cursor: pointer;
}

.mobile-header-item .nav-item i {
    font-size: 1.5rem;
    color: var(--text-color);
}

.mobile-header-item .logo img {
    height: 28px;
    width: auto;
    display: block;
}

/* 移动端侧边栏 */
#mobile_side {
    display: none;
    z-index: 122;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 75vw;
    max-width: 320px;
    padding: 0;
    left: 0;
    transform: translateX(-110%);
    transition: transform .5s cubic-bezier(.28,.9,.34,.99);
}

#mobile_side .inner {
    height: 100%;
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-right: 1px solid var(--glass-border);
    box-shadow: 4px 0 20px rgba(0,0,0,.1);
    overflow-x: hidden;
    overflow-y: auto;
    /* 渐变背景动画 */
    background-image: linear-gradient(60deg, 
        rgba(74,144,217,0.04), rgba(28,200,138,0.04), 
        rgba(255,102,153,0.04), rgba(108,108,238,0.04), 
        rgba(239,161,49,0.04));
    background-size: 300%;
    animation: mobile-gradient-bg 30s infinite;
}

@keyframes mobile-gradient-bg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#mobile_side.show {
    transform: translate(0);
}

/* 遮罩层 */
.fixed-body {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
    width: 100%;
    visibility: hidden;
    background: rgba(0,0,0,.4);
    opacity: 0;
    transition: opacity .3s, visibility .3s;
    z-index: 121;
}

.fixed-body-ctl.show + .fixed-body {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* 侧边栏菜单 */
.mobile-side-menus {
    padding: 64px 12px 20px;
}

.mobile-menus {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-bottom: 0;
    box-shadow: var(--glass-shadow);
}

.mobile-menus > li > a {
    position: relative;
    display: block;
    padding: 12px 20px 12px 28px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color .25s ease-out;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menus > li:last-child > a {
    border-bottom: none;
}

.mobile-menus > li > a::before {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 12px;
    width: 4px;
    border-radius: 2px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity .25s ease-out;
}

.mobile-menus > li > a:hover {
    color: var(--primary-color);
}

.mobile-menus > li > a:hover::before {
    opacity: 1;
}

.mobile-menus > li > a i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* 子菜单 */
.mobile-menus .child-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 8px 16px 10px;
}

.mobile-menus .child-menu > li > a {
    display: block;
    overflow: hidden;
    background: rgba(0,0,0,.04);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all .25s ease-out;
    color: var(--text-light);
}

.mobile-menus .child-menu > li > a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* 移动端侧边栏小工具区域 */
.mobile-side-widget {
    padding: 0 12px 30px;
}

.mobile-side-widget .widget {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    margin-bottom: 12px;
    padding: 16px;
    width: 100%;
    float: none;
    clear: both;
}

.mobile-side-widget .widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-color);
}

/* 侧边栏内博主语调整 */
/* 移动端博主信息 */
.mobile-side-widget .blog-info {
    padding: 20px 12px 18px;
}

.mobile-side-widget .blog-avatar-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
}

.mobile-side-widget .blog-avatar-wrap::before {
    inset: -3px;
    box-shadow: 3px 3px 7px rgba(0,0,0,0.05), -2px -2px 5px rgba(255,255,255,0.6);
}

.mobile-side-widget .blog-avatar {
    border-width: 2px;
}

.mobile-side-widget .blog-name {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: var(--text-color);
}

.mobile-side-widget .blog-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mobile-side-widget .blog-actions {
    gap: 8px;
}

.mobile-side-widget .blog-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
}



/* 侧边栏热门文章列表 */
.mobile-side-widget .hotlog-list .hotlog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-side-widget .hotlog-list .hotlog-item:last-child {
    border-bottom: none;
}

.mobile-side-widget .hotlog-list .hotlog-index {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mobile-side-widget .hotlog-list .hotlog-item:nth-child(1) .hotlog-index {
    background: var(--primary-color);
    color: #fff;
}

.mobile-side-widget .hotlog-list .hotlog-item:nth-child(2) .hotlog-index {
    background: var(--primary-color);
    color: #fff;
    opacity: 0.8;
}

.mobile-side-widget .hotlog-list .hotlog-item:nth-child(3) .hotlog-index {
    background: var(--primary-color);
    color: #fff;
    opacity: 0.6;
}

.mobile-side-widget .hotlog-list .hotlog-title {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-color);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color .2s;
}

.mobile-side-widget .hotlog-list .hotlog-title:hover {
    color: var(--primary-color);
}

.mobile-side-widget .hotlog-list .hotlog-views {
    font-size: 0.7rem;
    color: var(--text-light);
    flex-shrink: 0;
}

/* 侧边栏最新评论列表 */
.mobile-side-widget .newcomm-list .newcomm-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-side-widget .newcomm-list .newcomm-item:last-child {
    border-bottom: none;
}

.mobile-side-widget .newcomm-list .newcomm-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mobile-side-widget .newcomm-list .newcomm-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-side-widget .newcomm-list .newcomm-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    flex-shrink: 0;
}

.mobile-side-widget .newcomm-list .newcomm-meta {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-left: auto;
}

.mobile-side-widget .newcomm-list .newcomm-bubble {
    margin-bottom: 4px;
}

.mobile-side-widget .newcomm-list .newcomm-text {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-side-widget .newcomm-list .newcomm-post {
    font-size: 0.7rem;
    color: var(--text-light);
}

.mobile-side-widget .newcomm-list .newcomm-post a {
    color: var(--primary-color);
}

.mobile-side-widget .newcomm-list .newcomm-from {
    color: var(--text-light);
}

/* 侧边栏标签云 */
.mobile-side-widget .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-side-widget .tag-cloud a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-color);
    transition: all .2s;
}

.mobile-side-widget .tag-cloud a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* 移动端隐藏桌面导航 */
@media (max-width: 1024px) {
    .mobile-header-item {
        display: flex;
    }

    #mobile_side {
        display: block;
    }

    .fixed-body {
        display: block;
    }

    /* 桌面端头部在移动端隐藏 */
    .site-header {
        display: none !important;
    }

    /* 主内容区向下偏移，避免被固定顶栏遮挡 */
    .container {
        padding-top: 75px;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .hero-slider {
        height: 220px;
    }

    .slide-caption {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--glass-bg-solid);
        flex-direction: column;
        padding: 12px 0;
        box-shadow: var(--glass-shadow-hover);
        display: none;
        backdrop-filter: var(--glass-blur-strong);
        -webkit-backdrop-filter: var(--glass-blur-strong);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 16px;
    }

    .header-search input {
        width: 140px;
    }

    .header-search input:focus {
        width: 160px;
    }

    .post-card {
        flex-direction: row;
        align-items: stretch;
        height: 140px;
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        gap: 0;
    }

    .post-card-thumb {
        width: 160px;
        min-width: 160px;
        height: 140px;
        max-height: 140px;
        margin: 0;
        position: relative;
        background: transparent;
        padding: 8px;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }

    .post-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
        transition: transform 0.4s ease;
    }

    .post-card-body {
        flex: 1;
        padding: 0 10px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        overflow: hidden;
    }

    .post-card-title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.45;
        margin-bottom: 6px;
    }

    .post-card-excerpt {
        font-size: 0.82rem;
        margin-bottom: 8px;
        -webkit-line-clamp: 1;
        line-height: 1.6;
    }

    .meta-tags {
        margin-bottom: 6px;
    }

    .post-card-footer {
        padding-top: 8px;
    }

    .post-card-tags .tag-item {
        font-size: 0.66rem;
        padding: 1px 8px;
    }

    .post-card-thumb .article-badge {
        position: absolute;
        top: 6px;
        left: 6px;
        padding: 1px 6px;
        border-radius: 4px;
        font-size: 0.62rem;
    }

    .article-detail {
        padding: 20px 16px;
    }

    .article-detail .article-title {
        font-size: 1.3rem;
    }

    .comment-form .form-row {
        flex-direction: column;
    }

    .comment-form-card .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .comment-form-card .form-submit {
        align-self: flex-end;
    }

    .comment-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand-desc {
        max-width: 100%;
    }

    .footer-qr-col {
        justify-content: flex-start;
    }

    .hero-slider {
        height: 180px;
    }

    .slide-caption {
        padding: 5px 12px;
        font-size: 0.8rem;
        bottom: 12px;
        left: 12px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .slider-dots {
        right: 12px;
        bottom: 10px;
    }
    /* 文章页头平板适配 */
    .post-hero {
        margin: 0 0 20px;
    }
    .post-hero-inner {
        width: 100%;
        margin-right: 0;
    }
    .hero-wave-scroll {
        height: 50px;
    }
    .hero-wave-scroll .editorial {
        height: 50px;
    }
    /* 评论列表移动端适配 */
    .comment-count-bar {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .comment-item {
        padding: 12px 14px;
        gap: 10px;
    }
    .comment-avatar-wrap {
        width: 40px;
        height: 40px;
    }
    .comment-header-row {
        gap: 4px;
    }
    .comment-author-name {
        font-size: 0.9rem;
    }
    .comment-content {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    .comment-children-wrap {
        padding-left: 20px;
        margin-left: 16px;
    }
    .comment-children-wrap .comment-item {
        padding: 10px 12px;
    }
    .comment-children-wrap .comment-avatar-wrap {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .post-card {
        height: 120px;
        gap: 0;
        margin-bottom: 16px;
    }

    .post-card-thumb {
        width: 140px;
        min-width: 140px;
        height: 120px;
        max-height: 120px;
        padding: 8px;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }

    .post-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius-sm);
    }

    .post-card-body {
        padding: 10px 12px 10px 0;
        overflow: hidden;
        justify-content: flex-start;
    }

    .post-card-title {
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.45;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-card-excerpt {
        display: none;
    }

    .post-card-tags {
        margin: 6px 0 0;
    }

    .post-card-tags .tag-item {
        font-size: 0.65rem;
        padding: 1px 7px;
    }

    .post-card-footer {
        padding-top: 0;
        font-size: 0.72rem;
        margin-top: auto;
    }

    .author-avatar {
        width: 20px;
        height: 20px;
    }

    .post-card-stats .stat-item {
        font-size: 0.72rem;
    }

    .post-date-full {
        display: none;
    }

    .post-date-short {
        display: inline;
    }

    .post-card-thumb .article-badge {
        top: 12px;
        left: 12px;
        padding: 2px 6px;
        font-size: 0.6rem;
        border-radius: 4px;
    }

    .article-detail .article-meta {
        gap: 10px;
        font-size: 0.78rem;
    }

    .hero-slider {
        height: 150px;
    }

    .slide-caption {
        padding: 4px 10px;
        font-size: 0.75rem;
        bottom: 8px;
        left: 8px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }
    /* 文章页头手机适配 */
    .post-hero {
        margin: 0 0 15px;
        padding: 30px 15px 45px;
        border-radius: 8px;
    }
    .post-hero-title {
        font-size: 20px;
        max-width: 100%;
    }
    .post-hero-meta {
        gap: 4px 10px;
        font-size: 12px;
    }
    .post-hero-breadcrumb {
        font-size: 12px;
    }
    .hero-wave-scroll {
        height: 40px;
    }
    .hero-wave-scroll .editorial {
        height: 40px;
    }
    /* 评论列表手机适配 */
    .comment-count-bar {
        padding: 6px 10px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    .comment-count-text {
        font-size: 0.78rem;
    }
    .comment-item {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 10px;
        margin-bottom: 8px;
    }
    .comment-avatar-wrap {
        width: 36px;
        height: 36px;
    }
    .comment-avatar-wrap::before {
        inset: -1px;
        box-shadow: 1px 1px 4px rgba(0,0,0,0.03), -1px -1px 3px rgba(255,255,255,0.4);
    }
    .comment-avatar {
        border-width: 1.5px;
    }
    .comment-author-name {
        font-size: 0.85rem;
    }
    .comment-author-badge {
        font-size: 0.75rem;
    }
    .comment-time {
        font-size: 0.7rem;
    }
    .comment-content {
        font-size: 0.82rem;
        line-height: 1.65;
    }
    .comment-reply-btn {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
    .comment-children-wrap {
        padding-left: 14px;
        margin-left: 12px;
    }
    .comment-children-wrap .comment-item {
        padding: 8px 10px;
    }
    .comment-children-wrap .comment-avatar-wrap {
        width: 28px;
        height: 28px;
    }
    .comment-children-wrap .comment-author-name {
        font-size: 0.82rem;
    }
    .comment-children-wrap .comment-content {
        font-size: 0.78rem;
    }
    /* 回复提示条手机适配 */
    .reply-to-bar {
        font-size: 0.75rem;
    }
    .reply-to-bar .reply-cancel {
        padding: 1px 8px;
        font-size: 0.7rem;
    }
    /* 评论回复插槽手机适配 */
    .comment-reply-slot .comment-form-card {
        margin-top: 6px;
    }
    .comment-reply-slot .comment-form-card .comment-form-header {
        padding: 10px 12px;
    }
    .comment-reply-slot .comment-form-card .comment-form-avatar {
        width: 36px;
        height: 36px;
    }
    .comment-reply-slot .comment-form-card textarea {
        min-height: 50px;
    }
    .comment-reply-slot .comment-form-card .form-footer {
        padding: 6px 12px 8px;
    }
    .comment-children-wrap .comment-reply-slot .comment-form-card {
        margin-top: 4px;
    }
    .comment-children-wrap .comment-reply-slot .comment-form-card .comment-form-header {
        padding: 8px 10px;
    }
    .comment-children-wrap .comment-reply-slot .comment-form-card .comment-form-avatar {
        width: 32px;
        height: 32px;
    }
    .comment-children-wrap .comment-reply-slot .comment-form-card textarea {
        min-height: 40px;
    }
    .comment-children-wrap .comment-reply-slot .comment-form-card .form-footer {
        padding: 5px 10px 6px;
    }

    /* 页脚移动端适配 */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links-col {
        flex-direction: column;
        gap: 20px;
    }

    .footer-qr-col {
        justify-content: flex-start;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
    }
}

/* 平板端回复提示条适配 */
@media (max-width: 768px) {
    .reply-to-bar {
        font-size: 0.78rem;
    }
}

/**
 * ========================================
 * 点赞 / 收藏 / 关注 样式
 * ========================================
 */

/* 文章页操作栏 */
.lf-action-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 24px 0;
    margin: 16px 0;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.08));
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
}

.lf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color, #555);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lf-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.lf-action-btn i {
    font-size: 1.15rem;
    transition: color 0.25s ease;
}

.lf-action-btn.lf-like-btn.active {
    color: #e74c3c;
    border-color: rgba(231,76,60,0.3);
    background: rgba(231,76,60,0.08);
}

.lf-action-btn.lf-like-btn.active i {
    color: #e74c3c;
    animation: lfHeartPop 0.4s ease;
}

.lf-action-btn.lf-fav-btn.active {
    color: #f39c12;
    border-color: rgba(243,156,18,0.3);
    background: rgba(243,156,18,0.08);
}

.lf-action-btn.lf-fav-btn.active i {
    color: #f39c12;
}

@keyframes lfHeartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* 关注按钮（通用） */
.lf-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.12));
    border-radius: 999px;
    background: var(--primary-color, #3498db);
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lf-follow-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.lf-follow-btn.following {
    background: rgba(255,255,255,0.7);
    color: var(--text-muted, #888);
    border-color: var(--border-color, rgba(0,0,0,0.1));
}

/* 文章页 hero 区的关注按钮 */
.hero-follow-btn {
    margin-left: 8px;
    padding: 2px 12px;
    font-size: 0.75rem;
}

/* 评论点赞按钮 */
.comment-like-btn,
.lf-comment-like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border: none;
    background: transparent;
    color: var(--text-muted, #999);
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lf-comment-like:hover {
    background: rgba(231,76,60,0.06);
    color: #e74c3c;
}

.lf-comment-like.active {
    color: #e74c3c;
}

.lf-comment-like.active i {
    animation: lfHeartPop 0.4s ease;
}

.lf-comment-like .like-num {
    min-width: 16px;
    text-align: center;
}

/* Toast 提示 */
.lf-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    padding: 12px 24px;
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 0.88rem;
    border-radius: 8px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.lf-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 用户中心 - 收藏列表 */
.uc-fav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uc-fav-item {
    padding: 14px 16px;
    background: var(--card-bg, rgba(255,255,255,0.6));
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    transition: all 0.2s ease;
}

.uc-fav-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.uc-fav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color, #333);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.uc-fav-title:hover {
    color: var(--primary-color, #3498db);
}

.uc-fav-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted, #999);
}

.uc-fav-meta .uc-fav-time {
    margin-left: auto;
    color: var(--text-muted, #bbb);
}

/* 用户中心 - 用户网格（关注/粉丝） */
.uc-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.uc-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--card-bg, rgba(255,255,255,0.6));
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.06));
    transition: all 0.2s ease;
}

.uc-user-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.uc-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.uc-user-info {
    flex: 1;
    min-width: 0;
}

.uc-user-info h4 {
    margin: 0 0 2px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-user-exp {
    font-size: 0.72rem;
    color: var(--text-muted, #999);
}

.uc-follow-btn {
    flex-shrink: 0;
    padding: 4px 12px;
    font-size: 0.75rem;
}

/* 空状态 */
.uc-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted, #999);
}

.uc-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

.uc-empty p {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .lf-action-bar {
        padding: 16px 0;
    }
    .lf-action-btn {
        padding: 8px 18px;
        font-size: 0.82rem;
    }
    .uc-user-grid {
        grid-template-columns: 1fr;
    }
    .uc-fav-meta {
        gap: 8px;
    }
    .uc-fav-meta .uc-fav-time {
        margin-left: 0;
        width: 100%;
    }
}
