/* ============================================
   固件猫智能电视刷机固件下载站 - 样式文件
   仿 gyziyuan.com 和 zy.fui.fyi 风格
   ============================================ */

/* ============================================
   CSS 变量定义
   ============================================ */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a6fd6;
    --secondary-color: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --text-color: #333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   顶部导航栏样式
   ============================================ */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* 确保body第一个子元素无间距 */
body > *:first-child {
    margin-top: 0 !important;
}

.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.site-header .navbar {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%) !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* 修复Bootstrap container在navbar内的间距 */
.site-header .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 下拉菜单显示修复 */
.site-header .dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1050 !important;
}

.site-header .dropdown-menu.show {
    display: block !important;
}

.site-header .nav-item.dropdown {
    position: relative;
}

.site-header .navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff !important;
    letter-spacing: 0.5px;
}

.site-header .navbar-brand:hover {
    color: rgba(255,255,255,0.9) !important;
}

.site-header .navbar-brand i {
    font-size: 1.5rem;
    color: #fff;
}

.site-header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

/* 导航栏下拉菜单 */
.site-header .dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 180px;
}

.site-header .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #333;
}

.site-header .dropdown-item:hover {
    background: #f0f4ff;
    color: #1a73e8;
}

.site-header .dropdown-item i {
    width: 18px;
    text-align: center;
    color: #666;
}

.site-header .dropdown-item:hover i {
    color: #1a73e8;
}

/* 右侧工具按钮 */
.navbar-right-tools {
    gap: 4px;
}

.nav-tool-btn {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.85);
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
}

.nav-tool-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4444;
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 10px;
    line-height: 1.2;
    min-width: 16px;
    text-align: center;
}

/* 主题切换按钮 */
.theme-toggle-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: rgba(255,255,255,0.85);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* 移动端优化 */
@media (max-width: 991.98px) {
    .navbar-right-tools {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.15);
        justify-content: center;
        flex-wrap: wrap;
    }
    .site-header .nav-link {
        padding: 0.6rem 1rem !important;
    }
}

/* ============================================
   Hero 区域样式（仿 gyziyuan.com）
   ============================================ */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Hero 搜索框 */
.hero-search-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-search-icon {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-right: 12px;
}

.hero-search-input {
    flex: 1;
    border: none;
    font-size: 1rem;
    padding: 12px 0;
    outline: none;
    background: transparent;
}

.hero-search-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 热门搜索标签 */
.hot-search-tags {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hot-search-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.hot-search-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.hot-search-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   网盘平台筛选区域
   ============================================ */
.platform-section {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: #fff;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.platform-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.platform-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

.platform-tab i {
    font-size: 1rem;
}

/* ============================================
   主内容区域
   ============================================ */
.main-content {
    padding: 30px 0;
}

/* 分类导航区域（简洁版） */
.category-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-color);
}

