/**
 * 合并样式表
 * 
 * @package wwone
 * @author 吴畏的博客
 * @version 1.1.0
 * @link https://8ww.fun
 */

/*
 * 目录
 * 1. 基础样式
 * 2. 布局样式
 * 3. 头部样式
 * 4. 导航样式
 * 5. 内容样式
 * 6. 侧边栏样式
 * 7. 底部样式
 * 8. 图书翻页效果
 * 9. 夜间模式
 * 10. 响应式样式
 */

/* 1. 基础样式 */
:root {
    /* 主题颜色 */
    --primary-color: #333333;
    --primary-rgb: 51, 51, 51;
    --secondary-color: #6c757d;
    --secondary-rgb: 108, 117, 125;
    --success-color: #28a745;
    --success-rgb: 40, 167, 69;
    --info-color: #17a2b8;
    --info-rgb: 23, 162, 184;
    --warning-color: #ffc107;
    --warning-rgb: 255, 193, 7;
    --danger-color: #dc3545;
    --danger-rgb: 220, 53, 69;
    
    /* 背景和文本颜色 */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --link-color: var(--primary-color);
    --link-hover-color: #000000;
    
    /* 边框和阴影 */
    --border-color: #eee;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    
    /* 卡片和容器 */
    --card-bg: #fff;
    --container-max-width: 1140px;
    --sidebar-width: 320px;
    
    /* 动画 */
    --transition-speed: 0.3s;

    /* 字体变量 */
    --body-font: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --heading-font: 'PingFang SC', 'Microsoft YaHei', sans-serif;

    /* 尺寸变量 */
    --container-width: 1200px;
    --header-height: 60px;
    --content-width: 800px;
    --gap: 30px;

    --light-gray: #f5f5f5;
}

