/* 基础样式 - 兼容旧浏览器 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
html {
    height: 100%;
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    height: 100%;
    overflow: auto;
}

/* 固定搜索栏样式 - 页面顶部固定 */
.fixed-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0080FF; /* 降级为纯色，兼容性更好 */
    background: linear-gradient(135deg, #0080FF 0%, #0066cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0080FF', endColorstr='#0066cc', GradientType=1); /* IE滤镜 */
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.search-box-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
.search-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    width: 100%;
}
.search-box form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
}
.search-box input[type=text] {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    min-width: 0;
}
.search-box input[type=text]:focus {
    border-color: white;
    outline: none;
    background: white;
}
.search-box input[type=submit] {
    padding: 8px 12px;
    background: #FF9800; /* 降级为纯色 */
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF9800', endColorstr='#F57C00', GradientType=1); /* IE滤镜 */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-left: 5px;
}
.search-box input[type=submit]:hover {
    background: #F57C00;
    background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F57C00', endColorstr='#E65100', GradientType=1); /* IE滤镜 */
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 10px 20px 10px;
}

/* ========== 修改顶部导航栏 - 手机版本也保持横向 ========== */
.top-nav {
    background: white;
    padding: 10px 0;
    margin-bottom: 15px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow-x: auto; /* 允许水平滚动 */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* 禁止换行 */
}

.nav-tabs {
    display: inline-block;
    white-space: nowrap; /* 禁止换行 */
    padding: 0 10px;
    min-width: 100%; /* 确保至少与容器一样宽 */
}

