/* 下载中心页面样式 */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #999;
    --light-color: #f8f8f8;
    --dark-color: #222;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #F44336;
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --main-font: 'Noto Serif SC', serif;
}

/* 页面标题 */
.page-header {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    color: var(--accent-color);
    max-width: 600px;
    margin: 0 auto;
}

/* 英雄区域 */
.download-hero {
    height: 300px;
    background-color: var(--primary-color);
    background-image: ;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /*margin-top: 70px;*/
}

.download-hero .hero-content {
    max-width: 1200px;
    padding: 0 20px;
}

.download-hero h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 20px;
    font-family: var(--main-font);
}

.download-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
}

/* 搜索和筛选区域 */
.download-search {
    padding: 40px 0;
    background-color: white;
}

.search-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.search-box {
    display: flex;
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family: var(--main-font);
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    color: #000;
}

.filter-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.filter-group select {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family: var(--main-font);
}

.filter-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 资源统计 */
.resource-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--main-font);
}

.stat-label {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* 资源分类标签 */
.resource-tabs {
    background-color: var(--light-color);
    padding: 20px 0;
    position: sticky;
    /*top: 70px;*/
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tabs-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 0;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--secondary-color);
    position: relative;
    white-space: nowrap;
    font-family: var(--main-font);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #df1f29;
    transition: var(--transition);
}

.tab-btn:hover, 
.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn:hover::after, 
.tab-btn.active::after {
    width: 30px;
}

/* 资源展示区域 */
.resource-gallery {
    padding: 60px 0;
    background-color: white;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.resource-item {
    height: 100%;
}

.resource-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.resource-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-content h3 {
    font-size: 1.2rem;
    margin: 0 0 15px;
    color: var(--primary-color);
    font-weight: 500;
    font-family: var(--main-font);
}

.resource-content p {
    color: var(--secondary-color);
    margin-bottom: 0px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    margin-top: auto;
}

.resource-meta span {
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.resource-meta i {
    margin-right: 5px;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 30px;
    background-color: var(--light-color);
    color: var(--secondary-color);
}

.tag:nth-child(1) {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tag:nth-child(2) {
    background-color: #e8f5e9;
    color: #388e3c;
}

.tag:nth-child(3) {
    background-color: #fff8e1;
    color: #ff8f00;
}

.resource-action {
    padding: 0 25px 25px;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--main-font);
    text-decoration: none;
}

.btn-download:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-download i {
    margin-right: 8px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background-color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:hover:not(.active) {
    background-color: var(--light-color);
}

/* 热门下载 */
.featured-resources {
    padding: 80px 0;
    background-color: var(--light-color);
}

.featured-resources .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 400;
    color: var(--primary-color);
    font-family: var(--main-font);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.featured-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-icon {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.featured-content {
    flex: 1;
}

.featured-content h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--primary-color);
    font-weight: 500;
    font-family: var(--main-font);
}

.featured-content p {
    color: var(--accent-color);
    margin: 0;
    font-size: 0.9rem;
}

.featured-link {
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-left: 15px;
    transition: var(--transition);
}

.featured-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 资源申请区域 */
.resource-request {
    padding: 80px 0;
    background-color: var(--dark-color);
}

.request-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.request-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: var(--light-color);
    font-family: var(--main-font);
}

.request-text p {
    color: var(--light-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.request-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--main-font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.required {
    color: var(--error-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 25px;
    width: 100%;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--main-font);
}

.btn-submit:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .request-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .request-text {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .download-hero {
        height: 250px;
    }
    
    .download-hero h1 {
        font-size: 2.2rem;
    }
    
    .download-hero p {
        font-size: 1rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .resource-stats {
        gap: 30px;
    }
    
    .resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .request-form {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tabs-container {
        justify-content: flex-start;
        padding-bottom: 5px;
    }
} 