/* ============================================================
   Blog Section - 完整修复版
   ============================================================ */

.blog-section {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    padding: 80px 0 100px 0 !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #ffffff 0%, #e8eaf0 30%, #d5d8e0 60%, #b8bcc8 80%, #b6b4cf 100%);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ----- 光效 ----- */
.blog-section .blog-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: blogGlowPulse 7s ease-in-out infinite alternate;
}

.blog-section .blog-glow-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(155, 209, 255, 0.10) 40%, transparent 70%);
    filter: blur(90px);
    animation-delay: 0s;
}

.blog-section .blog-glow-2 {
    width: 450px;
    height: 450px;
    bottom: -150px;
    left: -120px;
    background: radial-gradient(circle, rgba(43, 127, 193, 0.08) 0%, rgba(155, 209, 255, 0.04) 50%, transparent 70%);
    filter: blur(80px);
    animation-delay: 1.5s;
    animation-name: blogGlowPulse2;
}

.blog-section .blog-glow-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    animation-delay: 0.8s;
}

.blog-section .blog-glow-4 {
    position: absolute;
    width: 600px;
    height: 200px;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 100%, 
        rgba(43, 127, 193, 0.12) 0%,
        rgba(155, 209, 255, 0.06) 30%,
        rgba(200, 208, 220, 0.03) 60%,
        transparent 100%
    );
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
    animation: blogGlowPulse3 6s ease-in-out infinite alternate;
}

@keyframes blogGlowPulse {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.3) translate(20px, -20px); opacity: 1; }
}

@keyframes blogGlowPulse2 {
    0% { transform: scale(0.8) translate(0, 0); opacity: 0.4; }
    100% { transform: scale(1.4) translate(-30px, 20px); opacity: 1; }
}

@keyframes blogGlowPulse3 {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.4; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 0.9; }
}

/* ============================================================
   容器
   ============================================================ */
.blog-section .blog-container {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
    box-sizing: border-box !important;
}

/* ============================================================
   标题
   ============================================================ */
.blog-section .blog-header {
    text-align: center !important;
    margin-bottom: 48px !important;
}

.blog-section .blog-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #2b4a6a;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 22px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.blog-section .blog-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0b2a4a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.blog-section .blog-title span {
    background: linear-gradient(135deg, #0b2a4a, #2b7fc1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-section .blog-subtitle {
    font-size: 1.05rem;
    color: rgba(11, 42, 74, 0.6);
    margin-top: 4px;
}

/* ============================================================
   轮播容器
   ============================================================ */
.blog-section .blog-carousel-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
}

/* ============================================================
   箭头
   ============================================================ */
.blog-section .blog-arrow {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(43, 127, 193, 0.15) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    color: #2b7fc1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    margin: 0 !important;
}

.blog-section .blog-arrow:hover {
    background: rgba(43, 127, 193, 0.15) !important;
    border-color: rgba(43, 127, 193, 0.3) !important;
    transform: scale(1.05) !important;
}

.blog-section .blog-arrow:active {
    transform: scale(0.92) !important;
}

.blog-section .blog-arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

