/* 
PaperBook主题 - 美化版本
优化文章列表样式，提升视觉效果和用户体验
*/

/* ===== 美化后的文章列表样式 ===== */

/* CSS变量定义 */
:root {
    /* 主色调 */
    --primary-dark: #2c3e50;      /* 深灰色 - 顶部导航栏 */
    --primary-blue: #3498db;      /* 蓝色 - 左侧边栏 */
    --primary-blue-dark: #2980b9; /* 深蓝色 - 悬停色 */
    --white: #ffffff;             /* 白色 - 主内容区域 */
    --light-gray: #ecf0f1;        /* 浅灰色 - 分割线 */
    
    /* 文字颜色 */
    --text-dark: #2c3e50;         /* 主文字色 */
    --text-light: #7f8c8d;        /* 次要文字色 */
    --text-white: #ffffff;        /* 白色文字 */
    --link-color: #3498db;        /* 链接色 */
    
    /* 新增文章列表专用变量 */
    --card-bg: #ffffff;           /* 卡片背景色 */
    --card-border: #e8ecef;       /* 卡片边框色 */
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --text-color: #2c3e50;        /* 主文字色 */
    --text-secondary: #6c757d;    /* 次要文字色 */
    --primary-color: #3498db;     /* 主色调 */
    --border-color: #e8ecef;      /* 边框色 */
    --hover-bg: #f8f9fa;          /* 悬停背景色 */
    
    /* 布局尺寸 */
    --navbar-height: 66px;        /* 顶部导航栏高度 */
    --sidebar-width: 250px;       /* 左侧边栏宽度 */
    --content-padding: 30px;      /* 内容区域内边距 */
    
    /* 阴影 */
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    
    /* 过渡动画 */
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Canvas背景 */
.canvas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* 顶部导航栏 */
.top-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: var(--navbar-height);
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-light);
    z-index: 1000 !important;
    transition: all 0.3s ease;
}

/* 暗色主题下的顶部导航栏样式 */
[data-theme="dark"] .top-navbar {
    background-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme .top-navbar {
    background-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 确保主内容区域不被固定导航栏遮挡，并为左侧边栏留出空间 */
.main-content {
    margin-top: var(--navbar-height) !important;
    margin-left: var(--sidebar-width) !important; /* 为左侧边栏留出空间 */
    padding-top: 20px;
}

/* 左侧边栏也需要考虑顶部导航栏的高度 */
.sidebar {
    position: fixed !important;
    top: var(--navbar-height) !important;
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height)) !important;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    box-shadow: var(--shadow-medium);
    z-index: 999;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 暗色主题下的侧边栏样式 */
[data-theme="dark"] .sidebar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.dark-theme .sidebar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

/* 侧边栏内容样式适配 */
[data-theme="dark"] .sidebar-nav a {
    color: #ecf0f1;
}

[data-theme="dark"] .sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3498db;
}

.dark-theme .sidebar-nav a {
    color: #ecf0f1;
}

.dark-theme .sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3498db;
}

/* 侧边栏组件标题适配 */
[data-theme="dark"] .sidebar-widgets .widget-title {
    color: #ecf0f1;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .sidebar-widgets .widget-title {
    color: #ecf0f1;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* 侧边栏组件内容适配 */
[data-theme="dark"] .sidebar-widgets .widget-content {
    color: #bdc3c7;
}

.dark-theme .sidebar-widgets .widget-content {
    color: #bdc3c7;
}

[data-theme="dark"] .sidebar-widgets .widget-content a {
    color: #3498db;
}

.dark-theme .sidebar-widgets .widget-content a {
    color: #3498db;
}

[data-theme="dark"] .sidebar-widgets .widget-content a:hover {
    color: #2980b9;
}

.dark-theme .sidebar-widgets .widget-content a:hover {
    color: #2980b9;
}

.top-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 100%;
}

/* Logo区域 */
.navbar-brand {
    flex-shrink: 0;
}

.brand-text {
    color: var(--text-white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: var(--transition);
}

.brand-text:hover {
    color: var(--primary-blue);
}

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

/* 顶部搜索框 */
.navbar-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.navbar-search .search-box {
    position: relative;
    width: 100%;
}

.navbar-search .search-box input {
    width: 100%;
    height: 36px;
    padding: 0 45px 0 15px; /* 调整padding，左侧15px，右侧45px为搜索按钮留空间 */
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.navbar-search .search-box input:focus {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--primary-blue);
}

/* 搜索按钮样式 */
.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.search-button:active {
    transform: translateY(-50%) scale(0.95);
}

.search-button::before {
    content: "🔍";
    font-size: 12px;
    color: white;
}

/* 搜索结果 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.search-results::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.search-result-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-result-category {
    background: var(--primary-blue);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.search-result-date {
    color: var(--text-light);
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-light);
}

/* 用户菜单 */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.user-link:hover {
    color: var(--primary-blue);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001; /* 确保在Canvas特效之上 */
    position: relative;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--text-white);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 左侧边栏 */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    transform: translateX(0); /* 桌面端默认显示 */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* 添加过渡效果 */
    z-index: 999; /* 确保在遮罩层之上 */
}

