/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 - 白色背景 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部搜索栏 */
.top-search-bar {
    background: linear-gradient(135deg, #2a7fff 0%, #1a5fd8 100%);
    padding: 15px 0;
    border-bottom: 3px solid #ff6b35;
    box-shadow: 0 2px 15px rgba(42, 127, 255, 0.2);
}

.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a7fff;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

/* 修复导航标题链接样式 */
.brand-text h1.nav a {
    color: white !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.brand-text h1.nav a:hover {
    color: #ff6b35 !important;
}

.brand-text .tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    letter-spacing: 1px;
}

/* 修复域名链接样式 */
.brand-text .tagline a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.brand-text .tagline a:hover {
    color: #ff6b35 !important;
}

/* 搜索框 */
.search-box {
    flex: 1;
    max-width: 800px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b35;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #ff8535;
    transform: translateY(-50%) scale(1.1);
}

/* 用户工具 */
.user-tools {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    text-align: center;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.user-btn.vip {
    background: linear-gradient(135deg, #ff6b35, #ff8535);
    border: none;
}

.user-btn.vip:hover {
    background: linear-gradient(135deg, #ff8535, #ff6b35);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* 主导航 */
.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    justify-content: center;
}

.main-nav li a {
    display: block;
    padding: 12px 30px;
    color: #555;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.main-nav li a:hover {
    color: #2a7fff;
    background: rgba(42, 127, 255, 0.05);
}

.main-nav li.active a {
    color: #2a7fff;
}

.main-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #2a7fff;
    border-radius: 3px;
}

/* 首页特色区域 */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0;
    margin: 25px 0;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2a7fff, #ff6b35);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 36px;
    color: #222;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.hero-title span {
    color: #2a7fff;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #2a7fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 功能模块 */
.feature-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    padding: 30px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 127, 255, 0.1);
    border-color: #2a7fff;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2a7fff, #1a5fd8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.feature-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2a7fff;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.feature-link:hover {
    color: #ff6b35;
    gap: 12px;
}

/* 热门资料区域 */
.hot-resources {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    margin: 40px 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px 35px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2a7fff, #ff6b35);
}

.section-header h2 {
    color: #222;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #2a7fff, #1a5fd8);
    border-radius: 2px;
}

.section-more {
    color: #2a7fff;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    margin-left: auto;
    transition: color 0.3s;
}

.section-more:hover {
    color: #ff6b35;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
}

.resource-card {
    padding: 25px;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.resource-card:hover {
    background: rgba(42, 127, 255, 0.03);
}

.resource-card:nth-child(3n) {
    border-right: none;
}

.resource-card:nth-last-child(-n+3) {
    border-bottom: none;
}

.resource-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.resource-tag {
    background: rgba(42, 127, 255, 0.1);
    color: #2a7fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(42, 127, 255, 0.2);
}

.resource-size {
    color: #666;
    font-size: 11px;
    padding: 3px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.resource-title {
    margin-bottom: 15px;
}

.resource-title a {
    font-size: 16px;
    color: #222;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s;
    display: block;
}

.resource-title a:hover {
    color: #2a7fff;
}

.resource-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.resource-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2a7fff, #1a5fd8);
    color: white;
    text-decoration: none !important;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.resource-download:hover {
    background: linear-gradient(135deg, #3d8bff, #2a7fff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 127, 255, 0.3);
}

/* 分类展示 */
.category-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-item {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    padding: 25px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.category-item:hover {
    transform: translateY(-3px);
    border-color: #2a7fff;
    box-shadow: 0 8px 25px rgba(42, 127, 255, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2a7fff, #1a5fd8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.category-name {
    font-size: 18px;
    color: #222;
    font-weight: 700;
}

.category-count {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #555;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s;
    display: block;
}

.category-list a:hover {
    color: #2a7fff;
    padding-left: 5px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2a7fff;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s;
}

.category-link:hover {
    color: #ff6b35;
    gap: 12px;
}

/* 最新资料 */
.latest-resources {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    margin: 40px 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.latest-list {
    padding: 0;
}

.latest-item {
    display: flex;
    align-items: center;
    padding: 20px 35px;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.latest-item:hover {
    background: rgba(42, 127, 255, 0.03);
}

.latest-item:last-child {
    border-bottom: none;
}

.latest-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a7fff;
    font-size: 16px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid #e8e8e8;
}

.latest-content {
    flex: 1;
}

.latest-title {
    margin-bottom: 5px;
}

.latest-title a {
    font-size: 15px;
    color: #222;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.3s;
}

.latest-title a:hover {
    color: #2a7fff;
}

.latest-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.latest-actions {
    flex-shrink: 0;
}

.latest-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2a7fff, #1a5fd8);
    color: white;
    text-decoration: none !important;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.latest-download:hover {
    background: linear-gradient(135deg, #3d8bff, #2a7fff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 127, 255, 0.3);
}

/* 底部 */
.footer {
    background: #f8f9fa;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 1px solid #e8e8e8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #222;
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #2a7fff, #1a5fd8);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none !important;
    transition: all 0.3s;
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #2a7fff;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
    color: #999;
    font-size: 12px;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .resource-card:nth-child(3n) {
        border-right: 1px solid #e8e8e8;
    }
    
    .resource-card:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-tools {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .resource-card {
        border-right: none !important;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .resource-card:last-child {
        border-bottom: none;
    }
    
    .feature-modules,
    .category-showcase {
        grid-template-columns: 1fr;
    }
}