/* ============================================================
   hliutheme · 最终精修版（已修正标题栏间距 + 搜索框同行 + 亮色可见）
   目标：无限接近 hliu.cn 风格
   ============================================================ */

/* ========== CSS 变量（亮色/暗色） ========== */
:root {
    --primary: #007acc;
    --primary-hover: #005fa3;
    --primary-light: #e6f0fa;
    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-code: #f0f2f5;
    --text-primary: #222;
    --text-secondary: #444;
    --text-muted: #999;
    --border-color: #eaeef2;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.2s ease;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    --max-width: 1100px;
}

[data-theme="dark"] {
    --bg-body: #18191a;
    --bg-card: #242526;
    --bg-input: #3a3b3c;
    --bg-code: #3a3b3c;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d91;
    --border-color: #3a3b3c;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.5);
    --primary-light: #2a3a4a;
}

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    padding: 0 20px;
    -webkit-font-smoothing: antialiased;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-hover);
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   头部（参考网站精确复刻）
   ============================================================ */
.blog-header {
    position: relative;
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4f7 40%, #f0f4fa 100%);
    padding: 28px 0 24px;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
    margin: 0;
    box-shadow: 0 2px 20px rgba(78, 115, 223, 0.08);
}

/* 光晕装饰 */
.header-glow {
    position: absolute;
    top: -50px;
    right: -30px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(78, 115, 223, 0.20) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: glowFloat 8s ease-in-out infinite, glowRotate 24s linear infinite;
}
.header-glow::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -50px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(28, 200, 138, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowFloat 10s ease-in-out infinite reverse;
}
@keyframes glowFloat {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(10px,-15px) scale(1.05); }
    100% { transform: translate(0,0) scale(1); }
}
@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-ornament {
    position: absolute;
    bottom: 8px;
    left: 12%;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(78, 115, 223, 0.12);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: ornamentMove 12s ease-in-out infinite;
}
.header-ornament::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(78, 115, 223, 0.15);
    border-radius: 50%;
    animation: dotPulse 3s ease-in-out infinite;
}
@keyframes ornamentMove {
    0% { transform: translate(0,0) rotate(0deg); }
    33% { transform: translate(25px,-15px) rotate(120deg); }
    66% { transform: translate(-15px,12px) rotate(240deg); }
    100% { transform: translate(0,0) rotate(360deg); }
}
@keyframes dotPulse {
    0%,100% { transform: translateX(-50%) scale(1); opacity:0.6; }
    50% { transform: translateX(-50%) scale(1.6); opacity:1; }
}

.blog-header-c {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.blog-header-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a2a4a;
    letter-spacing: -0.3px;
    transition: color 0.2s;
}
.blog-header-title:hover {
    color: var(--primary);
}
.blog-header-subtitle {
    font-size: 14px;
    color: #5a6a8a;
    margin-left: 10px;
    font-weight: 400;
}
.blog-header-c img {
    max-height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(78,115,223,0.15);
}

/* 主题切换圆点 */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.theme-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.theme-dot:hover {
    transform: scale(1.15);
}
.theme-dot.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,122,204,0.2);
}

/* 移动端汉堡按钮 */
.blog-header-toggle {
    display: none;
    cursor: pointer;
    padding: 4px;
}
.blog-header-toggle svg {
    display: block;
}

/* ========== 独立导航栏 ========== */
.blog-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 0;
    margin-bottom: 28px;
    border-radius: 0 0 var(--radius) var(--radius);
}
.blog-nav .container {
    padding: 0 24px;
}
.nav-list {
    display: flex;
    gap: 32px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}
.nav-list li {
    position: relative;
}
.nav-list a {
    display: inline-block;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
}
/* 下划线 */
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--primary);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
    width: 100%;
}
.nav-list a::before {
    display: none;
}