.nav-tab {
    display: inline-block;
    margin: 0 5px;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.nav-tab-link {
    display: block;
    text-align: center;
    padding: 10px 8px;
    background: #f5f7fa; /* 降级为纯色 */
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f7fa', endColorstr='#e4e8f0', GradientType=1); /* IE滤镜 */
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid #e8e8e8;
    white-space: nowrap;
}
.nav-tab-link:hover {
    background: #e4e8f0;
    background: linear-gradient(135deg, #e4e8f0 0%, #d0d7e5 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e4e8f0', endColorstr='#d0d7e5', GradientType=1); /* IE滤镜 */
    border-color: #0080FF;
}
.nav-tab-link.active {
    background: #0080FF;
    background: linear-gradient(135deg, #0080FF 0%, #0066cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0080FF', endColorstr='#0066cc', GradientType=1); /* IE滤镜 */
    color: white;
    border-color: #0080FF;
}
/* 会员自选区特殊样式 */
.nav-tab-link.vip {
    background: #FF4081; /* 粉色 */
    background: linear-gradient(135deg, #FF4081 0%, #E91E63 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF4081', endColorstr='#E91E63', GradientType=1); /* IE滤镜 */
    color: white;
    border-color: #FF4081;
}
.nav-tab-link.vip:hover {
    background: #E91E63;
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E91E63', endColorstr='#C2185B', GradientType=1); /* IE滤镜 */
}

/* 为顶部导航栏添加滚动条样式 */
.top-nav::-webkit-scrollbar {
    height: 8px;
}

.top-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 0 10px;
}

.top-nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

.top-nav::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox 滚动条样式 */
.top-nav {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* ========== 修改图区统计信息 - 手机版本也保持横向 ========== */
.tuqu-stats {
    width: 100%;
    margin-bottom: 15px;
    overflow-x: auto; /* 允许水平滚动 */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap; /* 禁止换行 */
    padding: 5px 0; /* 添加内边距 */
}

.tuqu-stats-wrapper {
    display: inline-block;
    white-space: nowrap; /* 禁止换行 */
    padding: 0 10px;
    min-width: 100%; /* 确保至少与容器一样宽 */
}

.stat-card {
    display: inline-block;
    vertical-align: top;
    width: 220px; /* 固定宽度 */
    margin-right: 10px;
    background: white;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    white-space: normal; /* 内部元素恢复正常换行 */
}
.stat-card:last-child {
    margin-right: 0;
}
.stat-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}
.stat-count {
    font-size: 18px;
    font-weight: 600;
    color: #0080FF;
    margin-bottom: 5px;
}
.stat-link {
    display: inline-block;
    padding: 4px 12px;
    background: #0080FF;
    background: linear-gradient(135deg, #0080FF 0%, #0066cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0080FF', endColorstr='#0066cc', GradientType=1); /* IE滤镜 */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.stat-link:hover {
    background: #0066cc;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0066cc', endColorstr='#0052a3', GradientType=1); /* IE滤镜 */
}
/* 会员自选区统计卡片特殊样式 */
.stat-card.vip {
    border-color: #FF4081;
}
.stat-card.vip .stat-count {
    color: #FF4081;
}
.stat-card.vip .stat-link {
    background: #FF4081;
    background: linear-gradient(135deg, #FF4081 0%, #E91E63 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF4081', endColorstr='#E91E63', GradientType=1); /* IE滤镜 */
}
.stat-card.vip .stat-link:hover {
    background: #E91E63;
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#E91E63', endColorstr='#C2185B', GradientType=1); /* IE滤镜 */
}

/* 为图区统计信息添加滚动条样式 */
.tuqu-stats::-webkit-scrollbar {
    height: 8px;
}

.tuqu-stats::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 0 10px;
}

.tuqu-stats::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
}

.tuqu-stats::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox 滚动条样式 */
.tuqu-stats {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* 头部样式 */
.header {
    background: #0080FF;
    background: linear-gradient(135deg, #0080FF 0%, #0066cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0080FF', endColorstr='#0066cc', GradientType=1); /* IE滤镜 */
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 0 0 8px 8px;
}
.header h1 {
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 600;
}
.header p {
    font-size: 13px;
    opacity: 0.9;
}

/* 当前图区标题 */
.current-tuqu-title {
    background: #FF9800;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FF9800', endColorstr='#F57C00', GradientType=1); /* IE滤镜 */
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 16px;
}

/* 模块样式 */
.module {
    background: white;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.module-title {
    background: #0080FF;
    background: linear-gradient(135deg, #0080FF 0%, #0066cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0080FF', endColorstr='#0066cc', GradientType=1); /* IE滤镜 */
    color: white;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 15px;
}
.module-title span {
    font-size: 12px;
    opacity: 0.9;
    float: right;
}
.module-content {
    padding: 12px;
}

/* 统计信息 */
.update-info {
    text-align: center;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}
.update-info strong {
    color: #0080FF;
    font-size: 15px;
}
.status-legend {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 5px;
    font-size: 11px;
}
.status-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 7px;
}
.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
}
.color-black {
    background-color: #000;
}
.color-red {
    background-color: #e53935;
}
.color-blue {
    background-color: #1976d2;
}

/* ========== 最近更新 - 水平滚动（带有明显的滚动条） ========== */
.recent-horizontal-scroll {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0 15px 0;
    margin: 5px 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

/* 滚动条容器样式 */
.recent-horizontal-scroll::-webkit-scrollbar {
    height: 12px; /* 增加滚动条高度使其更明显 */
}

.recent-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
    margin: 0 5px;
}

.recent-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.recent-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox 滚动条样式 */
.recent-horizontal-scroll {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.recent-items-container {
    display: inline-block;
    white-space: nowrap;
    padding: 0 10px;
    min-width: 100%;
}

.recent-item {
    display: inline-block;
    vertical-align: top;
    width: 180px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-right: 12px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    white-space: normal; /* 内部元素恢复正常换行 */
}
.recent-item:last-child {
    margin-right: 0;
}
.recent-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.recent-image-preview {
    width: 100%;
    height: 120px;
    background: #f5f7fa;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f7fa', endColorstr='#e4e8f0', GradientType=1); /* IE滤镜 */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.recent-image-preview img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.image-placeholder {
    font-size: 36px;
    color: #ccc;
}
.recent-item-content {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
}
.recent-item-id {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}
/* 颜色状态类 */
.text-black {
    color: #000000;
}
.text-red {
    color: #e53935;
}
.text-blue {
    color: #1976d2;
}
.recent-item-name {
    font-size: 12px;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 滚动提示样式 */
.scroll-hint {
    text-align: center;
    color: #666;
    font-size: 11px;
    margin-top: 5px;
    font-style: italic;
}

/* ========== 全部图片 - 三列布局（使用浮动布局兼容旧浏览器） ========== */
.all-three-column {
    width: 100%;
    overflow: hidden; /* 清除浮动 */
}
.all-item {
    float: left;
    width: 32%;
    margin-right: 2%;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 10px;
    min-height: 50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    overflow: hidden;
}
.all-item:nth-child(3n) {
    margin-right: 0;
}
.all-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.all-link-disabled {
    opacity: 0.6;
    cursor: default;
}

/* 项目内容 */
.item-id {
    font-size: 12px;
    color: #0080FF;
    font-weight: 600;
    white-space: nowrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 50px;
    padding-right: 5px;
}
.item-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin: 0 5px;
}

/* 状态样式 */
.item-status {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    min-width: 55px;
    text-align: center;
}
.status-updated {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}
.status-notupdated {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* 分页样式 */
.pagination {
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.pagination-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.page-link {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    background: #0080FF;
    background: linear-gradient(135deg, #0080FF 0%, #0066cc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0080FF', endColorstr='#0066cc', GradientType=1); /* IE滤镜 */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 30px;
    text-align: center;
    margin: 2px;
}
.current-page {
    background: #666;
}
.page-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 15px 0;
    text-align: center;
    border-radius: 6px 6px 0 0;
    margin-top: 20px;
    clear: both; /* 清除浮动 */
}
.footer p {
    margin-bottom: 8px;
    font-size: 12px;
}
.footer-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 8px;
}
.footer a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    margin: 0 6px;
}
.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 30px 15px;
    color: #999;
    width: 100%;
}

/* 响应式优化 - 桌面端 */
@media (min-width: 768px) {
    .container {
        padding: 60px 15px 20px 15px;
    }
    .search-box-wrapper {
        padding: 0 15px;
    }
    .search-box {
        padding: 8px;
    }
    .search-box form {
        gap: 8px;
    }
    .search-box input[type=text] {
        padding: 10px 12px;
    }
    .search-box input[type=submit] {
        padding: 10px 25px;
    }
    .nav-tab-link {
        padding: 12px 10px;
        font-size: 14px;
        min-width: 140px;
    }
    .stat-card {
        width: 240px;
        padding: 15px;
        margin-right: 15px;
    }
    .stat-title {
        font-size: 13px;
    }
    .stat-count {
        font-size: 20px;
    }
    .header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    .header h1 {
        font-size: 26px;
    }
    .current-tuqu-title {
        padding: 15px 20px;
        font-size: 18px;
    }
    .module {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    .module-title {
        padding: 12px 15px;
        font-size: 16px;
    }
    .module-content {
        padding: 15px;
    }
    .recent-item {
        width: 190px;
        margin-right: 15px;
    }
    .recent-image-preview {
        height: 130px;
    }
    .all-item {
        padding: 12px;
        min-height: 55px;
    }
    .item-id {
        font-size: 13px;
        min-width: 55px;
    }
    .item-name {
        font-size: 14px;
    }
    .pagination {
        padding: 15px;
    }
    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        line-height: 35px;
    }
    .footer {
        padding: 18px 0;
    }
}

/* 平板设备 */
@media (max-width: 767px) {
    .fixed-search-bar {
        height: 48px;
    }
    
    .container {
        padding: 58px 10px 20px 10px;
    }
    
    .search-box-wrapper {
        padding: 0 8px;
    }
    
    .search-box {
        padding: 4px;
    }
    
    .search-box form {
        gap: 4px;
    }
    
    .search-box input[type=text] {
        padding: 7px 9px;
        font-size: 13px;
    }
    
    .search-box input[type=submit] {
        padding: 7px 10px;
        font-size: 13px;
        min-width: 55px;
    }
    
    /* 平板设备：两列布局 - 仅用于全部图片区域 */
    .all-item {
        float: left;
        width: 48%;
        margin-right: 4%;
        margin-bottom: 8px;
    }
    .all-item:nth-child(2n) {
        margin-right: 0;
    }
    
    /* 顶部导航栏和图区统计信息保持横向滚动 */
    .top-nav {
        margin-bottom: 10px;
    }
    
    .nav-tab {
        min-width: 110px;
    }
    
    .nav-tab-link {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .stat-card {
        width: 200px;
        margin-right: 8px;
    }
    
    .recent-item {
        width: 160px;
        margin-right: 12px;
    }
    .recent-image-preview {
        height: 100px;
    }
    .image-placeholder {
        font-size: 30px;
    }
    .recent-item-id {
        font-size: 10px;
    }
    .recent-item-name {
        font-size: 11px;
        height: 30px;
    }
    .recent-item, .all-item {
        padding: 8px;
        min-height: 45px;
    }
    .item-id {
        font-size: 11px;
        min-width: 45px;
    }
    .item-name {
        font-size: 12px;
    }
    .status-badge {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 50px;
    }
    
    /* 平板设备滚动条 */
    .recent-horizontal-scroll {
        padding: 8px 0 15px 0;
    }
    .recent-horizontal-scroll::-webkit-scrollbar {
        height: 10px;
    }
    
    .top-nav::-webkit-scrollbar,
    .tuqu-stats::-webkit-scrollbar {
        height: 6px;
    }
}

/* 手机设备 */
@media (max-width: 480px) {
    .fixed-search-bar {
        height: 46px;
    }
    
    .container {
        padding: 56px 8px 15px 8px;
    }
    
    .search-box-wrapper {
        padding: 0 6px;
    }
    
    .search-box {
        padding: 3px;
    }
    
    .search-box form {
        gap: 3px;
    }
    
    .search-box input[type=text] {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .search-box input[type=submit] {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    /* 手机设备：全部图片一列布局 */
    .all-item {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    /* 顶部导航栏和图区统计信息保持横向滚动 */
    .nav-tab {
        min-width: 100px;
    }
    
    .nav-tab-link {
        padding: 7px 5px;
        font-size: 11px;
    }
    
    .stat-card {
        width: 180px;
        margin-right: 6px;
        padding: 10px;
    }
    
    .stat-title {
        font-size: 11px;
    }
    
    .stat-count {
        font-size: 16px;
    }
    
    .stat-link {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .recent-item {
        width: 150px;
        margin-right: 10px;
    }
    .recent-image-preview {
        height: 90px;
    }
    .image-placeholder {
        font-size: 28px;
    }
    .recent-item-id {
        font-size: 9px;
    }
    .recent-item-name {
        font-size: 10px;
        height: 28px;
    }
    .recent-item, .all-item {
        min-height: 40px;
    }
    .item-id {
        min-width: 40px;
        font-size: 10px;
    }
    .item-name {
        font-size: 11px;
    }
    .status-badge {
        min-width: 45px;
        font-size: 9px;
    }
    
    /* 确保顶部标题不会被隐藏 */
    .header {
        padding: 12px 0;
        margin-top: 0;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .header p {
        font-size: 12px;
    }
    
    /* 手机设备滚动条 */
    .recent-horizontal-scroll {
        padding: 6px 0 12px 0;
    }
    .recent-horizontal-scroll::-webkit-scrollbar {
        height: 8px;
    }
    
    .top-nav::-webkit-scrollbar,
    .tuqu-stats::-webkit-scrollbar {
        height: 4px;
    }
}

/* 超小手机设备 */
@media (max-width: 360px) {
    .fixed-search-bar {
        height: 44px;
    }
    
    .container {
        padding: 54px 6px 15px 6px;
    }
    
    .search-box input[type=submit] {
        font-size: 11px;
        padding: 6px;
        min-width: 45px;
    }
    
    .search-box input[type=text] {
        font-size: 11px;
        padding: 5px 7px;
    }
    
    .nav-tab {
        min-width: 90px;
    }
    
    .nav-tab-link {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    .stat-card {
        width: 160px;
        margin-right: 5px;
        padding: 8px;
    }
    
    .stat-title {
        font-size: 10px;
    }
    
    .stat-count {
        font-size: 15px;
    }
    
    .recent-item {
        width: 140px;
        margin-right: 8px;
    }
    
    .recent-image-preview {
        height: 80px;
    }
}

/* 清除浮动 */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* IE兼容性修复 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE10+ CSS styles go here */
    .search-box form {
        display: -ms-flexbox;
    }
    .status-legend {
        display: -ms-flexbox;
    }
    .recent-items-container {
        display: block; /* IE下使用block */
        white-space: nowrap;
    }
    .all-item {
        display: -ms-flexbox;
    }
    .all-link {
        display: -ms-flexbox;
    }
    .pagination-links {
        display: -ms-flexbox;
    }
    .footer-links {
        display: -ms-flexbox;
    }
}

/* 自定义滚动条样式 - 确保在所有浏览器中可见 */
body {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* 确保滚动条始终可见 */
.recent-horizontal-scroll {
    scrollbar-face-color: #888;
    scrollbar-track-color: #f1f1f1;
    scrollbar-arrow-color: #888;
    scrollbar-shadow-color: #888;
    scrollbar-highlight-color: #f1f1f1;
    scrollbar-3dlight-color: #f1f1f1;
    scrollbar-darkshadow-color: #888;
}