/* 功能页面样式 */

/* 功能页面首屏 */
.features-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.features-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.features-hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 功能分类按钮 */
.feature-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.category-btn {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
}

/* 功能详情展示区域 */
.features-detail {
    padding: 80px 0;
    background: var(--bg-light);
}

.feature-section {
    margin-bottom: 100px;
    display: none;
}

.feature-section.active {
    display: block;
}

.feature-header {
    text-align: center;
    margin-bottom: 60px;
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 功能网格布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-item-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    font-size: 36px;
    color: white;
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
}

/* 特色功能展示 */
.special-features {
    padding: 100px 0;
    background: var(--bg-white);
}

.special-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.special-feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.special-feature-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.special-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.special-feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.special-feature-card p {
    color: var(--text-light);
    line-height: 1.5;
}

/* 功能对比表格 */
.feature-comparison {
    padding: 100px 0;
    background: var(--bg-light);
}

.comparison-table {
    max-width: 1200px;
    margin: 60px auto 0;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.comparison-table th:first-child {
    text-align: left;
    background: var(--secondary-color);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.comparison-table .check {
    color: #48bb78;
    font-size: 20px;
    font-weight: bold;
}

.comparison-table .cross {
    color: #e53e3e;
    font-size: 20px;
    font-weight: bold;
}

/* CTA区域 */
.features-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .features-hero {
        padding: 120px 0 60px;
    }

    .features-hero-content h1 {
        font-size: 36px;
    }

    .features-hero-content p {
        font-size: 18px;
    }

    .feature-categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 200px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .special-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-section {
        margin-bottom: 60px;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 600px;
    }

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

    .cta-buttons .btn {
        width: 250px;
    }
}

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

.feature-section.active .feature-item {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-section.active .feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-section.active .feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-section.active .feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-section.active .feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-section.active .feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-section.active .feature-item:nth-child(6) { animation-delay: 0.6s; }

/* 滚动显示动画 */
.observer-target {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.observer-target.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 功能卡片悬停效果增强 */
.feature-item {
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.feature-item:hover::before {
    left: 100%;
}

/* 表格响应式优化 */
@media (max-width: 1024px) {
    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
        font-size: 14px;
    }
}

/* 加载动画 */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}