/* ===== 案例展示区 ===== */
.case-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 24px 32px;
    margin-bottom: 28px;
    border: 1px solid #e0e6ef;
}

/* ===== 筛选栏 ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.filter-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    width: 100%;
    padding: 6px 0;
}
.filter-row.award-row { border-top: 1px dashed #dce2ec; }
.filter-label {
    font-weight: 600;
    color: #4a5a72;
    font-size: 14px;
}
.filter-tag {
    background: transparent;
    border: 1px solid #d0d9e8;
    padding: 2px 18px;
    border-radius: 40px;
    font-size: 13px;
    color: #2c3e50;
    cursor: pointer;
    transition: 0.15s;
    user-select: none;
}
.filter-tag.active {
    background: #1a3c6e;
    border-color: #1a3c6e;
    color: #fff;
}
.filter-tag:hover:not(.active) {
    border-color: #1a3c6e;
    color: #1a3c6e;
}
.filter-tag.award-gold {
    border-color: #f5b342;
    color: #b8860b;
}
.filter-tag.award-gold.active {
    background: #f5b342;
    border-color: #f5b342;
    color: #1a3c6e;
}
.filter-tag.award-gold:hover:not(.active) {
    background: #fdf0d5;
    border-color: #f5b342;
}

/* ===== 搜索框 ===== */
.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d0d9e8;
    border-radius: 40px;
    padding: 2px 2px 2px 16px;
    transition: 0.2s;
    flex-shrink: 0;
}
.search-box:focus-within {
    border-color: #1a3c6e;
    box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.10);
}
.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 6px 0;
    font-size: 13px;
    color: #333;
    width: 180px;
}
.search-box input::placeholder { color: #a0b0c8; }
.search-box button {
    background: #1a3c6e;
    border: none;
    border-radius: 40px;
    color: #fff;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    white-space: nowrap;
}
.search-box button:hover { background: #0f2a4f; }

/* ===== 案例网格 ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.case-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    cursor: pointer;
}
.case-card:hover {
    transform: translateY(-3px);
    border-color: #b8c8dd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.case-cover {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
}
.case-cover .media-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(26, 60, 110, 0.85);
    color: #fff;
    padding: 1px 13px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
}
.case-cover .group-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(245, 179, 66, 0.90);
    color: #1a3c6e;
    padding: 1px 13px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
}
.case-cover .award-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: #1a3c6e;
    padding: 1px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.case-cover .award-badge.award-gold {
    background: linear-gradient(135deg, #fdf0d5, #fce4b8);
    color: #8b6914;
    border: 1px solid #f5b342;
}
.case-cover .award-badge.award-silver {
    background: linear-gradient(135deg, #f0f2f5, #e4e7ec);
    color: #4a5568;
    border: 1px solid #c0c8d4;
}
.case-cover .award-badge.award-bronze {
    background: linear-gradient(135deg, #f7efe6, #f0e0d0);
    color: #8b6b4a;
    border: 1px solid #d4b896;
}
.case-body {
    padding: 16px 19px 19px;
    display: flex;
    flex-direction: column;
}
.case-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0b2a4a;
    margin-bottom: 3px;
    line-height: 1.3;
}
.case-body .author {
    font-size: 13px;
    color: #4a5a72;
    margin-bottom: 5px;
}
.case-body .desc {
    color: #3d4f66;
    font-size: 13px;
    margin-bottom: 13px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.case-body .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eef2f8;
    padding-top: 8px;
    font-size: 12px;
    color: #5a6f88;
}
.btn-case {
    background: transparent;
    border: 1px solid #ccd8e8;
    padding: 1px 16px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 12px;
    color: #1a4f7a;
    transition: 0.15s;
    cursor: pointer;
    text-decoration: none;
}
.btn-case:hover {
    background: #1a3c6e;
    border-color: #1a3c6e;
    color: #fff;
}

/* ===== 翻页控件 ===== */
.case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 19px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.case-pagination .page-btn {
    background: transparent;
    border: 1px solid #d0d9e8;
    border-radius: 40px;
    padding: 5px 16px;
    font-size: 13px;
    color: #2c3e50;
    cursor: pointer;
    transition: 0.15s;
    min-width: 36px;
    text-align: center;
}
.case-pagination .page-btn:hover:not(.active):not(:disabled) {
    border-color: #1a3c6e;
    color: #1a3c6e;
}
.case-pagination .page-btn.active {
    background: #1a3c6e;
    border-color: #1a3c6e;
    color: #fff;
    cursor: default;
}
.case-pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.case-pagination .page-info {
    font-size: 13px;
    color: #6a7f99;
    margin: 0 5px;
}

/* ===== 简介悬浮框 ===== */
.desc-tooltip {
    display: none;
    position: fixed;
    z-index: 1100;
    max-width: 340px;
    background: #1e2a3a;
    color: #eef2f8;
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    pointer-events: none;
    word-break: break-word;
    white-space: pre-wrap;
}

/* ===== 空状态 ===== */
.case-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: #6a7f99;
    font-size: 15px;
}
.case-empty .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

/* ===== 视频弹窗（禁右键另存） ===== */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.video-modal.show { display: flex; }
.video-modal-box {
    background: #0b1626;
    border-radius: 10px;
    width: min(880px, 100%);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.video-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    gap: 12px;
}
.video-modal-head .title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-modal-head .close-btn {
    background: transparent;
    border: none;
    color: #cbd8ea;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    flex-shrink: 0;
}
.video-modal-head .close-btn:hover { color: #fff; }
.video-modal-box video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #000;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .case-section { padding: 16px 16px 24px; }
    .case-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .search-box { width: 100%; }
    .search-box input { width: 100%; flex: 1; }
    .case-pagination .page-btn { font-size: 12px; padding: 3px 11px; min-width: 30px; }
}
@media (max-width: 480px) {
    .case-grid { grid-template-columns: 1fr; }
    .filter-tag { font-size: 12px; padding: 1px 11px; }
}
