/* =================== 新媒体代运营页面专属样式 =================== */

body.social-ops-page {
    background-color: #fff;
}

.social-ops-page section {
    position: relative;
}

/* ==========================================================================
   第一屏：痛点展示
   ========================================================================== */

.pain-points-section {
    padding: 70px 0 40px;
    background: linear-gradient(180deg, #fff7ef 0%, #fffaf4 55%, #ffffff 100%);
    overflow: hidden;
}

.pain-header-row {
    margin-bottom: 12px;
}

.pain-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.pain-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.pain-blob-1 {
    width: 380px;
    height: 380px;
    left: -120px;
    top: -80px;
    background: radial-gradient(circle, rgba(254, 207, 81, 0.75), rgba(254, 207, 81, 0));
}

.pain-blob-2 {
    width: 460px;
    height: 460px;
    right: -150px;
    top: 20%;
    background: radial-gradient(circle, rgba(247, 137, 46, 0.45), rgba(247, 137, 46, 0));
}

.pain-blob-3 {
    width: 340px;
    height: 340px;
    left: 30%;
    bottom: -120px;
    background: radial-gradient(circle, rgba(246, 132, 37, 0.4), rgba(246, 132, 37, 0));
}

.pain-cards-wrap {
    margin-top: 10px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.pain-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 28px 20px 26px;
    box-shadow: 0 14px 35px rgba(247, 137, 46, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(247, 137, 46, 0.1);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

.pain-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s ease;
}

.pain-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(
        120deg,
        rgba(254, 207, 81, 0.02) 0%,
        rgba(254, 207, 81, 0.15) 25%,
        rgba(247, 137, 46, 0.2) 50%,
        rgba(254, 207, 81, 0.15) 75%,
        rgba(254, 207, 81, 0.02) 100%
    );
    background-size: 200% 200%;
}

.pain-card:hover {
    transform: translateX(6px);
    box-shadow: 0 22px 48px rgba(247, 137, 46, 0.2);
    border-color: rgba(247, 137, 46, 0.35);
}

.pain-card:hover::before {
    transform: scaleY(1);
}

.pain-card:hover::after {
    opacity: 1;
    animation: caseStatCardHoverGradient 3s ease infinite;
}

.pain-card-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 8rem;
    color: rgba(247, 137, 46, 0.05);
    z-index: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.pain-card:hover .pain-card-bg-icon {
    color: rgba(247, 137, 46, 0.12);
    transform: scale(1.1) rotate(-10deg);
}

.pain-card-badge {
    flex-shrink: 0;
    width: 60px;
    font-size: 2.6rem;
    font-weight: 800;
    color: rgba(247, 137, 46, 0.22);
    letter-spacing: 1px;
    line-height: 1;
    text-align: center;
    transition: color 0.4s ease;
}

.pain-card:hover .pain-card-badge {
    color: var(--primary-color);
}

.pain-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(254, 207, 81, 0.18), rgba(247, 137, 46, 0.2));
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: inset 0 0 0 1px rgba(247, 137, 46, 0.15);
}

.pain-card:hover .pain-card-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #fff;
    transform: rotate(-6deg);
    box-shadow: 0 10px 24px rgba(247, 137, 46, 0.35);
}

.pain-card-body {
    flex: 1;
    min-width: 0;
}

.pain-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 6px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.pain-card:hover .pain-card-title {
    color: var(--primary-color);
}

