/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #42d3ad;
    --secondary-color: #6c757d;
    --accent-color: #E3F5F0;
    --text-color: #333;
    --light-text: #666;
    --background-color: #fff;
    --light-bg: #f0faf7;
    --border-color: #eaeaea;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --swiper-theme-color: #42d3ad !important;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    user-select: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

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

.download-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.download-btn:hover {
    background-color: #2db894;
    color: white !important;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f0faf7 0%, #daf4ed 100%);
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.download-btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
}

.download-btn-primary:hover {
    background-color: #2db894;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(66, 211, 173, 0.3);
}

.download-hint {
    font-size: 0.9rem;
    color: var(--light-text);
    margin: 0;
}

.hero-image {
    flex: 1;
    position: relative;
}

.app-showcase {
    width: 100%;
    max-width: 400px;
    border-radius: 78px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(5deg);
    transition: var(--transition);
}

.app-showcase:hover {
    transform: rotate(0deg) scale(1.05);
}

/* 功能特性 */
.features {
    padding: 100px 0;
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--light-text);
    font-size: 1rem;
}

/* 应用截图区域 */
.screenshots {
    padding: 8rem 0;
    background-color: var(--light-bg);
}

.screenshots-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.screenshot-image-container {
    background-color: #fafafa;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    flex: 1;
}

.screenshot-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 48px;
    user-select: none;
}

.screenshot-info {
    padding: 1.5rem 2rem;
    text-align: center;
    user-select: none;
}

.screenshot-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    user-select: none;
}

.screenshot-info p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

/* Swiper样式定制 */
.gallery-slider {
    width: 100%;
    padding-bottom: 2rem;
}

/* 非循环模式下的幻灯片样式 */
.gallery-slider .swiper-slide {
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.gallery-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* 只有在有前后幻灯片时显示 */
.gallery-slider .swiper-slide-prev,
.gallery-slider .swiper-slide-next {
    opacity: 0.8;
    transform: scale(0.95);
}

/* 当到达第一张幻灯片时 */
.gallery-slider.swiper-no-swiping-prev .swiper-button-prev {
    opacity: 0.5;
    cursor: default;
}

/* 当到达最后一张幻灯片时 */
.gallery-slider.swiper-no-swiping-next .swiper-button-next {
    opacity: 0.5;
    cursor: default;
}

/* 分页器样式 */
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 30px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* 导航按钮样式 */
.swiper-button-prev,
.swiper-button-next {
    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--primary-color);
    color: #E3F5F0;
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .screenshots {
        padding: 6rem 0;
    }

    .screenshot-image-container {
        padding: 1.5rem;
        min-height: 250px;
    }

    .screenshot-info {
        padding: 1.2rem 1.5rem;
    }

    .gallery-slider .swiper-slide {
        opacity: 1;
        transform: scale(1);
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: var(--background-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 下载CTA */
.download-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2db894 100%);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-content .download-btn-primary {
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 3rem;
}

.download-content .download-btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
}

.wechat-tip-img {
    max-width: 150px;
    margin: 20px auto;
}

/* 页脚 */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 1.8rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-content h2 {
        font-size: 2.8rem;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 20px 0;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 999;
    }

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

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .download-btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .app-showcase {
        max-width: 280px;
        border-radius: 54px !important;
    }

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

    .features,
    .screenshots,
    .about,
    .download-cta {
        padding: 80px 0;
    }
}