.section-more {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.section-more:hover {
    color: var(--primary-color);
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.category-item:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-item:hover .category-icon,
.category-item:hover .category-name {
    color: #fff;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: var(--transition);
}

.category-name {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

/* ============================================
   资源卡片样式
   ============================================ */
.resource-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.resource-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.resource-card-body {
    padding: 16px;
}

.resource-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
}

.resource-title a {
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-title a:hover {
    color: var(--primary-color);
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
}

.resource-code {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.resource-pan {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.pan-aliyun {
    background: #e6f7ff;
    color: #1890ff;
}

.pan-baidu {
    background: #f6ffed;
    color: #52c41a;
}

.pan-quark {
    background: #fff7e6;
    color: #fa8c16;
}

.pan-xunlei {
    background: #fff1f0;
    color: #f5222d;
}

/* 新增网盘类型样式 */
.pan-yidong {
    background: #fff1f0;
    color: #C9394C;
}

.pan-guangya {
    background: #fffbe6;
    color: #d48806;
}

.pan-wukong {
    background: #fff7e6;
    color: #ff5500;
}

.pan-kuaitu {
    background: #e6fffb;
    color: #08979c;
}

.pan-uc {
    background: #fff7e6;
    color: #ff8c00;
}

.pan-default {
    background: var(--bg-light);
    color: var(--text-muted);
}

.resource-size {
    color: var(--text-muted);
}

/* 热门资源卡片 */
.resource-card-hot {
    border-color: rgba(250, 140, 22, 0.3);
}

.resource-card-hot:hover {
    border-color: #fa8c16;
}

.hot-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fa8c16 0%, #f5222d 100%);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ============================================
   搜索结果区域
   ============================================ */
.search-result-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.search-result-count {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.no-results-container {
    padding: 60px 20px;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.no-results-icon i {
    font-size: 2rem;
    color: var(--text-muted);
}

.no-results-title {
    color: var(--text-color);
    font-weight: 500;
}

.no-results-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 24px;
}

.pagination {
    gap: 4px;
}

.page-link {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 14px;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
}

/* ============================================
   底部样式（仿 zy.fui.fyi）
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-content {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-intro {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-title i {
    color: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links i {
    color: var(--primary-color);
    width: 20px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-slogan {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-icp a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-icp a:hover {
    color: var(--primary-color);
}

/* ============================================
   返回顶部按钮
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top i {
    font-size: 1.25rem;
}

/* ============================================
   移动端全面优化 - Mobile First Enhancements
   ============================================ */

/* --- 平板适配 (≤992px) --- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2rem; }
    .hero-section { padding: 60px 0 40px; }
    .footer-section { margin-bottom: 40px; }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .category-nav-grid { grid-template-columns: repeat(4, 1fr); }
    .custom-block-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-v6-main { grid-template-columns: 1fr 1fr; gap: 24px; padding: 35px 0 20px; }
    .footer-v7-main { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    
    /* 平板端导航优化 */
    .navbar-right-tools {
        margin-top: 0.75rem; padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.15);
        justify-content: center; flex-wrap: wrap;
    }
}

/* --- 手机横屏/小平板 (≤768px) --- */
@media (max-width: 767.98px) {
    /* === 通用 === */
    body { font-size: 0.94rem; }
    .container { padding-left: 12px; padding-right: 12px; }
    
    /* === 导航栏 === */
    .site-header .nav-link { padding: 0.65rem 1rem !important; font-size: 0.9rem; }
    .site-header .navbar-brand { font-size: 1.05rem; }
    .header-search { display: none; }
    
    /* === Hero 区域 - 保持横向精美搜索框 === */
    .hero-section { padding: 48px 0 36px; }
    .hero-title { font-size: 1.55rem; letter-spacing: 0.3px; }
    .hero-subtitle { font-size: 0.9rem; opacity: 0.9; }
    .hero-search-wrapper { max-width: 100%; padding: 0 4px; }
    .hero-search-box {
        flex-direction: row; border-radius: 50px;
        padding: 6px 6px 6px 18px; box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    }
    .hero-search-icon { font-size: 1.1rem; margin-right: 8px; flex-shrink: 0; }
    .hero-search-input { font-size: 0.9rem; padding: 10px 0; }
    .hero-search-btn { 
        border-radius: 50px; padding: 11px 22px; font-size: 0.9rem;
        white-space: nowrap; flex-shrink: 0;
    }
    .hot-search-tags { margin-top: 1.2rem; gap: 0.5rem; flex-wrap: wrap; }
    .hot-search-label { font-size: 0.78rem; }
    .hot-search-tag { padding: 5px 13px; font-size: 0.78rem; border-radius: 16px; }
    
    /* === 网盘筛选 - 横向滚动 === */
    .platform-section { padding: 14px 0; }
    .platform-tabs {
        flex-wrap: nowrap; overflow-x: auto; gap: 8px;
        padding: 0 4px 4px; -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity; scrollbar-width: none;
    }
    .platform-tabs::-webkit-scrollbar { display: none; }
    .platform-tab {
        padding: 9px 16px; font-size: 0.82rem; border-radius: 22px;
        white-space: nowrap; flex-shrink: 0; scroll-snap-align: start;
    }
    .platform-filter-buttons {
        flex-wrap: nowrap; overflow-x: auto; gap: 8px;
        padding: 0 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .platform-filter-buttons::-webkit-scrollbar { display: none; }
    .platform-filter-btn {
        padding: 7px 14px; font-size: 0.8rem; border-radius: 20px;
        white-space: nowrap; flex-shrink: 0;
    }
    .platform-filter-wrapper { flex-direction: row; align-items: center; gap: 10px; }
    
    /* === 分类网格 === */
    .category-section, .resource-section { padding: 16px 14px; border-radius: 12px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-item { padding: 14px 8px; border-radius: 10px; }
    .category-icon { width: 40px; height: 40px; font-size: 1rem; }
    .category-name { font-size: 0.78rem; }
    .section-header { margin-bottom: 14px; padding-bottom: 10px; }
    .section-title { font-size: 1rem; }
    
    /* === 分类导航入口卡片 === */
    .category-nav-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-nav-card { padding: 14px 8px; border-radius: 10px; }
    .category-nav-icon { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 10px; }
    .category-nav-name { font-size: 0.78rem; }
    
    /* === 资源卡片 === */
    .resource-grid { grid-template-columns: 1fr; gap: 12px; }
    .resource-card { border-radius: 10px; }
    .resource-card-body { padding: 14px; }
    .resource-title { font-size: 0.92rem; margin-bottom: 8px; }
    .resource-meta { font-size: 0.75rem; gap: 6px; }
    .resource-code, .resource-pan { padding: 3px 7px; font-size: 0.72rem; }
    
    /* === 精选推荐 - 改为横向卡片 === */
    .featured-grid { grid-template-columns: 1fr; gap: 12px; }
    .featured-card { display: flex; flex-direction: row; align-items: stretch; }
    .featured-card-img { width: 120px; height: auto; min-height: 100px; flex-shrink: 0; }
    .featured-card-body { padding: 12px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
    .featured-card-title { font-size: 0.88rem; }
    .featured-card-desc { font-size: 0.75rem; }
    .featured-card-meta { font-size: 0.7rem; gap: 6px; }
    
    /* === 热门横滑 === */
    .hot-scroll-card { width: 150px; }
    .hot-scroll-img { height: 95px; }
    .hot-scroll-title { font-size: 0.8rem; }
    .hot-scroll-info { padding: 8px 10px; }
    .hot-scroll-meta { font-size: 0.7rem; }
    
    /* === 统计条 === */
    .stats-bar {
        flex-wrap: wrap; gap: 6px; padding: 16px 14px;
        border-radius: 12px; margin-bottom: 20px;
    }
    .stats-item { padding: 8px 12px; gap: 8px; }
    .stats-divider { display: none; }
    .stats-icon { width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; }
    .stats-number { font-size: 1.05rem; }
    .stats-label { font-size: 0.7rem; }
    
    /* === 分页 === */
    .pagination { gap: 2px; }
    .page-link { padding: 6px 10px; font-size: 0.82rem; }
    
    /* === 空状态 === */
    .empty-state { padding: 36px 16px; }
    .empty-state i { font-size: 2.5rem; }
    
    /* === 底部 === */
    .site-footer { padding: 35px 0 18px; margin-top: 30px; }
    .footer-content { padding-bottom: 20px; }
    .footer-title { font-size: 0.95rem; margin-bottom: 14px; }
    .footer-links li { margin-bottom: 9px; }
    .footer-intro { font-size: 0.82rem; }
    .footer-brand { font-size: 1.1rem; }
    .back-to-top { bottom: 86px; right: 18px; width: 42px; height: 42px; }
    
    /* === 底部多列转单列 === */
    .footer-v6-main { grid-template-columns: 1fr; gap: 25px; padding: 30px 0 20px; }
    .footer-v7-main { grid-template-columns: 1fr; gap: 25px; padding: 30px 0 20px; }
}

/* --- 小屏手机 (≤576px) --- */
@media (max-width: 575.98px) {
    /* === Hero 区域 - 更紧凑 === */
    .hero-section { padding: 36px 0 28px; }
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 0.82rem; margin-bottom: 1.2rem; }
    .hero-search-box { padding: 4px 4px 4px 12px; }
    .hero-search-icon { font-size: 1rem; margin-right: 4px; }
    .hero-search-input { font-size: 0.82rem; padding: 9px 0; }
    .hero-search-btn { padding: 9px 16px; font-size: 0.82rem; }
    .hot-search-tag { padding: 4px 10px; font-size: 0.72rem; }
    
    /* === 分类 === */
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-item { padding: 12px 6px; border-radius: 8px; }
    .category-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .category-name { font-size: 0.72rem; }
    .category-nav-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-nav-card { padding: 12px 6px; border-radius: 8px; }
    .category-nav-icon { width: 36px; height: 36px; font-size: 1rem; }
    .category-nav-name { font-size: 0.72rem; }
    
    /* === 精选推荐 === */
    .featured-card-img { width: 100px; min-height: 85px; }
    .featured-card-body { padding: 10px; }
    .featured-card-title { font-size: 0.82rem; }
    .featured-card-desc { font-size: 0.7rem; margin-bottom: 4px; }
    
    /* === 统计条 - 2列网格 === */
    .stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 12px 10px; }
    .stats-item { padding: 6px 8px; gap: 6px; }
    .stats-icon { width: 30px; height: 30px; font-size: 0.9rem; border-radius: 7px; }
    .stats-number { font-size: 0.95rem; }
    .stats-label { font-size: 0.65rem; }
    
    /* === 热门横滑 === */
    .hot-scroll-card { width: 135px; }
    .hot-scroll-img { height: 85px; }
    
    /* === 平台筛选 === */
    .platform-tab { padding: 7px 13px; font-size: 0.75rem; }
    .platform-filter-btn { padding: 6px 10px; font-size: 0.73rem; }
    .platform-icon { width: 18px; height: 18px; font-size: 0.65rem; }
    
    /* === 资源卡片 === */
    .resource-card-body { padding: 12px; }
    .resource-title { font-size: 0.85rem; }
    .resource-meta { gap: 4px; }
    .resource-code, .resource-pan { padding: 2px 6px; font-size: 0.7rem; }
    
    /* === 底部 === */
    .site-footer { padding: 28px 0 14px; margin-top: 24px; }
    .back-to-top { bottom: 80px; right: 16px; width: 38px; height: 38px; font-size: 1rem; }
    
    /* === 自定义模块 === */
    .custom-block-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .custom-block-grid .cb-card-title { font-size: 0.78rem; }
    .custom-block-grid .cb-card-meta { font-size: 0.7rem; }
    .custom-block-grid .cb-card-body { padding: 0.6rem; }
    .custom-block-list .cb-list-title { font-size: 0.82rem; }
    .custom-block-list .cb-list-item { padding: 0.5rem 0; }
}

/* --- 超小屏 (≤375px, iPhone SE等) --- */
@media (max-width: 375px) {
    .hero-title { font-size: 1.15rem; }
    .hero-subtitle { font-size: 0.75rem; }
    .hero-search-box { padding: 3px 3px 3px 10px; }
    .hero-search-input { font-size: 0.75rem; padding: 8px 0; }
    .hero-search-btn { padding: 8px 12px; font-size: 0.75rem; }
    .hero-search-icon { font-size: 0.9rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .category-item { padding: 10px 4px; }
    .category-icon { width: 30px; height: 30px; font-size: 0.8rem; margin-bottom: 6px; }
    .category-name { font-size: 0.7rem; }
    .category-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .category-nav-card { padding: 10px 4px; }
    .category-nav-icon { width: 30px; height: 30px; font-size: 0.85rem; }
    .category-nav-name { font-size: 0.7rem; }
    .featured-card-img { width: 85px; min-height: 72px; }
    .featured-card-body { padding: 8px; }
    .featured-card-title { font-size: 0.78rem; }
}

/* ============================================
   移动端增强 - 触控优化 & 安全区
   ============================================ */

/* 确保触控目标至少44px */
@media (hover: none) and (pointer: coarse) {
    .nav-link, .nav-tool-btn, .dropdown-item, .platform-tab,
    .platform-filter-btn, .filter-btn, .page-link, .back-to-top,
    .category-item, .category-nav-card, .hot-scroll-card,
    .featured-card, .resource-card a, .footer-links a {
        min-height: 44px; display: flex; align-items: center;
    }
    /* 减少hover动画（触屏无hover态） */
    .resource-card:hover, .featured-card:hover, .category-nav-card:hover,
    .category-item:hover, .hot-scroll-card:hover, .filter-btn:hover {
        transform: none;
    }
    /* 用active代替hover */
    .platform-tab:active, .filter-btn:active, .page-link:active {
        transform: scale(0.96); transition: transform 0.1s;
    }
}

/* iPhone 刘海屏/底部指示条安全区 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .back-to-top {
        bottom: calc(86px + env(safe-area-inset-bottom));
    }
    .site-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}
@media (max-width: 575.98px) {
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .back-to-top {
            bottom: calc(80px + env(safe-area-inset-bottom));
        }
    }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-card {
    animation: fadeIn 0.5s ease forwards;
}

.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.15s; }
.resource-card:nth-child(3) { animation-delay: 0.2s; }
.resource-card:nth-child(4) { animation-delay: 0.25s; }
.resource-card:nth-child(5) { animation-delay: 0.3s; }
.resource-card:nth-child(6) { animation-delay: 0.35s; }
.resource-card:nth-child(7) { animation-delay: 0.4s; }
.resource-card:nth-child(8) { animation-delay: 0.45s; }

/* 加载动画 */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* ============================================
   搜索结果页筛选栏样式
   ============================================ */
.filter-bar {
    background: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-label i {
    color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 搜索页筛选按钮样式 - 与首页一致 */
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: var(--platform-color, #ff6b35);
    color: var(--platform-color, #ff6b35);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 选中状态 - 橙红色主题 */
.filter-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border-color: #ff6b35;
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.filter-btn.active .filter-icon {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 筛选图标（首字母圆形标识） */
.filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--platform-color, #ff6b35);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-name {
    white-space: nowrap;
}

/* ============================================
   网盘筛选区域样式（新版：左侧标注+右侧按钮组）
   ============================================ */
.platform-filter-section {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.platform-filter-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.platform-filter-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.platform-filter-label i {
    color: var(--primary-color);
}

.platform-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 网盘筛选按钮样式 */
.platform-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.platform-filter-btn:hover {
    border-color: var(--platform-color, #ff6b35);
    color: var(--platform-color, #ff6b35);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 选中状态 - 橙红色主题 */
.platform-filter-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border-color: #ff6b35;
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.platform-filter-btn.active .platform-icon {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 网盘图标（首字母圆形标识） */
.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--platform-color, #ff6b35);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 网盘名称 */
.platform-name {
    white-space: nowrap;
}



/* ============================================
   v6 美化升级 - 资源卡片hover动效
   ============================================ */
.resource-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.resource-thumb img {
    transition: transform 0.3s ease;
}

.resource-thumb:hover img {
    transform: scale(1.05);
}

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

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

/* ============================================
   v6 - 返回顶部按钮
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

/* ============================================
   v6 - 空状态美化
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 16px;
    border: 1px dashed #d0d5ff;
}

.empty-state i {
    font-size: 4rem;
    color: #c0c8ff;
    margin-bottom: 15px;
    display: block;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

/* ============================================
   v6 - 精选推荐区
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #fff;
    border-radius: 12px;
    font-weight: 500;
}

.section-more {
    font-size: 0.85rem;
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.section-more:hover {
    color: #764ba2;
}

.featured-section {
    margin-bottom: 30px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.featured-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.featured-card-img {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: #f5f7fa;
}

.featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-card:hover .featured-card-img img {
    transform: scale(1.05);
}

/* ============================================
   移动端底部导航适配 (末尾确保最高优先级)
   ============================================ */
@media (max-width: 767.98px) {
    .back-to-top {
        bottom: 86px !important;
    }
    .site-footer {
        padding-bottom: 90px;
    }
}
@media (max-width: 575.98px) {
    .back-to-top {
        bottom: 80px !important;
    }
    .site-footer {
        padding-bottom: 84px;
    }
}
@media (max-width: 575.98px) {
    .section-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .section-title {
        font-size: 0.95rem;
    }
}
@media (max-width: 767.98px) {
    .section-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    .section-title {
        font-size: 1rem;
    }
}

.featured-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

.featured-card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.featured-card-body {
    padding: 14px;
}

.featured-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-card-desc {
    font-size: 0.78rem;
    color: #888;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-card-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #aaa;
}

.featured-card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}


/* ============================================
   v6 - 统计条
   ============================================ */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 30px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 25px;
}

.stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stats-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
}

.stats-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
}


/* ============================================
   v6 - 分类快捷入口
   ============================================ */
.category-nav-section {
    margin-bottom: 30px;
}

.category-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.category-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--cat-color, #667eea);
    text-decoration: none;
}

.category-nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: transform 0.3s;
}

.category-nav-card:hover .category-nav-icon {
    transform: scale(1.1);
}

.category-nav-name {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}


/* ============================================
   v6 - 热门资源横滑
   ============================================ */
.hot-scroll-section {
    margin-bottom: 30px;
}

.hot-scroll-wrapper {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.hot-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.hot-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 2px;
}

.hot-scroll-track {
    display: flex;
    gap: 14px;
    min-width: max-content;
}

.hot-scroll-card {
    flex-shrink: 0;
    width: 180px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.hot-scroll-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.hot-scroll-img {
    height: 110px;
    overflow: hidden;
    background: #f5f7fa;
}

.hot-scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hot-scroll-card:hover .hot-scroll-img img {
    transform: scale(1.05);
}

.hot-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}

.hot-scroll-info {
    padding: 10px 12px;
}

.hot-scroll-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.hot-scroll-meta {
    display: flex;
    gap: 8px;
    font-size: 0.73rem;
    color: #aaa;
}

.hot-scroll-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ============================================
   v6 - 底部多列布局
   ============================================ */
.site-footer-v6 {
    background: #1a1a2e;
    color: #ccc;
    padding: 0;
}

.footer-v6-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0 30px;
}

.footer-v6-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.footer-v6-logo i {
    font-size: 1.5rem;
    color: #8b9cf7;
}

.footer-v6-desc {
    font-size: 0.88rem;
    color: #999;
    line-height: 1.7;
    margin: 0;
}

.footer-v6-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-v6-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-v6-list li {
    margin-bottom: 10px;
}

.footer-v6-list a {
    color: #999;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.footer-v6-list a:hover {
    color: #8b9cf7;
    transform: translateX(3px);
}

.footer-v6-contact-text {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-v6-icp {
    margin-top: 10px;
}

.footer-v6-icp a {
    color: #8b9cf7;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-v6-icp a:hover {
    color: #a8b4f9;
}

.footer-v6-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-v6-copyright {
    font-size: 0.82rem;
    color: #777;
}

/* ============================================
   v6 - 图片懒加载默认样式
   ============================================ */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ============================================
   v7 自定义模块样式
   ============================================ */
.custom-block-section { margin-bottom: 2rem; }
.custom-block-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.custom-block-grid .cb-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #eee; transition: all .3s; }
.custom-block-grid .cb-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.custom-block-grid .cb-card-img { height: 140px; background: #f5f5f5; overflow: hidden; }
.custom-block-grid .cb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.custom-block-grid .cb-card-body { padding: .75rem; }
.custom-block-grid .cb-card-title { font-size: .85rem; font-weight: 600; margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.custom-block-grid .cb-card-meta { font-size: .75rem; color: #999; display: flex; gap: .8rem; }

.custom-block-list .cb-list-item { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid #f0f0f0; }
.custom-block-list .cb-list-item:last-child { border-bottom: none; }
.custom-block-list .cb-list-title { font-size: .9rem; flex: 1; }
.custom-block-list .cb-list-title a { color: #333; text-decoration: none; }
.custom-block-list .cb-list-title a:hover { color: #667eea; }
.custom-block-list .cb-list-meta { font-size: .75rem; color: #999; display: flex; gap: 1rem; }

.custom-block-numbered .cb-num-item { display: flex; align-items: center; padding: .5rem 0; border-bottom: 1px solid #f0f0f0; }
.custom-block-numbered .cb-num-item:last-child { border-bottom: none; }
.custom-block-numbered .cb-num { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: #fff; margin-right: .8rem; flex-shrink: 0; }
.custom-block-numbered .cb-num.top1 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.custom-block-numbered .cb-num.top2 { background: linear-gradient(135deg, #ffa502, #e67e22); }
.custom-block-numbered .cb-num.top3 { background: linear-gradient(135deg, #7bed9f, #2ed573); }
.custom-block-numbered .cb-num.normal { background: #ddd; color: #666; }
.custom-block-numbered .cb-num-title { flex: 1; font-size: .88rem; }
.custom-block-numbered .cb-num-title a { color: #333; text-decoration: none; }
.custom-block-numbered .cb-num-title a:hover { color: #667eea; }
.custom-block-numbered .cb-num-dl { font-size: .75rem; color: #999; margin-left: 1rem; }




/* ============================================
   v8 用户等级/徽章体系样式
   ============================================ */

/* 等级徽章 */
.level-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}
.level-badge.level-1 { background: linear-gradient(135deg, #a8b8d8, #8899b8); }
.level-badge.level-2 { background: linear-gradient(135deg, #4fc3f7, #29b6f6); }
.level-badge.level-3 { background: linear-gradient(135deg, #667eea, #764ba2); }
.level-badge.level-4 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.level-badge.level-5 { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #333; }

/* 经验文字 */
.level-exp-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}
.level-next-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* 经验进度条 */
.level-progress-bar {
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}
.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 个人中心等级展示区域 */
.user-level-display {
    padding: 8px 0;
}

/* 经验明细表格 */
.tab-content-panel .table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #eee;
}
.tab-content-panel .table td {
    font-size: 0.85rem;
    vertical-align: middle;
}

/* 后台等级配置表格 */
.settings-card-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 1rem;
}

/* 响应式 */
@media (max-width: 576px) {
    .level-badge {
        font-size: 0.72rem;
        padding: 2px 8px;
    }
    .level-progress-bar {
        max-width: 150px;
    }
    .level-next-text {
        display: none;
    }
}
