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

/* 全局A标签样式 - 不改变颜色且无下划线 */
a {
    text-decoration: none;
    color: inherit;
}

/* 日间模式 - 默认主题 */
body {
    font-family: Arial, sans-serif;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --container-bg: white;
    --sidebar-bg: white;
    --nav-item-hover: #f0f0f0;
    --footer-bg: #333;
    --footer-text: white;
    --footer-link: #ccc;
    --hot-update-bg: white;
    --title-color: #333;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* 夜间模式 */
body.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: white;
    --container-bg: #2d2d2d;
    --sidebar-bg: #2d2d2d;
    --nav-item-hover: #404040;
    --footer-bg: #2d2d2d;
    --footer-text: white;
    --footer-link: #999;
    --hot-update-bg: #2d2d2d;
    --title-color: white;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* 公告栏样式 */
.announcement-bar {
    background: linear-gradient(87deg, #ffffff00, #0088b3d1);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    /*box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);*/
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.announcement-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
}

.announcement-title {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.announcement-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

/* 公告内容容器 */
.announcement-content {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

/* 按钮容器 */
.announcement-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.history-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 2px 2px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.history-btn img {
    display: block;
    vertical-align: middle;
}

.history-btn .hover-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.history-btn:hover .hover-text {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

.history-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .announcement-bar {
        padding: 6px 12px;
        font-size: 11px;
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .announcement-label {
        font-size: 10px;
    }
    
    .announcement-title {
        font-size: 11px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .announcement-time {
        font-size: 10px;
    }
    
    .main-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px;
    }
    
    .nav-item {
        padding: 8px;
        margin-bottom: 8px;
        font-size: 13px;
        white-space: nowrap; /* 确保所有导航项文字不换行 */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-icon {
        width: auto;
        height: auto;
        font-size: 13px;
        background-color: transparent;
        border-radius: 0;
        color: inherit;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 移动端图片导航图标与文字高度一致 */
    img.nav-icon {
        height: 1em;
        width: auto;
        vertical-align: middle;
        display: inline-block;
    }
    
    /* 移动端滑动导航样式 */
    .nav-scroll-container {
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-scroll-container::-webkit-scrollbar {
        display: none;
    }
    
    .nav-scroll-wrapper {
        display: flex;
        width: max-content;
        gap: 15px;
        padding: 2px 15px;
    }
    
    /* 桌面端样式 */
    @media (min-width: 769px) {
        
        .nav-scroll-container {
            overflow-x: visible;
        }
        
        .nav-scroll-wrapper {
            width: 100%;
            flex-direction: column;
            gap: 10px;
            padding: 0;
        }
    }
    
    .banner-rank-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-nav {
        white-space: nowrap !important; /* 强制搜索按钮文字不换行 */
    }
}

/* 主内容区域 */
.main-content {
    display: flex;
    gap: 20px;
    background-color: var(--bg-color);
}

/* 左侧导航 */
.sidebar {
    width: 200px;
    background-color: var(--sidebar-bg);
    border-radius: 5px;
    padding: 15px;
    transition: all 0.3s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 15px;
    color: var(--text-color);
}

.nav-item:hover {
    background-color: var(--nav-item-hover);
}

.nav-icon {
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 1em;
    line-height: 1;
}

/* 图片类型的导航图标与文字高度一致 */
img.nav-icon {
    height: 1em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

/* 右侧内容 */
.content {
    flex: 1;
}

/* 轮播和热门排行容器 */
.banner-rank-container {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: stretch;
}

/* 轮播海报 */
.banner {
    flex: 2;
    background-color: var(--container-bg);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 */
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.banner-prev, .banner-next {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

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

.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

.banner-img, .rank-img, .hot-img, .update-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info, .rank-info, .hot-info, .update-info {
    position: absolute;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.banner-info {
    bottom: 20px;
    left: 20px;
}

.banner-title, .rank-title, .hot-movie-title, .update-movie-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-status, .banner-category, .banner-desc, .rank-status, .rank-category, .hot-movie-status, .hot-movie-category, .update-movie-meta, .update-time {
    font-size: 12px;
    margin-bottom: 3px;
}

/* 搜索弹窗样式 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 5px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

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

.search-modal-header {
    padding: 25px 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.search-modal-body {
    padding: 0 30px 30px;
}

.search-input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.search-modal-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.search-modal-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: white;
}

.search-modal-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* 确保按钮文字不换行 */
    min-width: 80px; /* 设置最小宽度，确保按钮有足够空间 */
    display: flex; /* 使用flex布局实现居中 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.search-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.search-suggestions {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 20px;
}

.suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-items {
    display: flex;
    flex-direction: column; /* 改为垂直排列 */
    gap: 8px; /* 调整间距 */
}

.suggestion-item {
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 123, 255, 0.05); /* 添加轻微背景 */
    width: 100%; /* 占满整行 */
    box-sizing: border-box;
}

.suggestion-item:hover {
    color: #0056b3;
    text-decoration: none;
    background: rgba(0, 123, 255, 0.1); /* 悬停时背景加深 */
}

/* 搜索导航项特殊样式 */
.search-nav {
    /* 移除背景色，保持透明 */
    white-space: nowrap; /* 防止文字换行 */
}

.search-nav .nav-icon {
    /* 移除背景色 */
    background-color: transparent;
}

.search-nav:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* 热门排行 */
.rank {
    flex: 1;
    background-color: var(--container-bg);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.rank-item {
    width: 100%;
    background-color: #000000;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* PC端样式 - 3张图高度总和与轮播图对齐 */
@media (min-width: 769px) {
    .rank-item {
        /* 移除padding-top，使用flex: 1让3个item平均分配.rank的高度 */
        height: auto;
        padding-top: 0;
    }
}

/* 移动端样式 - 确保显示 */
@media (max-width: 768px) {
    .rank-item {
        height: 0;
        padding-top: 37.5%; /* 16:6 */
    }
}

/* 移动端搜索弹窗适配 */
@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        max-width: none;
        margin: 0 10px;
    }
    
    .search-modal-header {
        padding: 15px 20px 15px;
    }
    
    .search-modal-title {
        font-size: 18px;
    }
    
    .search-input-container {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 20px;
        align-items: stretch;
    }
    
    .search-modal-input {
        padding: 12px 15px;
        font-size: 14px;
        flex: 1;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .search-modal-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 80px;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .search-modal-body {
        padding: 0 20px 20px;
    }
    
    .search-suggestions {
        padding: 15px;
    }
    
    .suggestion-title {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .suggestion-item {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* 超小屏幕适配（小于360px） */
@media (max-width: 360px) {
    .search-modal-content {
        width: 98%;
        margin: 0 5px;
    }
    
    .search-modal-header {
        padding: 12px 15px 12px;
    }
    
    .search-modal-title {
        font-size: 16px;
    }
    
    .search-input-container {
        gap: 8px;
    }
    
    .search-modal-input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-modal-btn {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .search-modal-body {
        padding: 0 15px 15px;
    }
}

/* 公告弹窗样式 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.announcement-modal.show {
    opacity: 1;
    visibility: visible;
}

.announcement-modal-content {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 5px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.announcement-modal-header {
    padding: 20px 30px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: none;
}

.announcement-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
    color: white;
}

.announcement-modal-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.announcement-modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 1);
}

.announcement-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.announcement-modal-footer {
    padding: 20px 30px;
    background: rgba(248, 249, 250, 0.95);
    display: flex;
    justify-content: center;
    border-top: none;
}

.announcement-modal-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.announcement-modal-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

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

/* 移动端适配 */
@media (max-width: 768px) {
    .announcement-modal-content {
        width: 95%;
        max-width: none;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .announcement-modal-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        background: rgba(0, 123, 255, 0.9);
    }
    
    .announcement-modal-title {
        font-size: 18px;
        color: white;
    }
    
    .announcement-modal-time {
        font-size: 11px;
        background: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.9);
    }
    
    .announcement-modal-body {
        padding: 20px;
        max-height: 300px;
        background: rgba(255, 255, 255, 1);
    }
    
    .announcement-modal-text {
        font-size: 13px;
        color: #333;
        font-weight: 500;
    }
    
    .announcement-modal-footer {
        padding: 15px 20px;
        background: rgba(248, 249, 250, 0.95);
    }
    
    .announcement-modal-btn {
        padding: 10px 30px;
        font-size: 14px;
        background: linear-gradient(135deg, #007bff, #0056b3);
        border: none;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .announcement-modal-content {
        width: 98%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .announcement-modal-header {
        padding: 12px 15px;
    }
    
    .announcement-modal-title {
        font-size: 16px;
    }
    
    .announcement-modal-body {
        padding: 15px;
        max-height: 250px;
    }
    
    .announcement-modal-text {
        font-size: 12px;
    }
    
    .announcement-modal-footer {
        padding: 12px 15px;
    }
    
    .announcement-modal-btn {
        padding: 8px 25px;
        font-size: 13px;
    }
}

.rank-info {
    bottom: 15px;
    left: 15px;
}

/* 热门影视 */
.hot-movies, .update-section {
    background-color: var(--hot-update-bg);
    border-radius: 5px;
    padding: 0px;
    transition: all 0.3s ease;
}

.update-section {
    margin-top: 20px;
}

.hot-title, .update-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--title-color);
}

.hot-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* PC端：横排显示5个，显示2排 */
.hot-item {
    flex: 0 0 calc(20% - 12px); /* 5个项目，减去间距 */
    max-width: calc(20% - 12px);
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

/* 移动端：横排显示2个，显示5排 */
@media (max-width: 768px) {
    .hot-item {
        flex: 0 0 calc(50% - 7.5px); /* 2个项目，减去间距 */
        max-width: calc(50% - 7.5px);
    }
}

.hot-poster, .update-poster {
    width: 100%;
    position: relative;
}

.hot-poster {
    padding-top: 56.25%; /* 16:9 */
}

.update-poster {
    padding-top: 133.33%; /* 3:4比例 */
}

.hot-poster, .update-poster {
    background-color: #000000;
}

.hot-info, .update-info {
    bottom: 10px;
    left: 10px;
}

/* PC端样式 - 6个项目一排，5排共30个 */
.update-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.update-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

/* 页脚样式 */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px 0;
    margin-top: 30px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 10px;
    text-align: center;
}

.footer-info p {
    margin: 5px 0;
    color: var(--footer-link);
}

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

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-links span {
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        padding: 5px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-item {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 0;
        padding: 5px;
        min-width: 60px; /* 确保每个导航项有最小宽度 */
        flex-shrink: 0; /* 防止导航项被压缩 */
    }
    
    /* 底部导航时，图标尺寸为文字大小的2倍，1:1比例 */
    .sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        padding: 5px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        background-color: rgb(255 255 255 / 30%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .sidebar .nav-icon {
        width: 2em;
        height: 2em;
        font-size: 14px;
        background-color: transparent;
        border-radius: 0;
        color: inherit;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 底部导航时，图片图标尺寸为文字大小的2倍，1:1比例 */
    .sidebar img.nav-icon {
        width: 2em;
        height: 2em;
        object-fit: contain;
        vertical-align: middle;
    }
    
    .banner-rank-container {
        flex-direction: column;
    }
    
    .hot-list {
        gap: 15px;
    }
    
    /* 移动端显示所有热门项目 */
    .hot-item:nth-child(n) {
        display: block;
    }
    
    .content {
        margin-bottom: 80px;
    }
    
    /* 移动端样式 - 3个项目一排，10排共30个 */
    .update-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* 图片懒加载样式 */
img[data-src] {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='280' viewBox='0 0 200 280'%3E%3Crect width='200' height='280' fill='%23f8f9fa'/%3E%3Ctext x='100' y='140' font-family='Arial, sans-serif' font-size='14' text-anchor='middle' fill='%237f8c8d' dominant-baseline='middle'%3E图库引擎加载中...%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
    background-image: none;
}

img.error {
    border: 2px solid #dc3545;
    background-color: #ffe6e6;
    cursor: pointer;
}

img.error:hover {
    opacity: 0.8;
}