.sidebar.sidebar-open {
    transform: translateX(0); /* 展开 */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sidebar-content {
    padding: 20px;
}

/* 侧边栏导航 */
.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.current { 
    background-color: var(--primary-blue-dark);
    transform: translateX(4px);
}

/* 侧边栏组件 */
.sidebar-widgets {
    margin-top: 30px;
}

.sidebar-widgets .widget {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.sidebar-widgets .widget h3 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.sidebar-widgets .widget ul {
    list-style: none;
}

.sidebar-widgets .widget li {
    margin-bottom: -8px;
}

.sidebar-widgets .widget a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-widgets .widget a:hover {
    color: var(--text-white);
    padding-left: 8px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998; /* 在侧边栏下方 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.main-content.sidebar-open {
    transform: translateX(var(--sidebar-width)); /* 主内容区域向右移动 */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 文章列表容器 */
.content-wrapper {
    padding: var(--content-padding);
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.8) 0%, rgba(195, 207, 226, 0.5) 100%);
    min-height: calc(100vh - var(--navbar-height) - 120px); /* 减去页脚高度 */
    padding-bottom: 60px; /* 为页脚留出空间 */
}

/* 美化后的文章卡片 */
.log-item {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: stretch;
    position: relative;
}

.log-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #9b59b6, #e74c3c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.log-item {
    display: flex;
    background-color: #ffffff; /* 确保卡片背景为白色 */
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    overflow: hidden; /* 确保内容在圆角内裁剪 */
    transition: all 0.3s ease;
    border: 1px solid transparent; /* 确保没有默认边框 */
    align-items: stretch;
    position: relative;
}

.log-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: #f0f0f0; /* 悬停时显示一个浅色边框 */
}

.log-item:hover::before {
    opacity: 1;
}

/* 文章封面图片 */
.log-item-cover {
    width: 200px;
    height: 140px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px; /* 左侧圆角 */
    background: #f8f9fa !important; /* 强制浅灰色背景 */
    background-image: none !important; /* 强制移除任何背景图片 */
    z-index: 1; /* 确保图片层级高于其他背景 */
}

.log-cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 强制覆盖整个容器 */
    object-position: center !important; /* 强制居中显示 */
    transition: all 0.4s ease;
    display: block !important; /* 强制块级显示 */
    position: absolute !important; /* 强制绝对定位 */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important; /* 强制移除边距 */
    padding: 0 !important; /* 强制移除内边距 */
    border: none !important; /* 强制移除边框 */
    outline: none !important; /* 强制移除轮廓 */
    box-sizing: border-box !important; /* 强制盒模型 */
    z-index: 2; /* 确保图片在最上层 */
}

.log-item:hover .log-cover-img {
    transform: scale(1.1);
    filter: brightness(1.1); /* 稍微提亮图片 */
}

/* 完全移除悬停时的覆盖层，避免白色区域 */
.log-item-cover::after,
.log-item-cover::before {
    display: none !important; /* 完全禁用所有伪元素 */
}

/* 确保悬停时图片容器无额外背景 */
.log-item:hover .log-item-cover {
    background: #f8f9fa !important; /* 保持浅灰色背景 */
    background-image: none !important; /* 强制移除任何背景图片 */
}

/* 强制移除任何可能的白色背景 */
.log-item:hover .log-item-cover,
.log-item-cover:hover {
    background-color: #f8f9fa !important;
    background: #f8f9fa !important;
    background-image: none !important;
    background-size: auto !important;
    background-position: initial !important;
    background-repeat: no-repeat !important;
}章内容区域 */
.log-item-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* 文章标题 */
.log-item-title {
    margin: 0 0 12px 0;
    font-size: 1.0rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-color);
}

.log-title-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.log-title-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #9b59b6);
    transition: width 0.3s ease;
}

.log-title-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.log-title-link:hover::after {
    width: 100%;
}

/* 文章摘要 */
.log-item-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章元信息 */
.log-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1px; 
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.log-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgb(201 207 211 / 10%);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.log-meta-item:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.log-meta-separator {
    color: var(--border-color);
    margin: 0 4px;
}

/* 文章标签 */
.log-item-tags {
    margin-top: auto;
}

