/* 全局样式 */
:root {
    --primary-color: #0078d4;
    --secondary-color: #6264a7;
    --accent-color: #ffb900;
    --text-color: #1a1a1a;
    --text-light: #616161;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 暗色主题 */
body.dark-theme {
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --border-color: #303030;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* 导航栏样式 */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.navbar-brand a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--primary-color);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s;
    padding: 8px;
    border-radius: 50%;
}

.action-item:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* Windows版本切换菜单 - 位于右侧 */
.version-switcher {
    display: flex;
    gap: 5px;
}

.version-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background-color: var(--bg-light);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 14px;
}

.version-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

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

/* Windows正版系统下载横幅 */
.genuine-banner {
    background-color: #e6f3ff;
    border-bottom: 2px solid #cce7ff;
    margin-bottom: 20px;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.1);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-weight: 500;
    font-size: 16px;
}

/* 面包屑导航 */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0 60px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 60px;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    transition: background 0.5s ease;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* 系统要求 */
.system-requirements {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    transition: background-color 0.3s ease;
}

.system-requirements h3 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.system-requirements p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.requirement-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.requirement-item .icon {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 5px;
}

.requirement-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.requirement-item p {
    font-size: 14px;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 20px;
}

/* 下载选项 */
.download-options {
    margin-bottom: 60px;
}

.download-options h3 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.download-options p {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.download-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.tab-btn:hover {
    background-color: #e8e8e8;
}

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

.tab-content {
    display: none;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    gap: 30px;
    transition: background-color 0.3s ease;
}

.tab-content.active {
    display: flex;
    flex-wrap: wrap;
}

.tab-image {
    flex: 1;min-width: 300px;
}

.tab-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.tab-text {
    flex: 1;
    min-width: 300px;
}

.tab-text h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.tab-text p {
    text-align: left;
    margin-bottom: 20px;
}

.tab-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.tab-text li {
    margin-bottom: 10px;
}

.iso-selector {
    margin-bottom: 20px;
}

.iso-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.iso-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.iso-note {
    font-size: 14px;
    color: var(--text-light);
}

/* 常见问题 */
.faq {
    margin-bottom: 60px;
}

.faq h3 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 0 20px;
    color: var(--text-light);
}

.faq-answer.active {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* 附加信息 */
.additional-info {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.additional-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.additional-info p {
    margin-bottom: 20px;
}

.info-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-link {
    display: block;
    padding: 12px 15px;
    background-color: var(--bg-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.info-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 页脚 */
footer {
    background-color: var(--bg-light);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h5 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-language {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-language select {
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal p {
    color: var(--text-light);
    margin-left: 15px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        margin-top: 30px;
        text-align: center;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .navbar-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .system-requirements,
    .additional-info {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .tab-content.active {
        flex-direction: column;
    }
    
    .tab-image {
        order: 1;
    }
    
    .tab-text {
        order: 2;
    }
    
    .download-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 400px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-legal p {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .page-title h1 {
        font-size: 24px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .system-requirements h3,
    .download-options h3,
    .faq h3,
    .additional-info h3 {
        font-size: 24px;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    /* 在小屏幕上优化Windows版本切换按钮 */
    .version-switcher {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .version-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Toast通知样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background-color: #10b981;
}

.toast-info {
    background-color: #3b82f6;
}

.toast-warning {
    background-color: #f59e0b;
}

.toast-error {
    background-color: #ef4444;
}