/* 子菜单 */
.nav-list ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--bg-card);
    padding: 6px 0;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border: 1px solid var(--border-color);
    z-index: 999;
}
.nav-list ul ul {
    top: -6px;
    left: 100%;
}
.nav-list li:hover > ul {
    display: block;
}
.nav-list ul li {
    padding: 0 18px;
    white-space: nowrap;
}
.nav-list ul a {
    padding: 6px 0;
    font-weight: 400;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.nav-list ul li:last-child a {
    border-bottom: none;
}
.nav-list ul a:hover {
    color: var(--primary);
}
.nav-list .has-down::after {
    content: ' ▾';
    font-size: 12px;
    color: var(--text-muted);
}
.nav-list ul .has-down::after {
    content: ' ▸';
}

/* 用户菜单 */
.user-menu {
    position: relative;
}
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.user-dropdown-menus {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 0;
    min-width: 120px;
    box-shadow: var(--shadow-hover);
    z-index: 100;
}
.user-menu:hover .user-dropdown-menus {
    display: block;
}
.user-dropdown-menus li {
    list-style: none;
}
.user-dropdown-menus a {
    display: block;
    padding: 6px 18px;
    font-weight: 400;
    border-bottom: none;
}
.user-dropdown-menus a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* 移动端导航折叠 
@media (max-width: 768px) {
    .blog-header-toggle {
        display: block;
    }
    .blog-nav .nav-list {
        flex-direction: column;
        gap: 6px;
        padding: 12px 0;
    }
    .blog-nav .nav-list ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: transparent;
    }
    .blog-nav .nav-list li:hover > ul {
        display: none;
    }
    .blog-nav .nav-list ul {
        display: none;
    }
    .blog-nav .nav-list li.open > ul {
        display: block;
    }
    .blog-nav .nav-list a {
        white-space: normal;
    }
    .blog-nav .nav-list a::after {
        display: none;
    }
}*/
@media (max-width: 768px) {
    /* ===== 汉堡菜单：默认隐藏 ===== */
    .blog-nav .nav-list {
        display: none;                    /* 默认隐藏 */
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
        margin: 0;
        list-style: none;
        width: 100%;
        border-top: 1px solid var(--border-color, #eaeef2);
    }
    .blog-nav .nav-list.open {
        display: flex;                    /* 展开时显示 */
    }
    .blog-nav .nav-list li {
        display: block;
        width: 100%;
    }
    .blog-nav .nav-list a {
        display: block;
        padding: 8px 12px;
        font-size: 15px;
        white-space: normal;
        color: var(--text-secondary, #444);
        border-radius: 6px;
        transition: background 0.2s;
    }
    .blog-nav .nav-list a:hover,
    .blog-nav .nav-list a:active {
        background: var(--bg-code, #f0f2f5);
        color: var(--primary, #007acc);
    }
    .blog-nav .nav-list a::after {
        display: none;
    }

    /* 子菜单在移动端缩进显示 */
    .blog-nav .nav-list ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: transparent;
        display: none;
    }
    .blog-nav .nav-list li.open > ul {
        display: block;
    }
    .blog-nav .nav-list ul a {
        font-size: 14px;
        padding: 6px 12px;
        color: var(--text-muted, #999);
    }

    /* 带有子菜单的项显示箭头 */
    .blog-nav .nav-list .has-down::after {
        content: ' ▾';
        font-size: 12px;
        color: var(--text-muted, #999);
    }
    .blog-nav .nav-list li.open > .has-down::after {
        content: ' ▴';
    }

    /* 汉堡按钮显示 */
    .blog-header-toggle {
        display: block !important;
        cursor: pointer;
        padding: 4px;
        margin-left: auto;
    }
}

/* 桌面端隐藏汉堡按钮 */
@media (min-width: 769px) {
    .blog-header-toggle {
        display: none !important;
    }
    .blog-nav .nav-list {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        padding: 6px 0;
        border-top: none;
    }
}

/* ============================================================
   文章列表（左右结构，固定高度160px）
   ============================================================ */
.log-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 24px;
    height: 160px;
    transition: box-shadow var(--transition);
    overflow: hidden;
}
.log-card:hover {
    box-shadow: var(--shadow-hover);
}
.loglist-cover {
    flex-shrink: 0;
    width: 220px;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-code);
}
.loglist-cover a {
    display: block;
    width: 100%;
    height: 100%;
}
.loglist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.loglist-cover img:hover {
    transform: scale(1.02);
}
.loglist-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}
.card-title {
    flex-shrink: 0;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loglist-title {
    color: var(--text-primary);
}
.loglist-title:hover {
    color: var(--primary);
}
.loglist-content {
    flex: 1;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    max-height: 6.4em;
    word-break: break-word;
}
.loglist-tag {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.loglist-tag a {
    background: var(--bg-code);
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 22px;
    transition: background 0.2s, color 0.2s;
}
.loglist-tag a:hover {
    background: var(--primary);
    color: #fff;
}
.log-topflg {
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    padding: 0 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}
.info-row {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.log-info a {
    color: var(--text-secondary);
}
.log-info a:hover {
    color: var(--primary);
}
.log-count a {
    color: var(--text-muted);
    margin-left: 12px;
    transition: color var(--transition);
}
.log-count a:hover {
    color: var(--primary);
}

/* 响应式：移动端卡片纵向 */
@media (max-width: 600px) {
    .log-card {
        height: auto;
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }
    .loglist-cover {
        width: 100%;
        height: 200px;
    }
    .loglist-body {
        height: auto;
    }
    .card-title {
        white-space: normal;
        text-overflow: clip;
    }
    .loglist-content {
        flex: none;
        max-height: 6.4em;
        -webkit-line-clamp: 4;
        display: -webkit-box;
    }
    .info-row {
        flex-wrap: wrap;
    }
}

/* ============================================================
   文章详情页
   ============================================================ */
.log-con {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow-card);
}
.log-header {
    margin-bottom: 16px;
}
.log-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}
.log-title a {
    color: var(--text-primary);
}
.log-title a:hover {
    color: var(--primary);
}
.log-meta {
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}
.log-meta-item + .log-meta-item::before {
    content: "·";
    margin-right: 12px;
    color: var(--border-color);
}
.log-meta a {
    color: var(--primary);
}
.markdown {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.markdown p {
    margin: 1.2em 0;
}
.markdown h2, .markdown h3 {
    color: var(--text-primary);
    margin: 1.6em 0 0.6em;
}
.markdown blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 1.5em 0;
    color: var(--text-muted);
    font-style: italic;
}
.markdown pre {
    background: var(--bg-code);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.9rem;
}
.markdown code {
    background: var(--bg-code);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.markdown img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}
.top-5 {
    margin: 20px 0 10px;
}
.top-5 a {
    display: inline-block;
    background: var(--bg-code);
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 26px;
    margin-right: 4px;
    transition: background 0.2s, color 0.2s;
}
.top-5 a:hover {
    background: var(--primary);
    color: #fff;
}
.neighbor-log {
    display: flex;
    justify-content: space-between;
    margin: 28px 0 20px;
    gap: 20px;
}
.neighbor-link {
    display: block;
    color: var(--text-primary);
    transition: color var(--transition);
}
.neighbor-link:hover {
    color: var(--primary);
}
.neighbor-dir {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.neighbor-title {
    font-weight: 500;
}

/* ========== 独立页面 ========== */
.page-detail {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow-card);
}
.page-title {
    font-size: 26px;
    margin-bottom: 16px;
}

/* ============================================================
   侧边栏
   ============================================================ */
.row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.column-big {
    flex: 1;
    min-width: 0;
}
.column-small {
    width: 300px;  /* 增加宽度以容纳搜索框同行 */
    flex-shrink: 0;
}

.widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 22px 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.widget-title h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
}
/* 信号格 */
.widget-title h3::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 14px;
    margin-left: 12px;
    background:
        linear-gradient(to top, #ff5f56, #ff5f56) 0 100% / 5px 5px no-repeat,
        linear-gradient(to top, #ffbd2e, #ffbd2e) 9px 100% / 5px 10px no-repeat,
        linear-gradient(to top, #27c93f, #27c93f) 18px 100% / 5px 14px no-repeat;
}
.widget ul {
    list-style: none;
    padding: 0;
}
.widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}
.widget ul li:last-child {
    border-bottom: none;
}
.widget ul li a {
    color: var(--text-secondary);
    font-size: 14px;
}
.widget ul li a:hover {
    color: var(--primary);
}
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}
.tag-container a {
    display: inline-block;
    background: var(--bg-body);
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 26px;
    transition: background 0.2s, color 0.2s;
}
.tag-container a:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== 搜索框（修复亮色可见 + 同行显示） ===== */
.widget-search form {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
}
.search-input {
    flex: 1;
    min-width: 60px;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 13px;
    color: #333;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,122,204,0.15);
}
[data-theme="dark"] .search-input {
    border-color: var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
}
.search-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 4px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: background var(--transition);
}
.search-btn:hover {
    background: var(--primary-hover);
}

/* 日历 */
.widget-calendar .calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}
.widget-calendar .calendar-table caption {
    font-weight: 600;
    padding: 4px 0 8px;
    color: var(--text-primary);
}
.widget-calendar .calendar-table th {
    padding: 4px 0;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}
