/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 20px;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #007bff;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #0056b3;
}

/* 搜索区域样式 */
.search-section {
    background-color: #007bff;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.search-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.hot-search {
    margin-bottom: 30px;
}

.hot-search a {
    color: #fff;
    text-decoration: none;
    background-color: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 8px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.hot-search a:hover {
    background-color: rgba(255,255,255,0.3);
}

.main-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
}

.main-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.main-search button {
    padding: 15px 30px;
    background-color: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.main-search button:hover {
    background-color: #e55a2b;
}

/* 主内容区域样式 */
.main {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.download-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.download-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.item-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.item-info h3 a:hover {
    color: #007bff;
}

.item-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.item-meta {
    display: flex;
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.item-meta span {
    margin-right: 15px;
}

.item-action {
    text-align: right;
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #218838;
}

.no-content {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 底部样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-info p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        margin: 15px 0;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav li {
        margin: 5px 0;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        flex: 1;
    }
    
    .main-search {
        flex-direction: column;
    }
    
    .main-search input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .main-search button {
        border-radius: 4px;
    }
    
    .download-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 20px;
    }
}