:root {
    --primary-color: #3b82f6; /* 主色调 - 蓝色 */
    --secondary-color: #1e293b; /* 次要色 - 深蓝灰色 */
    --accent-color: #6366f1; /* 强调色 - 蓝紫色 */
    --background-color: #f8fafc; /* 背景色 - 非常浅的灰色 */
    --text-color: #334155; /* 文本颜色 - 较深的灰色 */
    --heading-color: #1e293b; /* 标题颜色 */
    --white-color: #ffffff;
    --light-gray-color: #e2e8f0;
}

/* 全局重置和基础样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--white-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 导航栏 */
.main-header {
    background-color: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}

.logo img {
    height: 40px;
}

.main-nav {
    display: none; /* 默认在移动端隐藏 */
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-button:hover {
    background-color: #2563eb;
    color: var(--white-color);
    transform: translateY(-2px);
}

/* 汉堡菜单 */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: var(--heading-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg);
}


/* 移动端导航菜单 */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 6rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-nav.is-active {
    transform: translateX(0);
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--heading-color);
    text-decoration: none;
}

/* 通用按钮样式 */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s;
}

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

.button-primary:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}

.button-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--light-gray-color);
}

.button-secondary:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
}


/* Hero 区域 */
.hero {
    padding: 8rem 0 4rem;
    background-color: var(--white-color);
}

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

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-image {
    margin: 0 auto;
}

.hero-image img {
    max-width: 320px;
}

/* 功能区域 */
.features {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    height: 50px;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

/* 展示区域 */
.showcase {
    padding: 4rem 0;
}

.showcase-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

.showcase-gallery img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 300px;
}

/* 下载区域 */
.download {
    padding: 4rem 0;
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
}

.download h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.download p {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    min-width: 220px;
}

.download-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.download-btn img {
    height: 30px;
}

/* 页脚 */
.main-footer {
    padding: 2rem 0;
    background-color: var(--background-color);
    border-top: 1px solid var(--light-gray-color);
    font-size: 0.9rem;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* 桌面端响应式样式 */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

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

    .hero {
        padding: 10rem 0 6rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin: 0;
    }

    .hero-image img {
        max-width: 360px;
        margin-left: auto;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        margin: 0 0 2rem 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .features, .showcase, .download {
        padding: 6rem 0;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .showcase-gallery img {
        max-width: 100%;
    }

    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .main-footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}


@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
} 