.widget-calendar .calendar-table td {
    padding: 3px 0;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.widget-calendar .calendar-table td.has-post {
    position: relative;
    font-weight: 600;
    color: var(--primary);
}
.widget-calendar .calendar-table td.has-post::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}
.widget-calendar .calendar-table td.has-post a {
    color: var(--primary);
    display: block;
    padding: 2px 0;
}
.widget-calendar .calendar-table td.has-post a:hover {
    color: var(--primary-hover);
}

/* 微语 */
.side-twitter-item {
    padding: 8px 12px 8px 18px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    background: var(--bg-body);
}
.side-twitter-item::before {
    content: '●';
    position: absolute;
    left: 4px;
    top: 9px;
    font-size: 8px;
    color: inherit;
    opacity: 0.3;
}
.side-twitter-item:nth-child(1) {
    background: #f4ecf8;
    color: #5a3a7a;
}
.side-twitter-item:nth-child(2) {
    background: #eaf2f8;
    color: #3a5a7a;
}
.side-twitter-item:nth-child(3) {
    background: #eaf8f0;
    color: #3a7a5a;
}
[data-theme="dark"] .side-twitter-item:nth-child(1) {
    background: #2a1a3a;
    color: #c8a8e8;
}
[data-theme="dark"] .side-twitter-item:nth-child(2) {
    background: #1a2a3a;
    color: #a8c8e8;
}
[data-theme="dark"] .side-twitter-item:nth-child(3) {
    background: #1a3a2a;
    color: #a8e8c8;
}
.side-twitter-item small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 响应式侧边栏 */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 20px;
    }
    .column-small {
        width: 100%;
    }
}

