* {
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 暗黑模式样式 */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .main-nav {
    background: rgba(30, 30, 30, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.dark-mode .mobile-nav {
    background: rgba(30, 30, 30, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .main-nav a {
    color: #e0e0e0;
}

body.dark-mode .mobile-side-menu ul li a {
    color: #e0e0e0;
    border-bottom: 1px solid #555;
}

body.dark-mode .mobile-side-menu ul li a:hover {
    background-color: #4a4a4a;
    color: white;
}

body.dark-mode .mobile-side-menu {
    background-color: #333;
}

body.dark-mode .content {
  
}

body.dark-mode .content-header {
    background-color: #3a3a3a;
    border-bottom: 0px solid #444;
}

body.dark-mode .content-header h2 {
    color: #e0e0e0;
}

body.dark-mode .directory-card {
    background-color: #3a3a3a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .directory-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .directory-card::before {
    opacity: 0.8;
}

body.dark-mode .directory-name {
    color: #e0e0e0;
}

body.dark-mode .directory-cover {
    background-color: #444;
}

body.dark-mode .item {
    background-color: #3a3a3a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .item:hover {
    background-color: #444;
}

body.dark-mode .item a {
    color: #e0e0e0;
}

body.dark-mode .site-footer {
    background-color: #222;
    color: #ccc;
}

body.dark-mode .breadcrumb {
    background-color: #3a3a3a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .file-list {
    background-color: #3a3a3a;
    border: 1px solid #444;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .recent-updates-section {
    background-color: #3a3a3a;
    border: 1px solid #444;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
body.dark-mode .recent-updates-section .content-header h2 {
    color: #e0e0e0;
}
body.dark-mode .recent-updates-section .content-header p {
    color: #bbb;
}
body.dark-mode .directory-grid {
    background-color: #3a3a3a;
    border: 1px solid #444;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .recent-updates-section .directory-grid,
body.dark-mode .recent-updates-section .file-list {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

body.dark-mode .image-name {
    color: #e0e0e0;
}

body.dark-mode .download-btn {
    background: linear-gradient(135deg, #00BFFF 0%, #008cc8 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .download-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .popup-content {
    background-color: #333;
}

body.dark-mode .popup-content h3 {
    color: #e0e0e0;
}

body.dark-mode .popup-content p {
    color: #ccc;
}

body.dark-mode .close-btn {
    color: #aaa;
}

body.dark-mode .close-btn:hover {
    color: #fff;
}
.header {
    background: linear-gradient(135deg, #00BFFF 0%, #00a0d2 100%);
    color: white;
    padding: 120px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8); /* 黑色半透明遮罩 */
    z-index: 1;
}
.header * {
    position: relative;
    z-index: 2;
}
.header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}
.header p {
    margin: 10px 0 0 0;
    font-size: 16px;
    opacity: 0.9;
}

/* 下载按钮样式 */
.download-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00BFFF 0%, #00a0d2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

/* 下载弹窗样式 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.popup-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popupFadeIn 0.3s ease;
}

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

.popup-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.wechat-qrcode {
    max-width: 200px;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-content p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    background: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    color: #333;
    border-color: #999;
    transform: scale(1.1);
}

/* 登录弹窗样式 */
.login-popup-content {
    max-width: 400px;
    text-align: center;
    font-size: 16px;
}

.login-btn {
    background: linear-gradient(135deg, #00BFFF 0%, #008cc8 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* 菜单栏登录按钮样式 */
#menu-login-btn {
    background: linear-gradient(135deg, #00BFFF 0%, #008cc8 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.3);
}

#menu-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

/* 移动端登录按钮样式 */
#mobile-menu-login-btn {
    background: linear-gradient(135deg, #00BFFF 0%, #008cc8 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px 20px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.3);
    width: 210px;
}

#mobile-menu-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

body.dark-mode #mobile-menu-login-btn {
    color: white !important;
}

body.dark-mode #menu-login-btn {
    color: white !important;
}

body.dark-mode .close-btn {
    background: #2d2d2d;
    border-color: #555;
    color: #ccc;
}

body.dark-mode .close-btn:hover {
    color: white;
    border-color: #777;
}

body.dark-mode .login-btn {
    background: linear-gradient(135deg, #00BFFF 0%, #008cc8 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .login-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* 桌面端导航栏 */
.main-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 移动端导航栏 */
.mobile-nav {
    display: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.mobile-nav-logo {
    flex: 0 0 auto;
}

.mobile-nav-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

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

.mobile-nav-logo .nav-logo-img {
    height: 48px;
    width: auto;
    vertical-align: middle;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}
.main-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 汉堡菜单动画 */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* 侧滑菜单样式 */
.main-nav ul {
    transition: transform 0.3s ease;
}

.mobile-side-menu {
    display: none;
}

/* 响应式设计 - 平板和手机 */
@media screen and (max-width: 768px) {
    /* 隐藏桌面端导航栏 */
    .main-nav {
        display: none;
    }
    
    /* 显示移动端导航栏 */
    .mobile-nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 默认隐藏移动端专用元素 */
.mobile-side-menu {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* 移动端侧滑菜单 */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.mobile-side-menu.open {
    transform: translateX(250px);
}

@media (max-width: 768px) {
    .mobile-side-menu {
        display: block;
    }
    
    /* 遮罩层 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }
}
    
    .mobile-side-menu ul {
        list-style: none;
        margin: 0;
        padding: 60px 0 20px;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-side-menu ul li {
        width: 100%;
    }
    
    .mobile-side-menu ul li a {
        display: block;
        padding: 8px 12px;
        width: 100%;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-side-menu ul li a:hover {
    background-color: #00BFFF;
    color: white;
    border-radius: 50px;
}
    
    .nav-logo {
        display: none;
    }
    
    .main-nav .container {
        padding: 0;
    }
    
    /* 菜单打开时的遮罩层 */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
}
.nav-logo {
    padding: 10px 20px;
}
.nav-logo a {
    background-color: transparent !important;
    color: inherit !important;
    transition: none !important;
}
.nav-logo a:hover {
    background-color: transparent !important;
    color: inherit !important;
}
.nav-logo-img {
    height: 48px;
    width: auto;
    vertical-align: middle;
}
.main-nav li {
    margin: 0;
}
.main-nav a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}
.main-nav a:hover {
    background-color: #00BFFF;
    color: white;
    border-radius: 50px;
}

/* 主题切换按钮样式 */
.theme-toggle-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 5px;
    color: #333;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 暗黑模式下的主题切换按钮 */
body.dark-mode .theme-toggle-btn {
    color: #e0e0e0;
}

body.dark-mode .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 隐藏不需要的图标 */
body:not(.dark-mode) .moon-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: none;
}

/* 移动端主题切换按钮 */
.mobile-theme-toggle {
    margin-top: 20px;
    padding: 0 20px;
}

#mobile-theme-toggle {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#mobile-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.dark-mode #mobile-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode #mobile-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-text {
    font-size: 16px;
}

/* 页脚样式 */
.site-footer {
    background-color: #2f2f2f;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
}
.site-footer p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}
.site-footer a {
    color: #3498db;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* 页脚按钮容器 */
.footer-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

/* 页脚按钮样式 */
.footer-buttons button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #00BFFF;
}

.footer-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-buttons button:active {
    transform: translateY(-1px);
}

/* 特定按钮颜色 */
#find-wallpaper {
    background-color: #4CAF50; /* 绿色 */
}

#reward {
    background-color: #FF9800; /* 橙色 */
}

#back-to-top {
    background-color: #545555; 
    display: none; /* 默认隐藏 */
}

/* 按钮内的图片样式 */
.footer-buttons button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.breadcrumb {
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.breadcrumb a {
    color: #00BFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumb a:hover {
    color: #00a0d2;
    text-decoration: underline;
}
.content {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.content-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
    border-radius: 8px 8px 0 0;
}
.content-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}
/* 横排网格布局 */
.directory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    border: none;
    margin-bottom: 30px;
}
.directory-card {
    flex: 0 0 calc(25% - 15px); /* 每行显示4个卡片 */
    min-width: 200px;
    max-width: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.directory-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: none;
}

.directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


.directory-card a {
    text-decoration: none;
}
.directory-cover {
    height: 350px;
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.directory-cover::before {
    content: "📁";
    font-size: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}
.directory-cover[style*="background-image"]::before {
    display: none;
}
.directory-info {
    padding: 15px;
}
.directory-name {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 文件列表横排样式 */
.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    border: 0px solid #e2e8f0;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}
.item {
    flex: 0 0 calc(25% - 15px); /* 每行显示4个文件项 */
    min-width: 200px;
    max-width: 300px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}



.item:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.item a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 隐藏上级目录链接 */
.parent-directory-item {
    display: none;
}
/* 图片缩略图样式 */
.image-thumbnail {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.image-item {
    flex: 0 0 calc(25% - 15px); /* 保持与其他文件项一致的宽度 */
    min-width: 200px;
    max-width: 300px;
}
.image-item-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.image-name {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 修复图片预览链接的布局，使其内容垂直排列 */
.image-item .image-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.item a:hover {
    color: #00BFFF;
}
.icon {
    margin-right: 15px;
    font-size: 24px;
    width: 30px;
    text-align: center;
}
.error {
    color: #e53e3e;
    padding: 15px 20px;
    background-color: #fed7d7;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.error:before {
    content: '⚠️';
    margin-right: 10px;
    font-size: 18px;
}
.empty-message {
    padding: 40px 20px;
    text-align: center;
    color: #718096;
    font-size: 16px;
}
.empty-message:before {
    content: '📁';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}
.no-content {
    padding: 60px 20px;
    text-align: center;
    color: #a0aec0;
}
.no-content h3 {
    margin-bottom: 10px;
    color: #718096;
}
/* 最近更新栏目样式 */
.recent-updates-section {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}
.recent-updates-section .content-header {
    background-color: transparent;
    border-left: none;
    padding: 0 0 15px 0;
    border-bottom: 0px solid #e2e8f0;
}
.recent-updates-section .content-header h2 {
    color: #333;
    margin: 0;
    font-size: 20px;
}
.recent-updates-section .content-header p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #64748b;
}
.recent-updates-section .directory-grid,
.recent-updates-section .file-list {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.recent-updates-section .file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.section-divider {
    margin: 10px 0 30px 0;
    border: none;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .header h1 {
        font-size: 24px;
    }
    .item {
        padding: 12px 15px;
    }
    .icon {
        font-size: 20px;
        margin-right: 10px;
    }
    .breadcrumb {
        font-size: 13px;
    }
    .main-nav ul {
        flex-direction: column;
    }
    
    /* 平板端目录网格 - 每行显示2个卡片 */
    .directory-card {
        flex: 0 0 calc(50% - 10px);
        min-width: unset;
        max-width: unset;
    }
    
    /* 平板端文件列表 - 每行显示2个文件项 */
    .item {
        flex: 0 0 calc(50% - 10px);
        min-width: unset;
        max-width: unset;
    }
    
    .image-item {
        flex: 0 0 calc(50% - 10px);
        min-width: unset;
        max-width: unset;
    }
}

/* 手机端响应式设计 */
@media (max-width: 480px) {
    /* 手机端目录网格 - 每行显示1个卡片 */
    .directory-card {
        flex: 0 0 calc(100% - 10px);
    }
    
    /* 手机端文件列表 - 每行显示1个文件项 */
    .item {
        flex: 0 0 calc(100% - 10px);
    }
    
    .image-item {
        flex: 0 0 calc(100% - 10px);
    }
    
    .directory-grid,
    .file-list {
        gap: 10px;
        padding: 10px;
    }
    
    .directory-info {
        padding: 10px;
    }
    
    .directory-name {
        font-size: 14px;
    }
    
    .image-name {
        font-size: 12px;
    }
}
.preview-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.preview-container.active {
    opacity: 1;
}
.preview-image {
    max-width: 90%;
    max-height: 90%;
    display: none;
    transition: transform 0.3s ease;
}
.preview-image.loaded {
    display: block;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}
.close-btn:hover {
    color: #ccc;
}
.loading-indicator {
    color: white;
    font-size: 20px;
    position: absolute;
}
.image-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

/* 加载更多按钮样式 */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.load-more-btn {
    padding: 10px 20px;
    background-color: #00BFFF;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #00a0d2;
}

.load-more-btn:disabled {
    background-color: #b5b5b5;
    cursor: not-allowed;
}

.debug-info {
    display: none;
}

span.close-btn {
    display: none !important;
}