/* ========================================
   案例展示页面样式
   ======================================== */

/* 案例面板 */
.case-panel {
    display: none;
}

.case-panel.active {
    display: block;
}

.case-panel h2 {
    font-size: 22px;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0390d9;
}

/* 案例卡片网格 */
.case-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.case-card-grid-platform {
    grid-template-columns: repeat(2, 1fr);
}

.case-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: #0390d9;
    box-shadow: 0 6px 20px rgba(3, 144, 217, 0.12);
    transform: translateY(-3px);
}

.case-card-body {
    padding: 22px 20px;
}

.case-card-body h4 {
    font-size: 15px;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.6;
    font-weight: bold;
}

.case-card-body h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.case-card-body h4 a:hover {
    color: #0390d9;
    text-decoration: underline;
}

.case-card-body .case-location {
    font-size: 13px;
    color: #0390d9;
    margin: 0 0 6px 0;
    padding-left: 18px;
    position: relative;
}

.case-card-body .case-location::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230390d9'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.case-card-body .case-date {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* 平台案例卡片 */
.case-card-platform {
    border-left: 4px solid #0390d9;
}

.case-card-platform:hover {
    border-left-color: #0277b6;
}

/* 响应式适配 */
@media screen and (max-width: 768px) {
    .case-card-grid,
    .case-card-grid-platform {
        grid-template-columns: 1fr;
    }

    .case-card-body {
        padding: 18px 16px;
    }

    .case-card-body h4 {
        font-size: 14px;
    }
}
