/* ===== 案例展示主样式 ===== */
.case-showcase {
    padding: 80px 0;
    background-color: #f9fafc;
}

/* ===== 英雄区域优化 ===== */
.case-hero {
    padding-top: 200px; /* 公司栏100px + 导航栏60px */
    padding-bottom: 60px;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.05) 0%, rgba(72, 202, 228, 0.05) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.case-hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(72, 202, 228, 0.1) 0%, rgba(72, 202, 228, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.case-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
}

.case-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.case-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.case-search {
    display: flex;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.case-search input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: #fff;
}

.case-search button {
    width: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.case-search button:hover {
    background: var(--secondary-color);
}

.hero-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.floating-tag span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== 案例分类筛选 ===== */
.sticky-filter-wrapper {
    position: sticky;
    top: 160px;
    z-index: 99;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.case-filter {
    padding: 15px 0;
    background: white;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: 8px 20px;
    background: none;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary-color);
    color: white;
}

/* ===== 案例展示网格 ===== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.15);
}

.case-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 119, 182, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.view-btn {
    padding: 10px 25px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.view-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.case-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.case-meta i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.case-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-tags span {
    padding: 5px 12px;
    background: rgba(72, 202, 228, 0.1);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.8rem;
}

/* ===== 核心优势区域 ===== */
.our-advantages {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.our-advantages::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="%230077b6" stroke-width="0.5" opacity="0.05"><circle cx="50" cy="50" r="40"/></svg>');
    background-size: 100px 100px;
    z-index: 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.advantage-item {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 136, 255, 0.1);
}

.advantage-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 119, 182, 0.2);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.2);
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 119, 182, 0.3);
}

.advantage-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.advantage-item p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* ===== 案例数据统计 ===== */
.case-stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"><circle cx="50" cy="50" r="40"/></svg>');
    background-size: 100px 100px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    padding: 30px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    font-family: 'Noto Sans SC', sans-serif;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-number::after {
    content: "+";
    position: absolute;
    right: -15px;
    top: 0;
    font-size: 1.5rem;
}

.stat-item:nth-child(4) .stat-number::after {
    content: "%";
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ===== 客户评价区域 ===== */
.case-testimonials {
    padding: 100px 0;
    background: #f9fafc;
    position: relative;
}

.case-testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="%230077b6" stroke-width="0.5" opacity="0.03"><path d="M0,0 L100,100 M100,0 L0,100"/></svg>');
    background-size: 100px 100px;
    z-index: 0;
}

.testimonials-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-item {
    background: white;
    border-radius: 15px;
    padding: 50px;
    margin: 0 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.testimonial-content {
    position: relative;
    margin-bottom: 30px;
    z-index: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    position: relative;
    padding-left: 40px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 0;
    font-size: 60px;
    color: var(--primary-color);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.author-position {
    font-size: 0.9rem;
    color: var(--text-light);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(0, 119, 182, 0.3);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
}

/* ===== CTA区域 ===== */
.case-cta {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
}

.case-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.8), rgba(72, 202, 228, 0.8));
    z-index: 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.3);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* ===== 案例数据分析容器 ===== */
.case-container {
    padding: 0 46px;
}

.cases-box {
    width: 100%;
}

.cases-analysis {
    background: url(../images/news/bg.jpg) no-repeat;
    background-size: cover;
    padding-top: 80px;
    padding-bottom: 48px;
}

.case-box__card-container {
    margin: 0 auto;
    margin-top: -30px;
    background: #FFFFFF;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    height: 633px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
}

.case-box__chart-box {
    padding: 36px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-box__chart-title {
    font-size: 27px;
    color: #00487D;
    font-weight: bold;
}

.case-box__chart-title--green {
    color: #3899B2;
}

.case-box__chart {
    width: 100%;
    height: 100%;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .sticky-filter-wrapper {
        top: 160px;
    }
}

@media (max-width: 992px) {
    .case-hero {
        padding: 120px 0 40px;
    }

    .case-title {
        font-size: 2rem;
        text-align: center;
    }

    .case-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .case-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .case-search {
        margin: 0 auto;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:not(:nth-child(2n))::after {
        display: none;
    }

    .testimonial-item {
        padding: 30px;
    }

    .advantage-item {
        padding: 30px 20px;
    }

    .case-box__card-container {
        flex-direction: column;
        height: auto;
    }

    .case-box__chart-box {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .case-hero {
        text-align: center;
        padding: 100px 0 40px;
    }

    .hero-image {
        margin-top: 30px;
        transform: none !important;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-tab {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .case-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .case-image {
        height: 200px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .sticky-filter-wrapper {
        position: static;
        top: auto;
    }

    .testimonial-item {
        padding: 30px 20px;
    }

    .testimonial-text {
        padding-left: 20px;
        font-size: 1rem;
    }

    .testimonial-text::before {
        font-size: 40px;
        top: -10px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .case-container {
        padding: 0 20px;
    }

    .case-box__chart-box {
        padding: 20px;
        height: 350px;
    }

    .case-box__chart-title {
        font-size: 20px;
    }

    #barChart, #pieChart {
        width: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 576px) {
    .case-title {
        font-size: 1.8rem;
    }

    .case-subtitle {
        font-size: 0.95rem;
    }

    .case-search input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .case-search button {
        width: 50px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-bottom: 15px;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}
@media (max-width: 767.98px) {
    /* 案例展示区域修复 */
    .case-showcase {
        padding: 40px 0;
    }

    .grid-container {
        padding: 0 15px;
        grid-template-columns: 1fr;
    }

    /* 筛选标签修复 */
    .filter-tabs {
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
    }

    /* 图表容器修复 */
    .case-container {
        padding: 0;
    }

    .case-box__card-container {
        width: 100%;
        border-radius: 0;
        margin-top: 0;
    }

    /* 英雄区域修复 */
    .case-hero {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-image {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
}