.pain-card-desc {
    font-size: 0.95rem;
    color: #888888;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .pain-card {
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px 18px;
    }
    .pain-card-badge {
        width: auto;
        font-size: 1.8rem;
    }
    .pain-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }
    .pain-card-body {
        flex: 1 1 100%;
    }
    .pain-card-title {
        font-size: 1.02rem;
    }
    .pain-card-desc {
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   第二屏：解决方案（中心大圆 + 周围 8 小圆）
   ========================================================================== */

.solution-section {
    padding: 10px 0 70px; /* 增加底部内边距，让整个区块显得更开阔 */
    background:
        radial-gradient(ellipse at top, rgba(247, 137, 46, 0.08), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(246, 132, 37, 0.06), transparent 60%),
        #fff;
    overflow: hidden;
}

.solution-header-row {
    margin-bottom: 20px;
}

.solution-orbit {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 620px; /* 增加整体高度，从 520px 增加到 640px */
    margin: 10px auto 0;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    /* 降低颜色浓度 */
    background: radial-gradient(circle, rgba(247, 137, 46, 0) 30%, rgba(247, 137, 46, 0.4) 55%, rgba(247, 137, 46, 0) 75%);
    opacity: 0;
    /* 降低频次，增加周期时长 */
    animation: orbitWarningPulse 4s ease-in-out infinite;
}

.orbit-ring-outer {
    width: 500px;
    height: 500px;
    animation-delay: 2s; /* 错开一半周期 */
}

.orbit-ring-inner {
    width: 500px;
    height: 500px;
    animation-delay: 0s;
}

@keyframes orbitWarningPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 0;
    }
    30% {
        opacity: 0.8; /* 呼吸感：柔和变亮 */
    }
    60% {
        opacity: 0.3; /* 呼吸感：柔和变暗 */
    }
    80% {
        opacity: 0.6; /* 呼吸感：再次微亮 */
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3); /* 减小最大扩散范围 */
        opacity: 0;
    }
}

/* 中心大圆 */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 55%, var(--primary-dark) 100%);
    box-shadow:
        0 32px 68px rgba(247, 137, 46, 0.48),
        0 0 0 28px rgba(247, 137, 46, 0.12),
        0 0 120px 28px rgba(247, 137, 46, 0.3),
        0 0 210px 56px rgba(247, 137, 46, 0.18),
        inset 0 8px 18px rgba(255, 255, 255, 0.4),
        inset 0 -10px 22px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
    z-index: 3;
    cursor: pointer;
    outline: none;
    user-select: none; /* 防止点击时选中文字 */
    -webkit-user-select: none; /* Safari */
    animation: orbitCenterPulse 5s ease-in-out infinite;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease, background 0.45s ease;
}

/* 外层柔和光晕 */
.orbit-center::before {
    content: "";
    position: absolute;
    inset: -122px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(247, 137, 46, 0.6) 0%,
        rgba(247, 137, 46, 0.38) 34%,
        rgba(247, 137, 46, 0.18) 58%,
        rgba(247, 137, 46, 0.06) 74%,
        rgba(247, 137, 46, 0) 100%
    );
    z-index: -1;
    pointer-events: none; /* 关键：防止光晕遮挡底层小圆的 hover 事件 */
    filter: blur(26px);
    opacity: 0.82;
    transform: scale(1);
    animation: orbitBeaconGlowA 1.9s ease-in-out infinite;
    transition: opacity 0.35s ease;
}

/* 第二层外发光（错峰闪烁） */
.orbit-center::after {
    content: "";
    position: absolute;
    inset: -178px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(247, 137, 46, 0.42) 0%,
        rgba(247, 137, 46, 0.2) 36%,
        rgba(247, 137, 46, 0.08) 62%,
        rgba(247, 137, 46, 0.02) 80%,
        rgba(247, 137, 46, 0) 100%
    );
    z-index: -2;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.58;
    transform: scale(1.02);
    animation: orbitBeaconGlowB 1.9s ease-in-out infinite 0.95s;
    transition: opacity 0.35s ease;
}

