/* 基础样式 */
:root {
    --primary: #ff6b6b;
    --light: #f8f9fa;
    --dark: #333;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica', Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 头部 */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo a {
    font-size: 1.8em;
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}
.main-nav ul {
    display: flex;
    list-style: none;
}
.main-nav li {
    margin: 0 15px;
}
.main-nav a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: var(--primary);
}
.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}
.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: #e55a5a;
    transform: translateY(-2px);
}
.btn-download {
    background: linear-gradient(135deg, #ff6b6b, #ee5a78);
    color: white;
    font-size: 1.1em;
    padding: 12px 30px;
    border-radius: 30px;
}

/* 卡片 */
.card, .download-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.card:hover, .download-card:hover {
    transform: translateY(-5px);
}
.card h4 {
    margin-bottom: 10px;
    color: var(--primary);
}
.card .excerpt {
    color: var(--gray);
    margin-bottom: 15px;
}
.meta {
    font-size: 0.9em;
    color: var(--gray);
}
.meta i {
    margin-right: 5px;
}

/* 下载卡片 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.download-card {
    display: flex;
    flex-direction: column;
}
.download-card .thumb {
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}
.download-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.download-card .info {
    padding: 15px 0 0;
}
.download-card .specs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
}
.download-card .specs span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--gray);
}

/* 下载详情页 */
.download-page {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 20px auto;
}
.page-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2em;
}
.download-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95em;
}
.download-specs span {
    display: flex;
    align-items: center;
}
.download-specs i {
    color: var(--primary);
    margin-right: 8px;
}
.content-area {
    margin: 30px 0;
    line-height: 1.8;
}
.download-action {
    text-align: center;
    margin: 40px 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-nav, .search-box {
        margin-top: 10px;
    }
    .main-nav ul {
        flex-direction: column;
    }
    .main-nav li {
        margin: 5px 0;
    }
    .search-box input {
        width: 150px;
    }
    .card-grid, .download-grid {
        grid-template-columns: 1fr;
    }
}