/* ============================================================
   评论
   ============================================================ */
.comment-header {
    margin: 32px 0 16px;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
}
.comment {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.comment:last-child {
    border-bottom: none;
}
.comment-children {
    margin-left: 56px;
}
.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-infos {
    flex: 1;
}
.comment-infos b {
    font-size: 14px;
    color: var(--text-primary);
}
.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 12px;
}
.comment-content {
    margin-top: 4px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.comment-reply button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}
.comment-reply button:hover {
    text-decoration: underline;
}
#pagenavi {
    text-align: center;
    margin: 20px 0;
}

/* 评论表单 */
.commentform textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border var(--transition);
}
.commentform textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.comment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}
.comment-info input {
    flex: 1;
    min-width: 140px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
}
.comment-info input:focus {
    border-color: var(--primary);
    outline: none;
}
.captcha-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.com_submit_p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.btn:hover {
    background: var(--primary-hover);
}
.cancel-reply {
    background: var(--bg-body);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.cancel-reply:hover {
    background: var(--border-color);
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 24px 0 12px;
}
.pagination a, .pagination span {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    font-size: 14px;
}
.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================================
   幻灯片
   ============================================================ */
.slider-container {
    position: relative;
    width: 100%;
    margin: 0 0 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-code);
    box-shadow: var(--shadow-card);
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 36%;
    overflow: hidden;
}
.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}
.slider-slide.active {
    opacity: 1;
    z-index: 1;
}
.slider-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.slider-arrow:hover {
    background: rgba(255,255,255,0.95);
}
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}
.slider-dot:hover {
    background: rgba(255,255,255,0.8);
}