/* hover 放大 + 强化阴影 */
.orbit-center:hover,
.orbit-center:focus-visible {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 40px 80px rgba(247, 137, 46, 0.55),
        0 0 0 10px rgba(247, 137, 46, 0.08),
        inset 0 10px 22px rgba(255, 255, 255, 0.55),
        inset 0 -12px 26px rgba(0, 0, 0, 0.18);
    background: linear-gradient(135deg, #ffd76b 0%, var(--primary-color) 50%, #e16f1a 100%);
    animation-play-state: paused;
}

.orbit-center:hover::before,
.orbit-center:focus-visible::before {
    opacity: 1;
}

.orbit-center:hover::after,
.orbit-center:focus-visible::after {
    opacity: 0.72;
}

/* 点击/激活：短促缩放反馈 */
.orbit-center:active {
    transform: translate(-50%, -50%) scale(0.97);
    transition: transform 0.15s ease;
}

/* JS 触发的脉冲扩散 */
.orbit-center.is-bursting {
    animation: orbitCenterPulse 5s ease-in-out infinite, orbitCenterShake 0.5s ease;
}

.orbit-burst-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(247, 137, 46, 0.65);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
    pointer-events: none;
    animation: orbitBurstWave 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes orbitBeaconGlowA {
    0%, 100% {
        opacity: 0.62;
        transform: scale(0.96);
    }
    35% {
        opacity: 1;
        transform: scale(1.1);
    }
    55% {
        opacity: 0.8;
        transform: scale(1.03);
    }
    70% {
        opacity: 1;
        transform: scale(1.12);
    }
}

@keyframes orbitBeaconGlowB {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.98);
    }
    30% {
        opacity: 0.7;
        transform: scale(1.08);
    }
    52% {
        opacity: 0.52;
        transform: scale(1.02);
    }
    74% {
        opacity: 0.78;
        transform: scale(1.14);
    }
}

@keyframes orbitBurstWave {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.85; border-width: 4px; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; border-width: 1px; }
}

