/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --primary-hover: #ff5252;
    --secondary-color: #4ECDC4;
    --success-color: #51cf66;
    --warning-color: #ffd43b;
    --info-color: #339af0;
    --purple-color: #9775fa;
    --orange-color: #ff922b;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-color: #212529;
    --text-secondary: #868e96;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #FF6B6B 0%, #ff8787 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.nav-logo {
    width: 36px;
    height: 36px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero 区域 */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.app-preview {
    position: relative;
}

.preview-card {
    background: white;
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.tomato-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.timer-text {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.status-text {
    font-size: 18px;
    color: var(--text-secondary);
}

/* 章节通用样式 */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* 功能特性 */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-icon.tomato {
    background: linear-gradient(135deg, #FF6B6B 0%, #ff8787 100%);
}

.feature-icon.blue {
    background: linear-gradient(135deg, #339af0 0%, #4dabf7 100%);
}

.feature-icon.green {
    background: linear-gradient(135deg, #51cf66 0%, #69db7c 100%);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #9775fa 0%, #b197fc 100%);
}

.feature-icon.yellow {
    background: linear-gradient(135deg, #ffd43b 0%, #ffd43b 100%);
}

.feature-icon.orange {
    background: linear-gradient(135deg, #ff922b 0%, #ffa94d 100%);
}

.feature-icon svg {
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 应用截图 */
.screenshots {
    background: var(--bg-secondary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.screenshot-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.screenshot-placeholder {
    aspect-ratio: 16/10;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.timer-screen {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
}

.tasks-screen {
    background: linear-gradient(135deg, #e3fafc 0%, #c5f6fa 100%);
}

.stats-screen {
    background: linear-gradient(135deg, #ebfbee 0%, #d3f9d8 100%);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    color: rgba(0, 0, 0, 0.3);
}

.placeholder-text {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
}

.screenshot-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.screenshot-description {
    color: var(--text-secondary);
}

/* 下载区域 */
.download {
    background: white;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.download-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.download-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.download-icon.windows {
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
}

.download-icon.macos {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
}

.download-icon.linux {
    background: linear-gradient(135deg, #FCC624 0%, #FFD54F 100%);
}

.download-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-version {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-download {
    width: 100%;
    justify-content: center;
    background: var(--gradient);
    color: white;
    margin-top: 16px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-info {
    text-align: center;
    padding: 24px;
    background: #f1f3f5;
    border-radius: 12px;
}

.download-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
}

.info-icon {
    width: 20px;
    height: 20px;
}

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.download-link:hover {
    text-decoration: underline;
}

/* 常见问题 */
.faq {
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #212529;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 48px;
    height: 48px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
}

.footer-description {
    color: #adb5bd;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-column a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 30px;
    text-align: center;
    color: #adb5bd;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid,
    .screenshots-grid,
    .download-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .screenshots-grid,
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

