/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页头样式 */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* 标签页容器 */
.tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 标签头部 */
.tab-header {
    display: flex;
    border-bottom: 1px solid #e8ecf0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-header::-webkit-scrollbar {
    display: none;
}

/* 标签按钮 */
.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 20px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    color: #5a6c7d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    font-weight: 500;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.tab-btn.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    background: #fff5f5;
}

.tab-btn .icon {
    font-size: 1.3em;
}

/* 标签内容区域 */
.tab-content {
    padding: 50px 60px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 平台标题 */
.platform-title {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.platform-subtitle {
    color: #7f8c8d;
    font-size: 1em;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 下载卡片网格 */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* 下载卡片 */
.download-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.download-card.alt {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.download-card.alt:hover {
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
}

/* 卡片标题 */
.card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65em;
    font-weight: 600;
}

.card-version {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.card-date {
    font-size: 0.85em;
    opacity: 0.8;
    margin-bottom: 25px;
}

.card-desc {
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 25px;
}

/* 下载按钮 */
.download-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.download-card.alt .download-btn {
    color: #f5576c;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 提示框 */
.tip-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.tip-box.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.tip-box h3 {
    color: #2c3e50;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.tip-box p {
    color: #5a6c7d;
    font-size: 0.9em;
    line-height: 1.6;
}

.tip-box a {
    color: #3498db;
    text-decoration: none;
}

.tip-box a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .tab-content {
        padding: 30px 20px;
    }

    .platform-title {
        font-size: 1.5em;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        min-width: 100px;
        padding: 15px 20px;
        font-size: 0.9em;
    }

    .tab-btn .icon {
        font-size: 1.1em;
    }
}