@keyframes orbitCenterShake {
    0%, 100% { transform: translate(-50%, -50%) scale(1.08); }
    30% { transform: translate(-50%, -50%) scale(1.14); }
    60% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes orbitCenterPulse {
    0%, 100% {
        box-shadow:
            0 32px 68px rgba(247, 137, 46, 0.48),
            0 0 0 28px rgba(247, 137, 46, 0.12),
            0 0 120px 28px rgba(247, 137, 46, 0.3),
            0 0 210px 56px rgba(247, 137, 46, 0.18),
            inset 0 8px 18px rgba(255, 255, 255, 0.4),
            inset 0 -10px 22px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow:
            0 40px 92px rgba(247, 137, 46, 0.64),
            0 0 0 34px rgba(247, 137, 46, 0.16),
            0 0 160px 44px rgba(247, 137, 46, 0.36),
            0 0 280px 76px rgba(247, 137, 46, 0.24),
            inset 0 8px 18px rgba(255, 255, 255, 0.45),
            inset 0 -10px 22px rgba(0, 0, 0, 0.15);
    }
}

@keyframes orbitCenterGlow {
    0%, 100% { opacity: 0.86; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes orbitCenterSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-center-inner {
    position: relative;
    z-index: 2;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.orbit-center-icon {
    width: 48px;
    height: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.orbit-center:hover .orbit-center-inner {
    transform: translateY(-2px);
}

.orbit-center:hover .orbit-center-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.orbit-center-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: letter-spacing 0.4s ease, text-shadow 0.4s ease;
}

.orbit-center:hover .orbit-center-title {
    letter-spacing: 1px;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.orbit-center-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.orbit-center-tags span {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}

.orbit-center:hover .orbit-center-tags span:nth-child(1) {
    transform: translateY(-3px) rotate(-4deg);
}

.orbit-center:hover .orbit-center-tags span:nth-child(2) {
    transform: translateY(-5px);
}

.orbit-center:hover .orbit-center-tags span:nth-child(3) {
    transform: translateY(-3px) rotate(4deg);
}

.orbit-center-tags span:hover {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.1) !important;
}

/* hover 时周围小圆整体稍微往中心靠拢，突出焦点 */
.solution-orbit:hover .orbit-ring-outer {
    animation-duration: 3s;
}

.solution-orbit:hover .orbit-ring-inner {
    animation-duration: 3s;
}

/* 周围 8 个小圆定位 */
.orbit-node {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 2;
    animation: orbitFloat 4.5s ease-in-out infinite;
}

.orbit-node-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    /* 取消真实的边框，改用 box-shadow 模拟边框 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-shadow:
        0 0 0 2px rgba(247, 137, 46, 0.18), /* 模拟原先的浅色边框 */
        0 14px 30px rgba(247, 137, 46, 0.15),
        inset 0 2px 6px rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
    /* 防止背景渐变溢出 */
    position: relative;
    overflow: hidden;
}

/* 用伪元素做 hover 渐变背景，以实现完美的颜色和边框过渡 */
.orbit-node-inner::before {
    content: '';
    position: absolute;
    inset: -2px; /* 让伪元素向外扩张一点，盖住原本用 box-shadow 模拟的边框区域 */
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.orbit-node-inner i {
    font-size: 1.45rem; /* 从 1.2rem 增加到 1.45rem */
    color: var(--primary-color);
    margin-bottom: 6px; /* 从 4px 增加到 6px 稍微增加点间距 */
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.orbit-node-inner span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.orbit-node:hover {
    animation-play-state: paused;
    z-index: 5;
}

.orbit-node:hover .orbit-node-inner {
    transform: scale(1.1);
    box-shadow: 
        0 0 0 2px transparent, /* 隐藏原本的模拟边框 */
        0 22px 45px rgba(247, 137, 46, 0.4);
}

.orbit-node:hover .orbit-node-inner::before {
    opacity: 1;
}

.orbit-node:hover .orbit-node-inner i,
.orbit-node:hover .orbit-node-inner span {
    color: #fff;
}

/* 浮动动画（错开相位） */
@keyframes orbitFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.orbit-node-top { top: 4%; left: 50%; margin-left: -60px; animation-delay: 0s; }
.orbit-node-right-top { top: 15%; right: 14%; animation-delay: 0.3s; }
.orbit-node-right { top: 50%; right: 4%; margin-top: -60px; animation-delay: 0.6s; }
.orbit-node-right-bottom { bottom: 15%; right: 14%; animation-delay: 0.9s; }
.orbit-node-bottom { bottom: 4%; left: 50%; margin-left: -60px; animation-delay: 1.2s; }
.orbit-node-left-bottom { bottom: 15%; left: 14%; animation-delay: 1.5s; }
.orbit-node-left { top: 50%; left: 4%; margin-top: -60px; animation-delay: 1.8s; }
.orbit-node-left-top { top: 15%; left: 14%; animation-delay: 2.1s; }

/* 连接线：从中心向各小圆延伸的淡色线 */
.solution-orbit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(247, 137, 46, 0.14), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* 响应式：平板 */
@media (max-width: 991px) {
    .solution-orbit {
        max-width: 560px;
        height: 540px; /* 从 460px 增加到 540px */
    }
    .orbit-ring-outer { width: 420px; height: 420px; }
    .orbit-ring-inner { width: 420px; height: 420px; }
    .solution-orbit::before { width: 300px; height: 300px; }
    .orbit-center { width: 190px; height: 190px; }
    .orbit-center-icon { width: 38px; margin-bottom: 6px; }
    .orbit-center-title { font-size: 1.1rem; margin-bottom: 10px; }
    .orbit-center-tags span { padding: 3px 10px; font-size: 0.75rem; }
    .orbit-node { width: 96px; height: 96px; }
    .orbit-node-inner i { font-size: 1.25rem; margin-bottom: 5px; } /* 从 1.1rem 调大 */
    .orbit-node-inner span { font-size: 0.88rem; }
    .orbit-node-top { margin-left: -48px; }
    .orbit-node-bottom { margin-left: -48px; }
    .orbit-node-right { margin-top: -48px; }
    .orbit-node-left { margin-top: -48px; }
}

/* 响应式：手机（保留环绕布局，整体缩小） */
@media (max-width: 767px) {
    .solution-orbit {
        width: 100%;
        max-width: 360px;
        height: 360px;
        margin: 8px auto 0;
        padding: 0;
    }

    .orbit-ring-outer {
        width: 320px;
        height: 320px;
    }

    .orbit-ring-inner {
        width: 320px;
        height: 320px;
    }

    .solution-orbit::before {
        width: 250px;
        height: 250px;
    }

    .orbit-center {
        width: 156px;
        height: 156px;
        padding: 14px;
    }

    .orbit-center::before {
        inset: -72px;
        filter: blur(18px);
    }

    .orbit-center::after {
        inset: -108px;
        filter: blur(26px);
    }

    .orbit-center-icon {
        width: 32px;
        margin-bottom: 4px;
    }

    .orbit-center-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .orbit-center-tags {
        gap: 5px;
    }

    .orbit-center-tags span {
        padding: 2px 8px;
        font-size: 0.68rem;
    }

    .orbit-node {
        width: 66px;
        height: 66px;
        animation-duration: 4.5s;
    }

    .orbit-node-inner {
        border-radius: 50%;
        padding: 6px;
        flex-direction: column;
        gap: 0;
    }

    .orbit-node-inner i {
        margin-bottom: 2px;
        font-size: 0.9rem;
    }

    .orbit-node-inner span {
        font-size: 0.62rem;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .orbit-node-top { top: 0%; left: 50%; margin-left: -33px; }
    .orbit-node-right-top { top: 12%; right: 5%; }
    .orbit-node-right { top: 50%; right: 0%; margin-top: -33px; }
    .orbit-node-right-bottom { bottom: 12%; right: 5%; }
    .orbit-node-bottom { bottom: 0%; left: 50%; margin-left: -33px; }
    .orbit-node-left-bottom { bottom: 12%; left: 5%; }
    .orbit-node-left { top: 50%; left: 0%; margin-top: -33px; }
    .orbit-node-left-top { top: 12%; left: 5%; }
}

/* ==========================================================================
   第三屏：案例展示轮播
   ========================================================================== */

.case-showcase-section {
    padding: 30px 0 70px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
    overflow: hidden;
}

.case-header-row {
    margin-bottom: 26px;
}

.case-carousel {
    position: relative;
    margin-top: 18px;
    padding: 0 60px 20px; /* 仅为贴近视频的指示器预留最小空间 */
}

/* 覆盖首页全局轮播样式，避免案例轮播被注入黑底和 100vh 高度 */
.case-carousel .carousel-inner {
    background-color: transparent;
    transform: none;
}

.case-carousel .carousel-item {
    height: auto;
    min-height: 0;
    background: transparent;
    overflow: visible;
    transition: transform .6s ease-in-out;
}

/* 恢复 Bootstrap 默认滑动动画，覆盖 index.css 的 translate3d(0,0,0) */
.case-carousel .carousel-item-next:not(.carousel-item-start), 
.case-carousel .active.carousel-item-end {
    transform: translateX(100%);
}

.case-carousel .carousel-item-prev:not(.carousel-item-end), 
.case-carousel .active.carousel-item-start {
    transform: translateX(-100%);
}

.case-slide {
    --case-fixed-height: 500px;
    --case-video-height: 310px;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(247, 137, 46, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(247, 137, 46, 0.1);
}

.case-slide .row {
    height: var(--case-fixed-height);
}

.case-slide-left {
    background: linear-gradient(160deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.case-slide-left::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
    pointer-events: none;
}

.case-slide-left::after {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 207, 81, 0.35), transparent 70%);
    pointer-events: none;
}

.case-left-inner {
    position: relative;
    padding: 64px 32px 36px;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.case-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.case-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.case-subtitle {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
    font-weight: 500;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.case-text p {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 10px;
    text-align: justify;
}

.case-text p:last-child {
    margin-bottom: 0;
}

/* 右侧 */
.case-slide-right {
    padding: 18px 18px 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保填满外层高度，使内部的 flex: 1 生效 */
    gap: 14px;
}

.case-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.case-stat-item {
    background: linear-gradient(135deg, #fff7ef, #fff);
    border: 1px solid rgba(247, 137, 46, 0.15);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: nowrap;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.case-stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-stat-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(
        120deg,
        rgba(254, 207, 81, 0.02) 0%,
        rgba(254, 207, 81, 0.15) 25%,
        rgba(247, 137, 46, 0.2) 50%,
        rgba(254, 207, 81, 0.15) 75%,
        rgba(254, 207, 81, 0.02) 100%
    );
    background-size: 200% 200%;
}

@keyframes caseStatCardHoverGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.case-stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 32px rgba(247, 137, 46, 0.15), 0 8px 16px rgba(31, 38, 135, 0.08);
    border-color: rgba(255, 255, 255, 0.9);
}

.case-stat-item:hover::before {
    transform: scaleX(1);
}

.case-stat-item:hover::after {
    opacity: 1;
    animation: caseStatCardHoverGradient 3s ease infinite;
}

.case-stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.case-stat-unit {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.case-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.case-stat-icon {
    font-size: 0.98rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.case-stat-item:hover .case-stat-label {
    color: var(--primary-dark);
}

.case-stat-item:hover .case-stat-icon {
    transform: translateY(-1px) scale(1.1);
    color: var(--primary-dark);
    text-shadow: 0 5px 12px rgba(247, 137, 46, 0.3);
}

.case-stat-item:active .case-stat-icon {
    transform: scale(1.22) rotate(10deg);
    color: var(--primary-color);
    text-shadow: 0 7px 16px rgba(247, 137, 46, 0.42);
}

/* 视频区域：固定比例 16:9 + 高度上限，避免整体过高 */
.case-video-wrapper {
    position: relative;
    width: 100%;
    margin-top: auto;
    height: var(--case-video-height);
    min-height: var(--case-video-height);
    flex: 0 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

@media (min-width: 1200px) {
    .case-video-wrapper {
        flex: 1;
    }
}

.case-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.case-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(247, 137, 46, 0.92);
    color: #fff;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(247, 137, 46, 0.5);
    transition: all 0.35s ease;
    z-index: 2;
}

.case-video-play::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(247, 137, 46, 0.6);
    animation: casePlayRing 2.2s ease-out infinite;
}

@keyframes casePlayRing {
    0% { transform: scale(0.85); opacity: 0.9; }
    80%, 100% { transform: scale(1.4); opacity: 0; }
}

.case-video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
}

.case-video-wrapper.is-playing .case-video-play {
    opacity: 0;
    pointer-events: none;
}

/* 轮播控制按钮 */
.case-carousel-prev,
.case-carousel-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(247, 137, 46, 0.25);
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(247, 137, 46, 0.18);
    margin-top: 55px; 
}

.case-carousel-prev { left: 0; }
.case-carousel-next { right: 0; }

.case-carousel-prev:hover,
.case-carousel-next:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 14px 36px rgba(247, 137, 46, 0.45);
}

.case-carousel-prev i,
.case-carousel-next i {
    font-size: 1.1rem;
}

/* 轮播指示器 */
.case-carousel-indicators {
    bottom: -4px; /* 再上移一点，更贴近视频 */
    margin-bottom: 0;
    z-index: 15;
}

.case-carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: var(--primary-color) !important;
    opacity: 0.3 !important;
    border: none !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
}

.case-carousel-indicators button.active {
    opacity: 1 !important;
    transform: scale(1.3) !important;
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 6px rgba(247, 137, 46, 0.4);
}

/* 响应式 */
@media (max-width: 991px) {
    .case-slide {
        --case-fixed-height: auto;
        --case-video-height: 320px;
    }

    .case-slide .row {
        height: auto;
    }

    .case-carousel {
        padding: 0 20px 28px;
    }

    .case-carousel-prev,
    .case-carousel-next {
        width: 40px;
        height: 40px;
    }

    .case-left-inner {
        padding: 42px 26px;
    }

    .case-slide-right {
        padding: 30px 22px;
    }

    .case-title {
        font-size: 1.6rem;
    }

    .case-stat-value {
        font-size: 1.8rem;
    }
}


/* iPad Pro 专项：保持与 PC 同构的左右布局与稳定比例 */
@media (min-width: 992px) and (max-width: 1199px) {
    .case-slide .row {
        height: 430px;
    }

    .case-slide-left {
        flex: 0 0 32%;
        max-width: 32%;
    }

    .case-slide-right {
        flex: 0 0 68%;
        max-width: 68%;
        padding: 16px 14px 0;
        gap: 10px;
        min-height: 100%;
    }

    .case-left-inner {
        padding: 22px 16px 18px;
    }

    .case-text p {
        font-size: 0.88rem !important;
        line-height: 1.55;
        margin-bottom: 8px;
    }

    .case-stats-row {
        gap: 8px;
    }

    .case-stat-item {
        min-width: 0;
        padding: 10px 8px;
        gap: 4px;
    }

    .case-stat-value {
        font-size: 1.4rem;
    }

    .case-stat-unit {
        font-size: 0.82rem;
    }

    .case-stat-label {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .case-stat-icon {
        font-size: 0.82rem;
    }

    .case-video-wrapper {
        margin-top: 0;
        flex: 1;
        height: auto;
        min-height: 220px;
        background: transparent;
    }
}

@media (max-width: 767px) {
    .pain-points-section {
        padding: 50px 0 40px;
    }
    .solution-section {
        padding: 30px 0 50px;
    }
    .case-showcase-section {
        padding: 40px 0 50px;
    }

    .case-carousel {
        padding: 0 0 26px;
    }

    .case-carousel-prev,
    .case-carousel-next {
        width: 36px;
        height: 36px;
    }

    .case-carousel-prev { left: 8px; }
    .case-carousel-next { right: 8px; }

    .case-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .case-stat-item {
        min-width: 0;
        padding: 10px 4px;
        gap: 3px;
        flex-direction: column;
        align-items: center;
    }

    .case-stat-value {
        font-size: 1.08rem;
    }

    .case-stat-unit {
        font-size: 0.72rem;
    }

    .case-stat-label {
        font-size: 0.68rem;
        white-space: normal;
        line-height: 1.2;
    }

    .case-stat-icon {
        font-size: 0.68rem;
    }

    .case-video-play {
        width: 52px;
        height: 52px;
        font-size: 1rem;
    }

    .case-slide {
        --case-video-height: 220px;
    }

    .case-title {
        font-size: 1.5rem;
    }

    .case-subtitle {
        font-size: 0.98rem;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .case-text p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .pain-card {
        padding: 20px 22px;
        gap: 18px;
    }

    .pain-card-badge {
        width: 48px;
        font-size: 2rem;
    }

    .pain-card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .pain-card-title {
        font-size: 1.05rem;
    }

    .pain-card-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .case-slide-right {
        padding: 24px 12px;
    }

    .case-stats-row {
        gap: 6px;
    }

    .case-stat-item {
        padding: 9px 3px;
    }

    .case-stat-value {
        font-size: 0.98rem;
    }

    .case-stat-unit {
        font-size: 0.66rem;
    }

    .case-stat-label {
        font-size: 0.62rem;
    }
}

@media (max-width: 768px) {
    .pain-points-section .section-title,
    .solution-section .section-title,
    .case-showcase-section .section-title {
        font-size: 1.7rem !important;
    }

    .pain-points-section .section-subtitle,
    .solution-section .section-subtitle,
    .case-showcase-section .section-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .pain-points-section .section-title,
    .solution-section .section-title,
    .case-showcase-section .section-title {
        font-size: 1.45rem !important;
    }

    .pain-points-section .section-subtitle,
    .solution-section .section-subtitle,
    .case-showcase-section .section-subtitle {
        font-size: 0.9rem !important;
    }
}
