/* 卡片容器 */
.IDH-album {
    padding: 20px 0 60px;
}

/* 卡片主体 */
.IDH-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.IDH-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* 图片容器 - 适配1024×1536竖版比例 */
.IDH-card-img-container {
    height: 0;
    padding-top: 150%; /* 1024/1536 ≈ 0.666, 1/0.666≈1.5 */
    position: relative;
    overflow: hidden;
}

.IDH-card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.IDH-card:hover .IDH-card-img-top {
    transform: scale(1.05);
}

/* 卡片主体 */
.IDH-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 按钮容器 */
.IDH-btn-container {
    margin-top: auto;
    text-align: center;
}

.IDH-btn-outline-secondary {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #6c5ce7;
    color: #6c5ce7;
    background: white;
}

.IDH-btn-outline-secondary:hover {
    background: #6c5ce7;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* 模态框 */
.IDH-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.IDH-modal.show {
    display: flex;
    opacity: 1;
}

.IDH-modal-content {
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.IDH-modal.show .IDH-modal-content {
    transform: translateY(0);
}

.IDH-modal-header {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.IDH-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.IDH-close-btn:hover {
    transform: rotate(90deg);
}

.IDH-modal-body {
    padding: 0;
}

.IDH-iframe-container {
    position: relative;
    height: 70vh;
}

#IDH-contentFrame {
    width: 100%;
    height: 100%;
    border: none;
}

.IDH-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.IDH-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(108, 92, 231, 0.2);
    border-top: 5px solid #6c5ce7;
    border-radius: 50%;
    animation: IDH-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes IDH-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.IDH-timer-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.IDH-timer {
    font-weight: 600;
    font-size: 1.2rem;
    color: #2d3436;
}

.IDH-timer-progress {
    width: 150px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.IDH-timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00b09b, #96c93d);
    border-radius: 4px;
    width: 100%;
    transition: width 1s linear;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .IDH-iframe-container {
        height: 60vh;
    }
}