﻿/* downloads.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.logo i {
    margin-right: 8px;
    color: #ffd700;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

/* 语言切换 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 20px;
    gap: 10px;
}

.language-btn {
    background: linear-gradient(to bottom, #5a7fbb, #3a5f9e);
    border: none;
    color: white;
    padding: 6px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 0 #2c3e50, 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
    width: 60px;
    height: 32px;
    flex-direction: column;
}

.language-btn:hover {
    background: linear-gradient(to bottom, #6a8fcb, #4a6fae);
}

.language-btn:active {
    box-shadow: 0 1px 0 #2c3e50, 0 2px 3px rgba(0, 0, 0, 0.2);
    top: 2px;
}

.language-btn.active {
    background: linear-gradient(to bottom, #ffd700, #e5bf00);
    color: #2c3e50;
    box-shadow: 0 2px 0 #ccaa00, 0 3px 5px rgba(0, 0, 0, 0.2);
}

.language-btn.active:active {
    box-shadow: 0 1px 0 #ccaa00, 0 2px 3px rgba(0, 0, 0, 0.2);
}

.language-btn i {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.language-btn span {
    line-height: 1;
    font-size: 0.7rem;
    display: block;
}

/* 导航样式 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 8px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

nav ul li a.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul li a i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

/* 主内容区样式 */
.hero {
    padding: 40px 0 30px;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%234a6491" opacity="0.1" width="50" height="50"/><rect fill="%234a6491" opacity="0.1" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 300px;
    width: 100%;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.hero p {
    color: #666;
    font-size: 1.1rem;
}

/* 下载分类样式 */
.download-categories {
    padding: 30px 0 50px;
    flex-grow: 1;
    width: 100%;
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

.tab-btn:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tab-btn.active {
    background: #4a6491;
    color: white;
    box-shadow: 0 4px 8px rgba(74, 100, 145, 0.3);
}

.tab-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.8rem;
}

/* 下载项样式 */
.download-section {
    display: none;
}

.download-section.active {
    display: block;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.download-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.file-icon {
    font-size: 2rem;
    color: #4a6491;
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-info h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.3;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.file-desc {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.play-btn {
    background: linear-gradient(to bottom, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 0 #1e7e34, 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
}

.play-btn:hover {
    background: linear-gradient(to bottom, #34ce57, #24d4a0);
    color: white;
    text-decoration: none;
}

.play-btn:active {
    box-shadow: 0 1px 0 #1e7e34, 0 2px 3px rgba(0, 0, 0, 0.2);
    top: 2px;
}

.play-btn i {
    margin-right: 6px;
}

.download-btn {
    background: linear-gradient(to bottom, #4a6491, #3a5f9e);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 0 #2c3e50, 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
}

.download-btn:hover {
    background: linear-gradient(to bottom, #5a7fbb, #4a6fae);
    color: white;
    text-decoration: none;
}

.download-btn:active {
    box-shadow: 0 1px 0 #2c3e50, 0 2px 3px rgba(0, 0, 0, 0.2);
    top: 2px;
}

.download-btn i {
    margin-right: 6px;
}

/* 视频模态框样式 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #4a6491;
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ffd700;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: white;
    padding: 15px 0 10px;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-section {
    text-align: center;
    margin-bottom: 5px;
    width: 100%;
}

.footer-section h3 {
    margin-bottom: 8px;
    color: #ffd700;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-section a:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

.footer-section a i {
    margin-right: 6px;
}

.copyright {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 提示框样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    nav ul li {
        margin-left: 6px;
    }
    
    nav ul li a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
}

@media (max-width: 992px) {
    nav ul li {
        margin-left: 5px;
    }
    
    nav ul li a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .language-btn {
        width: 55px;
        height: 30px;
        font-size: 0.65rem;
    }
    
    .download-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 900px) {
    nav ul li a span.nav-text {
        display: none;
    }
    
    nav ul li a i {
        margin-right: 0;
    }
    
    nav ul li {
        margin-left: 4px;
    }
    
    nav ul li a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        max-width: 100%;
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        display: none;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    nav ul li a {
        justify-content: center;
        padding: 8px;
        font-size: 0.9rem;
    }
    
    nav ul li a span.nav-text {
        display: inline;
    }
    
    nav ul li a i {
        margin-right: 8px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 30px 0 20px;
    }
    
    .download-categories {
        padding: 20px 0 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .download-item {
        padding: 15px;
    }
    
    .language-btn {
        font-size: 0.6rem;
        width: 50px;
        height: 28px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-left {
        order: 1;
        width: 100%;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    nav {
        order: 3;
        width: 100%;
    }
    
    .menu-toggle {
        order: 2;
    }
    
    .footer-section ul {
        flex-direction: row;
        gap: 15px;
    }
    
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .header-left {
        order: 1;
        width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
        flex-wrap: nowrap;
    }
    
    .logo {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
    }
    
    .language-switcher {
        order: 2;
        flex-direction: row;
        justify-content: flex-start;
        margin-right: 0;
        margin-bottom: 0;
        width: auto;
        gap: 8px;
        margin-left: 10px;
    }
    
    .menu-toggle {
        order: 3;
        align-self: center;
        margin-top: 0;
        margin-left: 15px;
        display: flex;
        align-items: center;
        padding: 6px 10px;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .file-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .file-info {
        margin-bottom: 15px;
    }
    
    .language-btn {
        width: 45px;
        height: 26px;
        font-size: 0.55rem;
    }
    
    .footer-section ul {
        flex-direction: row;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 25px 0 15px;
    }
    
    .download-categories {
        padding: 15px 0 30px;
    }
    
    .language-btn {
        width: 40px;
        height: 24px;
        font-size: 0.5rem;
        padding: 2px 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .footer-section ul {
        flex-direction: row;
        gap: 10px;
    }
    
    .footer-section ul li {
        margin-bottom: 3px;
    }
    
    .footer-section a {
        font-size: 0.8rem;
    }
    
    .footer-section h3 {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }
    
    .copyright {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .header-left {
        flex-wrap: nowrap;
    }
    
    .logo {
        margin-bottom: 0;
        font-size: 1rem;
    }
    
    .language-switcher {
        width: auto;
        justify-content: flex-start;
        gap: 6px;
        margin-left: 8px;
    }
    
    .menu-toggle {
        margin-left: 12px;
    }
    
    .language-btn {
        width: 38px;
        height: 22px;
        font-size: 0.45rem;
    }
    
    .menu-toggle {
        padding: 5px 8px;
        font-size: 1.3rem;
    }
    
    .footer-section ul {
        flex-direction: row;
        gap: 8px;
    }
}

/* 修复右侧白色块问题 */
html, body {
    overflow-x: hidden;
    width: 100%;
}

main {
    width: 100%;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}