/* 特色功能页面样式 */

/* 页面标题样式 */
.page-header {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(37, 116, 244, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(37, 116, 244, 0.05) 0%, transparent 20%);
    z-index: 0;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 功能分类导航容器 */
.features-filter-container {
    position: relative;
}

/* 功能分类导航 - 优化样式 */
.features-filter {
    padding: 20px 0;
    background-color: transparent;
    position: sticky;
    top: 85px;
    /* 与导航栏保持间距 */
    z-index: 90;
    transition: all 0.3s ease;
}

.features-filter.sticky-disabled {
    position: static;
    margin-bottom: 20px;
}

/* 窄容器，使导航栏宽度更贴合内容 */
.container-narrow {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 116, 244, 0.2);
}

/* 特色功能列表（导航内容板块） */
.features-list {
    padding: 80px 0;
    background-color: #fafbfc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: scale(1.02) translateY(-5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 116, 244, 0.05);
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-medium);
}

/* 功能展示 - 优化布局和动画 */
.feature-showcase {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.showcase-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.showcase-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-image {
    flex: 1;
    min-width: 300px;
    transition: transform 0.5s ease;
}

.showcase-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-image img:hover {
    transform: scale(1.02) translateY(-5px);
}

.showcase-item.visible .showcase-image {
    animation: imageScale 0.8s ease forwards;
}

.showcase-info {
    flex: 1;
    min-width: 300px;
    transition: transform 0.5s ease;
}

.showcase-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.showcase-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.showcase-info p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}

.showcase-item.visible .showcase-info {
    animation: textSlide 0.8s ease forwards;
}

/* 动画效果 */
@keyframes imageScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textSlide {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.showcase-item.reverse.visible .showcase-info {
    animation: reverseTextSlide 0.8s ease forwards;
}

@keyframes reverseTextSlide {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.4rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .features-list,
    .feature-showcase{
        padding: 60px 0;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }

    .showcase-item,
    .showcase-item.reverse {
        flex-direction: column;
    }

    .showcase-info {
        order: 1;
    }

    .showcase-image {
        order: 2;
    }

    .showcase-info h3 {
        font-size: 1.5rem;
    }

    .showcase-grid {
        gap: 80px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p,
    .section-title p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 20px;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-card h2 {
        font-size: 1.6rem;
    }

    .section-title {
        margin-bottom: 40px;
    }
}