﻿/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 主要内容区域样式 */
.main {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* 产品对比页面样式 */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.plan-card {
    width: 100%;
    max-width: 320px;
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 在宽屏设备上显示为一行四列 */
@media (min-width: 1200px) {
    .plan-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.basic {
    border-top: 4px solid #3498db;
}

.plan-card.advanced {
    border-top: 4px solid #2ecc71;
}

.plan-card.enterprise {
    border-top: 4px solid #e74c3c;
}

.plan-card.flagship {
    border-top: 4px solid #9b59b6;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #3498db;
}

.plan-features {
    list-style-type: none;
    margin-bottom: 2rem;
}

.plan-feature {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.plan-feature::before {
    content: '✓';
    color: #2ecc71;
    margin-right: 0.8rem;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    width: 100%;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: #95a5a6;
}

.btn.secondary:hover {
    background-color: #7f8c8d;
}

/* 表格样式 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

.checkmark {
    color: #2ecc71;
    font-weight: bold;
}

.xmark {
    color: #e74c3c;
}

/* 滚动动画效果 - 修改为默认显示内容 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 关键修改：默认显示所有内容，不再依赖JavaScript来显示 */
.animate-on-scroll {
    opacity: 1 !important;
    visibility: visible !important;
    animation-fill-mode: both;
}

/* 保留动画效果，但不影响初始显示 */
.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 功能说明页面样式 */
.features-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

/* 核心优势部分样式 */
.features-section {
    position: relative;
    padding: 60px 0;
    margin: 40px 0;
    overflow: hidden;
}

.features-section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.features-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* 卡片轮播容器 */
.feature-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 不同颜色卡片样式 */
.card-color-1 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    border: 2px solid #ff7b86;
}

.card-color-2 {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 99%, #c2e9fb 100%);
    border: 2px solid #74b9ff;
}

.card-color-3 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 99%, #8fd3f4 100%);
    border: 2px solid #55efc4;
}

.card-color-4 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 99%, #fda085 100%);
    border: 2px solid #ffca28;
}

.card-color-5 {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 99%, #fef9d7 100%);
    border: 2px solid #e056fd;
}

.card-color-6 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 99%, #f5576c 100%);
    border: 2px solid #ee5a6f;
}

.feature-card {
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardColorCycle 20s infinite linear;
}

.feature-card:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 卡片颜色循环动画 */
@keyframes cardColorCycle {
    0%, 100% { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); border: 2px solid #ff7b86; }
    16.67% { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 99%, #c2e9fb 100%); border: 2px solid #74b9ff; }
    33.33% { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 99%, #8fd3f4 100%); border: 2px solid #55efc4; }
    50% { background: linear-gradient(135deg, #f6d365 0%, #fda085 99%, #fda085 100%); border: 2px solid #ffca28; }
    66.67% { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 99%, #fef9d7 100%); border: 2px solid #e056fd; }
    83.33% { background: linear-gradient(135deg, #f093fb 0%, #f5576c 99%, #f5576c 100%); border: 2px solid #ee5a6f; }
}

/* 统一的卡片文本样式 */
.feature-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50 !important;
    transition: color 0.3s ease;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.feature-description {
    color: #333 !important;
    line-height: 1.6;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 统一的卡片图标样式 */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.feature-icon i {
    font-size: 2.5rem;
    color: #3498db !important;
    transition: all 0.5s ease;
}

/* 卡片顶部渐变条 */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    transition: left 0.8s ease-in-out;
}

/* 合并后的卡片悬停效果 */
.feature-card:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

/* 解决方案部分 */
.solutions-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
    margin: 5rem 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.solutions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
    z-index: 0;
}

.solutions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.solution-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.solution-card:hover::after {
    transform: scaleX(1);
}

.solution-card:hover .solution-title i {
    animation: rotate 0.8s ease-in-out;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.solution-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s ease;
}

.solution-card:hover .solution-title {
    color: #3498db;
}

.solution-title i {
    color: #3498db;
    font-size: 1.5rem;
    background-color: #ecf7fd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.solution-description {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 价值主张部分 */
.value-proposition {
    text-align: center;
    margin: 5rem 0;
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.value-proposition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.value-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.value-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent, rgba(52, 152, 219, 0.05));
    transition: height 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-card:hover::after {
    height: 100%;
}

.value-card:hover i {
    animation: pulse 1s ease-in-out;
    color: #2980b9;
}

.value-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.value-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.value-card:hover .value-card-title {
    color: #3498db;
}

.value-card-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.value-card:hover .value-card-description {
    color: #555;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .plan-cards {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .feature-card {
        max-width: 100%;
    }
    
    .solutions-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .plan-card,
    .feature-card {
        padding: 1.5rem;
    }
}