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

/* 根变量 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.external::after {
    content: '↗';
    margin-left: 0.25rem;
    font-size: 0.75rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* 主页横幅 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* 特性区域 */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 下载区域 */
.download {
    padding: 80px 0;
    background: white;
}

.download-preview {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.download-preview p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.version-badge, .release-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.version-label, .date-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.version-number, .date-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.download-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.platform-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.platform-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.download-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.download-link.external::after {
    content: ' ↗';
    font-size: 0.75rem;
}

/* 更新日志 */
.changelog {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.changelog-item {
    background: white;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.changelog-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.changelog-header {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.changelog-version {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.changelog-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.changelog-content {
    padding: 1.5rem 2rem;
}

.changelog-list {
    list-style: none;
    padding: 0;
}

.changelog-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.changelog-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.changelog-more {
    text-align: center;
    margin-top: 2rem;
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .version-info {
        flex-direction: column;
        align-items: center;
    }

    .changelog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .download-card {
        padding: 1.5rem;
    }

    .changelog-header,
    .changelog-content {
        padding: 1rem 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content,
.feature-card,
.download-card,
.changelog-item {
    animation: fadeInUp 0.6s ease-out;
}

.hero-image {
    animation: fadeIn 0.8s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 焦点样式 */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 加载动画 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 更新日志页面样式 */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.changelog-page {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.changelog-page .changelog-container {
    max-width: 900px;
    margin: 0 auto;
}

.changelog-page .changelog-item {
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.changelog-page .changelog-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.changelog-page .changelog-header {
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.changelog-page .changelog-version {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.changelog-page .changelog-date {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.changelog-tag {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-tag.new {
    background: #10b981;
    color: white;
}

.changelog-tag.major {
    background: #f59e0b;
    color: white;
}

.changelog-tag.feature {
    background: #3b82f6;
    color: white;
}

.changelog-tag.fix {
    background: #6b7280;
    color: white;
}

.changelog-page .changelog-content {
    padding: 2rem;
}

.changelog-section {
    margin-bottom: 2rem;
}

.changelog-section:last-child {
    margin-bottom: 0;
}

.changelog-section .section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.changelog-page .changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-page .changelog-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-light);
}

.changelog-page .changelog-list li:last-child {
    border-bottom: none;
}

.changelog-page .changelog-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.changelog-page .changelog-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.changelog-page .changelog-more {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 导航栏激活状态 */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式设计 - 更新日志页面 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    .changelog-page .changelog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .changelog-page .changelog-version {
        font-size: 1.25rem;
    }
    
    .changelog-page .changelog-content {
        padding: 1.5rem;
    }
    
    .changelog-page .changelog-more {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .changelog-page {
        padding: 40px 0;
    }
    
    .changelog-page .changelog-header {
        padding: 1rem 1.5rem;
    }
    
    .changelog-page .changelog-content {
        padding: 1rem 1.5rem;
    }
    
    .changelog-page .changelog-list li {
        padding: 0.5rem 0 0.5rem 1.25rem;
    }
}

/* 下载页面样式 */
.version-selector {
    padding: 2rem 0 0 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.version-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.version-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-width: 200px;
    position: relative;
}

.version-tab:hover {
    background: rgba(255, 255, 255, 0.5);
    border-bottom-color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.version-tab.active {
    background: white !important;
    border-bottom-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    box-shadow: none;
}

.version-tab.active .version-number,
.version-tab.active .version-label,
.version-tab.active .version-date {
    color: var(--text-primary) !important;
    text-shadow: none;
}

/* 确保active状态下的所有文字都是深色 */
.version-tab.active * {
    color: var(--text-primary) !important;
}

/* 额外的强制样式 */
.version-tab.active span {
    color: var(--text-primary) !important;
}

.version-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.version-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.version-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.download-content {
    padding: 2rem 0 3rem 0;
    background: white;
    border-top: 1px solid var(--border-light);
}

.version-downloads {
    display: none;
}

.version-downloads.active {
    display: block;
}

.download-section {
    margin-bottom: 3rem;
}

.download-section .section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.download-section .download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.download-section .download-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.download-section .download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.download-section .platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.download-section .platform-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.download-section .platform-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.download-section .download-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-section .download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.download-section .download-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-section .download-link .link-text {
    font-weight: 500;
}

.download-section .download-link .file-size {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 400;
}

.download-section .download-link.external::after {
    content: ' ↗';
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.other-downloads {
    padding: 3rem 0;
    background: white;
}

.other-downloads .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.other-downloads .download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 响应式设计 - 下载页面 */
@media (max-width: 768px) {
    .version-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .version-tab {
        min-width: 250px;
    }
    
    .download-section .download-grid {
        grid-template-columns: 1fr;
    }
    
    .download-section .download-card {
        padding: 1.5rem;
    }
    
    .download-section .download-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .download-section .download-link .file-size {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .version-selector {
        padding: 1rem 0;
    }
    
    .version-tab {
        padding: 1rem 1.5rem;
        min-width: 200px;
    }
    
    .version-number {
        font-size: 1.25rem;
    }
    
    .download-content {
        padding: 2rem 0;
    }
    
    .download-section .section-title {
        font-size: 1.5rem;
    }
    
    .download-section .download-card {
        padding: 1rem;
    }
    
    .download-section .platform-icon {
        font-size: 2.5rem;
    }
}

/* 文章页面样式 */
.article-categories {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.category-tab:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.category-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.article-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.category-tab:not(.active) .article-count {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.articles-content {
    padding: 3rem 0;
    background: white;
}

.articles-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-card .article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card .article-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.article-card .article-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card .article-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.article-card .article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-card .article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-card .tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.article-card .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.recommended-articles {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.recommended-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.recommended-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.recommended-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.recommended-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.recommended-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.recommended-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.recommended-link:hover {
    color: var(--primary-dark);
}

/* 文章详情页样式 */
.article-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.article-breadcrumb {
    margin-bottom: 1rem;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.article-breadcrumb a:hover {
    color: white;
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-header .article-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-header .article-date, .article-header .article-read-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.article-header .article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-header .article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-header .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-content {
    padding: 3rem 0;
    background: white;
}

.article-content .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
}

.article-body {
    max-width: 800px;
}

.article-intro {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.article-intro p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.article-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.article-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.article-section ul, .article-section ol {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-section li {
    margin-bottom: 0.5rem;
}

.article-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.article-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.article-section code {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
}

.code-block {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.code-header {
    background: #374151;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #4b5563;
}

.code-title {
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
}

.code-content {
    padding: 1rem;
}

.code-content code {
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    background: none;
    border: none;
    padding: 0;
}

.info-box, .warning-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box {
    border-left-color: var(--primary-color);
}

.warning-box {
    border-left-color: #f59e0b;
}

.info-icon, .warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4, .warning-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-content p, .warning-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.warning-content ul {
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.5rem;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.sidebar-menu a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.sidebar-links a:hover {
    color: var(--primary-color);
}

.related-articles {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.article-content .article-footer {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 响应式设计 - 文章页面 */
@media (max-width: 1024px) {
    .article-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .category-tab {
        min-width: 200px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 2rem 0;
    }
    
    .article-body {
        max-width: 100%;
    }
    
    .article-intro {
        padding: 1.5rem;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
    }
    
    .info-box, .warning-box {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-categories {
        padding: 1rem 0;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        min-width: 150px;
    }
    
    .articles-content {
        padding: 2rem 0;
    }
    
    .article-card {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-tags {
        gap: 0.25rem;
    }
    
    .tag {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }
    
    .article-content {
        padding: 1.5rem 0;
    }
    
    .article-header {
        padding: 100px 0 40px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-intro {
        padding: 1rem;
    }
    
    .article-section h2 {
        font-size: 1.25rem;
    }
    
    .code-block {
        margin: 1rem 0;
    }
    
    .code-content {
        padding: 0.75rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
} 