/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root { /* 定义颜色变量*/
    --tomato-ripe: #FF6C3C;
    --tomato-raw: #C1DC2E;
    --tomato-leaf-raw: #9AB71E;
    --tomato-leaf-ripe: #7F9E13;
    --pomelo-ripe: #F4C952;
    --pomelo-raw: #D0CD16;
    --dark-gray: #2c3e50;
    --light-gray: #ecf0f1;
    --font-primary-light: #252525;
    --font-secondary-light: #B6B6B6;
    --background-light: #FAFAF0;
    --card-background: #F4F3EA;
}

body {
    background-color: var(--background-light);
    color: var(--font-primary-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 页头样式 */
header {
    background: var(--background-light);
    color: var(--font-primary-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
}

.logo-icon {
    width: 50px;
    margin-right: 10px;
}

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

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

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

.nav-links a:hover {
    opacity: 0.8;
}

/* .download-btn {
    background-color: var(--tomato-ripe);
    font-size: 16px;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
} */

/* 英雄区块样式 */
.hero {
    padding: 100px 0;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

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

.hero-text {
    flex: 1; 
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--font-primary-light);
}

.hero-text h1 span {
    color: var(--tomato-ripe);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--font-secondary-light);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tomato-status {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 40px;
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: visible;
    min-height: 400px;
}

/* 番茄图标样式 */
.tomato-icon {
    position: relative;
    width: 200px;
    height: 180px;
    display: flex;
    flex-direction: column; /*垂直排列*/
    align-items: center; /*水平居中*/
    justify-content: center; /* 子元素在容器中水平居中 */
    margin-bottom: 20px;
    overflow: visible;
    animation: float 3s ease-in-out infinite;
    /* animation: pulse 3s infinite; */
}

.tomato-leaf {
    position: absolute;
    top: 0;
    width: 180px;
    height: auto;
    z-index: 2;
}

.tomato-body {
    position: absolute;
    top: 10px;
    width: 188px;
    height: 188px;
    z-index: 1;
}

/* 移除不再需要的动画 */
@keyframes leafColorChange {
    0% { fill: var(--tomato-leaf-raw); }
    100% { fill: var(--tomato-leaf-ripe); }
}

@keyframes bodyColorChange {
    0% { fill: var(--tomato-raw); }
    100% { fill: var(--tomato-ripe); }
}

.timer {
    font-size: 2.5rem;
    margin-top: 20px;
    font-weight: 600;
    color: var(--font-primary-light);
}

.status {
    font-size: 1.5rem;
    margin-top: 10px;
    color: var(--tomato-ripe);
    font-weight: 500;
}

/* 功能区块样式 */
.features {
    padding: 100px 0;
    background-color: var(--background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--font-primary-light);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--font-primary-light);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: var(--card-background);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tomato-ripe), var(--pomelo-ripe));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 30px;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

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

/* 问题与解决方案区块样式 */
.problem-solution {
    padding: 100px 0;
    background-color: var(--background-light);
}

.ps-container {
    display: flex;
    gap: 50px;
}

.problem, .solution {
    flex: 1;
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.problem {
    border-top: 5px solid var(--tomato-ripe);
}

.solution {
    border-top: 5px solid var(--tomato-leaf-ripe);
}

.ps-title {
    font-size: 2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.problem .ps-title {
    color: var(--tomato-ripe);
}

.solution .ps-title {
    color: var(--tomato-leaf-ripe);
}

.ps-title i {
    margin-right: 15px;
}

.ps-content ul {
    list-style: none;
    padding-left: 20px;
}

.ps-content li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
}

.problem li:before {
    content: "✗";
    color: var(--tomato-ripe);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solution li:before {
    content: "✓";
    color: var(--tomato-leaf-ripe);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 行动呼吁区块样式 */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--tomato-ripe), var(--pomelo-ripe));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* 在CTA区块中的download-btn需要特殊样式以适应彩色背景 */
.cta .download-btn {
    background-color: white;
    color: var(--tomato-ripe);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta .download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}

/* 页脚样式 */
footer {
    background-color: var(--background-light);
    color: var(--font-primary-light);
    padding: 60px 0 30px;
}

.copyright {
    text-align: center;
    /* padding-top: 30px; */
    color: var(--font-secondary-light);
    font-size: 0.9rem;
}

/* 动画 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 50px;
    }
    
    .ps-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .app-mockup {
        width: 280px;
        height: 520px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* App Store徽章样式 */
.app-store-badge {
    display: inline-block;
    height: 40px; /* 保持SVG原始高度 */
    width: auto;
    transition: all 0.3s;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* 在CTA区块中的app-store-badge需要特殊样式 */
.cta .app-store-badge {
    height: 50px; /* 在CTA区块中稍微大一点 */
}

.cta .app-store-badge:hover {
    transform: translateY(-5px);
}

/* 右侧控制区域样式 */
.right-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 语言切换按钮样式 */
.language-switcher {
    display: flex;
    background-color: var(--card-background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-btn {
    border: none;
    background: none;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--font-primary-light);
    min-width: 40px;
    text-align: center;
    position: relative; /* 添加相对定位 */
    text-decoration: none; /* 去除链接下划线 */
}

/* 清除所有可能的激活状态样式 */
.lang-btn.active {
    background-color: var(--tomato-ripe) !important; /* 使用!important确保优先级 */
    color: white !important;
    box-shadow: none !important;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(0,0,0,0.05);
}

/* 响应式设计中添加语言切换按钮的样式 */
@media (max-width: 768px) {
    .right-controls {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .language-switcher {
        margin-bottom: 10px;
    }
}
