
/* ===== 案例搜索区域 ===== */
.case-search-section {
    padding: 30px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    margin-top: 70px; /* 为导航栏留出空间 */
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 3px 12px rgba(33, 143, 206, 0.15);
}

.search-btn {
    position: absolute;
    right: 8px;
    height: 36px;
    width: 36px;
    border-radius: 6px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-btn i {
    font-size: 0.9rem;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

/* ===== 标签筛选区域 ===== */
.tags-filter-section {
    padding: 25px 0;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
}

.tags-container {
    padding: 0;
}

.current-filters {
    margin-bottom: 20px;
}

.filter-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}

.active-tag {
    display: inline-block;
    padding: 7px 15px;
    background-color: rgba(33, 143, 206, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.active-tag i {
    margin-left: 5px;
}

.active-tag:hover {
    background-color: rgba(33, 143, 206, 0.2);
}

.clear-filters {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-left: 10px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.clear-filters:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.tag-category {
    margin-bottom: 15px;
}

.tag-category h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    display: inline-block;
    margin-right: 15px;
    min-width: 60px;
}

.tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 7px 15px;
    background-color: var(--light-color);
    color: var(--secondary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.tag-item:hover {
    background-color: #e9ecef;
    color: var(--text-color);
    transform: translateY(-2px);
}

.tag-item.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(33, 143, 206, 0.2);
}

/* ===== 案例主体区域 ===== */
.case-main-section {
    padding: 40px 0;
    background-color: var(--light-color);
}

/* 案例卡片 - 改进设计 */
.case-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    position: relative;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 比例 (3/4 = 0.75 = 75%) */
    overflow: hidden;
    cursor: pointer;
}

.case-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.case-card:hover .case-thumbnail img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all var(--transition-speed) ease;
    z-index: 2;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3.5rem;
    color: white;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
    text-align: center;
}

.case-card:hover .play-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* 案例内容区域 - 美化 */
.case-content {
    padding: 20px;
    position: relative;
    background-color: white;
}

.case-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.case-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--light-color);
    color: var(--secondary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all var(--transition-speed) ease;
}

.case-card:hover .case-tag {
    background-color: #e9ecef;
}

/* 无搜索结果提示 */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-results p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* 密码验证框样式 */
.password-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040;
}

.video-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1040;
}

.password-prompt {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1050;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.password-prompt.show {
    display: block;
    animation: fadeIn 0.3s ease, slideUp 0.4s ease forwards;
}

.password-prompt.hide {
    animation: fadeOut 0.3s ease forwards, slideDown 0.4s ease forwards;
}

.password-prompt-header {
    padding: 18px 24px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-prompt-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.password-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.2;
    transition: opacity var(--transition-speed) ease;
}

.password-close:hover {
    opacity: 1;
}

.password-prompt-body {
    padding: 24px;
}

.password-input-container {
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 143, 206, 0.1);
}

.password-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
}

.password-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.password-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 143, 206, 0.2);
}

/* 视频播放器样式 - 修复z-index问题 */
#videoModal {
    z-index: 1050;
}

#videoModal .modal-dialog {
    z-index: 1050;
}

#videoModal .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
    z-index: 1050;
}

.video-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1060;
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.video-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

#caseVideo {
    width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1055;
}

/* 新增动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, calc(-50% + 30px));
    }
    to {
        transform: translate(-50%, -50%);
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -50%);
    }
    to {
        transform: translate(-50%, calc(-50% + 30px));
    }
}

/* 加载器美化 */
#loadingIndicator .spinner-border {
    color: var(--primary-color) !important;
    width: 2.5rem;
    height: 2.5rem;
}

#loadingIndicator p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 15px !important;
}

#noMoreData p {
    color: var(--secondary-color);
    font-size: 1rem;
    padding: 10px 20px;
    background-color: white;
    display: inline-block;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .case-search-section {
        padding: 20px 0;
    }

    .search-input {
        padding: 10px 15px;
    }

    .search-btn {
        height: 32px;
        width: 32px;
    }

    .tags-filter-section {
        padding: 15px 0;
    }

    .tag-category h5 {
        display: block;
        margin-bottom: 8px;
    }

    .tag-list {
        display: flex;
    }

    .case-main-section {
        padding: 30px 0;
    }
}