/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --secondary-color: #52c41a;
    --text-dark: #1a1a1a;
    --text-light: #595959;
    --text-muted: #8c8c8c;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-gray: #f5f5f5;
    --border-color: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
}

/* 性能优化 - 硬件加速（仅对需要动画的元素） */
.slide,
.photo-slide,
.slider-controls button {
    will-change: transform;
    transform: translateZ(0);
}

/* 平滑滚动 */
html {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    min-height: 100vh;
    background: #fafafa;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 背景动画层 - 简化版，减少性能消耗 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(64, 169, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(82, 196, 26, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

@keyframes ambientLight {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-3%, -3%) scale(1.02);
    }
    50% {
        transform: translate(0, -3%) scale(0.98);
    }
    75% {
        transform: translate(3%, 0%) scale(1.01);
    }
}

/* 背景装饰元素 - 简化版 */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-decorations .shape {
    position: absolute;
    opacity: 0.4;
}

/* 圆形装饰1 */
.bg-decorations .shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(24, 144, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

/* 圆形装饰2 */
.bg-decorations .shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(82, 196, 26, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

/* 圆形装饰3 */
.bg-decorations .shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    background: radial-gradient(circle, rgba(24, 144, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.bg-decorations .shape {
    position: absolute;
    opacity: 0.6;
}

/* 圆形装饰1 */
.bg-decorations .shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(64, 169, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* 圆形装饰2 */
.bg-decorations .shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(82, 196, 26, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

/* 圆形装饰3 */
.bg-decorations .shape:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    background: radial-gradient(circle, rgba(64, 169, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 头部样式 */
.header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 移动端导航栏灰色背景 */
@media (max-width: 768px) {
    .header {
        background: #f5f5f5;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .header-content {
        background: #f5f5f5;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.logo i {
    font-size: 20px;
    color: #333;
    margin-right: 8px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

/* 桌面端：隐藏菜单中的搜索框 */
.nav-menu .search-box-container {
    display: none;
}

/* 搜索框容器样式 */
.search-box-container {
    width: 100%;
}

/* 桌面端：显示工具栏中的搜索框 */
.header-tools .search-box {
    display: flex;
}

/* 移动端：隐藏桌面端搜索框 */
@media (max-width: 768px) {
    /* 隐藏nav中的搜索框 */
    .nav > .search-box {
        display: none;
    }
    
    /* 隐藏工具栏中的搜索框 */
    .header-tools .search-box {
        display: none;
    }
    
    /* 确保菜单中的搜索框容器在非激活状态下隐藏 */
    .nav-menu .search-box-container {
        display: none;
    }
    
    /* 菜单激活时显示搜索框 */
    .nav-menu.mobile-active .search-box-container {
        display: block;
    }
}

/* 电脑端：确保移动端元素不显示 */
@media (min-width: 769px) {
    /* 预留给未来使用 */
}

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

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    padding: 8px 16px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: #1890ff;
    background: transparent;
}

.nav-menu a.active {
    color: #1a1a1a;
    background: transparent;
}

.nav-menu > li > a i {
    font-size: 12px;
    margin-right: 5px;
}

/* 子菜单样式 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 150px;
    list-style: none;
    padding: 8px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 1000;
    margin-top: 10.45px;
    border-radius: 2px;
}

.has-submenu:hover .submenu {
    display: block;
}

/* 在父菜单和子菜单之间添加连接区域，防止鼠标移动时丢失hover */
.has-submenu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.submenu li {
    padding: 0;
    white-space: nowrap;
}

.submenu a {
    padding: 8px 16px;
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.submenu a:hover {
    background: transparent;
    color: #1890ff;
}

.submenu a i {
    display: none;
}

.search-box {
    display: flex;
    align-items: center;
    position: relative;
}

/* 桌面端搜索框定位 */
.desktop-search-box {
    margin-left: auto;
}

/* 搜索建议框 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.suggestions-header {
    padding: 10px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

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

.suggestion-item:hover {
    background: rgba(24, 144, 255, 0.06);
}

.suggestion-item i {
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

.suggestion-item.suggestion-history i {
    color: var(--text-muted);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-title {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

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

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.suggestion-category {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.suggestion-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.suggestion-empty i {
    font-size: 32px;
    opacity: 0.3;
    color: var(--text-muted);
}

.suggestion-item span {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

/* 搜索高亮 */
.search-highlight {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.4), rgba(255, 193, 7, 0.3));
    color: #333;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 600;
}

/* 搜索框 */
.search-box input {
    padding: 12px 40px 12px 18px;
    border: 1px solid #f0f0f0;
    background: #ffffff;
    border-radius: 10px;
    outline: none;
    width: 220px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-box input::placeholder {
    color: #bfbfbf;
}

.search-box input:focus {
    border-color: #1890ff;
    box-shadow: 0 2px 12px rgba(24, 144, 255, 0.12);
}

.search-box i {
    position: absolute;
    right: 14px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 14px;
    transition: all 0.3s ease;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
}

.search-box input:focus + i,
.search-box i:hover {
    color: #1890ff;
}

/* ==================== 用户菜单样式 ==================== */
.user-menu {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--primary-color), #40a9ff);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.4);
}

.user-dropdown {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.user-avatar-btn:hover {
    background: #e6f7ff;
    border-color: var(--primary-color);
}

.user-avatar-btn i:first-child {
    font-size: 24px;
    color: var(--primary-color);
}

.user-avatar-btn span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-avatar-btn i:last-child {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.user-dropdown:hover .user-avatar-btn i:last-child {
    transform: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid var(--border-color);
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.logout-item:hover {
    background: #fff1f0;
    color: #ff4d4f;
}

.logout-item:hover i {
    color: #ff4d4f;
}

/* ==================== 移动端底部导航栏美化设计 ==================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: none; /* 默认隐藏，移动端显示 */
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom); /* 适配iPhone X等有底部安全区域的设备 */
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 4px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.mobile-nav-item i {
    font-size: 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* 激活状态样式 */
.mobile-nav-item.active {
    color: #000;
    background: transparent;
    transform: scale(1);
}

.mobile-nav-item.active i {
    transform: scale(1);
    color: #000;
    font-weight: 600;
}

/* 悬停效果 */
.mobile-nav-item:hover {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.03);
    transform: scale(1.01);
}

.mobile-nav-item:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.1s ease;
}

.mobile-nav-item span {
    font-size: 10px;
    font-weight: 500;
    transition: all 0.25s ease;
    line-height: 1.2;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

.mobile-nav-item.active span {
    opacity: 1;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none; /* 默认隐藏，移动端显示 */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    border-radius: 6px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.mobile-menu-toggle:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

.mobile-menu-toggle i {
    font-size: 20px;
}

 /* 幻灯片推荐区样式 */
 .featured-slider {
     padding: 20px 0 0 0;
     margin-bottom: 20.55px;
     padding-bottom: 0;
     position: relative;
     left: 0;
     right: 0;
     width: 100%;
     max-width: 100%;
 }

.slider-wrapper {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    height: 480px;
    max-height: 60vh;
    margin: 0 auto 0 auto;
}

.slider-wrapper .slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    transform: translateX(0);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* 轮播图控制按钮 */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 20;
}

.slider-prev,
.slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* 轮播图指示点 - 隐藏 */
.slider-wrapper .slider-dots {
    display: none;
}

/* 使用媒体查询和相对单位优化响应式设计 */
@media (max-width: 1200px) {
    .slider-wrapper {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .slider-wrapper {
        height: 350px;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: 260px;
        max-height: 45vh;
    }
}

@media (max-width: 480px) {
    .slider-wrapper {
        height: 230px;
        max-height: 40vh;
    }
}


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

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 30px;
    color: white;
}

.slide-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-info p {
    font-size: 16px;
    opacity: 0.9;
}

 /* 主要内容区 */
 .main-content {
     padding: 0 0 30px 0;
     margin-top: 0;
 }

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 5px;
}

/* 文章列表区域 */
.articles-section {
    background: #ffffff;
    padding: 15px 20px 20px 20px;
    border-radius: 2px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    height: 869.47px;
    display: flex;
    flex-direction: column;
}

.articles-section .section-header {
    margin-bottom: 30px;
    margin-top: 0;
    padding: 0 0 0 0;
}

.articles-section .articles-list {
    padding: 0 0 12px 0;
}

.section-header {
    margin-bottom: 24px;
    padding: 0;
    position: relative;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: inline-block;
    margin: 0;
    letter-spacing: 0.5px;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    padding-left: 0;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 36px;
    height: 2px;
    background: #1890ff;
    border-radius: 0;
}

.section-header::after {
    content: '';
    position: absolute;
    left: 36px;
    bottom: -10px;
    right: 0;
    height: 1px;
    background: #e8e8e8;
    border-radius: 0;
}

.section-header h2 i {
    color: #1890ff;
    font-size: 24px;
    background: rgba(24, 144, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: #fafafa;
    padding: 6px;
    border-radius: 12px;
    position: relative;
}

/* 按钮样式 - 胶囊式设计 */
.tab-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #8c8c8c;
    font-weight: 500;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-btn .category-count {
    font-size: 12px;
    color: #bfbfbf;
    font-weight: 400;
}

.tab-btn.active {
    background: #ffffff;
    color: #1890ff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-btn.active .category-count {
    color: #60a5fa;
}

/* 不同类别的激活状态颜色 */
.tab-btn[data-category="software"].active {
    color: var(--primary-color);
}

.tab-btn[data-category="software"].active::after {
    background: var(--primary-color);
}

.tab-btn[data-category="tutorial"].active {
    color: var(--primary-color);
}

.tab-btn[data-category="tutorial"].active::after {
    background: var(--primary-color);
}

.tab-btn[data-category="resource"].active {
    color: var(--primary-color);
}

.tab-btn[data-category="resource"].active::after {
    background: var(--primary-color);
}

/* 文章列表样式（卡片式布局 - 左侧彩色块+右侧内容） */
.articles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

/* 新的文章卡片样式 - 左侧彩色块+右侧内容 */
.article-card {
    display: flex;
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    height: 160px;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.article-card-left {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    color: white;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.article-card-left-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.article-card-title-main {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    word-break: break-word;
}

.article-card-title-sub {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
}

.article-card-right {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.article-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 13px;
    color: #8c8c8c;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-weight: 400;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #8c8c8c;
}

.article-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-category {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    color: #999;
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
}


/* 文章分类展示区域 */
.categories-showcase {
    margin-top: 5px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 分类展示区域 - 美化设计 */
.category-column {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.category-module-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 28px 22px 28px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.category-module-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.category-module-desc {
    font-size: 14px;
    color: #999;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.category-module-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    margin: 0;
    color: #1890ff;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    background: transparent;
    border-top: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.category-module-more:hover {
    color: #40a9ff;
    background: #f0f7ff;
}

.category-module-more i {
    font-size: 12px;
}

.category-articles {
    padding: 20px 24px 24px;
}

.category-article {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #fafafa;
    position: relative;
    cursor: pointer;
}

.category-article:last-child {
    margin-bottom: 0;
}

.category-article:hover {
    background: #ffffff;
    border-color: #e0e7ff;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
}

.article-thumbnail {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #8c8c8c;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.article-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.category-article:hover .article-title {
    color: #3b82f6;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: rgba(64, 169, 255, 0.6);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(64, 169, 255, 0.2);
}

.user-name {
    color: rgba(64, 169, 255, 0.7);
    font-weight: 500;
    transition: color 0.2s ease;
}

.category-article:hover .user-name {
    color: var(--primary-color);
}

.article-date {
    font-style: normal;
    color: rgba(64, 169, 255, 0.5);
    font-size: 11px;
    font-weight: 400;
}

.user-id {
    color: #9ca3af;
}

.user-stats {
    color: var(--primary-color);
    font-weight: 600;
}

.article-date {
    font-style: normal;
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 12px;
}

.article-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    cursor: pointer;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.article-thumb {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.article-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}

.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8c8c8c;
    transition: color 0.2s ease;
}

.article-author i {
    color: var(--primary-color);
    font-size: 13px;
}

.article-item:hover .article-author {
    color: #595959;
}

.article-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: rgba(24, 144, 255, 0.1);
    color: #1890ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(24, 144, 255, 0.15);
}

.article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.article-item:hover .article-meta span {
    color: #8c8c8c;
}

.article-meta i {
    font-size: 12px;
    opacity: 0.7;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(24, 144, 255, 0.8), 0 0 40px rgba(24, 144, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(24, 144, 255, 1), 0 0 60px rgba(24, 144, 255, 0.6);
    }
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-btn:hover:not(:disabled) {
    border-color: #1890ff;
    color: #1890ff;
    background: #f0f7ff;
}

.page-btn.active {
    background: #1890ff;
    color: #ffffff;
    border-color: #1890ff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-gray);
}

.page-btn i {
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.pagination-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #f0f0f0;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #595959;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn.active {
    background: #333;
    color: #ffffff;
    border-color: #333;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 10px;
    color: #999;
    display: inline-flex;
    align-items: center;
}

/* 照片轮播图模块样式 */
.photo-carousel-section {
    width: 100%;
    margin: 15px 0 0 0;
}

.photo-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f5f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.photo-slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.photo-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    background: #f5f5f5;
}

.photo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* 文章分类模块样式 */
.category-modules-section {
    width: 100%;
    margin: 15px 0 0 0;
}

@media (max-width: 768px) {
    .category-modules-section {
        margin: 15px 0 10px 0 !important;
    }
}

.category-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .category-modules-grid {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }

    @supports (-webkit-touch-callout: none) {
        .category-modules-grid {
            grid-template-columns: 1fr !important;
            gap: 5px !important;
        }
    }
}

.category-module {
    background: #ffffff;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}

.category-module:hover {
    box-shadow: none;
    transform: none;
}

.category-module-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 28px 20px 28px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.category-module-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-module-badge i {
    font-size: 10px;
}

.category-module-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.3px;
}

.category-module-desc {
    font-size: 14px;
    color: #8c8c8c;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.category-module-stats {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-module-list {
    padding: 2px 20px 5px 20px;
}

.category-module-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    margin: 0;
    color: #1890ff;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    background: transparent;
    border-top: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.category-module-more:hover {
    color: #40a9ff;
    background: #f0f7ff;
}

.category-module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-module-item:last-child {
    border-bottom: none;
}

.category-module-item:hover {
    background: #fafafa;
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 5px;
}

.category-module-item .item-icon {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.15);
    transition: all 0.3s ease;
    font-size: 0;
    display: inline-block;
}

.category-module-item:hover .item-icon {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.25);
    transform: scale(1.3);
}

.category-module-item .item-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端/iOS端分类模块标题优化 */
@media (max-width: 768px) {
    .category-module-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    .category-module-item .item-title {
        font-size: 13px;
        white-space: normal;
        word-break: break-word;
        line-height: 1.5;
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100% - 80px);
    }
    
    .category-module-item .item-time {
        font-size: 11px;
        margin-top: 2px;
        flex-shrink: 0;
        width: auto;
    }
    
    /* iOS端进一步优化 */
    @supports (-webkit-touch-callout: none) {
        .category-module-item .item-title {
            font-size: 13px;
            line-height: 1.5;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
}

.category-module-item:hover .item-title {
    color: #1890ff;
}

.category-module-item .item-time {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.category-module-more i {
    font-size: 12px;
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
    max-width: 400px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.toast.success {
    border-left: 4px solid #52c41a;
    color: #52c41a;
}

.toast.error {
    border-left: 4px solid #ff4d4f;
    color: #ff4d4f;
}

.toast.info {
    border-left: 4px solid #1890ff;
    color: #1890ff;
}

.toast.warning {
    border-left: 4px solid #faad14;
    color: #faad14;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget {
    background: #ffffff;
    padding: 24px;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.widget-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

/* 用户登录/注册模块 */
.user-auth-widget {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 5px;
    padding: 28px 24px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 头部区域 */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.auth-avatar i {
    font-size: 32px;
    color: #ffffff;
}

.auth-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.auth-subtitle {
    font-size: 14px;
    color: #8c8c8c;
    margin: 0;
}

/* 按钮区域 */
.auth-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 0;
}

.auth-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-btn i {
    font-size: 12px;
}

.auth-btn-login {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #ffffff;
}

.auth-btn-register {
    background: #ffffff;
    color: #595959;
    border: 1px solid #e8e8e8;
}

/* 分割线 */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0 20px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e8e8e8 20%, #e8e8e8 80%, transparent 100%);
}

.auth-divider span {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 0 14px;
    color: #8c8c8c;
    font-size: 12px;
    position: relative;
    font-weight: 500;
}

/* 第三方登录按钮 */
.auth-social-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.auth-social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.qq-btn {
    color: #12b7f5;
    border-color: rgba(18, 183, 245, 0.2);
}

.wechat-btn {
    color: #09bb07;
    border-color: rgba(9, 187, 7, 0.2);
}

.alipay-btn {
    color: #1678ff;
    border-color: rgba(22, 120, 255, 0.2);
}

.github-btn {
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.2);
}

/* 网站公告样式 */
.announcements-widget {
    margin-top: 10px;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.announcement-item:hover {
    background: rgba(24, 144, 255, 0.02);
    padding-left: 4px;
}

.announcement-number {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f5f5f5;
    color: #8c8c8c;
}

.announcement-item:nth-child(1) .announcement-number {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #ffffff;
}

.announcement-item:nth-child(2) .announcement-number {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    color: #ffffff;
}

.announcement-item:nth-child(3) .announcement-number {
    background: linear-gradient(135deg, #ffd54f 0%, #ffc107 100%);
    color: #ffffff;
}

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

.announcement-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.announcement-item:hover .announcement-title {
    color: #1890ff;
}

.announcement-date {
    font-size: 12px;
    color: #8c8c8c;
}

/* 热门文章 */
.hot-post {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    margin-bottom: 0;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.hot-post:last-child {
    border-bottom: none;
}

.hot-post-number {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: #f8f9fa;
    color: #8c8c8c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #f0f0f0;
}

.hot-post:nth-child(1) .hot-post-number {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.hot-post:nth-child(2) .hot-post-number {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.hot-post:nth-child(3) .hot-post-number {
    background: linear-gradient(135deg, #ffd54f 0%, #ffc107 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 213, 79, 0.3);
}

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

.hot-post-title {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.hot-post-meta {
    font-size: 12px;
    color: #8c8c8c;
}

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

.tag {
    padding: 5px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 文章分类（侧边栏） */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #f0f0f0;
}

.category-item:hover {
    background: #ffffff;
    border-color: #1890ff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.category-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 20px;
    transition: var(--transition);
}


.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

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

/* 文章分类模块（内容区） */
.categories-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}
  
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 不同分类的渐变颜色 */
.category-card[data-category="software"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card[data-category="tutorial"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-card[data-category="resource"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card-icon i {
    font-size: 36px;
    color: white;
}

.category-card-content {
    text-align: center;
    color: white;
}

.category-card-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: white;
}

.category-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.category-card-count {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    backdrop-filter: blur(10px);
}

/* 友情链接 */
.links-list {
    list-style: none;
}

.links-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.links-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 页脚 */
.footer {
    background: #ffffff;
    color: #595959;
    padding: 0;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.footer::before {
    content: none;
}

/* 链接区域 */
.footer-links {
    display: none;
}

.footer-link {
    color: #8c8c8c;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
}

.footer-link:hover {
    color: #333;
    background: #f0f0f0;
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    padding: 0;
    border-top: none;
    width: 100%;
}

.footer-copyright p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #8c8c8c;
    letter-spacing: 0.3px;
    font-weight: 400;
}

/* 社交媒体链接 - 移除 */
.social-links {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 0 !important;
        margin-top: 10px;
        margin-bottom: 0 !important;
    }
    
    .footer-links {
        gap: 10px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .footer-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .footer-copyright p {
        font-size: 12px;
        line-height: 1.6;
    }
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .articles-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 0;
    }

    .article-item {
        border-radius: 16px;
    }
    
    .article-thumb {
        height: 200px;
    }
    
    .article-content {
        padding: 20px;
        gap: 10px;
    }
    
    .article-title {
        font-size: 18px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .article-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .article-category-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .article-footer {
        padding-top: 12px;
        gap: 10px;
    }
    
    .article-meta {
        font-size: 12px;
        gap: 12px;
    }

    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .category-header {
        padding: 10px 12px;
    }

    .category-articles {
        padding: 8px 10px;
    }

    .article-thumbnail {
        width: 50px;
        height: 36px;
    }

    .article-title {
        font-size: 13px;
    }
}

/* 在移动端隐藏侧边栏 */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .articles-section {
        width: 100%;
        height: auto;
    }
    
    /* 删除移动端文章卡片左边的蓝色边框 */
    .article-item::before {
        display: none;
    }
    
    .article-item:hover::before {
        display: none;
    }
    
    .article-item::after {
        display: none;
    }
    
    .article-item:hover::after {
        display: none;
    }
}

@media (max-width: 768px) {
    /* 在移动端隐藏回到顶部按钮 */
    .back-to-top {
        display: none !important;
    }
    
    /* 显示移动端底部导航栏 */
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    /* 侧边栏打开时隐藏底部导航栏 */
    body:has(.nav-menu.mobile-active) .mobile-bottom-nav {
        display: none !important;
    }
    
    /* 为移动端内容添加底部padding，避免被导航栏遮挡 */
    .main-content {
        padding-bottom: 10px !important;
    }
    
    body {
        padding-bottom: calc(50px + env(safe-area-inset-bottom));
    }

    body:has(.nav-menu.mobile-active) {
        padding-bottom: 0;
    }
    
    /* 移动端轮播图样式 */
    .featured-slider {
        padding: 15px 0;
        margin-bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }

    .photo-carousel-wrapper {
        height: 77px; /* 桌面端230px的1/3，约77px */
        max-height: 77px;
    }

    /* iOS Safari 自适应支持 */
    @supports (-webkit-touch-callout: none) {
        .photo-carousel-wrapper {
            height: 77px;
            max-height: 77px;
        }
    }

    /* 不支持aspect-ratio的旧浏览器fallback */
    @supports not (aspect-ratio: 1 / 1) {
        .photo-carousel-wrapper {
            height: 77px;
            max-height: 77px;
        }
    }
    
    /* 轮播图内部样式 */
    .featured-slider .slider-wrapper {
        margin: 0;
    }
    
    /* 隐藏移动端导航菜单中的首页链接 */
    .nav-menu .mobile-hidden {
        display: none;
    }
    
    /* 重置导航菜单定位 */
    .nav {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        gap: 0;
    }
    
    /* 隐藏导航菜单 */
    .nav-menu {
        display: none;
    }

    /* 移动端工具栏 */
    .header-tools {
        gap: 10px;
    }

    /* 隐藏导航栏中的搜索框 */
    .nav > .search-box {
        display: none;
    }

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

    /* 移动端侧边栏 - 从左边滑出 */
    .nav-menu.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 360px;
        max-width: 86vw;
        background: #ffffff;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.10);
        padding: 0;
        gap: 0;
        animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999 !important;
        overflow: hidden;
        height: 100vh;
    }
    
    /* 移动端侧边栏Logo头部 */
    .nav-menu.mobile-active .mobile-sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: calc(18px + env(safe-area-inset-top)) 0 16px !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        position: relative !important;
    }

    .nav-menu.mobile-active .mobile-sidebar-header .mobile-sidebar-close {
        position: absolute;
        right: 10px;
        top: calc(10px + env(safe-area-inset-top));
        width: 36px;
        height: 36px;
        border-radius: 12px;
        border: none;
        background: rgba(0, 0, 0, 0.04);
        color: rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10000;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-menu.mobile-active .mobile-sidebar-header .mobile-sidebar-close:active {
        transform: scale(0.96);
        background: rgba(0, 0, 0, 0.10);
    }
    
    .nav-menu.mobile-active .mobile-sidebar-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        text-align: center !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        padding: 0 !important;
    }
    
    .nav-menu.mobile-active .mobile-sidebar-logo i {
        font-size: 46px !important;
        color: #111 !important;
        display: block !important;
        margin: 0 auto !important;
        text-shadow: none !important;
        box-shadow: none !important;
        filter: none !important;
        background: transparent !important;
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes slideOutLeft {
        from {
            opacity: 1;
            transform: translateX(0);
        }
        to {
            opacity: 0;
            transform: translateX(-100%);
        }
    }
    
    /* 移动端：显示菜单中的搜索框 */
    .nav-menu.mobile-active .search-box-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px 16px 10px;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        background: #ffffff;
        flex-shrink: 0;
    }

    /* 参考电脑端样式的移动端搜索框 */
    .nav-menu.mobile-active .search-box {
        width: 100%;
        position: relative;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 12px;
        padding: 0;
        box-shadow: none;
        transition: all 0.25s ease;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.mobile-active .search-box:hover {
        background: #ffffff;
        border-color: rgba(24, 144, 255, 0.2);
    }

    .nav-menu.mobile-active .search-box input {
        width: 100%;
        padding: 11px 40px 11px 14px;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        color: #111;
        background: transparent;
        transition: all 0.25s ease;
    }

    @supports (-webkit-touch-callout: none) {
        .nav-menu.mobile-active .search-box input {
            font-size: 16px !important;
        }
    }

    .nav-menu.mobile-active .search-box input::placeholder {
        color: rgba(0, 0, 0, 0.35);
        font-weight: 400;
    }

    .nav-menu.mobile-active .search-box input:focus {
        outline: none;
        background: #ffffff;
        width: 100%;
    }
    
    .nav-menu.mobile-active .search-box:has(input:focus) {
        border-color: #1890ff;
        box-shadow: 0 4px 20px rgba(24, 144, 255, 0.15);
    }
    
    .nav-menu.mobile-active .search-box i {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(0, 0, 0, 0.45);
        font-size: 15px;
        transition: all 0.25s ease;
        background: none;
        z-index: 10;
    }

    .nav-menu.mobile-active .search-box input:focus + i {
        color: #40a9ff;
        transform: translateY(-50%) scale(1.1);
    }

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

    /* 侧边栏菜单项容器（可滚动区域） */
    .nav-menu.mobile-active > li:not(.search-box-container):not(.mobile-sidebar-header) {
        display: block;
        width: 100%;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
        background: transparent;
        box-shadow: none;
        transition: all 0.3s ease;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        flex-shrink: 0;
    }
    
    /* 菜单项包装器（可滚动区域） */
    .nav-menu.mobile-active .menu-items-wrapper {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* 搜索框容器在包装器内 */
    .nav-menu.mobile-active .menu-items-wrapper .search-box-container {
        flex-shrink: 0;
    }
    
    /* 菜单项在包装器内 */
    .nav-menu.mobile-active .menu-items-wrapper > li {
        flex-shrink: 0;
    }
    
    /* 移除搜索框容器的边框 */
    .nav-menu.mobile-active > li.search-box-container {
        display: block;
        border: none;
        background: transparent;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu.mobile-active > li:hover {
        background: rgba(24, 144, 255, 0.04);
    }
    
    .nav-menu.mobile-active > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu.mobile-active a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 14px 18px;
        width: 100%;
        background: transparent;
        color: rgba(0, 0, 0, 0.88);
        font-size: 15px;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        position: relative;
    }
    
    .nav-menu.mobile-active a:hover {
        background: rgba(0, 0, 0, 0.03);
        color: rgba(0, 0, 0, 0.88);
    }
    
    .nav-menu.mobile-active a.active {
        background: rgba(0, 0, 0, 0.04);
        color: rgba(0, 0, 0, 0.92);
        font-weight: 600;
    }
    
    .nav-menu.mobile-active > li > a i,
    .nav-menu.mobile-active .menu-items-wrapper > li > a i {
        margin-right: 5px;
        font-size: clamp(16px, 4.6vw, 18px);
        color: rgba(0, 0, 0, 0.55);
        width: 20px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-menu.mobile-active > li > a:hover i,
    .nav-menu.mobile-active > li > a.active i,
    .nav-menu.mobile-active .menu-items-wrapper > li > a:hover i,
    .nav-menu.mobile-active .menu-items-wrapper > li > a.active i {
        color: rgba(0, 0, 0, 0.75);
        transform: none;
    }
    
    .nav-menu.mobile-active > li > a i:last-child,
    .nav-menu.mobile-active .menu-items-wrapper > li > a i:last-child {
        margin-right: 0;
        margin-left: auto;
        color: rgba(0, 0, 0, 0.35);
        font-size: clamp(10px, 3.2vw, 12px);
        width: auto;
        transition: transform 0.3s ease;
    }
    
    .nav-menu.mobile-active > li > a:hover i:last-child,
    .nav-menu.mobile-active .menu-items-wrapper > li > a:hover i:last-child {
        color: var(--primary-color);
    }
    
    /* 子菜单样式 */
    .nav-menu.mobile-active .submenu {
        display: none;
        background: transparent;
        padding: 6px 0 10px;
        margin: 0;
    }
    
    .nav-menu.mobile-active .has-submenu.mobile-open .submenu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .nav-menu.mobile-active .has-submenu.mobile-open > a i:last-child {
        transform: rotate(180deg);
    }
    
    .nav-menu.mobile-active .submenu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.02);
        margin: 0;
    }
    
    .nav-menu.mobile-active .submenu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu.mobile-active .submenu a {
        padding: 12px 18px 12px 52px;
        font-size: 14px;
        color: rgba(0, 0, 0, 0.68);
        font-weight: 400;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-left: 0;
    }
    
    .nav-menu.mobile-active .submenu a::before {
        display: none;
    }
    
    .nav-menu.mobile-active .submenu a:hover {
        background: rgba(0, 0, 0, 0.03);
        color: rgba(0, 0, 0, 0.78);
        padding-left: 52px;
    }
    
    .nav-menu.mobile-active .submenu a i {
        font-size: clamp(14px, 4.2vw, 16px);
        margin-right: 5px;
    }
    
    /* 侧边栏内容区域（可滚动） */
    .nav-menu.mobile-active .menu-items-wrapper {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 如果没有包装器，直接让菜单项可滚动 */
    .nav-menu.mobile-active > li:not(.search-box-container):not(.mobile-sidebar-header) {
        flex-shrink: 0;
    }
    
    /* 菜单项之间增加间距 */
    .nav-menu.mobile-active .menu-items-wrapper > li {
        margin-bottom: 2px;
    }

    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .category-column {
        margin-bottom: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(64, 169, 255, 0.08);
        width: 100%;
    }

    .category-header {
        padding: 14px 16px;
    }

    .category-badge {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 12px;
    }

    .category-more {
        font-size: 12px;
        padding: 6px 12px;
    }

    .category-articles {
        padding: 12px 0;
    }

    .category-article {
        gap: 12px;
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 10px;
        background: rgba(64, 169, 255, 0.02);
        transition: all 0.2s ease;
    }

    .category-article:last-child {
        margin-bottom: 0;
    }

    .category-article:hover {
        background: rgba(64, 169, 255, 0.05);
        transform: translateX(2px);
    }

    .article-thumbnail {
        width: 60px;
        height: 45px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .article-info {
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .article-title {
        font-size: 14px;
        line-height: 1.4;
        font-weight: 500;
        color: #1f2937;
    }

    .article-meta {
        font-size: 11px;
        gap: 8px;
        color: rgba(64, 169, 255, 0.6);
    }

    .user-avatar {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .user-name {
        font-size: 11px;
    }

    .article-date {
        font-size: 10px;
    }
    
    /* 移动端文章卡片样式 */
    .articles-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        flex-direction: column;
        height: auto;
        border-radius: 2px;
    }
    
    .article-card-left {
        width: 100%;
        height: 120px;
        border-radius: 0;
    }
    
    .article-card-right {
        padding: 16px 20px 20px 20px;
    }
    
    .article-card-title {
        font-size: 12px;
        line-height: 1.4;
        font-weight: 600;
        margin-bottom: 10px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    /* iOS端优化 */
    @supports (-webkit-touch-callout: none) {
        .article-card-title {
            font-size: 12px;
            line-height: 1.4;
        }
    }
    
    .article-card-excerpt {
        display: none;
    }
    
    .article-card-meta {
        font-size: 11px;
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .article-card-date {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #8c8c8c;
        flex-shrink: 0;
    }

    .article-card-date i {
        font-size: 11px;
        opacity: 0.9;
    }

    .article-card-category {
        margin-left: auto;
        max-width: 45%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #8c8c8c;
    }

    .slide-info {
        padding: 15px;
    }

    .slide-info h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .slide-info p {
        font-size: 12px;
        line-height: 1.4;
    }

    .slider-nav {
        display: none;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slide-categories {
        top: 10px;
        left: 10px;
    }

    .slide-categories span {
        padding: 3px 8px;
        font-size: 10px;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding: 0 10px 10px;
        background: transparent;
        display: none;
        animation: slideDown 0.2s ease;
    }

    .has-submenu.mobile-open .submenu {
        display: block;
    }

    .has-submenu > a {
        justify-content: space-between;
    }

    .has-submenu.mobile-open > a i {
        transform: none;
    }

    .submenu li {
        margin: 6px 0;
    }

    .submenu a {
        display: block;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        font-size: 14px;
        color: var(--text-dark);
        transition: all 0.3s ease;
        margin-left: 10px;
        border: 1px solid rgba(24, 144, 255, 0.08);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    }

    .submenu a:hover {
        background: rgba(24, 144, 255, 0.08);
        color: var(--primary-color);
        transform: translateX(3px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .submenu a i {
        margin-right: 10px;
        font-size: 13px;
        color: var(--primary-color);
    }

    .search-box input {
        width: 150px;
    }

    .search-box input:focus {
        width: 180px;
    }

    .search-suggestions {
        left: -80px;
        right: -20px;
        max-width: 300px;
    }

    

    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .slider-controls {
        padding: 0 10px;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slide-info {
        padding: 20px;
    }

    .slide-info h2 {
        font-size: 20px;
    }

    .slide-info p {
        font-size: 14px;
    }

    .articles-section {
        padding: 15px;
        margin-top: 0;
    }

    .articles-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 0;
    }

    .article-item {
        padding: 0;
        flex-direction: column;
        margin-bottom: 0;
        gap: 0;
        border: none;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .article-thumb {
        width: 100%;
        height: 180px;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    .article-content {
        padding: 15px;
        margin: 0;
        background: white;
    }
    
    .article-title {
        margin-top: 0;
    }

    .article-stats {
        gap: 12px;
        font-size: 12px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-title {
        font-size: 20px;
    }

    .view-all {
        font-size: 13px;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .filter-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .filter-tabs::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 3px;
    }

    .filter-tab {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px;
    }

    .category-card {
        padding: 30px 20px;
    }

    .category-card-icon {
        width: 70px;
        height: 70px;
    }

    .category-card-icon i {
        font-size: 30px;
    }

    .category-card-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-main {
        padding: 10px 0;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .articles-section {
        padding: 10px;
        border-radius: 10px;
        margin-top: 0;
    }
    
    /* 消除文章容器到文章卡片的高度间隙 */
    .articles-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 0;
    }
    
    .article-item {
        padding: 0;
        flex-direction: column;
        margin-bottom: 0;
        gap: 0;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .article-thumb {
        width: 100%;
        height: 60px;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    .article-content {
        padding: 12px 15px;
        margin: 0;
        background: white;
    }
    
    .article-title {
        margin-top: 0;
    }

    

    .slide-info {
        padding: 12px;
    }

    .slide-info h2 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .slide-info p {
        font-size: 12px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
    }


    .article-stats {
        gap: 10px;
        font-size: 11px;
    }

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

    .view-all {
        font-size: 12px;
    }

    .filter-tab {
        padding: 6px 10px;
        font-size: 12px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-card-icon {
        width: 50px;
        height: 50px;
    }

    .category-card-icon i {
        font-size: 24px;
    }

    .category-card-name {
        font-size: 16px;
    }

    .category-card-count {
        font-size: 12px;
    }

    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 12px 0 !important;
    }

    .category-article {
        gap: 10px;
        padding: 10px;
        margin-bottom: 6px;
        border-radius: 8px;
    }

    .article-thumbnail {
        width: 52px;
        height: 40px;
        border-radius: 6px;
        font-size: 9px;
    }

    .article-title {
        font-size: 13px;
        line-height: 1.35;
    }

    .article-meta {
        font-size: 10px;
        gap: 6px;
    }

    .user-info {
        gap: 4px;
        font-size: 10px;
    }

    .user-avatar {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .user-name {
        font-size: 10px;
    }

    .article-date {
        font-size: 9px;
    }

    .category-header {
        padding: 12px 14px;
    }

    .category-badge {
        padding: 5px 10px;
        font-size: 11px;
    }

    .category-more {
        font-size: 11px;
        padding: 5px 10px;
    }

    .category-articles {
        padding: 10px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 10px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-links a {
        font-size: 12px;
        padding: 5px 8px;
    }

    .social-links {
        justify-content: center;
    }

    .copyright {
        font-size: 12px;
    }
}

/* ==================== 移动端底部导航栏兼容 ==================== */
@media (max-width: 768px) {
    /* 给footer添加margin-bottom，避免被固定的底部导航栏遮挡 */
    .footer {
        margin-bottom: 10px !important;
        padding-bottom: 0 !important;
    }
    
    /* 给主要内容区添加padding-bottom，确保内容不被底部导航栏遮挡 */
    .main-content {
        padding-bottom: 10px !important;
    }
}

/* ==================== 移动端用户菜单优化 ==================== */
@media (max-width: 768px) {
    .user-menu {
        margin-left: 10px;
    }
    
    .login-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .user-avatar-btn {
        padding: 4px 8px;
    }
    
    .user-avatar-btn span {
        display: none;
    }
    
    .user-avatar-btn i:first-child {
        font-size: 22px;
    }
    
    .user-avatar-btn i:last-child {
        display: none;
    }
    
    .dropdown-menu {
        right: -10px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .user-menu {
        margin-left: 5px;
    }
    
    .login-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .login-btn span {
        display: none;
    }
    
    .user-avatar-btn i:first-child {
        font-size: 20px;
    }
}

/* ==================== 侧边栏登录状态样式 ==================== */
.auth-avatar.logged-in {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #40a9ff);
    color: white;
}

.auth-avatar.logged-in i {
    font-size: 40px;
}

.auth-avatar.logged-in img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.auth-buttons.logged-in {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-btn-profile,
.auth-btn-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-btn-profile {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #ffffff;
}

.auth-btn-admin {
    background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
    color: #ffffff;
}

.auth-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    margin: 20px -24px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    padding-left: 24px;
    padding-right: 24px;
}

.auth-stats .stat-item {
    text-align: center;
}

.auth-stats .stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.auth-stats .stat-label {
    font-size: 12px;
    color: #8c8c8c;
    font-weight: 500;
}

.auth-btn-logout {
    width: 100%;
    padding: 10px 20px;
    background: #ffffff;
    color: #595959;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Toast动画 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ==================== 无障碍访问样式 ==================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

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

/* ==================== 加载状态优化 ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

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

.loading-spinner i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.loading-spinner p {
    color: var(--text-muted);
    font-size: 15px;
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

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

.skeleton-card {
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
}

.skeleton-thumb {
    width: 140px;
    height: 90px;
    margin-right: 15px;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 10px;
    width: 80%;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

/* ==================== 页面过渡动画 ==================== */
.page-transition {
    animation: pageIn 0.3s ease-out;
}

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

/* 元素淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 性能优化 - 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skeleton {
        animation: none;
        background: #f0f0f0;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .header,
    .footer,
    .sidebar,
    .back-to-top,
    .share-buttons {
        display: none !important;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr !important;
    }
    body {
        background: linear-gradient(135deg, #f0f4ff 0%, #e0e9ff 100%) !important;
    }
}
