:root {
    --primary: #15336e;
    --secondary: #866A2D;
    --accent: #f7b733;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
}

.w {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面 Banner */
.page-banner {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(21, 51, 110, 0.92), rgba(31, 78, 178, 0.85)), url('/static/image/banner2.jpg');
    background-size: cover;
    background-position: center;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 1000px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.92;
    margin-bottom: 35px;
    line-height: 1.7;
}

.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.btn {
    padding: 14px 38px;
    background: linear-gradient(to right, #b17d0b, #f7b733);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(134, 106, 45, 0.3);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(134, 106, 45, 0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(247, 183, 51, 0.15);
    box-shadow: 0 6px 15px rgba(247, 183, 51, 0.2);
}

/* 分类导航 */
.category-nav {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    margin-bottom: 60px;
}

.category-tabs {
    background: #fff;
    border-radius: 14px;
    /*box-shadow: 0 6px 24px rgba(21, 51, 110, 0.12);*/
    padding: 10px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    flex: 1;
    min-width: 110px;
    padding: 14px 18px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}

.category-tab:hover {
    background: #f0f4fc;
    color: var(--primary);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 51, 110, 0.3);
}

/* 通用 section */
.solution-section {
    padding: 0px 0;
    background: #fff;
}

.solution-section.alt-bg {
    background: #f7f9fc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.6rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 750px;
    margin: 22px auto 0;
    line-height: 1.7;
}

/* 方案卡片网格 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.solution-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    transition: height 0.4s ease;
    border-radius: 0 0 3px 3px;
}

.solution-card:hover {
    box-shadow: 0 12px 36px rgba(21, 51, 110, 0.14);
    transform: translateY(-6px);
    border-color: #c7d7f5;
}

.solution-card:hover::before {
    height: 100%;
}

/* 分类切换时卡片过渡由 JS inline style 控制 */

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eef2fb, #dde7fa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.solution-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--accent);
    transform: scale(1.08);
}

.solution-card h3 {
    font-size: 1.35rem;
    color: #222;
    margin-bottom: 12px;
    font-weight: 600;
}

.solution-card .desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.75;
    flex-grow: 1;
}

.solution-card ul {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.solution-card li {
    font-size: 13px;
    color: #777;
    padding: 5px 0 5px 20px;
    position: relative;
    line-height: 1.6;
}

.solution-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 11px;
    top: 7px;
}

.card-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    margin-top: auto;
}

.card-link:hover {
    color: var(--secondary);
    gap: 12px;
}

/* 核心优势 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.adv-item {
    background: #fff;
    padding: 36px 24px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eef1f6;
}

.adv-item:hover {
    box-shadow: 0 8px 24px rgba(21, 51, 110, 0.1);
    transform: translateY(-4px);
}

.adv-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 22px;
}

.adv-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.adv-num span {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 400;
}

.adv-item h4 {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.adv-item p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* 全流程 */
.flow-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), #1a3f85);
    color: #fff;
}

.flow-section .section-header h2 {
    color: #fff;
}

.flow-section .section-header h2::after {
    background: var(--accent);
}

.flow-section .section-header p {
    color: rgba(255,255,255,0.8);
}

.flow-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 50px;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 180px;
    max-width: 240px;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.flow-step:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: -12px;
    top: 30px;
    color: var(--accent);
    font-size: 16px;
    z-index: 2;
}

.step-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.12);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    transition: var(--transition);
}

.flow-step:hover .step-circle {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.flow-step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.flow-step p {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

/* CTA */
.cta-section {
    padding: 80px 0;
    background: #fff;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), #1a3f85);
    border-radius: 20px;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(247,183,51,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* 动画 */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flow-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2.2rem;
    }
    .banner-content h2 {
        font-size: 1.1rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .solution-grid {
        grid-template-columns: 1fr;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .category-tab {
        min-width: 90px;
        padding: 12px 14px;
        font-size: 13px;
    }
    .cta-box {
        padding: 40px 25px;
    }
    .cta-content h3 {
        font-size: 1.5rem;
    }
    .flow-steps {
        gap: 30px;
    }
}
/* -------- 卡片筛选切换必需样式 -------- */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    opacity: 1;
    visibility: visible;
    transition: opacity 280ms ease, transform 280ms ease;
}

/* 隐藏状态 */
.solution-card.card-hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

/* 淡出 */
.solution-card.fading-out {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

/* 淡入初始状态 */
.solution-card.fading-in {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

/* grid切换标记，防止抖动 */
.solution-grid.switching {
    transition: none;
}

/* -------- 滚动入场动画必需样式 -------- */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式适配 */
@media (max-width:1200px) {
    .solution-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (max-width:768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

/* 分类导航 - 悬浮压Banner，保留原图视觉效果，支持长标签横向滚动 */
.category-nav {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    margin-bottom: 60px;
}

/* 滚动外层，只做横向滚动，不破坏悬浮白色卡片外壳 */
.category-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    background: #e7edfb;
    border-radius: 14px;
    /* 增强阴影：主投影 + 底部柔光 + 细微描边，三层叠加 */
    /*box-shadow:*/
    /*    0 10px 30px rgba(21, 51, 110, 0.18),   !* 主投影：加深、扩散更大 *!*/
    /*    0 4px 12px rgba(21, 51, 110, 0.08),    !* 近距离柔光 *!*/
    /*    0 0 0 1px rgba(21, 51, 110, 0.04);     !* 极细描边，边缘更干净 *!*/
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}


.category-tab {
    flex: 0 0 auto; /* 不压缩，文字多长占多宽 */
    min-width: auto;
    padding: 12px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    transition: var(--transition);
    user-select: none;
}

.category-tab:hover {
    background: #f0f4fc;
    color: var(--primary);
}

/* 使用项目主渐变色，不要外来蓝色 */
.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 51, 110, 0.25);
}

/* 移动端适配 */
@media (max-width:768px) {
    .category-nav {
        margin-top: -20px;
        margin-bottom: 40px;
    }
    .category-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
}

