/* assets/css/cases.css */

.cases-hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 136, 204, 0.1) 0%, transparent 60%);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card h3 {
    font-size: 20px;
    margin: 12px 0;
}

.case-card p {
    color: var(--text-regular);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.capability-summary {
    max-width: 800px;
    margin: 0 auto;
}

.summary-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.summary-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 0;
    color: var(--primary-color);
}

/* 画册样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px 24px;
    margin-top: 40px;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-6px);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid var(--border-light, #eaeaea);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover .gallery-img-wrapper {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

.gallery-content {
    padding: 20px 4px 0 4px;
    text-align: left;
}

.gallery-tag {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-title {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.gallery-item:hover .gallery-title {
    color: var(--primary-color);
}

.gallery-desc {
    color: var(--text-regular);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 图片放大弹窗 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 999999; /* 确保在最外层 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 更加透明的背景 */
    backdrop-filter: blur(4px); /* 添加毛玻璃效果提升质感 */
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    opacity: 1;
}

.image-modal-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: #1F2229; /* 深灰色背景 */
    border-radius: 50%;
    color: #fff; /* 白色叉号 */
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-modal-close:hover {
    background: #2D313A;
    transform: scale(1.05);
}

.image-modal-caption {
    margin-top: 24px;
    color: #fff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 24px;
    border-radius: 0;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.image-modal.show .image-modal-caption {
    transform: translateY(0);
    opacity: 1;
}
