/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6C63FF;
    --primary-hover: #5A52E0;
    --secondary-color: #7E57C2;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(108, 99, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(108, 99, 255, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ========== 英雄区域 ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 0;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}


/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-download {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-disabled {
    background: #CCCCCC;
    color: #999999;
    cursor: not-allowed;
    width: 100%;
}

.btn-icon {
    font-size: 20px;
}

/* ========== 区块标题 ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* ========== 功能特色 ========== */
.features {
    background: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== 软件截图 ========== */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay span {
    font-size: 16px;
    font-weight: 600;
}

/* ========== 下载区域 ========== */
.download {
    background: var(--bg-gray);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.download-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.download-card:not(.download-disabled):hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.download-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.download-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.download-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

.download-version {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.download-badge {
    display: inline-block;
    background: #FFA726;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.download-disabled {
    opacity: 0.6;
}

/* ========== 版本历史 ========== */
.versions-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.versions-more {
    text-align: center;
    margin-top: 30px;
}

.versions-more .btn {
    padding: 12px 30px;
}

.version-item {
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.version-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.version-header {
    margin-bottom: 20px;
    text-align: center;
}

.version-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.version-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.version-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-latest {
    background: #4CAF50;
    color: white;
}

.badge-stable {
    background: #2196F3;
    color: white;
}

.version-date {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.version-content {
    color: var(--text-color);
    line-height: 1.8;
    white-space: pre-line;
    margin-bottom: 20px;
    flex: 1;
    font-size: 14px;
}

.version-download {
    margin-top: auto;
    padding-top: 20px;
}

.btn-version {
    padding: 10px 25px;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* ========== 联系我们 ========== */
.contact {
    background: var(--bg-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    user-select: all;
}

/* ========== 页脚 ========== */
.footer {
    background: #2C3E50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand h3 {
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ========== 回到顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