.blog-section .blog-arrow:disabled {
    opacity: 0.2 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ============================================================
   轨道容器
   ============================================================ */
.blog-section .blog-carousel-track-wrapper {
    flex: 1 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.blog-section .blog-carousel-track {
    display: flex !important;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* ============================================================
   博客卡片 - 响应式（关键修复）
   ============================================================ */
.blog-section .blog-card {
    flex: 0 0 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(43, 127, 193, 0.06) !important;
    box-shadow: 0 4px 20px rgba(43, 127, 193, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 桌面端：3个一组 */
@media (min-width: 1024px) {
    .blog-section .blog-card {
        flex: 0 0 calc((100% - 60px) / 3) !important;
        max-width: calc((100% - 60px) / 3) !important;
    }
    .blog-section .blog-carousel-track {
        gap: 30px !important;
    }
}

/* 平板：2个一组 */
@media (min-width: 768px) and (max-width: 1023px) {
    .blog-section .blog-card {
        flex: 0 0 calc((100% - 24px) / 2) !important;
        max-width: calc((100% - 24px) / 2) !important;
    }
    .blog-section .blog-carousel-track {
        gap: 24px !important;
    }
}

/* 手机端：1个一组 */
@media (max-width: 767px) {
    .blog-section .blog-card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    .blog-section .blog-carousel-track {
        gap: 0 !important;
    }
    .blog-section .blog-arrow {
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
    }
    .blog-section .blog-arrow svg {
        width: 18px;
        height: 18px;
    }
    .blog-section .blog-carousel-wrapper {
        gap: 8px !important;
    }
}

/* ============================================================
   卡片内部样式
   ============================================================ */
.blog-section .blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eef5, #c8d4e0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}


.blog-section .blog-card-img img {
    width: 100%;
}

.blog-section .blog-card-img .blog-date-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(11, 42, 74, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 16px;
    letter-spacing: 0.5px;
}

.blog-section .blog-card-body {
    padding: 22px 26px 26px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-section .blog-card-body .blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: #6a8aaa;
    flex-wrap: wrap;
}

.blog-section .blog-card-body .blog-meta .blog-category {
    background: rgba(43, 127, 193, 0.08);
    color: #2b7fc1;
    padding: 2px 14px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.7rem;
}

.blog-section .blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0b2a4a;
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-section .blog-card-body p {
    font-size: 0.92rem;
    color: #4a6a8a;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.blog-section .blog-card-body .blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2b7fc1;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* ============================================================
   指示点
   ============================================================ */
.blog-section .blog-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.blog-section .blog-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(43, 127, 193, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.blog-section .blog-dot.active {
    background: #2b7fc1;
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(43, 127, 193, 0.25);
}

/* ============================================================
   手机端响应式（完整）
   ============================================================ */
@media (max-width: 1024px) {
    .blog-section {
        padding: 40px 0 50px 0 !important;
    }
    .blog-section .blog-container {
        padding: 0 16px !important;
    }
    .blog-section .blog-header {
        margin-bottom: 24px !important;
    }
    .blog-section .blog-badge {
        font-size: 12px;
        padding: 4px 16px;
    }
    .blog-section .blog-title {
        font-size: 1.6rem;
    }
    .blog-section .blog-subtitle {
        font-size: 0.85rem;
    }

    .blog-section .blog-card-img {
        height: 160px;
    }
    .blog-section .blog-card-img i {
        font-size: 2.8rem;
    }
    .blog-section .blog-card-body {
        padding: 16px 18px 20px 18px;
    }
    .blog-section .blog-card-body .blog-meta {
        font-size: 0.7rem;
        gap: 10px;
    }
    .blog-section .blog-card-body h3 {
        font-size: 1rem;
    }
    .blog-section .blog-card-body p {
        font-size: 0.85rem;
    }

    .blog-section .blog-dots {
        margin-top: 20px;
        gap: 8px;
    }
    .blog-section .blog-dot {
        width: 8px;
        height: 8px;
    }
    .blog-section .blog-dot.active {
        width: 24px;
    }

    /* 光效缩小 */
    .blog-section .blog-glow-1 {
        width: 250px;
        height: 250px;
        top: -100px;
        right: -60px;
        filter: blur(50px);
    }
    .blog-section .blog-glow-2 {
        width: 200px;
        height: 200px;
        bottom: -60px;
        left: -40px;
        filter: blur(40px);
    }
    .blog-section .blog-glow-3 {
        width: 180px;
        height: 180px;
        filter: blur(40px);
    }
    .blog-section .blog-glow-4 {
        width: 250px;
        height: 120px;
        bottom: -20px;
        filter: blur(35px);
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 30px 0 40px 0 !important;
    }
    .blog-section .blog-container {
        padding: 0 12px !important;
    }
    .blog-section .blog-title {
        font-size: 1.3rem;
    }
    .blog-section .blog-card-img {
        height: 140px;
    }
    .blog-section .blog-card-body {
        padding: 14px 14px 16px 14px;
    }
    .blog-section .blog-card-body h3 {
        font-size: 0.95rem;
    }
    .blog-section .blog-card-body p {
        font-size: 0.8rem;
    }
    .blog-section .blog-arrow {
        flex: 0 0 30px !important;
        width: 30px !important;
        height: 30px !important;
    }
    .blog-section .blog-arrow svg {
        width: 14px;
        height: 14px;
    }
    .blog-section .blog-carousel-wrapper {
        gap: 6px !important;
    }
}