  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 10px;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

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

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.2s;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.weibo-btn:hover {
  background: rgba(255, 130, 0, 0.1);
  border-color: #ff8200;
}

.zhihu-btn:hover {
  background: rgba(0, 132, 255, 0.1);
  border-color: #0084ff;
}

.douban-btn:hover {
  background: rgba(46, 150, 61, 0.1);
  border-color: #2e963d;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

.footer-credits a {
  color: var(--text-light);
}

.footer-credits a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .site-content {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
  
  .right-sidebar {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .top-bar-container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px var(--gap);
  }
  
  .top-bar-site-name {
    order: 3;
    width: 100%;
    margin: 10px 0;
    text-align: center;
  }
  
  .site-name-main {
    font-size: 20px;
  }
  
  .site-name-sub {
    font-size: 12px;
  }
  
  .top-bar-links {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  
  .left-sidebar,
  .right-sidebar {
    position: static;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --gap: 15px;
    --sidebar-width: 100%;
  }
  
  .site-content-wrapper {
    padding: 0 10px;
  }
  
  .top-bar-logo {
    display: none;
  }
  
  .top-bar-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .top-link {
    width: 100%;
    text-align: center;
  }
  
  .stats-list {
    grid-template-columns: 1fr;
  }
  
  .post-title {
    font-size: 18px;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* 工具类 */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }
.p-5 { padding: 30px; }

.bg-light { background: var(--bg-light); }
.bg-white { background: white; }

.rounded { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }

.shadow { box-shadow: var(--shadow); }
/* ==================== */
/* 移动端增强优化 */
/* ==================== */

/* 移动端基础优化 */
@media (max-width: 768px) {
  /* 基础字体增大 */
  body {
    font-size: 16px;
    line-height: 1.7;
  }
  
  /* 标题优化 */
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
  
  /* 容器优化 */
  .site-content-wrapper {
    padding: 0 12px;
  }
  
  /* 卡片优化 */
  .card, .post-card, .category-card {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
  }
  
  /* 按钮优化 - 增大触摸目标 */
  .btn, .top-link, .social-btn, .section-nav-link {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  /* 导航链接优化 */
  .section-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
  }
  
  .section-nav-icon {
    font-size: 20px;
    margin-right: 10px;
  }
  
  .section-nav-text {
    font-size: 16px;
  }
  
  /* 分类页面优化 */
  .category-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* 文章列表优化 */
  .post-list {
    grid-template-columns: 1fr;
  }
  
  .post-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  .post-excerpt {
    font-size: 15px;
    line-height: 1.6;
  }
  
  /* 视频容器优化 */
  .video-container {
    margin: 20px 0;
  }
  
  video {
    max-width: 100%;
    height: auto;
  }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  
  .site-name-main {
    font-size: 18px;
  }
  
  .site-name-sub {
    font-size: 11px;
  }
  
  /* 隐藏非必要元素 */
  .top-bar-logo {
    display: none;
  }
  
  /* 简化页脚 */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 25px;
  }
  
  /* 社交媒体按钮垂直排列 */
  .footer-social {
    flex-direction: column;
    align-items: center;
  }
  
  .social-btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  /* 文章元数据优化 */
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .post-date, .post-category, .post-tags {
    font-size: 13px;
  }
}

/* 平板优化 */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-content {
    grid-template-columns: 250px 1fr;
    gap: 25px;
  }
  
  .post-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  /* 移除悬停效果，增强点击反馈 */
  .btn:hover, .top-link:hover, .social-btn:hover {
    transform: none;
    opacity: 0.9;
  }
  
  .section-nav-link:active {
    background: rgba(67, 97, 238, 0.1);
    transform: scale(0.98);
  }
  
  /* 增大链接点击区域 */
  a {
    padding: 2px 4px;
    margin: -2px -4px;
  }
}

/* 防止移动端缩放 */
input, select, textarea {
  font-size: 16px; /* 防止iOS缩放 */
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
  html {
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    overflow-x: hidden;
  }
}

/* 移动端性能优化 */
@media (max-width: 768px) {
  img, video {
    max-width: 100%;
    height: auto;
  }
  
  /* 延迟加载优化 */
  img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  img[loading="lazy"].loaded {
    opacity: 1;
  }
}

/* ===== 左侧栏浅蓝色背景 ===== */
.left-sidebar {
    background-color: #e6f2ff;  /* 浅蓝色 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 左侧栏内容样式 */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 版块卡片 */
.section-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 版块边框颜色 */
.section-chenshi {
    border-left: 4px solid #ff6b6b;  /* 红色 - 尘世清文 */
}

.section-shiguang {
    border-left: 4px solid #1dd1a1;  /* 绿色 - 拾光留心 */
}

.section-guangying {
    border-left: 4px solid #ff9ff3;  /* 粉色 - 光影风华 */
}

.section-xunxin {
    border-left: 4px solid #54a0ff;  /* 蓝色 - 寻心问道 */
}

.section-social {
    border-left: 4px solid #ff8200;  /* 橙色 - 社交媒体 */
}

/* 版块标题 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .icon {
    font-size: 18px;
}

/* 版块描述 */
.section-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* 版块统计 */
.section-stats {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

/* 版块链接 */
.section-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.section-link:hover {
    background: #e9ecef;
    text-decoration: none;
}

/* ===== 右侧栏布局调整 ===== */
.right-sidebar {
    padding: 20px;
}

/* 最新更新卡片 */
.latest-update-card {
    background: white;
    border: 2px solid #5ac8fa;  /* 蓝色边框 */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(90, 200, 250, 0.1);
}

.latest-update-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-update-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .left-sidebar {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-card {
        padding: 12px;
    }
    
    .right-sidebar {
        padding: 15px;
    }
}

/* 访问统计样式 */
.visitor-stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.visitor-stats-section .stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.visitor-stats-section .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.visitor-stats-section .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.visitor-stats-section .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visitor-stats-section .stats-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.visitor-stats-section .update-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6c757d;
}

.visitor-stats-section .time-icon {
    font-size: 0.9rem;
}

.visitor-stats-section .time-text {
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .visitor-stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .visitor-stats-section .stat-item {
        padding: 12px;
    }
    
    .visitor-stats-section .stat-number {
        font-size: 1.5rem;
    }
}

/* 高亮今日浏览 */
.visitor-stats-section .stat-item:nth-child(2) {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
}

.visitor-stats-section .stat-item:nth-child(2):hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.visitor-stats-section .stat-item:nth-child(2) .stat-number {
    color: #1976d2;
}

/* 高亮总浏览量 */
.visitor-stats-section .stat-item:nth-child(1) {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #ce93d8;
}

.visitor-stats-section .stat-item:nth-child(1):hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.visitor-stats-section .stat-item:nth-child(1) .stat-number {
    color: #7b1fa2;
}


/* 综合专业版网格布局 */
.stats-grid.comprehensive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 12px;
    margin: 20px 0;
}

/* 统计项目基础样式 */
.stat-item {
    background: linear-gradient(135deg, var(--stat-color, #f8f9fa), #ffffff);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, #007bff);
    opacity: 0.7;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--stat-color, #007bff);
}

/* 图标样式 */
.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* 数字样式 */
.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin: 4px 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--stat-color, #007bff);
}

/* 标签样式 */
.stat-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

/* 不同项目的颜色定义 */
.stat-item.total-views { --stat-color: #6f42c1; }      /* 紫色 */
.stat-item.weekly-views { --stat-color: #20c997; }    /* 绿色 */
.stat-item.avg-duration { --stat-color: #fd7e14; }    /* 橙色 */
.stat-item.mobile-ratio { --stat-color: #17a2b8; }    /* 青色 */
.stat-item.article-count { --stat-color: #6c757d; }   /* 灰色 */
.stat-item.category-count { --stat-color: #6c757d; }  /* 灰色 */
.stat-item.avg-article-views { --stat-color: #e83e8c; } /* 粉色 */
.stat-item.hottest-category { --stat-color: #dc3545; } /* 红色 */

/* 最热分类特殊样式 */
.stat-item.hottest-category .stat-number {
    font-size: 16px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 更新时间样式 */
.stats-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.update-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 12px;
}

.time-icon {
    font-size: 14px;
}

.time-text {
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .stats-grid.comprehensive-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
    }
}

@media (max-width: 768px) {
    .stats-grid.comprehensive-grid {
        gap: 10px;
    }
    
    .stat-item {
        padding: 14px;
        min-height: 90px;
    }
    
    .stat-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .stats-grid.comprehensive-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
    }
    
    .stat-item {
        min-height: 80px;
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-item.updated {
    animation: statPulse 0.5s ease;
}

/* 加载状态 */
.stat-item.loading .stat-number {
    color: transparent;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    min-width: 40px;
    min-height: 24px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 趋势指示器（可选功能） */
.trend-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.trend-up {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.trend-down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.trend-stable {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* 简洁版访问统计样式（与网站风格一致） */

/* 统计列表布局 */
.stats-list {
    margin: 15px 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

/* 标签样式 */
.stat-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* 数值样式 */
.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

/* 更新时间样式 */
.stats-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.update-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 12px;
}

.time-icon {
    font-size: 12px;
}

.time-text {
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stat-row {
        padding: 8px 0;
    }
    
    .stat-label,
    .stat-value {
        font-size: 13px;
    }
    
    .stat-value {
        padding: 3px 8px;
        min-width: 50px;
    }
}

/* 更新版访问统计样式（按陛下要求） */

/* 统计列表布局 */
.stats-list {
    margin: 15px 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 8px;
    padding-right: 8px;
}

/* 标签样式 - 黑色字体，无底色 */
.stat-label {
    font-size: 14px;
    color: #000000;  /* 黑色字体 */
    font-weight: 500;
}

/* 数值样式 - 黑色字体，无底色 */
.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #000000;  /* 黑色字体 */
    /* 移除背景色 */
    padding: 0;
    border-radius: 0;
    min-width: 60px;
    text-align: right;
}

/* 更新时间样式 */
.stats-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.update-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;  /* 保持灰色，但这是次要信息 */
    font-size: 12px;
}

.time-icon {
    font-size: 12px;
}

.time-text {
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stat-row {
        padding: 8px 0;
    }
    
    .stat-label,
    .stat-value {
        font-size: 13px;
    }
    
    .stat-value {
        min-width: 50px;
    }
}