@media (max-width: 600px) {
    .slider-wrapper { padding-bottom: 56%; }
    .slider-arrow { width: 28px; height: 28px; font-size: 16px; }
    .slider-caption { font-size: 13px; padding: 10px 14px; }
}

/* ============================================================
   页脚
   ============================================================ */
.blog-footer {
    background: var(--bg-card);
    text-align: center;
    padding: 18px 0 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: var(--radius) var(--radius) 0 0;
}
.blog-footer a {
    color: var(--text-secondary);
}
.blog-footer a:hover {
    color: var(--primary);
}

/* ============================================================
   侧边工具栏（返回顶部/主题切换）
   ============================================================ */
.side-toolbar {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.side-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.side-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.side-btn svg {
    stroke: currentColor;
    width: 18px;
    height: 18px;
}
.side-btn .icon-sun { display: none; }
[data-theme="dark"] .side-btn .icon-moon { display: none; }
[data-theme="dark"] .side-btn .icon-sun { display: block; }

/* ============================================================
   404 & 密码页
   ============================================================ */
.error-page {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.error-code {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.error-msg {
    font-size: 18px;
    color: var(--text-muted);
}
.btn-home {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.btn-home:hover {
    background: var(--primary-hover);
}

.pwd-box {
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 100%;
    margin: 40px auto;
    text-align: center;
}
.pwd-box input[type="password"] {
    width: 65%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
}
.pwd-box button {
    padding: 8px 20px;
    margin-left: 8px;
}

/* ============================================================
   多主题配色（微调颜色以更接近参考网站）
   ============================================================ */
body.theme-default {
    background: #f5f7fa;
}
body.theme-default .blog-header {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4f7 40%, #f0f4fa 100%);
}

body.theme-warm {
    background: #fdf6f0;
}
body.theme-warm .blog-header {
    background: linear-gradient(135deg, #fde8d0 0%, #fcd4b0 40%, #fef0e0 100%);
}
body.theme-warm .blog-header-title { color: #7a4a2a; }
body.theme-warm .blog-header-title:hover { color: #c0392b; }
body.theme-warm .blog-header-subtitle { color: #8a6a4a; }
body.theme-warm .nav-list a { color: #7a5a3a; }
body.theme-warm .nav-list a:hover { color: #c0392b; }

body.theme-green {
    background: #f0f7f0;
}
body.theme-green .blog-header {
    background: linear-gradient(135deg, #d4edda 0%, #b8e0c0 40%, #e8f5e8 100%);
}
body.theme-green .blog-header-title { color: #1a5a2a; }
body.theme-green .blog-header-title:hover { color: #1a8a3a; }
body.theme-green .blog-header-subtitle { color: #3a7a4a; }
body.theme-green .nav-list a { color: #2a6a3a; }
body.theme-green .nav-list a:hover { color: #1a8a3a; }

body.theme-purple {
    background: #f8f5fc;
}
body.theme-purple .blog-header {
    background: linear-gradient(135deg, #e8d5f5 0%, #d5bce8 40%, #f5edfa 100%);
}
body.theme-purple .blog-header-title { color: #4a2a6a; }
body.theme-purple .blog-header-title:hover { color: #7a3a9a; }
body.theme-purple .blog-header-subtitle { color: #6a4a8a; }
body.theme-purple .nav-list a { color: #5a3a7a; }
body.theme-purple .nav-list a:hover { color: #7a3a9a; }

body.theme-dark {
    background: #18191a;
}
body.theme-dark .blog-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 40%, #3d3d3d 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
body.theme-dark .blog-header-title { color: #e4e6eb; }
body.theme-dark .blog-header-title:hover { color: #66b0ff; }
body.theme-dark .blog-header-subtitle { color: #b0b3b8; }
body.theme-dark .blog-nav { background: #242526; border-bottom-color: #3a3b3c; }
body.theme-dark .nav-list a { color: #b0b3b8; }
body.theme-dark .nav-list a:hover { color: #66b0ff; }
body.theme-dark .log-card,
body.theme-dark .widget,
body.theme-dark .log-con,
body.theme-dark .page-detail,
body.theme-dark .blog-footer,
body.theme-dark .error-page,
body.theme-dark .pwd-box {
    background: #242526;
    color: #e4e6eb;
}
body.theme-dark .loglist-title,
body.theme-dark .widget-title h3,
body.theme-dark .log-title,
body.theme-dark .page-title { color: #e4e6eb; }
body.theme-dark .loglist-content,
body.theme-dark .comment-content,
body.theme-dark .markdown { color: #b0b3b8; }
body.theme-dark .info-row,
body.theme-dark .log-meta,
body.theme-dark .post-footer { border-top-color: #3a3b3c; color: #8a8d91; }
body.theme-dark .blog-footer { border-top-color: #3a3b3c; color: #8a8d91; }
body.theme-dark .blog-footer a { color: #66b0ff; }
body.theme-dark .blog-footer a:hover { color: #88ccff; }
body.theme-dark .pagination a,
body.theme-dark .pagination span {
    background: #3a3b3c;
    border-color: #4a4b4c;
    color: #b0b3b8;
}
body.theme-dark .pagination a:hover {
    background: #007acc;
    color: #fff;
}
body.theme-dark .commentform textarea,
body.theme-dark .comment-info input,
body.theme-dark .search-input,
body.theme-dark .pwd-box input[type="password"] {
    background: #3a3b3c;
    border-color: #4a4b4c;
    color: #e4e6eb;
}
body.theme-dark .comment { border-bottom-color: #3a3b3c; }
body.theme-dark .comment:hover { background: #2a2b2c; }
body.theme-dark .widget-calendar .calendar-table caption { color: #e4e6eb; }
body.theme-dark .widget-calendar .calendar-table td { color: #b0b3b8; }
body.theme-dark .widget-calendar .calendar-table td.has-post { color: #66b0ff; }
body.theme-dark .widget-calendar .calendar-table td.has-post::after { background: #66b0ff; }
body.theme-dark .widget-calendar .calendar-table td.has-post a { color: #66b0ff; }
body.theme-dark .widget-calendar .calendar-table td.has-post a:hover { color: #88ccff; }
body.theme-dark .side-twitter-item:nth-child(1) { background: #2a1a3a; color: #c8a8e8; }
body.theme-dark .side-twitter-item:nth-child(2) { background: #1a2a3a; color: #a8c8e8; }
body.theme-dark .side-twitter-item:nth-child(3) { background: #1a3a2a; color: #a8e8c8; }
body.theme-dark .side-twitter-item small { color: #666 !important; }
body.theme-dark .loglist-tag a { background: #3a3b3c; color: #8a8d91; }
body.theme-dark .loglist-tag a:hover { background: #007acc; color: #fff; }
body.theme-dark .top-5 a { background: #3a3b3c; color: #b0b3b8; }
body.theme-dark .top-5 a:hover { background: #007acc; color: #fff; }
body.theme-dark .side-btn { background: #3a3b3c; color: #b0b3b8; border-color: #4a4b4c; }
body.theme-dark .side-btn:hover { background: #007acc; color: #fff; }

/* ============================================================
   全局响应式微调
   ============================================================ */
@media (max-width: 768px) {
    body { padding: 0 12px; }
    .container { padding: 0 16px; }
    .blog-header { padding: 20px 0 16px; }
    .blog-header-title { font-size: 22px; }
    .blog-header-subtitle { font-size: 12px; margin-left: 6px; }
    .blog-header-c img { max-height: 36px; }
    .theme-dot { width: 22px; height: 22px; }
    .blog-nav .container { padding: 0 16px; }
    .log-con { padding: 24px 20px; }
    .page-detail { padding: 24px 20px; }
    .widget { padding: 16px 18px; }
}

@media (max-width: 480px) {
    .blog-header-title { font-size: 18px; }
    .blog-header-subtitle { display: none; }
    .log-card { padding: 14px; }
    .log-title { font-size: 22px; }
    .pagination a, .pagination span { padding: 4px 10px; font-size: 13px; }
}
/* ===== 文章列表：新的 Meta 信息行 ===== */
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}
.meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.meta-item a {
    color: var(--text-muted);
    text-decoration: none;
}
.meta-item a:hover {
    color: var(--primary);
}
.meta-item .iconfont {
    font-size: 14px;
}
.meta-right .read-more {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.meta-right .read-more:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .meta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .meta-left {
        gap: 8px;
        flex-wrap: wrap;
    }
    .meta-right {
        text-align: right;
    }
}
/* ============================================================
   移动端侧边栏（关键修复）
   ============================================================ */

/* 移动端：侧边栏固定定位，默认隐藏在右侧 */
@media (max-width: 768px) {
    #sidebar-mobile {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 82%;
        height: 100%;
        z-index: 999;
        background: var(--bg-card, #ffffff);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        padding: 20px 18px 30px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        display: block !important;
        margin: 0;
        border-radius: 0;
        /* 覆盖桌面 flex 布局 */
        flex: none;
        width: 300px;
        max-width: 82%;
    }
    #sidebar-mobile.active {
        transform: translateX(0);
    }

    /* 遮罩层 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* 关闭按钮显示 */
    .sidebar-close-btn {
        display: block;
        text-align: right;
        font-size: 28px;
        line-height: 1;
        color: var(--text-muted, #999);
        cursor: pointer;
        padding: 4px 0 16px;
        border-bottom: 1px solid var(--border-color, #eaeef2);
        margin-bottom: 16px;
        font-weight: 300;
        transition: color 0.2s;
        user-select: none;
    }
    .sidebar-close-btn:hover {
        color: var(--text-primary, #333);
    }

    /* 侧边栏内部 widget 简化样式 */
    #sidebar-mobile .widget {
        background: transparent;
        box-shadow: none;
        padding: 12px 0;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--border-color, #eaeef2);
        border-radius: 0;
    }
    #sidebar-mobile .widget:last-child {
        border-bottom: none;
    }
    #sidebar-mobile .widget-title h3 {
        font-size: 15px;
    }
}

/* 桌面端隐藏移动元素 */
@media (min-width: 769px) {
    #sidebar-mobile {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        width: 300px !important;
        flex-shrink: 0 !important;
        display: block !important;
        max-width: 100% !important;
    }
    #sidebar-mobile .widget {
        background: var(--bg-card) !important;
        box-shadow: var(--shadow-card) !important;
        padding: 18px 22px 16px !important;
        margin-bottom: 24px !important;
        border-radius: var(--radius) !important;
        border-bottom: none !important;
    }
    .sidebar-close-btn,
    .sidebar-overlay {
        display: none !important;
    }
}

/* 悬浮切换按钮（移动端右下角） */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary, #007acc);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 122, 204, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.sidebar-toggle:hover {
    background: var(--primary-hover, #005fa3);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 122, 204, 0.45);
}
.sidebar-toggle:active {
    transform: scale(0.92);
}
.sidebar-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex !important;
    }
}
@media (min-width: 769px) {
    .sidebar-toggle {
        display: none !important;
    }
}

/* ===== 图文模式：LOGO 与标题并排 ===== */
.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-logo-link {
    flex-shrink: 0;
    line-height: 0;
}
.header-logo-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 4px;
}
.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.header-text .blog-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1a2a4a);
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.2s;
}
.header-text .blog-header-title:hover {
    color: var(--primary, #007acc);
}
.header-text .blog-header-subtitle {
    font-size: 13px;
    color: var(--text-muted, #5a6a8a);
    margin-left: 0;
    line-height: 1.3;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .header-brand {
        gap: 10px;
    }
    .header-logo-img {
        height: 32px;
    }
    .header-text .blog-header-title {
        font-size: 18px;
    }
    .header-text .blog-header-subtitle {
        font-size: 12px;
    }
}

/* 侧边栏微语中的图片自适应 */
.side-twitter-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 6px;
    display: block;
}
.side-twitter-item p {
    margin: 0 0 4px 0;
}

/* ============================================================
   鼠标悬停特效合集
   ============================================================ */

/* ===== 1. 文章标题：渐变下划线滑动 ===== */
.loglist-title {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}
.loglist-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary, #007acc);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.loglist-title:hover {
    color: var(--primary, #007acc);
}
.loglist-title:hover::after {
    width: 100%;
}

/* ===== 2. 阅读全文链接：右侧箭头滑动 ===== */
.read-more {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}
.read-more::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.3s ease;
    transform: translateX(0);
}
.read-more:hover {
    color: var(--primary-hover, #005fa3);
    transform: translateX(4px);
}
.read-more:hover::after {
    transform: translateX(6px);
}

/* ===== 3. 导航菜单：上浮 + 阴影 ===== */
.blog-nav .nav-list a {
    position: relative;
    transition: color 0.3s ease, transform 0.25s ease;
}
.blog-nav .nav-list a:hover {
    color: var(--primary, #007acc);
    transform: translateY(-2px);
}
/* 导航下划线（已有）保持原样，但增加过渡时间 */

/* ===== 4. 侧边栏小工具链接：背景高亮 ===== */
.widget ul li a {
    position: relative;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.widget ul li a:hover {
    color: var(--primary, #007acc);
    padding-left: 4px;
}

/* ===== 5. 侧边栏标签：缩放 + 颜色翻转 ===== */
.tag-container a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tag-container a:hover {
    background: var(--primary, #007acc);
    color: #fff;
    transform: scale(1.05);
}

/* ===== 6. 微语：淡入 + 悬浮高亮 ===== */
.side-twitter-item {
    transition: background 0.3s ease, padding-left 0.3s ease;
    border-radius: 4px;
    padding-left: 0;
}
.side-twitter-item:hover {
    background: var(--bg-code, #f0f2f5);
    padding-left: 6px;
}

/* ===== 7. 分页按钮：上浮 + 颜色过渡 ===== */
.pagination a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pagination a:hover {
    background: var(--primary, #007acc);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    border-color: var(--primary, #007acc);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.25);
}

/* ===== 8. 侧边栏分类链接：左侧竖条动画 ===== */
.log-classify-f a {
    position: relative;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.log-classify-f a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--primary, #007acc);
    border-radius: 2px;
    transition: height 0.3s ease;
}
.log-classify-f a:hover {
    color: var(--primary, #007acc);
    padding-left: 4px;
}
.log-classify-f a:hover::before {
    height: 100%;
}

/* ===== 9. 置顶标志：脉冲动画 ===== */
.log-topflg {
    display: inline-block;
    transition: transform 0.3s ease;
}
.log-topflg:hover {
    animation: pulse 1s ease infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ===== 10. 推荐文章封面图片：轻微放大 ===== */
.loglist-cover img {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.loglist-cover a:hover img {
    transform: scale(1.03);
}

/* ===== 11. 头部站点标题：光晕文字效果 ===== */
.blog-header-title {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.blog-header-title:hover {
    color: var(--primary, #007acc);
    text-shadow: 0 0 20px rgba(0, 122, 204, 0.15);
}

/* ===== 12. 评论区按钮：上浮 + 颜色变化 ===== */
.btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 204, 0.3);
}
/* ===== 可选：炫酷光晕跟随效果 ===== */
.loglist-title {
    position: relative;
    transition: color 0.4s ease;
}
.loglist-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 204, 0.1), transparent);
    transition: left 0.6s ease;
}
.loglist-title:hover::before {
    left: 100%;
}
.loglist-title:hover {
    color: var(--primary, #007acc);
}

/* 隐藏评论表单中的“取消”按钮 */
#cancel-reply {
    display: none !important;
}

/* 标题旁边的编辑按钮 */
.edit-title-btn {
    display: inline-block;
    margin-left: 10px;
    font-size: 18px;
    color: var(--text-muted, #999);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    vertical-align: middle;
    line-height: 1;
}
.edit-title-btn:hover {
    color: var(--primary, #007acc);
    transform: scale(1.1);
}
.edit-title-btn .iconfont {
    font-size: inherit;
}

/* 文章详情页 - 编辑按钮 */
.edit-entry-btn {
    display: inline-block;
    padding: 2px 12px 2px 8px;
    background: var(--primary, #007acc);
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    line-height: 26px;
}
.edit-entry-btn:hover {
    background: var(--primary-hover, #005fa3);
    transform: translateY(-1px);
    color: #fff !important;
}
.edit-entry-btn .iconfont {
    font-size: 14px;
    margin-right: 4px;
}