.log-item-tags .tags {
    padding: 2px 12px;
    margin: 0 8px 6px 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.log-item-tags .tags::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.log-item-tags .tags:hover {
    background: linear-gradient(135deg, var(--primary-color), #9b59b6);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.log-item-tags .tags:hover::before {
    left: 100%;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.pagination .current {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

/* 页脚 */
.blog-footer {
    margin-left: var(--sidebar-width);
    background-color: #f8f9fa;
    border-top: 1px solid var(--light-gray);
    padding: 30px 0;
    position: relative;
    z-index: 1;
    clear: both;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--content-padding);
    text-align: center;
}

.footer-custom-content {
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-search {
        max-width: 250px; /* 增加移动端搜索框宽度 */
        margin: 0 10px;
        flex: 1; /* 让搜索框占据可用空间 */
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input[type="text"] {
        width: 100%;
        height: 35px;
        padding: 0 40px 0 15px; /* 为搜索按钮留出空间 */
        font-size: 13px;
        border-radius: 18px;
    }
    
    .search-button {
        right: 6px; /* 调整移动端搜索按钮位置 */
        width: 26px;
        height: 26px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.sidebar-open {
        transform: translateX(0); /* 移动端不移动主内容 */
    }
    
    .blog-footer {
        margin-left: 0;
        width: 100%;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .log-item {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .log-item-cover {
        width: 100%; /* 移动端全宽显示 */
        height: 200px; /* 增加高度 */
        border-radius: 8px 8px 0 0; /* 顶部圆角 */
        background: #f8f9fa; /* 浅灰色背景 */
    }
    
    .log-cover-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        position: absolute; /* 绝对定位确保完全覆盖 */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .log-item-content {
        padding: 20px;
    }
    
    .log-item-title {
        font-size: 1.2rem;
    }
    
    .log-item-meta {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .top-navbar-content {
        padding: 0 15px;
    }
    
    .navbar-search {
        max-width: 150px;
        margin: 0 8px;
    }
    
    .navbar-search .search-box input {
        height: 32px;
        font-size: 13px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .log-item-content {
        padding: 16px;
    }
    
    .log-item-title {
        font-size: 0.9rem;
    }
    
    .log-item-meta {
        gap: 0px;
    }
    
    .log-meta-item {
        align-self: flex-start;
    }
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 幻灯片样式 */
.slideshow-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.mySlides {
    display: none;
    position: relative;
}

.mySlides.active {
    display: block;
}

.mySlides img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.slideshow-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--text-white);
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--text-white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.slideshow-prev {
    left: 10px;
}

.slideshow-next {
    right: 10px;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(0,0,0,0.8);
}

/* 侧边栏导航样式补充 */
.sidebar-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav-list > li {
    margin-bottom: -10px;
}

.sidebar-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 350;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.current {
    background-color: var(--primary-blue-dark);
    transform: translateX(4px);
}

.sidebar-submenu {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-submenu li {
    margin-bottom: 0;
}

.sidebar-submenu .sidebar-nav-link {
    padding: 8px 16px 8px 32px;
    font-size: 13px;
    background-color: transparent;
}

.sidebar-submenu .sidebar-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

/* 主题切换按钮特殊样式 */
#theme-toggle {
    cursor: pointer;
}

#theme-toggle:hover {
    background-color: var(--primary-blue-dark);
}

/* 加载动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-item {
    animation: slideInUp 0.6s ease-out;
}

.log-item:nth-child(even) {
    animation-delay: 0.1s;
}

.log-item:nth-child(3n) {
    animation-delay: 0.2s;
}

/* 暗色主题支持 */
[data-theme="dark"] {
    --card-bg: #2a2a2a;
    --card-border: #404040;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --hover-bg: #333333;
    --white: #1a1a1a;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --light-gray: #333333;
}

[data-theme="dark"] .canvas-background {
    opacity: 0.2;
}

[data-theme="dark"] .content-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
}

[data-theme="dark"] .log-item {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

[data-theme="dark"] .log-meta-item {
    background: rgba(52, 152, 219, 0.2);
}

[data-theme="dark"] .log-meta-item:hover {
    background: rgba(52, 152, 219, 0.3);
}

[data-theme="dark"] .search-results {
    background-color: #2a2a2a;
    border: 1px solid #333333;
}

[data-theme="dark"] .search-result-item:hover {
    background-color: #333333;
}

[data-theme="dark"] .blog-footer {
    background-color: #2a2a2a;
    border-top-color: #333333;
}



/* ===== 文章详情页样式 ===== */

/* 文章详情页容器 */
.log-detail {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

/* 文章详情页头部 */
.log-detail-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(155, 89, 182, 0.05) 100%);
}

.log-detail-title {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.log-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.log-detail-meta .log-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgb(185 213 231 / 10%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.log-detail-meta .log-meta-item:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.log-detail-meta .log-meta-item svg {
    opacity: 0.7;
}

/* 文章详情页内容 */
.log-detail-content {
    padding: 30px;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-color);
}

/* 文章详情页标签 */
.log-detail-tags {
    padding: 0 30px 30px;
    border-bottom: 1px solid var(--border-color);
}

.log-detail-tags .tags {
    display: inline-block;
    padding: 8px 10px;
    margin: 0 10px 10px 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.log-detail-tags .tags::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.log-detail-tags .tags:hover {
    background: linear-gradient(135deg, var(--primary-color), #9b59b6);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.log-detail-tags .tags:hover::before {
    left: 100%;
}

/* 文章导航 */
.log-navigation {
    padding: 20px 30px;
    background: rgba(248, 249, 250, 0.5);
}

.log-navigation .prev-next {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.log-navigation .prev-next a {
    flex: 1;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-navigation .prev-next a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ===== 评论区域样式 ===== */

/* 评论区域容器 */
.comments-section {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

/* 评论头部 */
.comments-header {
    padding: 6px 4px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(155, 89, 182, 0.05) 100%);
}

.comments-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-header h3::before {
    font-size: 1.0rem;
}

/* 评论表单 */
.comment-form-wrapper {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(248, 249, 250, 0.3);
}

.comment-form {
    max-width: 100%;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
    outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .form-row {
    display: flex;
    gap: 15px;
}

.comment-form .form-row .form-group {
    flex: 1;
}

.comment-form .submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #9b59b6);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-form .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.comment-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.comment-form .submit-btn:hover::before {
    left: 100%;
}

/* 评论列表 */
.comments-list {
    padding: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.comment-item:hover .comment-avatar img {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

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

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.comment-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.comment-text {
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-reply-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-reply-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 子评论 */
.comment-children {
    margin-top: 20px;
    padding-left: 30px;
    border-left: 2px solid rgba(52, 152, 219, 0.2);
}

.comment-children .comment-item {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

/* 侧边栏评论头像修复 */
.sidebar-widgets .widget .comment-avatar,
.sidebar-widgets .widget img[src*="avatar"],
.sidebar-widgets .widget img[src*="gravatar"] {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.sidebar-widgets .widget .comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-widgets .widget .comment-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

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

.sidebar-widgets .widget .comment-author {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.sidebar-widgets .widget .comment-excerpt {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .log-detail-header {
        padding: 8px;
    }
    
    .log-detail-title {
        font-size: 1.1rem;
    }
    
    .log-detail-meta {
        gap: 4px;
        align-items: center;
    }
    
    .log-detail-content {
        padding: 20px;
    }
    
    .log-detail-tags {
        padding: 0 20px 4px;
    }
    
    .log-navigation {
        padding: 15px 20px;
    }
    
    .log-navigation .prev-next {
        flex-direction: column;
        gap: 10px;
    }
    
    .comments-header {
        padding: 20px;
    }
    
    .comment-form-wrapper {
        padding: 20px;
    }
    
    .comments-list {
        padding: 20px;
    }
    
    .comment-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .comment-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .comment-children {
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .log-detail-title {
        font-size: 1.3rem;
    }
    
    .log-detail-content {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-widgets .widget .comment-avatar,
    .sidebar-widgets .widget img[src*="avatar"],
    .sidebar-widgets .widget img[src*="gravatar"] {
        width: 35px !important;
        height: 35px !important;
    }
}



/* ===== 侧边栏评论区域优化样式 ===== */

/* 紧凑型评论信息样式 */
.comment-info-compact {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    margin-bottom: 8px;
}

.comment-info-compact:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-compact-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.comment-compact-avatar {
    width: 24px;
    height: 24px;
    border-radius: 25%;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-compact-meta {
    display: block;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.comment-compact-name {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-compact-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.comment-compact-content {
    font-size: 0.8rem;
    line-height: 1.4;
}

.comment-compact-content a {
    color: var(--text-secondary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.comment-compact-content a:hover {
    color: var(--primary-color);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .comment-compact-avatar {
        width: 20px;
        height: 20px;
    }
    
    .comment-compact-name {
        font-size: 0.75rem;
    }
    
    .comment-compact-time {
        font-size: 0.65rem;
    }
    
    .comment-compact-content {
        font-size: 0.75rem;
    }
}


/* ===== 美化搜索框样式 ===== */

/* 顶部导航栏搜索框 */
.navbar-search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
    z-index: 100; /* 确保搜索框在Canvas上方 */
}

.search-box {
    position: relative;
    width: 100%;
    z-index: 101; /* 确保搜索框在Canvas上方 */
}

.search-box input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 0 20px 0 45px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9); /* 增加不透明度 */
    color: #333333; /* 改为深色文字 */
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 添加阴影增强可见性 */
}

.search-box input[type="text"]::placeholder {
    color: #666666; /* 深色占位符文字 */
    font-weight: 300;
}

.search-box input[type="text"]:focus {
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.95); /* 聚焦时更不透明 */
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666; /* 深色图标 */
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 102;
    font-size: 16px;
}

.search-box:focus-within .search-icon {
    color: #3498db;
    transform: translateY(-50%) scale(1.1);
}

/* 黑色主题下的搜索框样式 */
.dark-theme .search-box input[type="text"] {
    background: rgba(45, 52, 54, 0.9);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-theme .search-box input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .search-box input[type="text"]:focus {
    background: rgba(45, 52, 54, 0.95);
    border-color: #3498db;
}

.dark-theme .search-icon {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .search-box:focus-within .search-icon {
    color: #3498db;
}

/* 搜索结果下拉框 */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
    z-index: 1000;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-results.show {
    display: block;
    animation: searchResultsSlideIn 0.3s ease-out;
}

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

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.search-result-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.search-result-excerpt {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* 侧边栏搜索框美化 */
.widget .search {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget .search:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 0 3px rgba(52, 152, 219, 0.1),
        0 4px 12px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.widget .search::placeholder {
    color: #adb5bd;
    font-weight: 300;
}

/* 搜索按钮美化 */
.widget input[type="submit"] {
    margin-top: 10px;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.widget input[type="submit"]:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.widget input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* 搜索框动画效果 */
@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.search-pulse {
    animation: searchPulse 1.5s infinite;
}

/* 搜索建议标签 */
.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0 20px;
}

.search-suggestion-tag {
    padding: 4px 12px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.search-suggestion-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* ===== 评论区域优化样式 ===== */

/* 评论区域容器 */
.comments-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid #e8ecef;
}

/* 评论标题 */
.comments-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    border-bottom: 1px solid #e8ecef;
}

.comments-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 评论表单区域 */
.comment-form-wrapper {
    padding: 30px;
    background: #ffffff;
}

/* 评论输入框优化 */
.log_comment {
    width: 100% !important;
    min-height: 120px !important;
    padding: 20px !important;
    border: 2px solid #e8ecef !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #2c3e50 !important;
    background: #ffffff !important;
    resize: vertical !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.log_comment:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.1) !important,
        0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.log_comment::placeholder {
    color: #adb5bd !important;
    font-weight: 300 !important;
}

/* 评论信息输入框 */
.comment-info {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
}

.comment-name,
.comment-mail {
    flex: 1 !important;
    min-width: 200px !important;
    padding: 12px 16px !important;
    border: 2px solid #e8ecef !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #2c3e50 !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.comment-name:focus,
.comment-mail:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.1) !important,
        0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 发布评论按钮优化 */
.com_submit_p {
    margin-top: 20px !important;
    text-align: right !important;
}

#comment_submit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 25px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

#comment_submit:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4) !important;
}

#comment_submit:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3) !important;
}

/* 评论列表区域 */
.comments-list {
    padding: 30px;
    background: #ffffff;
}

/* 评论项样式优化 */
.comment-item {
    display: flex !important;
    gap: 15px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    border: 1px solid #e8ecef !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.comment-item:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

/* 评论头像 */
.comment-avatar {
    flex-shrink: 0 !important;
}

.comment-avatar img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    object-fit: cover !important;
    transition: all 0.3s ease !important;
}

.comment-item:hover .comment-avatar img {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 评论内容 */
.comment-content {
    flex: 1 !important;
    min-width: 0 !important;
}

/* 评论头部信息 */
.comment-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
}

.comment-author {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    text-decoration: none !important;
}

.comment-author:hover {
    color: #3498db !important;
}

.comment-date {
    color: #6c757d !important;
    font-size: 13px !important;
    background: #e9ecef !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
}

/* 评论文本 */
.comment-text {
    color: #2c3e50 !important;
    line-height: 1.6 !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
}

/* 回复按钮 */
.comment-reply {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    background: #e9ecef !important;
    color: #6c757d !important;
    text-decoration: none !important;
    border-radius: 15px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
}

.comment-reply:hover {
    background: #3498db !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
}

.comment-reply::before {
    content: "↩️" !important;
    font-size: 10px !important;
}

/* 子评论样式 */
.comment-children {
    margin-top: 20px !important;
    padding-left: 20px !important;
    border-left: 3px solid rgba(52, 152, 219, 0.2) !important;
    position: relative !important;
}

.comment-children::before {
    content: '' !important;
    position: absolute !important;
    left: -3px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 3px !important;
    background: linear-gradient(180deg, #3498db 0%, rgba(52, 152, 219, 0.1) 100%) !important;
}

.comment-children .comment-item {
    background: rgba(52, 152, 219, 0.05) !important;
    border-color: rgba(52, 152, 219, 0.1) !important;
}

.comment-children .comment-item:hover {
    background: rgba(52, 152, 219, 0.08) !important;
}

/* 评论分页 */
.comment-pagination {
    text-align: center !important;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e8ecef !important;
}

.comment-pagination a,
.comment-pagination span {
    display: inline-block !important;
    padding: 8px 16px !important;
    margin: 0 4px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e8ecef !important;
}

.comment-pagination a:hover {
    background: #3498db !important;
    color: white !important;
    border-color: #3498db !important;
}

.comment-pagination .current {
    background: #3498db !important;
    color: white !important;
    border-color: #3498db !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 20px;
        border-radius: 12px;
    }
    
    .comments-header,
    .comment-form-wrapper,
    .comments-list {
        padding: 8px;
    }
    
    .comment-info {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .comment-name,
    .comment-mail {
        min-width: auto !important;
    }
    
    .comment-item {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
    }
    
    .comment-avatar {
        align-self: flex-start !important;
    }
    
    .comment-children {
        padding-left: 15px !important;
    }
    
    .log_comment {
        min-height: 100px !important;
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .comments-header h3 {
        font-size: 1.1rem;
    }
    
    .comment-avatar img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .comment-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    #comment_submit {
        width: 100% !important;
        padding: 12px 20px !important;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端隐藏左侧边栏 */
    .sidebar {
        transform: translateX(-100%); /* 移动端默认隐藏 */
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0); /* 展开 */
    }
    
    /* 移动端主内容区域不需要左边距 */
    .main-content {
        margin-left: 0 !important;
    }
    
    /* 移动端显示菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* 移动端搜索框样式调整 */
    .navbar-search {
        max-width: 250px; /* 增加移动端搜索框宽度 */
        margin: 0 10px;
    }
    
    .navbar-search .search-box input {
        width: 100%;
        height: 32px;
        padding: 0 40px 0 12px;
        font-size: 13px;
    }
    
    .search-button {
        width: 24px;
        height: 24px;
        right: 6px;
    }
    
    .search-button::before {
        font-size: 10px;
    }
}

.search-result-item {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .navbar-search {
        display: none; /* 在小屏幕上隐藏顶部搜索框 */
    }
}

/* 搜索加载动画 */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #7f8c8d;
}

.search-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: searchSpin 1s linear infinite;
    margin-right: 10px;
}

@keyframes searchSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 无搜索结果样式 */
.search-no-results {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.search-no-results::before {
    content: '🔍';
    display: block;
    font-size: 2em;
    margin-bottom: 10px;
    opacity: 0.5;
}



/* ===== 图片加载和错误处理 ===== */

/* 图片加载中的占位样式 */
.log-cover-img[src=""], 
.log-cover-img:not([src]), 
.log-cover-img[src="#"] {
    background: #f8f9fa; /* 浅灰色背景 */
    position: relative;
}

.log-cover-img[src=""]:before, 
.log-cover-img:not([src]):before, 
.log-cover-img[src="#"]:before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #6c757d;
    z-index: 1;
}

/* 图片加载失败时的样式 */
.log-cover-img:broken,
.log-cover-img[alt]:after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 4px;
    max-width: 80%;
    word-wrap: break-word;
    z-index: 1;
}

/* 确保图片容器始终有背景 */
.log-item-cover {
    background: #f8f9fa; /* 浅灰色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 当没有图片时显示默认图标 */
.log-item-cover:empty:before,
.log-item-cover.no-image:before {
    content: '📝';
    font-size: 3rem;
    color: #6c757d;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* 图片懒加载效果 */
.log-cover-img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.log-cover-img[data-src].loaded {
    opacity: 1;
}

/* 图片加载动画 */
@keyframes imageLoad {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.log-cover-img.fade-in {
    animation: imageLoad 0.5s ease-out;
}

/* 响应式图片优化 */
@media (max-width: 768px) {
    .log-item-cover:empty:before,
    .log-item-cover.no-image:before {
        font-size: 2.5rem;
    }
    
    .log-cover-img[alt]:after {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .log-item-cover:empty:before,
    .log-item-cover.no-image:before {
        font-size: 2rem;
    }
    
    .log-cover-img[alt]:after {
        font-size: 11px;
        padding: 6px;
    }
}



/* 置顶图标样式 - 精致版 */
.log-topflg-icon {
    display: inline-block;
    position: relative;
    margin-right: 6px;
    font-size: 16px;
    color: #ff4757;
    vertical-align: middle;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(255, 71, 87, 0.2));
}

.log-topflg-icon:hover {
    transform: scale(1.15);
    color: #ff3742;
    filter: drop-shadow(0 2px 4px rgba(255, 71, 87, 0.4));
}

/* 为置顶图标添加轻微的脉冲动画 */
.log-topflg-icon {
    animation: topIconPulse 2s ease-in-out infinite;
}

@keyframes topIconPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .log-topflg-icon {
        font-size: 14px;
        margin-right: 4px;
    }
}

/* 暗色主题适配 */
.dark-theme .log-topflg-icon {
    color: #ff6b7a;
    filter: drop-shadow(0 1px 2px rgba(255, 107, 122, 0.3));
}

.dark-theme .log-topflg-icon:hover {
    color: #ff5722;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 122, 0.5));
}

/* 置顶标题样式优化 */
.log-item-title {
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.log-item-title .log-title-link {
    flex: 1;
}



/* ===== 验证码样式 ===== */

/* 验证码输入区域 */
.comment-verify {
    margin-top: 20px !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.verify-code-wrapper label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 14px !important;
}

.verify-code-group {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.verify-code-input {
    flex: 1 !important;
    min-width: 120px !important;
    max-width: 200px !important;
    padding: 10px 12px !important;
    border: 2px solid #e8ecef !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    text-align: center !important;
    letter-spacing: 2px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
}

.verify-code-input:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

.btn-refresh-code {
    padding: 8px 12px !important;
    background: #6c757d !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
}

.btn-refresh-code:hover {
    background: #5a6268 !important;
    transform: rotate(180deg) !important;
}

/* 验证码图片样式 */
.verify-code-group img,
.verify-code-modal-wrapper img {
    border: 2px solid #e8ecef !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    padding: 4px !important;
}

.verify-code-group img:hover,
.verify-code-modal-wrapper img:hover {
    border-color: #3498db !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2) !important;
}

/* 模态框样式优化 */
.verify-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1050 !important;
}

.verify-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: -1 !important;
}

.modal-dialog {
    position: relative !important;
    max-width: 500px !important;
    width: 90% !important;
    margin: 0 auto !important;
}

.modal-content {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 25px !important;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.modal-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.modal-header .close {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.modal-header .close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.modal-body {
    padding: 25px !important;
}

.modal-body p {
    margin-bottom: 20px !important;
    color: #2c3e50 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.verify-code-modal-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.verify-code-modal-wrapper input {
    flex: 1 !important;
    min-width: 120px !important;
    max-width: 200px !important;
    padding: 12px 15px !important;
    border: 2px solid #e8ecef !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    text-align: center !important;
    letter-spacing: 2px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
}

.verify-code-modal-wrapper input:focus {
    border-color: #3498db !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

.modal-footer {
    padding: 20px 25px !important;
    background: #f8f9fa !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.modal-footer .btn {
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.btn-secondary {
    background: #6c757d !important;
    color: white !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
}

/* 验证码错误提示 */
.verify-error {
    color: #e74c3c !important;
    font-size: 13px !important;
    margin-top: 8px !important;
    padding: 8px 12px !important;
    background: rgba(231, 76, 60, 0.1) !important;
    border-radius: 4px !important;
    border-left: 3px solid #e74c3c !important;
    display: none !important;
}

.verify-error.show {
    display: block !important;
    animation: errorSlideIn 0.3s ease-out !important;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-verify {
        padding: 15px !important;
        margin-top: 15px !important;
    }
    
    .verify-code-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    .verify-code-input {
        max-width: none !important;
    }
    
    .modal-dialog {
        width: 95% !important;
        margin: 20px auto !important;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px !important;
    }
    
    .verify-code-modal-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .verify-code-modal-wrapper input {
        max-width: none !important;
    }
    
    .modal-footer {
        flex-direction: column !important;
    }
    
    .modal-footer .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0 !important;
    }
}



/* ===== 简洁优雅的页脚样式 ===== */

/* 页脚主容器 */
.blog-footer {
    background: #ffffff;
    border-top: 1px solid #e8ecef;
    padding: 30px 0 20px;
    margin-top: 40px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 页脚底部区域 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    flex: 1;
    text-align: left;
}

.footer-copyright p {
    margin: 4px 0;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-copyright a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #2980b9;
}

/* 社交媒体和友情链接区域 */
.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

/* 文字链接样式 */
.footer-social .social-link:not(:has(i)):not(:has(img)) {
    width: auto;
    height: auto;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f1f3f4;
    border-color: #dee2e6;
}

.footer-social .social-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

/* 图片链接样式 */
.footer-social .social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.footer-social .social-link:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* 图标字体样式 */
.footer-social .social-link i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover i {
    transform: scale(1.1);
}

/* 移除所有列表样式的小黑点 */
.footer-links,
.footer-contact,
.footer-stats,
ul.footer-links,
ul.footer-contact,
ul.footer-stats {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li,
.footer-contact li,
.footer-stats li,
ul.footer-links li,
ul.footer-contact li,
ul.footer-stats li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li::before,
.footer-contact li::before,
.footer-stats li::before,
ul.footer-links li::before,
ul.footer-contact li::before,
ul.footer-stats li::before {
    display: none !important;
    content: none !important;
}

.footer-links li::after,
.footer-contact li::after,
.footer-stats li::after,
ul.footer-links li::after,
ul.footer-contact li::after,
ul.footer-stats li::after {
    display: none !important;
    content: none !important;
}

/* 强制移除所有可能的列表标记 */
.footer-main ul,
.footer-main ol,
.footer-main li {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    list-style-position: outside !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 暗色主题适配 */
[data-theme="dark"] .blog-footer {
    background: #1a1a1a;
    border-top-color: #333;
}

[data-theme="dark"] .footer-copyright p {
    color: #bdc3c7;
}

[data-theme="dark"] .footer-copyright a {
    color: #3498db;
}

[data-theme="dark"] .footer-social .social-link {
    background: #2c3e50;
    border-color: #34495e;
    color: #bdc3c7;
}

[data-theme="dark"] .footer-social .social-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.dark-theme .blog-footer {
    background: #1a1a1a;
    border-top-color: #333;
}

.dark-theme .footer-copyright p {
    color: #bdc3c7;
}

.dark-theme .footer-copyright a {
    color: #3498db;
}

.dark-theme .footer-social .social-link {
    background: #2c3e50;
    border-color: #34495e;
    color: #bdc3c7;
}

.dark-theme .footer-social .social-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-footer {
        padding: 25px 0 15px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-social .social-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .footer-social .social-link i {
        font-size: 14px;
    }
    
    .footer-social .social-link img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-social {
        gap: 8px;
    }
    
    .footer-social .social-link {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .footer-social .social-link i {
        font-size: 13px;
    }
    
    .footer-social .social-link img {
        width: 18px;
        height: 18px;
    }
}



/* 评论样式修复 */
#comments {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

#comment-place {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.commentform {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-info input {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--white);
}

.comment-info input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.com_control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100px;
    resize: vertical;
}

.com_control:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.com_code {
    display: flex;
    align-items: center;
    gap: 10px;
}

.com_code input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--white);
}

.com_code img {
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
}

.submit {
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit:hover {
    background-color: var(--primary-blue-dark);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.comment-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 20px;
}

.comment-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.comment-meta a {
    color: var(--text-light);
    text-decoration: none;
}

.comment-meta a:hover {
    color: var(--primary-blue);
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.comment-reply-link {
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-children {
    list-style: none;
    padding-left: 40px;
    margin-top: 20px;
}

.comment-children li {
    margin-top: 15px;
    border-top: 1px dashed var(--light-gray);
    padding-top: 15px;
}

/* 评论分页样式 */
.comment-page {
    text-align: center;
    margin-top: 30px;
}

.comment-page a,
.comment-page span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.comment-page a:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
}

.comment-page .active {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
}

/* 评论回复表单 */
#comment-post {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

#comment-post h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

#comment-post .commentform {
    gap: 10px;
}

#comment-post .comment-info input,
#comment-post .com_control,
#comment-post .com_code input {
    background-color: var(--light-gray);
}

#comment-post .submit {
    background-color: var(--primary-blue-dark);
}

#comment-post .submit:hover {
    background-color: var(--primary-blue);
}

/* 评论成功提示 */
.comment-success {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

/* 评论错误提示 */
.comment-error {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

/* 评论验证码错误提示 */
.comment-captcha-error {
    color: orange;
    font-weight: bold;
    margin-top: 10px;
}

/* 评论区响应式调整 */
@media (max-width: 768px) {
    #comments {
        padding: 15px;
    }

    #comment-place {
        font-size: 20px;
    }

    .comment-info {
        flex-direction: column;
    }

    .comment-info input {
        min-width: unset;
    }

    .comment-children {
        padding-left: 20px;
    }
}




/* 评论区域样式 */
.comment-zone {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-top: 20px;
}

.comment-form-wrapper {
    margin-bottom: 20px;
}

.comment-form-wrapper h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.comment-form-wrapper .form-group {
    margin-bottom: 15px;
}

.comment-form-wrapper label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.comment-form-wrapper input[type="text"],
.comment-form-wrapper input[type="email"],
.comment-form-wrapper input[type="url"],
.comment-form-wrapper textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.comment-form-wrapper input[type="text"]:focus,
.comment-form-wrapper input[type="email"]:focus,
.comment-form-wrapper input[type="url"]:focus,
.comment-form-wrapper textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.comment-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form-wrapper .submit {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form-wrapper .submit:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.comment-cancle {
    display: none;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
}

.comment-cancle:hover {
    text-decoration: underline;
}

/* 评论列表样式 */
.comments-list {
    margin-top: 30px;
}

.comment-list-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

.comment-content-wrapper {
    flex-grow: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 10px;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-reply-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-children {
    margin-top: 20px;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.comment-children .comment-list-item {
    margin-top: 15px;
}

/* 验证码模态框 */
.modal-dialog {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* 半透明背景 */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 20px 0;
}

.modal-footer {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.modal-footer button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.modal-footer button:hover {
    background-color: var(--primary-blue-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .top-navbar-content {
        padding: 0 15px;
    }

    .navbar-search {
        max-width: 250px;
    }

    .log-item {
        flex-direction: column;
    }

    .log-item-cover {
        width: 100%;
        height: 180px;
        border-radius: 8px 8px 0 0;
    }

    .log-item-content {
        padding: 15px;
    }

    .comment-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-avatar {
        margin-bottom: 10px;
    }

    .comment-children {
        padding-left: 15px;
    }
}