html[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-color: #e8e8e8;
    --text-muted: #a8a8a8;
    --border-color: #333333;
    --card-bg: #252525;
    --link-color: #cccccc;
    --link-hover-color: #ffffff;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.7);
    --primary-color: #cccccc;
    --primary-rgb: 204, 204, 204;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* 2. 布局样式 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.site-content {
    padding: 20px 0;
}

.row {
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: row !important;
    margin: 0 -15px;
    align-items: flex-start;
}

.col-md-9 {
    flex: 0 0 70% !important;
    max-width: 70% !important;
    width: 70%;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.col-md-3 {
    flex: 0 0 30% !important;
    max-width: 30% !important;
    width: 30%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 通用模块样式 */
.section-module {
    margin-bottom: 25px;
}

/* 左侧悬浮导航样式 */
.float-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: none;
}

@media (min-width: 1400px) {
    .float-nav {
        display: block;
    }
}

.float-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 未登录 - 登录按钮 */
.float-nav-login {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
}

/* 夜间模式适配 - 登录按钮背景 */
html[data-theme="dark"] .float-nav-login {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.float-nav-login:hover {
    background-color: #333333 !important;
    color: #fff !important;
}

.float-nav-login:hover i {
    color: #ffffff !important;
}

/* 夜间模式适配 */
html[data-theme="dark"] .float-nav-login:hover {
    background-color: #f5f5f5 !important;
    color: #333333 !important;
}

html[data-theme="dark"] .float-nav-login:hover i {
    color: #333333 !important;
}

/* 已登录 - 用户头像 */
.float-nav-user {
    position: relative;
}

.float-nav-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px !important;
    overflow: hidden;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}

/* 夜间模式适配 - 头像容器背景 */
html[data-theme="dark"] .float-nav-avatar-wrapper {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.float-nav-avatar-wrapper:hover {
    background-color: #333333 !important;
    transform: translateX(8px) scale(1.05) !important;
}

.float-nav-avatar-wrapper:hover .float-nav-avatar-img {
    border-color: #ffffff;
}

/* 夜间模式适配 */
html[data-theme="dark"] .float-nav-avatar-wrapper:hover {
    background-color: #f5f5f5 !important;
}

html[data-theme="dark"] .float-nav-avatar-wrapper:hover .float-nav-avatar-img {
    border-color: #333333;
}

.float-nav-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

/* 用户菜单弹出层 */
.float-nav-user-menu {
    position: absolute;
    left: 58px;
    top: 0;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

/* 夜间模式适配 - 用户菜单背景 */
html[data-theme="dark"] .float-nav-user-menu {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.float-nav-user:hover .float-nav-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.user-menu-info {
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0,0,0,0.02) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-menu-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    white-space: nowrap;
}

.user-menu-group {
    font-size: 11px;
    color: var(--text-muted);
    padding: 3px 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.user-menu-actions {
    padding: 8px;
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.user-menu-link:hover {
    background-color: #333333;
    color: #ffffff !important;
    transform: translateX(4px);
}

.user-menu-link i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.user-menu-link:hover i {
    transform: scale(1.1);
    color: #ffffff !important;
}

/* 夜间模式适配 */
html[data-theme="dark"] .user-menu-link:hover {
    background-color: #f5f5f5;
    color: #333333 !important;
}

html[data-theme="dark"] .user-menu-link:hover i {
    color: #333333 !important;
}

/* 页面导航项 */
.float-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

/* 夜间模式适配 - 按钮背景 */
html[data-theme="dark"] .float-nav-item {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.float-nav-item:hover {
    background-color: #333333;
    transform: translateX(8px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.float-nav-item i {
    font-size: 22px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.float-nav-item:hover i {
    color: #ffffff !important;
    transform: scale(1.1);
}

/* 夜间模式适配 */
html[data-theme="dark"] .float-nav-item:hover {
    background-color: #f5f5f5;
}

html[data-theme="dark"] .float-nav-item:hover i {
    color: #333333 !important;
}

.float-nav-text {
    position: absolute;
    left: 58px;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-color) !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

/* 夜间模式适配 - 文字框背景 */
html[data-theme="dark"] .float-nav-text {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.float-nav-item:hover .float-nav-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

/* 3. 头部样式 */
.site-header {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

/* 搜索模态框样式 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-inner {
    background: var(--card-bg);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    position: relative;
    padding: 15px;
}

.search-modal .search-form {
    display: flex;
    width: 100%;
}

.search-modal .search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: var(--bg-secondary);
    color: var(--text-color);
}

.search-modal .search-input:focus {
    border-color: var(--primary-color);
}

.search-modal .search-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.search-modal .search-submit:hover {
    background: var(--link-hover-color);
}

.search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.custom-logo-link {
    margin-right: 10px;
}

.custom-logo {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 1.25rem;
    margin-bottom: 0;
    font-weight: 600;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

.site-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.search-toggle,
.night-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

.night-mode-toggle .dark-icon {
    display: none;
}

html[data-theme="dark"] .night-mode-toggle .light-icon {
    display: none;
}

html[data-theme="dark"] .night-mode-toggle .dark-icon {
    display: inline-block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--text-color);
    left: 0;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
} 

/* 4. 导航样式 */
.main-navigation {
    margin-left: auto;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 15px;
    color: var(--text-color);
    font-weight: 500;
    line-height: 60px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* 导航链接悬停效果 */
.primary-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), rgba(var(--primary-rgb), 0.6));
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-menu > li > a:hover::before,
.primary-menu > li.current > a::before {
    width: calc(100% - 30px);
}

.primary-menu > li > a:hover,
.primary-menu > li.current > a {
    color: var(--primary-color);
}

/* 下拉箭头图标 */
.dropdown-icon {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: -2px;
}

.has-dropdown:hover > a .dropdown-icon {
    transform: rotate(180deg);
}

/* 二级菜单样式 */
.sub-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    list-style: none;
    overflow: hidden;
}

/* 二级菜单显示动画 - 丝滑效果 */
.has-dropdown:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

/* 二级菜单延迟隐藏，避免鼠标移动时闪烁 */
.has-dropdown .sub-menu {
    transition-delay: 0.15s;
}

.has-dropdown:hover .sub-menu {
    transition-delay: 0s;
}

/* 二级菜单项 */
.sub-menu li {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 二级菜单项动画效果 */
.has-dropdown:hover .sub-menu li {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInSubmenu 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 二级菜单项依次显示动画 */
.has-dropdown:hover .sub-menu li:nth-child(1) { animation-delay: 0.05s; }
.has-dropdown:hover .sub-menu li:nth-child(2) { animation-delay: 0.08s; }
.has-dropdown:hover .sub-menu li:nth-child(3) { animation-delay: 0.11s; }
.has-dropdown:hover .sub-menu li:nth-child(4) { animation-delay: 0.14s; }
.has-dropdown:hover .sub-menu li:nth-child(5) { animation-delay: 0.17s; }
.has-dropdown:hover .sub-menu li:nth-child(n+6) { animation-delay: 0.2s; }

@keyframes slideInSubmenu {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sub-menu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), rgba(var(--primary-rgb), 0.5));
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-menu li:hover::before,
.sub-menu li.current::before {
    transform: translateX(0);
}

/* 二级菜单链接 */
.sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    line-height: 1.4;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
}

.sub-menu a:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.04);
    padding-left: 24px;
}

.sub-menu li.current a {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.06);
    font-weight: 500;
}

/* 二级菜单标题 */
.sub-menu-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文章数量标签 */
.sub-menu-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-menu a:hover .sub-menu-count {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* 二级菜单项动画 - 依次出现效果 */
.sub-menu li {
    animation: slideInDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.sub-menu li:nth-child(1) { animation-delay: 0.05s; }
.sub-menu li:nth-child(2) { animation-delay: 0.1s; }
.sub-menu li:nth-child(3) { animation-delay: 0.15s; }
.sub-menu li:nth-child(4) { animation-delay: 0.2s; }
.sub-menu li:nth-child(5) { animation-delay: 0.25s; }
.sub-menu li:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 暗黑模式适配 */
html[data-theme="dark"] .sub-menu {
    background-color: rgba(26, 26, 26, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .sub-menu li.current a {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .sub-menu-count {
    background: rgba(var(--primary-rgb), 0.2);
}

html[data-theme="dark"] .sub-menu a:hover .sub-menu-count {
    background: var(--primary-color);
    color: #000;
}

/* 5. 内容样式 */
/* 网站横幅 */
.site-banner {
    position: relative;
    margin-bottom: 20px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.banner-slide {
    height: 100%;
}

.banner-slide a {
    display: block;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
}

.banner-title {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 桌面端随机金句卡片 */
.desktop-quote-card {
    display: block;
    margin: 10px 0 12px;
    padding: 16px 24px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.desktop-quote-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 8px 0 0 8px;
}

.quote-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.quote-icon-left,
.quote-icon-right {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0.5;
}

.quote-main {
    flex: 1;
    min-width: 0;
}

.desktop-quote-card .quote-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 400;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 移动端隐藏桌面端金句 */
.mobile-quote-card {
    display: none;
}

/* 热门推荐区域 */
.hot-section {
    padding: 8px 0;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.section-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.section-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* 三列热门推荐布局 */
.hot-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hot-column {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    min-width: 0;
    overflow: hidden;
}

.hot-column:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.hot-column-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.hot-column-title i {
    margin-right: 5px;
    color: var(--primary-color);
    font-size: 18px;
    vertical-align: middle;
}

.hot-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hot-post-item {
    margin-bottom: 6px;
    position: relative;
    padding-left: 0;
}

.hot-post-item:last-child {
    margin-bottom: 0;
}

/* 桌面端显示6条 */
.hot-post-list .hot-post-item:nth-child(n+7) {
    display: none !important;
}

.hot-post-item::before {
    display: none;
}

.hot-post-link {
    color: var(--text-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 8px;
    border-radius: 6px;
    margin: 0;
}

.hot-post-link:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.hot-post-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hot-post-badge {
    flex-shrink: 0;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

.hot-post-views {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.hot-post-arrow {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.hot-post-link:hover .hot-post-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* Empty state styling */
.hot-post-item.empty .hot-post-link {
    color: var(--text-muted);
    font-style: italic;
    cursor: default;
    justify-content: center;
}

.hot-post-item.empty .hot-post-link:hover {
    background-color: transparent;
    color: var(--text-muted);
}

/* 响应式布局已在移动端样式中定义 */

/* 归档页面头部 */
.archive-header {
    margin-bottom: 30px;
    padding: 25px 0;
    border-bottom: 2px solid var(--border-color);
}

.archive-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.archive-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* 归档页面分类描述框 */
.archive-description-box {
    margin: 12px 0;
    padding: 14px 18px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 文章卡片 */
.post-list {
    margin-bottom: 30px;
}

.post-card {
    display: flex;
    margin-bottom: 8px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card-sticky {
    position: relative;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.12);
}

.post-card-sticky .post-card-content {
    position: relative;
}

.post-card-sticky .post-inner {
    position: relative;
}

.post-card-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    backdrop-filter: blur(4px);
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

.post-card-badge::before {
    content: '\f199';
    font-family: 'remixicon';
    font-size: 13px;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.post-card-image {
    width: 240px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
}

.post-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    max-width: 100%;
}

.post-card-sticky .post-card-title {
    padding-right: 75px;
}

.post-card-title a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.post-card-meta i {
    margin-right: 3px;
}

.post-date, .post-views, .post-comments, .post-category {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.post-card-meta span:last-child {
    margin-right: 0;
}

/* 无内容提示 */
.no-content {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.no-content h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-content p {
    color: var(--text-muted);
}

/* 分页导航 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.page-navigator {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    overflow: hidden;
}

.page-navigator li {
    margin: 0;
    border-right: 1px solid var(--border-color);
}

.page-navigator li:last-child {
    border-right: none;
}

.page-navigator a,
.page-navigator span {
    display: block;
    padding: 8px 15px;
    color: var(--text-color);
    font-size: 14px;
}

.page-navigator .current a,
.page-navigator .current span {
    background-color: var(--primary-color);
    color: #fff;
}

.page-navigator a:hover {
    background-color: var(--bg-secondary);
}

.infinite-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.infinite-loading.is-active,
.infinite-loading.is-complete,
.infinite-loading.is-error {
    opacity: 1;
}

.infinite-loading.is-error {
    color: var(--danger-color);
    pointer-events: auto;
    cursor: pointer;
}

.infinite-loading.is-complete {
    color: var(--text-muted);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-3px);
}

/* 移动端目录按钮与抽屉已移除 */

.mobile-search-card {
    display: none;
}

/* 6. 侧边栏样式 */
.widget {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget-title {
    font-size: 18px;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 10px;
    color: var(--text-color);
    opacity: 0.85;
    font-size: 20px;
}

.widget-content {
    padding: 18px 20px;
}

/* 微信群二维码样式 */
.wechat-qrcode-box {
    text-align: center;
    padding: 10px 0;
}

.wechat-qrcode-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wechat-qrcode-img:hover {
    transform: scale(1.05);
}

.wechat-qrcode-tip {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== 加入我们 - 社交群组按钮样式 ==================== */
.social-groups-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-group-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.social-group-btn i {
    font-size: 20px;
    margin-right: 8px;
}

.social-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 微信按钮 - 绿色 */
.wechat-btn {
    background: linear-gradient(135deg, #07c160 0%, #06ae56 100%);
}

.wechat-btn:hover {
    background: linear-gradient(135deg, #06ae56 0%, #059048 100%);
}

/* Telegram按钮 - 蓝色 */
.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #006699 0%, #005580 100%);
}

/* QQ按钮 - 腾讯蓝 */
.qq-btn {
    background: linear-gradient(135deg, #12b7f5 0%, #0e9cd9 100%);
}

.qq-btn:hover {
    background: linear-gradient(135deg, #0e9cd9 0%, #0a7fb8 100%);
}

/* 二维码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.qrcode-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.qrcode-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.qrcode-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qrcode-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: rotate(90deg);
}

.qrcode-modal-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qrcode-modal-tip {
    margin-top: 20px;
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ==================== 推荐商家模块样式 ==================== */
.merchant-ads-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.merchant-ad-item {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
    aspect-ratio: 310/180;
}

.merchant-ad-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.merchant-ad-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.merchant-ad-item:hover .merchant-ad-img {
    transform: scale(1.02);
}

.widget-merchant-ads .no-ads {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px dashed var(--border-color);
}

/* ==================== 专题推荐模块样式 ==================== */
.topic-recommend-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.topic-recommend-item {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    aspect-ratio: 310/80;
}

.topic-recommend-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.topic-recommend-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.topic-recommend-item:hover .topic-recommend-img {
    transform: scale(1.02);
}

.topic-recommend-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.topic-recommend-item:hover .topic-recommend-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.topic-recommend-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: block;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.widget-topic-recommend .no-topics {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px dashed var(--border-color);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list-item {
    position: relative;
    padding: 8px 0;
    padding-left: 15px;
    transition: all 0.3s ease;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.widget-list-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.widget-list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 站长推荐和分类模块不显示小圆点 */
.widget-recommend-posts .widget-list-item::before,
.widget-categories .widget-list-item::before {
    display: none;
}

.widget-recommend-posts .widget-list-item,
.widget-categories .widget-list-item {
    padding-left: 0;
}

.widget-recommend-posts .widget-list-item:hover,
.widget-categories .widget-list-item:hover {
    padding-left: 5px;
}

.widget-list-item:hover {
    padding-left: 20px;
}

.widget-list-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-size: 14px;
    width: 100%;
    overflow: hidden;
}

.widget-list-link:hover {
    color: var(--primary-color);
}

.widget-category-count,
.widget-archive-count {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 网站信息小工具 */
.site-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.site-info-list li:last-child {
    margin-bottom: 0;
}

.site-info-list i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* 最新文章小工具 */
.widget-recent-posts .widget-list-link {
    display: flex;
    align-items: center;
}

.widget-post-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.widget-list-item:hover .widget-post-thumb img {
    transform: scale(1.1);
}

.widget-post-info {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.widget-post-title {
    font-size: 15px;
    margin: 0 0 6px;
    line-height: 1.4;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.widget-post-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* VPS测试报告小工具 */
.widget-vps-test .widget-list-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.widget-vps-test .widget-list-item:hover {
    border-left-color: #ff4757;
    transform: translateX(5px);
}

.widget-vps-test .widget-list-item::before {
    display: none;
}

/* 专题推荐小工具 */
.special-topic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.special-topic-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.special-topic-item:hover {
    transform: scale(1.02);
}

.special-topic-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 标签云 */
.widget-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 搜索框 */
.widget-search .search-form {
    position: relative;
}

.widget-search .search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--bg-secondary);
    font-size: 14px;
    color: var(--text-color);
}

.widget-search .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.1);
}

.widget-search .search-submit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}

.widget-search .search-submit:hover {
    color: var(--primary-color);
}

/* 侧边栏动画相关样式 */
.animate-widget {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.widget-animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 7. 底部样式 */
.site-footer {
    background-color: var(--card-bg);
    padding: 28px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.footer-title {
    font-weight: 600;
    font-size: 16px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-meta-item a {
    color: var(--text-muted);
}

.footer-meta-item a:hover {
    color: var(--primary-color);
}

.footer-extra {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer-extra-item {
    display: inline-block;
    position: relative;
}

.footer-extra-item:not(:last-child)::after {
    content: '|';
    margin-left: 15px;
    color: var(--border-color);
}

/* 移动端悬浮菜单按钮 */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 98;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.mobile-nav-toggle i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端导航抽屉 */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
}

.mobile-nav-drawer.active {
    pointer-events: auto;
}

.mobile-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-drawer.active .mobile-nav-overlay {
    opacity: 1;
}

.mobile-nav-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--card-bg);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-drawer.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.mobile-nav-body {
    padding: 20px;
}

/* 移动端用户信息 */
.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 15px;
}

.mobile-nav-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.mobile-nav-user-info {
    flex: 1;
}

.mobile-nav-username {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.mobile-nav-usergroup {
    font-size: 12px;
    color: var(--text-muted);
    padding: 2px 8px;
    background-color: var(--card-bg);
    border-radius: 10px;
    display: inline-block;
}

.mobile-nav-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-nav-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-nav-action-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.mobile-nav-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--primary-color);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mobile-nav-login-btn:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 移动端页面导航 */
.mobile-nav-pages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-page-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.mobile-nav-page-item:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-nav-page-item i {
    font-size: 20px;
    color: var(--text-color);
}

.mobile-nav-page-item:hover i {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-drawer {
        display: block;
    }
    
    .site-footer {
        padding: 5px 0 20px;
    }

    .footer-simple {
        flex-direction: row;
        gap: 10px;
        font-size: 12px;
    }
    
    .footer-brand {
        gap: 6px;
    }
    
    .footer-title {
        font-size: 14px;
    }
    
    .footer-copy,
    .footer-meta,
    .footer-extra {
        font-size: 12px;
    }
    
    .archive-header {
        margin-bottom: 20px;
        padding: 20px 0;
    }
    
    .archive-title {
        font-size: 20px;
    }
    
    .archive-description {
        font-size: 13px;
    }
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 9. 夜间模式 */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]),
    html[data-theme="auto"] {
        --bg-color: #121212;
        --bg-secondary: #1e1e1e;
        --text-color: #e0e0e0;
        --text-muted: #a0a0a0;
        --border-color: #2d2d2d;
        --card-bg: #1e1e1e;
        --link-color: #6e9cff;
        --link-hover-color: #96b9ff;
        --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
        --box-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
    }
}

/* 强制颜色模式 - 替代过时的 -ms-high-contrast */
@media (forced-colors: active) {
    :root {
        --primary-color: CanvasText;
        --border-color: CanvasText;
        --link-color: LinkText;
        --link-hover-color: LinkText;
    }
    
    a, button {
        forced-color-adjust: none;
    }
    
    .tag-link, .widget-list-item::before {
        background-color: CanvasText;
        color: Canvas;
    }
    
    .post-card, .widget {
        border: 1px solid CanvasText;
    }
    
    .icon, .ri-search-line, .ri-menu-line, [class^="ri-"] {
        forced-color-adjust: none;
        color: CanvasText !important;
    }
}

/* 10. 响应式样式 */
/* 大屏幕 (大于等于1200px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1320px;
    }
    
    .row {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .col-md-9 {
        flex: 0 0 70% !important;
        max-width: 70% !important;
        width: 70%;
    }
    
    .col-md-3 {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        width: 30%;
    }
    
    /* 热门模块在此尺寸下也改为2列 */
    .hot-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }
    
    .hot-column-random {
        display: none !important;
    }
}

/* 超大屏幕 (≥1400px) 才显示3列 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .row {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .col-md-9 {
        flex: 0 0 70% !important;
        max-width: 70% !important;
        width: 70%;
    }
    
    .col-md-3 {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        width: 30%;
    }
    
    /* 只在超大屏幕显示3列 */
    .hot-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px;
    }
}

/* 中等屏幕 (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 1140px;
    }
    
    .row {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .col-md-9 {
        flex: 0 0 70% !important;
        max-width: 70% !important;
        width: 70%;
    }
    
    .col-md-3 {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        width: 30%;
    }

    .post-card-image {
        width: 180px;
    }
    
    .post-card-title {
        font-size: 15px;
    }
    
    /* 热门模块在中等屏幕下改为2列，避免挤压侧边栏 */
    .hot-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }
    
    .hot-column-random {
        display: none !important;
    }
}

/* 平板电脑 (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 960px;
    }

    .row {
        flex-direction: row !important;
        display: flex !important;
    }

    .col-md-9 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
        width: 66.666667%;
    }
    
    .col-md-3 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333%;
    }

    .post-card-image {
        width: 150px;
    }
    
    .post-card-title {
        font-size: 14px;
    }
    
    .post-card-excerpt {
        font-size: 13px;
    }
    
    /* 热门模块在中等屏幕下改为2列，避免挤压侧边栏 */
    .hot-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }
    
    .hot-column-random {
        display: none !important;
    }
}

/* 手机 (小于768px) */
@media (max-width: 767px) {
    body {
        background-color: var(--bg-secondary);
    }

    .site-content {
        padding: 10px 0 0;
    }

    .container {
        max-width: 100%;
        padding: 0 4px;
    }

    .row {
        flex-direction: column !important;
    }
    
    .col-md-9, .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .col-md-3,
    .sidebar {
        display: none !important;
    }
    
    .site-header {
        height: 52px;
    }
    
    .header-inner {
        height: 52px;
    }
    
    .custom-logo {
        height: 28px;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    /* 导航菜单 */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 52px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
        padding: 12px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 240;
    }
    
    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .primary-menu {
        flex-direction: column;
    }
    
    .primary-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .primary-menu > li:last-child {
        border-bottom: none;
    }
    
    .primary-menu > li > a {
        padding: 14px 20px;
        line-height: 1.4;
        font-size: 15px;
        justify-content: space-between;
    }
    
    .primary-menu > li > a::before {
        display: none;
    }
    
    /* 移动端下拉箭头 */
    .dropdown-icon {
        font-size: 18px;
    }
    
    /* 移动端二级菜单 - 手风琴效果 */
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: rgba(var(--primary-rgb), 0.02);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    background 0.3s ease;
    }
    
    /* 激活状态 - 展开子菜单 */
    .has-dropdown.active > .sub-menu {
        max-height: 800px;
        border-top: 1px solid rgba(var(--primary-rgb), 0.08);
    }
    
    /* 激活状态 - 旋转箭头 */
    .has-dropdown.active > a .dropdown-icon {
        transform: rotate(180deg);
    }
    
    /* 移动端二级菜单项样式 */
    .sub-menu li {
        animation: none;
        opacity: 1;
        transform: none;
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.05);
    }
    
    .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .sub-menu li::before {
        display: none;
    }
    
    /* 移动端二级菜单链接 */
    .sub-menu a {
        padding: 13px 20px 13px 40px;
        font-size: 14px;
        background: transparent;
    }
    
    .sub-menu a:hover,
    .sub-menu a:active {
        padding-left: 44px;
        background: rgba(var(--primary-rgb), 0.05);
    }
    
    /* 当前激活的子菜单项 */
    .sub-menu li.current a {
        background: rgba(var(--primary-rgb), 0.08);
    }

    .back-to-top {
        right: 20px;
        bottom: 30px;
        width: 48px;
        height: 48px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
        z-index: 999;
    }
    
    /* 内容样式 */
    .site-banner {
        height: auto;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 12px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    }

    /* 移动端显示移动端金句，隐藏桌面端金句 */
    .desktop-quote-card {
        display: none;
    }

    .mobile-quote-card {
        display: flex;
    }

    .banner-slide,
    .banner-slide a {
        height: auto;
    }

    .site-banner img {
        width: 100%;
        height: 168px;
        object-fit: cover;
        display: block;
    }
    
    .banner-caption {
        padding: 12px 14px;
    }
    
    .banner-title {
        font-size: 1.3rem;
        margin: 0;
    }

    /* 移动端随机金句卡片 */
    .mobile-quote-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-bottom: 12px;
        background-color: var(--card-bg);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        padding: 14px 16px;
        border: 1px solid var(--border-color);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-quote-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--primary-color);
        border-radius: 12px 0 0 12px;
    }

    .quote-icon {
        display: none;
    }

    .quote-icon i {
        display: none;
    }

    .mobile-quote-card .quote-text {
        width: 100%;
        font-size: 13px;
        line-height: 1.6;
        color: var(--text-color);
        font-weight: 400;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.8em;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .hot-section {
        padding: 0;
        margin-bottom: 16px;
    }

    .hot-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        align-items: stretch;
        grid-auto-rows: 1fr;
    }
    
    .hot-column {
        padding: 5px;
        border-radius: 12px;
        background: var(--card-bg);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
        border: 1px solid rgba(15, 23, 42, 0.02);
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .hot-column-random {
        display: none;
    }

    .hot-column-title {
        font-size: 14px;
        margin: 0 0 8px;
        color: var(--text-color);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .hot-column-title i {
        font-size: 18px;
        color: var(--primary-color);
        background: rgba(var(--primary-rgb), 0.1);
        border-radius: 8px;
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hot-post-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1;
    }

    .hot-post-item {
        margin: 0;
        padding: 0;
        position: relative;
    }

    .hot-post-item::before {
        display: none;
    }

    /* 移动端只显示前4条，覆盖桌面端的6条设置 */
    .hot-post-item:nth-child(n+5) {
        display: none !important;
    }
    
    /* 重新显示前4条 */
    .hot-post-item:nth-child(-n+4) {
        display: block !important;
    }

    .hot-post-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 5px 8px;
        color: var(--text-color);
        font-size: 12px;
        line-height: 1.5;
        transition: all 0.3s ease;
        text-decoration: none;
        position: relative;
        border-radius: 6px;
        margin: 0;
    }
    
    .hot-post-link::before {
        display: none;
    }

    .hot-post-link:hover {
        color: var(--primary-color);
        background-color: rgba(var(--primary-rgb), 0.05);
    }

    .hot-post-title {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .hot-post-badge {
        flex-shrink: 0;
        font-size: 11px;
        padding: 1px 6px;
        border-radius: 10px;
        background-color: rgba(var(--primary-rgb), 0.1);
        color: var(--primary-color);
        font-weight: 500;
        white-space: nowrap;
    }

    .hot-post-views {
        background-color: rgba(23, 162, 184, 0.1);
        color: #17a2b8;
    }

    .hot-post-arrow {
        flex-shrink: 0;
        font-size: 14px;
        color: var(--text-muted);
        transition: transform 0.3s ease;
    }

    .hot-post-link:hover .hot-post-arrow {
        transform: translateX(3px);
        color: var(--primary-color);
    }

    /* Empty state on mobile */
    .hot-post-item.empty .hot-post-link {
        color: var(--text-muted);
        font-style: italic;
        cursor: default;
        justify-content: center;
    }

    .hot-post-item.empty .hot-post-link:hover {
        background-color: transparent;
        color: var(--text-muted);
    }

    .post-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 8px;
    }

    .infinite-loading {
        padding: 16px 0 5px;
        font-size: 13px;
    }
    
    .post-card {
        flex-direction: row;
        align-items: center;
        border-radius: 14px;
        overflow: hidden;
        background-color: var(--card-bg);
        border: none;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
        padding: 10px 12px;
        gap: 12px;
        min-height: auto;
    }
    
    .post-card-image {
        flex: 0 0 84px;
        width: 84px;
        height: 84px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
        background-color: var(--bg-secondary);
    }
    
    .post-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .post-card-content {
        flex: 1 1 auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        position: relative;
    }
    
    .post-card-title {
        font-size: 16px;
        margin-bottom: 0;
        color: var(--text-color);
        line-height: 1.45;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .post-card-sticky .post-card-title {
        padding-right: 60px;
    }

    .post-card-badge {
        top: 0;
        right: 0;
        font-size: 11px;
        padding: 3px 8px;
        gap: 3px;
    }

    .post-card-badge::before {
        font-size: 12px;
    }

    .post-card-excerpt {
        display: none;
    }

    .post-card-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        color: var(--text-muted);
    }

    .post-card-meta i {
        margin-right: 2px;
        font-size: 14px;
    }

    .post-card-meta span {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        margin-right: 0;
    }

    /* 移动端文章卡片元信息 - 隐藏日期，紧凑显示 */
    .post-card-meta {
        font-size: 11px;
        flex-wrap: nowrap;
        gap: 6px;
    }
    
    .post-card-meta .post-date {
        display: none !important;
    }
    
    .post-card-meta .post-category {
        display: none !important;
    }
    
    .post-card-meta .post-views,
    .post-card-meta .post-comments {
        display: inline-flex;
        margin-right: 0;
    }
    
    .post-card-meta i {
        font-size: 12px;
    }
    
    /* 文章详情页整体优化 */
    .post-single,
    .page-single {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .post-header,
    .page-header {
        margin-bottom: 14px;
    }
    
    .post-title,
    .page-title {
        font-size: 1.35rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    /* 文章元信息 - 水平紧凑布局 */
    .post-meta {
        flex-wrap: wrap;
        gap: 8px 12px;
        margin-bottom: 12px;
        font-size: 11px;
    }
    
    .post-meta-item {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        margin: 0 !important;
        white-space: nowrap;
    }
    
    .post-meta-item i {
        font-size: 12px;
    }
    
    /* 文章内容文字优化 */
    .post-content,
    .page-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .post-content h2,
    .page-content h2 {
        font-size: 1.25rem;
        margin: 20px 0 12px;
    }
    
    .post-content h3,
    .page-content h3 {
        font-size: 1.1rem;
        margin: 18px 0 10px;
    }
    
    .post-content p,
    .page-content p {
        margin-bottom: 12px;
    }
    
    .post-content img,
    .page-content img {
        margin: 14px 0;
        border-radius: 8px;
    }
    
    /* 文章标签 - 水平紧凑 */
    .post-tags {
        margin: 16px 0;
    }
    
    .post-tags-title {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .post-tag {
        font-size: 11px;
        padding: 3px 8px;
        margin: 0 5px 5px 0;
    }
    
    /* 文章底部 */
    .post-footer {
        margin-top: 16px;
        padding-top: 14px;
    }
    
    /* 作者卡片紧凑 */
    .author-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .author-avatar {
        width: 48px;
        height: 48px;
    }
    
    .author-name {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .author-bio {
        font-size: 12px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }
    
    /* 分享按钮水平排列 */
    .post-share,
    .page-share {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }
    
    .share-title {
        font-size: 12px;
        margin-bottom: 6px;
        width: 100%;
    }
    
    .share-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    
    .share-button {
        flex: 0 0 auto;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .share-button i {
        font-size: 13px;
    }

    .widget {
        margin-bottom: 16px;
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(15,23,42,0.04);
        background-color: var(--card-bg);
    }

    .widget-title {
        font-size: 15px;
        padding: 13px 15px;
        color: var(--text-color);
    }

    .widget-content {
        padding: 12px 15px 14px;
        color: var(--text-muted);
    }

    .sidebar .widget-post-catalog {
        display: none;
    }

    .sidebar .widget-search {
        display: none;
    }
}

/* 文章内容页优化样式 */
/* 添加在响应式样式之前 */

/* 文章内容区样式 */
.post, .page {
    position: relative;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 25px;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
    margin-bottom: 25px;
}

.post:hover, .page:hover {
    box-shadow: var(--box-shadow-hover);
}

/* 文章样式优化 */
.post-header, .page-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInDown 0.6s ease-out;
}

.post-title, .page-title {
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
    position: relative;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
}

.post-card-sticky .post-title {
    padding-right: 75px;
}

.post-title a {
    display: block;
    word-wrap: break-word;
    word-break: break-word;
}

.post-title:hover, .page-title:hover {
    color: var(--primary-color);
}

.post-meta, .page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-meta span, .page-meta span {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.post-meta span:hover, .page-meta span:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.post-meta i, .page-meta i {
    margin-right: 5px;
}

.post-content, .page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    animation: fadeIn 0.8s ease-out;
}

.post-content img, .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content img:hover, .page-content img:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6,
.page-content h1, .page-content h2, .page-content h3,
.page-content h4, .page-content h5, .page-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.post-content h2::after, .page-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.post-content h2:hover::after, .page-content h2:hover::after {
    width: 100px;
}

.post-content p, .page-content p {
    margin-bottom: 20px;
}

.post-content a, .page-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s ease;
}

.post-content a:hover, .page-content a:hover {
    color: var(--link-hover-color);
    border-bottom-style: solid;
}

.post-content blockquote, .page-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.post-content blockquote:hover, .page-content blockquote:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
    transform: translateX(5px);
}

.post-content code, .page-content code {
    background-color: var(--bg-secondary);
    padding: 3px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.post-content code:hover, .page-content code:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.post-content pre, .page-content pre {
    background-color: var(--bg-secondary);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.post-content pre:hover, .page-content pre:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.post-content pre code, .page-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-content table, .page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 5px;
    overflow: hidden;
}

.post-content th, .post-content td,
.page-content th, .page-content td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.post-content th, .page-content th {
    background-color: var(--bg-secondary);
}

.post-content tr:hover td, .page-content tr:hover td {
    background-color: rgba(var(--primary-rgb), 0.03);
}

/* 特殊元素样式 */
.post-thumb, .page-thumb {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.post-thumb:hover, .page-thumb:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.post-thumb img, .page-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.post-thumb:hover img, .page-thumb:hover img {
    transform: scale(1.05);
}

.post-tags, .page-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 25px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
    animation: fadeInUp 0.6s ease-out;
}

.post-tags i, .page-tags i {
    color: var(--primary-color);
    margin-right: 5px;
}

.post-tags a, .page-tags a {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.post-tags a:hover, .page-tags a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 文章版权信息 */
.post-copyright {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    animation: fadeIn 0.8s ease-out;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-copyright:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-copyright::before {
    content: "©";
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.post-copyright-item {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.post-copyright-item:hover {
    transform: translateX(5px);
}

.post-copyright-item:last-child {
    margin-bottom: 0;
}

.post-copyright-label {
    font-weight: 600;
    color: var(--text-color);
}

/* 文章分享 */
.post-share, .page-share {
    display: flex;
    align-items: center;
    margin: 25px 0;
    gap: 15px;
    animation: fadeInUp 0.7s ease-out;
}

.share-title {
    font-weight: 600;
    color: var(--text-color);
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.share-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.share-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.share-links a:hover::before {
    transform: scale(1);
}

.share-links a i {
    position: relative;
    z-index: 1;
}

/* 相关文章 */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.8s ease-out;
}

.related-posts-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.related-posts-title:hover::after {
    width: 100%;
}

.related-posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-item {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-post-thumb {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.related-post-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post-item:hover .related-post-thumb::after {
    opacity: 1;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-item:hover .related-post-thumb img {
    transform: scale(1.1);
}

.related-post-info {
    padding: 15px;
    position: relative;
    transition: background-color 0.3s ease;
}

.related-post-item:hover .related-post-info {
    background-color: rgba(var(--primary-rgb), 0.05);
}

.related-post-title {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.related-post-item:hover .related-post-title {
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.related-post-date::before {
    content: '\e919'; /* 使用Remix icon的日历图标编码 */
    font-family: 'remixicon';
    margin-right: 5px;
    font-size: 0.9em;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.related-post-item:hover .related-post-date::before {
    opacity: 1;
    transform: translateX(0);
}

/* 文章结束标记 */
.post-end-mark {
    text-align: center;
    margin: 40px 0 30px;
    position: relative;
    padding: 20px 0;
}

.post-end-mark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.post-end-mark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transform: rotate(0deg);
    transition: transform 0.5s ease;
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.3);
}

.post-end-mark:hover .post-end-mark-icon {
    transform: rotate(360deg);
}

.post-end-mark-icon i {
    font-size: 20px;
}

.post-end-mark-text {
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
    background-color: var(--bg-color);
    display: inline-block;
    padding: 0 15px;
    margin-top: 5px;
}

/* 优化文章导航样式 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.post-navigation-prev,
.post-navigation-next {
    flex: 0 0 48%;
    max-width: 48%;
    transition: all 0.3s ease;
    position: relative;
    padding: 15px;
    border-radius: 8px;
    background-color: var(--bg-secondary);
}

.post-navigation-prev {
    padding-left: 20px;
}

.post-navigation-next {
    text-align: right;
    padding-right: 20px;
}

.post-navigation-prev:hover {
    transform: translateX(-5px);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.post-navigation-next:hover {
    transform: translateX(5px);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.post-nav-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.post-navigation-prev .post-nav-label {
    justify-content: flex-start;
}

.post-navigation-next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-label i {
    font-size: 16px;
    line-height: 1;
}

.post-navigation-prev .post-nav-label i {
    margin-right: 5px;
}

.post-navigation-next .post-nav-label i {
    margin-left: 5px;
}

.post-navigation a {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--primary-color);
}

.post-nav-none {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* 相关文章默认图片样式 */
.related-post-thumb {
    height: 150px !important;
    overflow: hidden;
    position: relative;
    border-radius: 8px 8px 0 0;
    background-color: var(--bg-secondary);
    display: block !important;
}

.related-post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block !important;
}

.no-related-posts {
    padding: 20px;
    text-align: center;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

/* 响应式优化 */
@media (max-width: 767px) {
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-navigation-prev,
    .post-navigation-next {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .post-end-mark {
        margin: 30px 0 20px;
    }
    
    .post-end-mark-icon {
        width: 36px;
        height: 36px;
    }
    
    .post-end-mark-icon i {
        font-size: 18px;
    }
    
    .post-end-mark-text {
        font-size: 13px;
    }
}

/* 在夜间模式下的适配 */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) .post-end-mark::before,
    html[data-theme="auto"] .post-end-mark::before {
        background: linear-gradient(to right, transparent, var(--border-color), transparent);
    }
    
    html:not([data-theme]) .post-end-mark-text,
    html[data-theme="auto"] .post-end-mark-text {
        background-color: var(--bg-color);
    }
    
    html:not([data-theme]) .related-post-thumb,
    html[data-theme="auto"] .related-post-thumb {
        background-color: var(--bg-secondary);
    }
}

html[data-theme="dark"] .post-end-mark::before {
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

html[data-theme="dark"] .post-end-mark-text {
    background-color: var(--bg-color);
}

html[data-theme="dark"] .related-post-thumb {
    background-color: var(--bg-secondary);
}

/* 微信分享二维码 */
.wechat-qrcode {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.qrcode-container {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    width: 90%;
    position: relative;
    animation: zoomIn 0.4s ease;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.qrcode-container:hover {
    transform: scale(1.02);
}

.qrcode-container #qrcode {
    margin: 0 auto 15px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.qrcode-container p {
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.qrcode-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.qrcode-close:hover {
    transform: rotate(90deg);
    background-color: var(--danger-color);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 平板和移动设备上的样式优化 */
@media (max-width: 767px) {
    .post-share, .page-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-copyright {
        padding: 15px;
    }
    
    .related-posts-list {
        grid-template-columns: 1fr;
    }
    
    .post, .page {
        padding: 15px;
    }
    
    /* 简化移动设备上的动画效果 */
    .post-thumb:hover img, .page-thumb:hover img,
    .related-post-item:hover .related-post-thumb img {
        transform: scale(1.02);
    }
    
    .post-copyright:hover,
    .related-post-item:hover {
        transform: translateY(-3px);
    }
}

/* 小屏幕设备上的调整 */
@media (max-width: 576px) {
    .qrcode-container {
        padding: 20px;
    }
    
    /* 进一步简化小屏幕的动画效果 */
    .post-thumb:hover img, .page-thumb:hover img,
    .related-post-item:hover .related-post-thumb img {
        transform: none;
    }
    
    .post-copyright:hover,
    .related-post-item:hover {
        transform: none;
    }
    
    /* 禁用一些小屏幕上不必要的悬停效果 */
    .post-content h2:hover::after, 
    .page-content h2:hover::after,
    .related-posts-title:hover::after {
        width: 50px;
    }
}

/* 暗黑模式卡片优化 */
html[data-theme="dark"] .post-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .post-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .post-card-sticky {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .post-card-badge {
    background-color: rgba(var(--primary-rgb), 0.25);
    color: #fff;
    border-color: rgba(var(--primary-rgb), 0.55);
}

html[data-theme="dark"] .hot-column {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .hot-column:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

html[data-theme="dark"] .desktop-quote-card {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .desktop-quote-card::before {
    background: var(--primary-color);
}

html[data-theme="dark"] .mobile-quote-card {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .mobile-quote-card::before {
    background: var(--primary-color);
}

html[data-theme="dark"] .hot-column-title {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .hot-post-badge {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
}

html[data-theme="dark"] .hot-post-views {
    background-color: rgba(23, 162, 184, 0.15);
    color: #5dccdc;
}

html[data-theme="dark"] .hot-post-link:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
}

html[data-theme="dark"] .sidebar-widget {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .wechat-qrcode-img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .wechat-qrcode-tip {
    color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .social-group-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .social-group-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .qrcode-modal-content {
    background: var(--card-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .qrcode-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .qrcode-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .qrcode-modal-tip {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .merchant-ad-item {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .merchant-ad-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .topic-recommend-item {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .topic-recommend-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

html[data-theme="dark"] .topic-recommend-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

html[data-theme="dark"] .topic-recommend-item:hover .topic-recommend-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

html[data-theme="dark"] .archive-header {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* 左侧悬浮导航 */
.float-nav {
    position: fixed;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    transition: all 0.3s ease;
}

.float-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    height: 44px;
    min-width: 44px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    color: var(--text-color);
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    gap: 10px;
}

.float-nav-item i {
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.float-nav-text {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    font-weight: 500;
}

.float-nav-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.float-nav-item:hover i {
    transform: scale(1.1);
}

.float-nav-item:hover .float-nav-text {
    color: #fff;
}

/* 暗黑模式 */
html[data-theme="dark"] .float-nav-item {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .float-nav-item:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
}

html[data-theme="dark"] .float-nav-text {
    color: var(--text-color);
}

html[data-theme="dark"] .float-nav-item:hover .float-nav-text {
    color: #fff;
}

/* 移动端隐藏左侧悬浮导航 */
@media (max-width: 1200px) {
    .float-nav {
        display: none;
    }
}

/* ==================== 移动端悬浮菜单 ==================== */
.mobile-float-menu {
    display: none;
}

@media (max-width: 1200px) {
    .mobile-float-menu {
        display: block;
        position: fixed;
        right: 20px;
        bottom: 90px; /* 在返回顶部按钮上方，避免重叠 */
        z-index: 999;
    }
    
    /* 主菜单按钮 */
    .mobile-float-toggle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--primary-color);
        border: none;
        box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.4);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 1001;
    }
    
    .mobile-float-toggle i {
        font-size: 22px;
        color: #fff;
        transition: transform 0.3s ease;
    }
    
    .mobile-float-toggle:active {
        transform: scale(0.95);
    }
    
    .mobile-float-toggle.active {
        background: var(--link-hover-color);
        transform: rotate(180deg);
    }
    
    .mobile-float-toggle.active i::before {
        content: "\eb99"; /* ri-close-line */
    }
    
    /* 菜单项容器 */
    .mobile-float-menu-items {
        position: absolute;
        bottom: 70px;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        z-index: 1000;
    }
    
    .mobile-float-menu-items.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* 单个菜单项 */
    .mobile-float-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        background-color: var(--card-bg);
        border-radius: 28px;
        color: var(--text-color);
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        white-space: nowrap;
        min-width: 120px;
        transform: scale(0.8);
        opacity: 0;
    }
    
    .mobile-float-menu-items.active .mobile-float-item {
        transform: scale(1);
        opacity: 1;
    }
    
    /* 为每个菜单项添加延迟动画 */
    .mobile-float-menu-items.active .mobile-float-item:nth-child(1) {
        transition-delay: 0.05s;
    }
    
    .mobile-float-menu-items.active .mobile-float-item:nth-child(2) {
        transition-delay: 0.1s;
    }
    
    .mobile-float-menu-items.active .mobile-float-item:nth-child(3) {
        transition-delay: 0.15s;
    }
    
    .mobile-float-menu-items.active .mobile-float-item:nth-child(4) {
        transition-delay: 0.2s;
    }
    
    .mobile-float-menu-items.active .mobile-float-item:nth-child(5) {
        transition-delay: 0.25s;
    }
    
    .mobile-float-menu-items.active .mobile-float-item:nth-child(6) {
        transition-delay: 0.3s;
    }
    
    .mobile-float-menu-items.active .mobile-float-item:nth-child(n+7) {
        transition-delay: 0.35s;
    }
    
    .mobile-float-item i {
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .mobile-float-item span {
        font-size: 14px;
        font-weight: 500;
    }
    
    .mobile-float-item:active {
        transform: scale(0.95);
    }
    
    /* 背景遮罩 */
    .mobile-float-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 997;
        backdrop-filter: blur(2px);
    }
    
    .mobile-float-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 为不同图标添加颜色（移动端） */
    .mobile-float-item i[class*="ri-heart"],
    .mobile-float-item i[class*="ri-love"] {
        color: #ff6b6b;
    }
    
    .mobile-float-item i[class*="ri-star"] {
        color: #ffd700;
    }
    
    .mobile-float-item i[class*="ri-fire"] {
        color: #ff6347;
    }
    
    .mobile-float-item i[class*="ri-guide"],
    .mobile-float-item i[class*="ri-compass"] {
        color: #3498db;
    }
    
    .mobile-float-item i[class*="ri-book"],
    .mobile-float-item i[class*="ri-article"] {
        color: #2ecc71;
    }
    
    .mobile-float-item i[class*="ri-chat"],
    .mobile-float-item i[class*="ri-message"],
    .mobile-float-item i[class*="ri-discuss"] {
        color: #00bcd4;
    }
    
    .mobile-float-item i[class*="ri-links"] {
        color: #ff9800;
    }
    
    .mobile-float-item i[class*="ri-information"] {
        color: #607d8b;
    }
    
    .mobile-float-item i[class*="ri-wechat"] {
        color: #07c160;
    }
    
    .mobile-float-item i[class*="ri-qq"] {
        color: #12b7f5;
    }
    
    /* 调整返回顶部按钮位置，避免与菜单按钮重叠 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* 暗黑模式适配 */
@media (max-width: 1200px) {
    html[data-theme="dark"] .mobile-float-item {
        background-color: var(--card-bg);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    }
    
    html[data-theme="dark"] .mobile-float-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

/* ==================== 评论区样式 ==================== */
/* 评论区域容器 */
.comments-area {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

/* 评论标题 */
.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.comments-title i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

/* 评论列表 */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.comment-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: var(--bg-secondary);
}

.comment-item:last-child {
    margin-bottom: 0;
}

/* 作者评论特殊样式 */
.comment-by-author {
    background: rgba(var(--primary-rgb), 0.03);
}

.comment-by-author .comment-author::after {
    content: '作者';
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: 500;
}

/* 评论子级嵌套 */
.comment-children {
    list-style: none;
    padding-left: 40px;
    margin-top: 15px;
}

/* 评论者头像 */
.comment-author-avatar {
    flex-shrink: 0;
    position: relative;
    width: 36px;
    height: 36px;
}

.comment-author-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    object-fit: cover;
    display: block;
    background: var(--bg-secondary);
}

.comment-item:hover .comment-author-avatar img {
    border-color: var(--primary-color);
}

/* 评论内容 */
.comment-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

/* 评论头部（用户名+日期+按钮在同一行） */
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 10px;
}

/* 评论元信息 */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: all var(--transition-speed) ease;
    flex-shrink: 0;
}

.comment-item:hover .comment-author {
    color: var(--primary-color);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* 评论文本 */
.comment-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    word-wrap: break-word;
}

.comment-text p {
    margin: 4px 0;
}

.comment-text p:first-child {
    margin-top: 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

/* 评论文本折叠 */
.comment-text.collapsed {
    max-height: 48px;
    overflow: hidden;
    position: relative;
}

.comment-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    pointer-events: none;
}

/* 评论操作按钮容器（在头部右侧） */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* 展开按钮 */
.comment-expand-btn {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
}

.comment-expand-btn:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 评论回复按钮 */
.comment-reply {
    margin: 0;
}

.comment-reply a {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.comment-reply a:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 评论表单区域 - 紧凑模式 */
.comment-respond {
    margin-top: 40px;
    margin-bottom: 40px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* 用户信息栏 */
.comment-user-bar {
    padding: 12px 15px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.comment-logout-btn,
.comment-change-user-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.comment-logout-btn:hover,
.comment-change-user-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.comment-logout-btn i,
.comment-change-user-btn i {
    font-size: 14px;
}

/* 暗色模式 */
[data-theme="dark"] .comment-user-bar {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* 用户信息编辑弹窗 */
.comment-user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.comment-user-modal.active {
    display: block;
}

.comment-user-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.comment-user-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
}

.comment-user-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment-user-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-user-modal-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.comment-user-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.comment-user-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.comment-user-modal-body {
    padding: 24px 20px;
}

.modal-form-field {
    margin-bottom: 18px;
}

.modal-form-field:last-child {
    margin-bottom: 0;
}

.modal-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.modal-form-field .required {
    color: #ff4444;
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.comment-user-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

.modal-cancel-btn,
.modal-save-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-cancel-btn {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.modal-cancel-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.modal-save-btn {
    background: var(--primary-color);
    color: #fff;
}

.modal-save-btn:hover {
    opacity: 0.9;
}

/* 暗色模式 */
[data-theme="dark"] .comment-user-modal-content {
    background: var(--bg-secondary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* 紧凑的评论表单 */
.comment-form-compact {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    padding: 0 15px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 0 0 8px 8px;
}

.comment-form-compact .comment-form-comment {
    flex: 1;
    margin: 0 !important;
}

.comment-form-compact .form-control {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    resize: none;
}

.comment-form-compact .form-control:focus {
    outline: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.comment-form-compact .form-control::placeholder {
    color: var(--text-muted);
}

.comment-form-compact .emotion-btn,
.comment-form-compact .submit-btn {
    height: 36px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.comment-form-compact .submit-btn {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.comment-form-compact .emotion-btn:hover {
    background: var(--bg-secondary);
}

.comment-form-compact .submit-btn:hover {
    opacity: 0.9;
}

/* 隐藏字段不占空间 */
.comment-form-compact input[type="hidden"] {
    display: none;
}

.comment-form-compact .form-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    position: relative;
}


/* 移动端优化 - 紧凑评论表单 */
@media (max-width: 576px) {
    .comment-form-compact {
        padding: 0 10px;
        gap: 6px;
    }
    
    .comment-form-compact .form-control {
        font-size: 14px !important;
        min-width: 0;
    }
    
    .comment-form-compact .emotion-btn,
    .comment-form-compact .submit-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
        gap: 4px;
    }
    
    /* 按钮文字在小屏幕隐藏，只显示图标 */
    .comment-form-compact .emotion-btn i,
    .comment-form-compact .submit-btn i {
        font-size: 16px;
    }
    
    .comment-form-compact .emotion-btn span,
    .comment-form-compact .submit-btn span {
        display: none;
    }
    
    .comment-respond {
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 6px;
    }
    
    /* 用户信息栏移动端优化 */
    .comment-user-bar {
        padding: 10px;
    }
    
    .comment-user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .comment-user-name {
        font-size: 0.85rem;
    }
    
    .comment-logout-btn span,
    .comment-change-user-btn span {
        display: none;
    }
    
    .comment-logout-btn,
    .comment-change-user-btn {
        padding: 4px 8px;
    }
    
    .comment-logout-btn i,
    .comment-change-user-btn i {
        font-size: 16px;
        margin: 0;
    }
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.comment-reply-title i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.cancel-comment-reply {
    margin-left: 10px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.cancel-comment-reply:hover {
    color: #fff;
    background: var(--danger-color);
}

/* 评论表单字段 */
.comment-form-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.comment-form-field {
    margin-bottom: 0;
}

.comment-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-form-field label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control:hover {
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    font-family: inherit;
}

/* 评论提交区域 */
.form-submit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    position: relative;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--link-hover-color) 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 表情按钮 */
.emotion-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.emotion-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

.emotion-btn i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* 评论关闭提示 */
.comment-closed {
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.comment-closed i {
    font-size: 3.5rem;
    color: var(--danger-color);
    opacity: 0.7;
}

.comment-closed p {
    font-size: 1.1rem;
    margin: 0;
}

/* 评论分页 */
.comments-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.page-navigator {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.page-navigator li {
    display: inline-block;
}

.page-navigator a,
.page-navigator span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.page-navigator .current a,
.page-navigator .current span {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.page-navigator a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

/* 已登录用户信息 */
.comment-logged-in {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
}

.comment-logged-in i {
    color: var(--primary-color);
}

.comment-logged-in a {
    color: var(--primary-color);
    font-weight: 600;
}

.logout-link {
    margin-left: auto;
    color: var(--danger-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 77, 79, 0.1);
    border-radius: 5px;
    transition: all var(--transition-speed) ease;
}

.logout-link:hover {
    background: var(--danger-color);
    color: #fff;
}

/* 评论者信息（浏览器/系统） */
.comment-author-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    width: fit-content;
}

.comment-author-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-author-info i {
    color: var(--primary-color);
    opacity: 0.8;
}

/* 评论回复提示和取消按钮 */
.comment-reply-notice {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid var(--primary-color);
    animation: slideInDown 0.3s ease;
}

.reply-to-text {
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.reply-to-text:before {
    content: '\eb6a';
    font-family: 'remixicon';
    color: var(--primary-color);
    font-size: 1.1rem;
}

.reply-to-name {
    color: var(--primary-color);
    font-weight: 600;
}

.cancel-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-reply-btn:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
    transform: translateY(-1px);
}

.cancel-reply-btn i {
    font-size: 1rem;
}

/* 评论回复目标提示 */
.comment-reply-target {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-left: 4px solid var(--info-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-reply-target a {
    color: var(--primary-color);
    font-weight: 600;
}

.comment-reply-target:before {
    content: '\eb6a';
    font-family: 'remixicon';
    color: var(--info-color);
    font-size: 1.1rem;
}

/* 表情面板背景遮罩 */
.emotion-panel-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.emotion-panel-backdrop.show {
    display: block;
    opacity: 1;
}

/* 表情面板样式 */
.emotion-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: calc(100vw - 40px);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.emotion-panel.show {
    display: block;
    opacity: 1;
}

.emotion-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
}

.emotion-panel-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 1;
    justify-content: space-between;
    max-width: calc(100% - 40px);
}

.emotion-tab {
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.emotion-tab .tab-icon {
    display: none;
    font-size: 1.2rem;
}

.emotion-tab .tab-text {
    display: inline;
}

.emotion-tab:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
}

.emotion-tab.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.emotion-panel-close {
    cursor: pointer;
    font-size: 22px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--bg-color);
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.emotion-panel-close:hover {
    background: var(--danger-color);
    color: #fff;
    transform: rotate(90deg);
}

.emotion-panel-content {
    padding: 20px;
    overflow: hidden;
}

.emotion-group {
    display: none;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
}

.emotion-group.active {
    display: grid;
}

.emotion-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.6rem;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
    aspect-ratio: 1;
}

.emotion-item:hover {
    background: rgba(var(--primary-rgb), 0.15);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 评论高亮效果 */
.comment-highlight {
    animation: highlightPulse 1s ease 2;
}

@keyframes highlightPulse {
    0%, 100% {
        background: var(--bg-color);
    }
    50% {
        background: rgba(var(--primary-rgb), 0.1);
    }
}

/* 动画定义 */
.animate__animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: commentFadeIn;
}

.animate__fadeInUp {
    animation-name: commentFadeInUp;
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes commentFadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 夜间模式优化 */
[data-theme="dark"] .comments-area {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .comment-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .comment-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

[data-theme="dark"] .emotion-panel {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .emotion-panel-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .emotion-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .emotion-item:hover {
    background: rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .comment-text.collapsed::after {
    background: linear-gradient(to bottom, transparent, var(--bg-color));
}

[data-theme="dark"] .comment-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .comment-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .comment-by-author {
    background: rgba(var(--primary-rgb), 0.08);
}

/* 评论区响应式设计 */
@media (max-width: 992px) {
    .comment-form-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .comments-area {
        padding: 20px;
    }
    
    .comment-form-fields {
        grid-template-columns: 1fr;
    }
    
    .comment-children {
        padding-left: 20px;
        margin-top: 10px;
    }
    
    .comment-item {
        padding: 15px;
    }
    
    .comment-item:hover {
        transform: none;
    }
    
    .comment-respond {
        padding: 20px;
    }
    
    .emotion-panel {
        width: 360px;
    }
    
    .emotion-group {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
    }
}

/* 内联回复框 - 默认隐藏 */
.inline-reply-form {
    display: none;
    margin: 8px 0 0 0;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.inline-reply-form.active {
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 1;
    max-height: 60px;
}

.inline-reply-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
}

.inline-reply-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.inline-reply-input::placeholder {
    color: var(--text-muted);
}

.inline-reply-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.inline-emotion-btn,
.inline-submit-btn,
.inline-cancel-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.inline-emotion-btn i,
.inline-submit-btn i,
.inline-cancel-btn i {
    font-size: 18px;
}

.inline-submit-btn {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.inline-submit-btn:hover {
    opacity: 0.9;
}

.inline-cancel-btn {
    background: transparent;
    color: var(--text-muted);
}

.inline-cancel-btn:hover {
    background: var(--bg-secondary);
}

.inline-emotion-btn:active,
.inline-cancel-btn:active {
    transform: scale(0.95);
}

.inline-submit-btn:active {
    transform: scale(0.95);
}

[data-theme="dark"] .inline-reply-form {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 576px) {
    /* 评论区紧凑布局 */
    .comments-area {
        margin-top: 16px;
        padding: 10px;
        border-radius: 8px;
    }
    
    .comment-item {
        padding: 8px;
        margin-bottom: 8px;
        border-radius: 6px;
    }
    
    .comment-body {
        gap: 8px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .comment-content {
        flex: 1;
        min-width: 0;
        width: 100%;
    }
    
    .comment-author-avatar {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    
    .comment-author-avatar img {
        width: 32px;
        height: 32px;
    }
    
    .comment-author {
        font-size: 0.85rem;
    }
    
    .comment-date {
        font-size: 0.7rem;
    }
    
    .comment-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .comment-meta {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }
    
    .comment-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    
    .comment-text {
        font-size: 0.85rem;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .comment-expand-btn,
    .comment-reply a {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    /* 移动端评论表单简化 */
    .comment-respond {
        margin: 16px 0;
        padding: 12px;
        border-radius: 8px;
    }
    
    /* 移动端隐藏被Typecho移动到评论内的表单 */
    .comment-item .comment-respond {
        display: none !important;
    }
    
    /* 只显示顶层的评论表单 */
    .comments-area > .comment-respond {
        display: block !important;
    }
    
    .comment-reply-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    /* 移动端回复提示样式 */
    .comment-reply-notice {
        padding: 10px 12px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .reply-to-text {
        font-size: 0.85rem;
    }
    
    .cancel-reply-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .cancel-reply-btn span {
        display: none;
    }
    
    .cancel-reply-btn i {
        font-size: 1.1rem;
    }
    
    .comment-form-fields {
        grid-template-columns: 1fr !important;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .comment-form-field label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .form-control {
        padding: 8px 10px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    textarea.form-control {
        min-height: 80px;
        rows: 4;
    }
    
    .form-submit {
        gap: 8px;
        margin-top: 10px;
    }
    
    .emotion-btn,
    .submit-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* 移动端按钮和输入框调整 */
    .inline-reply-input {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .inline-emotion-btn,
    .inline-submit-btn,
    .inline-cancel-btn {
        width: 32px;
        height: 32px;
    }
    
    .inline-emotion-btn i,
    .inline-submit-btn i,
    .inline-cancel-btn i {
        font-size: 16px;
    }
    
    /* 表情面板移动端样式 */
    .emotion-panel {
        width: calc(100vw - 20px);
        max-width: 380px;
        max-height: 75vh;
    }
    
    .emotion-panel-content {
        padding: 15px;
    }
    
    .emotion-panel-tabs {
        gap: 6px;
    }
    
    .emotion-tab {
        padding: 10px;
        min-width: 48px;
        gap: 0;
    }
    
    .emotion-tab .tab-icon {
        display: inline;
        font-size: 1.5rem;
    }
    
    .emotion-tab .tab-text {
        display: none;
    }
    
    .comment-author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .form-submit {
        flex-wrap: wrap;
    }
    
    .emotion-group {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(8, 1fr);
        gap: 4px;
    }
    
    .emotion-item {
        padding: 8px;
        font-size: 1.5rem;
    }
    
    .page-navigator a,
    .page-navigator span {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
} 