/* 基础样式 */
:root {
    --primary-color: #2196f3;
    --primary-dark: #0d47a1;
    --primary-light: #bbdefb;
    --accent-color: #ff9800;
    --text-color: #333333;
    --text-light: #757575;
    --background-color: #ffffff;
    --background-alt: #f5f5f5;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --space: 4rem;
    --space-sm: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

section {
    padding: var(--space) 10%;
}

section:nth-child(even) {
    background-color: var(--background-alt);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
    cursor: pointer;
}

.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    border-radius: 3px;
}

/* 英雄区 */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* 功能部分 */
.features h2 {
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-dark);
}

/* 截图部分 */
.screenshots h2 {
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
}

.screenshot-slider {
    position: relative;
    overflow: hidden;
}

.screenshot {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot img {
    max-width: 80%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.screenshot p {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.navigation-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-light);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}

/* 下载部分 */
.download {
    text-align: center;
}

.download h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.download p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.join-note {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 1rem 0 2rem !important;
    font-size: 1.1rem;
}

.download-options {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    min-width: 200px;
    transition: all 0.3s;
}

.download-btn i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.download-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.download-btn.disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

.download-btn.disabled:hover {
    transform: none;
}

.release-notes {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.release-notes h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.version {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.version h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.version .date {
    display: block;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ部分 */
.faq h2 {
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1.2rem;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-question .icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 1.2rem;
    max-height: 300px;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

/* 关于部分 */
.about h2 {
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
}

.developer-info {
    display: flex;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.developer-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
}

.developer-bio h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.developer-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.developer-description {
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* 页脚 */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 10% 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-right: 2rem;
    margin-bottom: 2rem;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--primary-light);
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
}

.footer-disclaimer {
    text-align: center;
    padding: 1.5rem 10%;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.beian {
    text-align: center;
    color: var(--text-light);
    margin-top: 10px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    :root {
        --space: 3rem;
        --space-sm: 1.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    section {
        padding: var(--space) 5%;
    }

    nav {
        padding: 1rem 5%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .developer-info {
        flex-direction: column;
        text-align: center;
    }

    .developer-info img {
        margin: 0 auto 2rem;
    }

    .download-options {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}