/*
 * Styles.css
 * 这个文件包含网站的视觉样式，如颜色、字体、动画等
 * 与布局样式分离，方便后续主题变更和维护
 */

/* 基础设置 */
:root {
    /* 颜色方案 - 主题颜色 */
    --primary-color: #4a90e2;
    --secondary-color: #6c63ff;
    --accent-color: #54e6af;
    --dark-color: #272a33;
    --light-color: #f8f9fa;
    
    /* 中性色调 */
    --text-color: #333;
    --text-color-light: #666;
    --border-color: #e0e0e0;
    --background-color: #fff;
    --background-gray: #f5f7fa;
    
    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* 字体 */
    --font-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    --footer-color: #1f2937;
    --card-background: #fff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --spacing-unit: 8px;
    --container-padding: 20px;
    --header-height: 70px;
    --section-gap: 0.5rem; /* 减少区域间距 */
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

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

/* 排版 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-light {
    color: var(--text-color-light);
}

/* 按钮 */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
}

/* 卡片组件 */
.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-color-light);
}

/* 横向卡片样式 */
.horizontal-card {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.horizontal-card .card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.horizontal-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.horizontal-card .card-text {
    font-size: 0.9rem;
    flex-grow: 1;
}

/* 横向特性卡片 */
.feature.horizontal-feature {
    padding: 12px;
    margin-bottom: 0;
    height: auto;
    min-height: 200px;
}

.feature.horizontal-feature .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.feature.horizontal-feature .feature-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature.horizontal-feature .feature-text {
    font-size: 0.85rem;
}

/* 使用方法卡片样式 */
.how-it-works-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.how-it-works-card .card-content {
    padding: 1rem;
    flex-grow: 0;
}

.how-it-works-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.how-it-works-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-color-light);
}

.how-it-works-card .image-container {
    height: 300px;
    padding: 1rem;
}

.how-it-works-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* 横向使用方法卡片 */
.how-it-works-card.horizontal-step {
    min-height: auto;
}

.how-it-works-card.horizontal-step .image-container {
    height: 300px;
}

#how-it-works .container {
    max-width: 1200px;
    margin: 0 auto;
}

#how-it-works .horizontal-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    #how-it-works .horizontal-scroll {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .how-it-works-card .image-container,
    .how-it-works-card.horizontal-step .image-container {
        height: 250px;
    }
}

/* 横向评价卡片 */
.testimonial.horizontal-testimonial {
    padding: 18px;
    margin-bottom: 0;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.testimonial.horizontal-testimonial .testimonial-content {
    margin-bottom: 12px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.testimonial.horizontal-testimonial .star-rating {
    margin-bottom: 12px;
    font-size: 1rem;
}

/* 价格卡片 */
.pricing-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.pricing-card ul {
    text-align: left;
    margin: 0;
    padding: 0;
    list-style-type: none;
    margin-bottom: 1rem;
    flex: 1;
}

.pricing-card ul li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.pricing-card ul li i {
    margin-right: 10px;
}

.pricing-card .btn {
    margin-top: auto;
}

/* 横向价格卡片 */
.pricing-card.horizontal-pricing {
    text-align: center;
    height: 100%;
}

.pricing-card.horizontal-pricing .card-content {
    padding: 12px;
}

.pricing-card.horizontal-pricing ul {
    margin-bottom: 0.8rem;
}

.pricing-card.horizontal-pricing ul li {
    padding: 4px 0;
    font-size: 0.85rem;
}

.pricing-card.horizontal-pricing .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.pricing-card.horizontal-pricing h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.pricing-highlight {
    position: relative;
    border: 2px solid var(--primary-color);
    overflow: visible;
}

.pricing-highlight::before {
    content: "推荐";
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* 特性块 */
.feature {
    text-align: center;
    padding: 15px;
    margin-bottom: 10px;
    transition: transform var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-item {
    margin-left: 30px;
}

.navbar-link {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}

.navbar-link:hover {
    color: var(--primary-color);
}

/* Hero区块 */
.hero {
    background-color: var(--background-color);
    padding: 100px 0;
    position: relative;
}

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

.hero-content {
    width: 50%;
    animation: fadeIn 1s ease-in-out;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.hero-image {
    width: 45%;
    animation: slideUp 1s ease-in-out;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* App下载区块 */
.download-app {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.download-badge {
    height: 50px;
    width: auto;
    transition: transform var(--transition-speed) ease;
}

.download-badge:hover {
    transform: translateY(-3px);
}

/* 图像和媒体 */
.app-screenshot {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    transition: transform var(--transition-speed) ease;
}

.app-screenshot:hover {
    transform: scale(1.02);
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-up {
    animation: slideUp 1s ease-in-out;
}

/* 证言/评价区块 */
.testimonial {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 700;
}

.star-rating {
    color: gold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 页脚 */
.footer {
    background-color: var(--footer-color);
    color: white;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ddd;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-inner {
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .hero-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons, .download-app {
        justify-content: center;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        flex-direction: column;
        background-color: white;
        width: 100%;
        left: 0;
        top: var(--header-height);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .navbar-menu.is-active {
        display: flex;
    }
    
    .navbar-item {
        margin: 0;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        outline: none;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: transform var(--transition-speed) ease;
    }
    
    .menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* 移动版横向卡片样式调整 */
    .feature.horizontal-feature {
        min-height: 200px;
    }
    
    .how-it-works-card.horizontal-step {
        min-height: 320px;
    }
    
    .how-it-works-card.horizontal-step .image-container {
        height: 140px;
    }
    
    .testimonial.horizontal-testimonial {
        padding: 15px;
        min-height: 180px;
    }
    
    .testimonial.horizontal-testimonial .testimonial-content {
        font-size: 0.85rem;
    }
    
    .pricing-card.horizontal-pricing ul li {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* 确保图片展示合理 */
@media (max-width: 576px) {
    .phone-mockup {
        max-width: 270px;
    }
    
    .app-screenshot {
        max-width: 100%;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
    }
    
    .how-it-works-card .image-container {
        height: 150px;
    }
    
    .feature.horizontal-feature {
        min-height: 180px;
    }
    
    .how-it-works-card.horizontal-step {
        min-height: 300px;
    }
    
    .testimonial.horizontal-testimonial {
        min-height: 170px;
    }
}

/* 水平滚动指示器 */
.scroll-indicator {
    text-align: center;
    margin-top: 10px;
    color: var(--text-color-light);
    font-size: 0.9rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.05);
}

/* 横向滚动容器活动状态 */
.horizontal-scroll.active {
    cursor: grabbing;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.feature {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        padding: 0 1rem;
    }
} 