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

/* 基础样式 */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 导航栏 */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .nav-links.mobile-menu {
        display: flex;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007AFF;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.app-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.platform-section {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.platform-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.app-btn-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #007AFF;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    width: 100%;
    max-width: 200px;
    justify-content: center;
}

.app-btn:hover {
    transform: translateY(-2px);
}

.app-btn.wechat-btn {
    background-color: #07C160;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.app-btn.wechat-btn:hover {
    background-color: #06a853;
}

.app-btn img {
    width: 24px;
    height: 24px;
}

/* 空状态 */
.app-btn-container.empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
}

.app-btn-container.empty p {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 微信小程序二维码 */
.wechat-mini-program {
    margin-top: 20px;
    text-align: center;
}

.wechat-mini-program img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.wechat-mini-program p {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 平台特定样式 */
.platform-section.ios {
    border-top: 4px solid #007AFF;
}

.platform-section.android {
    border-top: 4px solid #34A853;
}

.platform-section.wechat {
    border-top: 4px solid #07C160;
}

@media (max-width: 768px) {
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-section {
        width: 100%;
        max-width: 300px;
    }
    
    .platform-section h3 {
        font-size: 1rem;
    }
    
    .app-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .app-btn-container.empty {
        min-height: 100px;
    }
}

/* 应用介绍区域 */
.app-section {
    padding: 100px 0;
    background-color: #fff;
}

.app-section:nth-child(even) {
    background-color: #f8f9fa;
}

.app-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.app-section .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    text-align: center;
}

.app-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.app-section:nth-child(even) .app-content {
    flex-direction: row-reverse;
}

.app-screenshot {
    flex: 1;
    text-align: center;
}

/* 轮播样式 */
.screenshot-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

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

.app-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #f0f4f8;
}

#easy-account .feature-icon {
    background-color: #e6f0ff;
}

#todokit .feature-icon {
    background-color: #f3e8ff;
}

.feature-icon img {
    width: 32px;
    height: 32px;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.app-download {
    text-align: center;
    margin-top: 60px;
}

.download-btn {
    display: inline-block;
    background-color: #007AFF;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.about-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-info {
    margin-top: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.footer-social img {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #ccc;
}

.beian-info {
    margin-top: 15px;
    font-size: 0.8rem;
}

.beian-info a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-info a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

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

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .app-content {
        flex-direction: column !important;
        gap: 40px;
    }

    .app-screenshot {
        order: -1;
    }

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

    .feature {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .app-section {
        padding: 60px 0;
    }

    .app-section h2 {
        font-size: 1.6rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon img {
        width: 24px;
        height: 24px;
    }

    .contact-info {
        padding: 20px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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