/* ============================================
   案例详情页样式 - cases/index.css
   ============================================ */

/* ============================================
   1. 页面主布局
   ============================================ */

/* 案例详情主容器 */
.lsd-case-detail-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.pc-gov-banner {
  height: 300px !important;
}
/* 左侧主内容区 */
.lsd-case-detail-main {
    flex: 1;
    min-width: 0;
}

/* ============================================
   2. 涉及产品模块（蓝色背景区域）
   ============================================ */

.lsd-case-product-box {
    background: #F0F7FF;
    border: 1px solid rgba(0, 105, 234, 0.2);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}

.lsd-case-product-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.lsd-case-product-row:last-child {
    margin-bottom: 0;
}

.lsd-case-module-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.lsd-case-module-row:last-child {
    margin-bottom: 0;
}

.lsd-case-product-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}

.lsd-case-module-value {
    white-space: normal;
}

.lsd-case-product-link {
    color: #0069EA;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.lsd-case-product-link:hover {
    text-decoration: underline;
}

.lsd-case-product-link svg {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ============================================
   案例图片样式
   ============================================ */

.lsd-case-image {
    margin: 20px 0;
    text-align: center;
}

.lsd-case-image picture,
.lsd-case-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lsd-case-image img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lsd-case-product-more {
    color: #0069EA;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.lsd-case-product-more:hover {
    text-decoration: underline;
}

.lsd-case-product-more i {
    font-size: 12px;
}

.lsd-case-module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lsd-case-module-tag {
    background: rgba(0, 105, 234, 0.08);
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 13px;
}

/* ============================================
   3. 案例内容区块
   ============================================ */

.lsd-case-section {
    margin-bottom: 32px;
}

.lsd-case-section:last-child {
    margin-bottom: 0;
}

.lsd-case-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 16px;
}

.lsd-case-section-content {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.8;
}

.lsd-case-section-content p {
    margin-bottom: 12px;
    text-align: justify;
}

.lsd-case-section-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   客户评价样式
   ============================================ */

.lsd-case-testimonial {
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
    border-left: 4px solid #0069EA;
    border-radius: 8px;
    padding: 24px 28px;
    margin-top: 24px;
    position: relative;
}

.lsd-case-testimonial::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 48px;
    color: #0069EA;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.lsd-case-testimonial-label {
    font-size: 14px;
    font-weight: 600;
    color: #0069EA;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lsd-case-testimonial-label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #0069EA;
    border-radius: 2px;
}

.lsd-case-testimonial-content {
    font-size: 15px;
    color: #374151;
    line-height: 1.9;
    font-style: italic;
    padding-left: 8px;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .lsd-case-testimonial {
        padding: 18px 20px;
        margin-top: 20px;
    }

    .lsd-case-testimonial::before {
        font-size: 36px;
        top: 4px;
        left: 12px;
    }

    .lsd-case-testimonial-label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .lsd-case-testimonial-content {
        font-size: 14px;
        line-height: 1.8;
        padding-left: 4px;
    }
}

/* ============================================
   4. 右侧边栏
   ============================================ */

.lsd-case-detail-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 边栏卡片基础样式 */
.lsd-case-sidebar-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.lsd-case-sidebar-card:last-child {
    margin-bottom: 0;
}

.lsd-case-sidebar-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 16px;
}

/* 相关解决方案列表 */
.lsd-case-solution-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lsd-case-solution-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.lsd-case-solution-item:hover {
    background: #F0F7FF;
}

.lsd-case-solution-icon {
    width: 32px;
    height: 32px;
    background: #F0F7FF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lsd-case-solution-icon svg {
    width: 18px;
    height: 18px;
    color: #0069EA;
}

.lsd-case-solution-item span {
    font-size: 14px;
    color: #374151;
}

.lsd-case-solution-item:hover span {
    color: #0069EA;
}

/* 相关案例列表 */
.lsd-case-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lsd-case-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.lsd-case-related-item:hover {
    background: #F0F7FF;
}

.lsd-case-related-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lsd-case-related-icon svg {
    width: 18px;
    height: 18px;
    color: #0069EA;
}

.lsd-case-related-item span {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.lsd-case-related-item:hover span {
    color: #0069EA;
}

/* ============================================
   5. 响应式适配 - 平板端
   ============================================ */

@media screen and (max-width: 1024px) {
    .lsd-case-detail-container {
        flex-direction: column;
        gap: 32px;
    }

    .lsd-case-detail-sidebar {
        width: 100%;
    }

    /* 边栏卡片横向排列 */
    .lsd-case-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .lsd-case-sidebar-card {
        margin-bottom: 0;
    }
}

/* ============================================
   6. 响应式适配 - 手机端
   ============================================ */

@media screen and (max-width: 768px) {
    /* 产品模块 */
    .lsd-case-product-box {
        padding: 16px;
        margin-bottom: 24px;
    }

    .lsd-case-product-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .lsd-case-product-link {
        display: flex;
        align-items: center;
    }
    .lsd-case-module-row {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    .lsd-case-product-box .lsd-case-module-row:nth-child(1) {
        align-items: center;
    }
    .lsd-case-product-box .lsd-case-module-row:nth-child(3) {
        flex-wrap: nowrap !important;
        align-items: flex-start;
    }
    .lsd-case-module-row .lsd-case-product-label:nth-child(2) {
      display: block;           /* 或 inline-block */
        white-space: normal;      /* 允许换行 */
        word-wrap: break-word;    /* 长单词换行 */
        overflow-wrap: break-word;
        line-height: 1.6;         /* 增加行高更美观 */
        max-width: 100%;    
    }
    .lsd-case-module-tags {
        width: 100%;
    }

    .lsd-case-product-label {
        font-size: 13px;
    }

    .lsd-case-product-link,
    .lsd-case-product-more {
        font-size: 13px;
    }

    .lsd-case-module-tag {
        font-size: 12px;
        padding: 3px 10px;
    }

    /* 内容区块 */
    .lsd-case-section {
        margin-bottom: 24px;
    }

    .lsd-case-section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .lsd-case-section-content {
        font-size: 13px;
        line-height: 1.7;
    }

    .lsd-case-section-content p {
        margin-bottom: 10px;
    }

    /* 右侧边栏 - 手机端单列显示 */
    .lsd-case-detail-sidebar {
        grid-template-columns: 1fr;
        display: none;
        gap: 12px;
    }

    .lsd-case-sidebar-card {
        padding: 16px;
    }

    .lsd-case-sidebar-card-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .lsd-case-solution-item,
    .lsd-case-related-item {
        padding: 10px 12px;
    }

    .lsd-case-solution-icon {
        width: 28px;
        height: 28px;
    }

    .lsd-case-solution-icon svg,
    .lsd-case-related-icon svg {
        width: 16px;
        height: 16px;
    }

    .lsd-case-solution-item span,
    .lsd-case-related-item span {
        font-size: 13px;
    }
}

/* ============================================
   7. 小屏幕手机端优化
   ============================================ */

@media screen and (max-width: 375px) {
    .lsd-case-module-tags {
        gap: 6px;
    }

    .lsd-case-module-tag {
        padding: 3px 8px;
        font-size: 11px;
    }
}
