/* ============================================================
   场景应用页样式
   ============================================================ */

/* 筛选样式已移至 page-common.css */

/* ---------------------------------------- */
/* 加载中状态
/* ---------------------------------------- */
.scene-loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.loader-dots {
    display: flex;
    gap: 6px;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: loader-bounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loader-bounce {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40%           { transform: scale(1.0); opacity: 1.0; }
}

/* ---------------------------------------- */
/* 空状态
/* ---------------------------------------- */
.scene-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.scene-empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.scene-empty p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.scene-empty .btn-reset {
    padding: 8px 24px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.scene-empty .btn-reset:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------------------------------------- */
/* 加载更多按钮
/* ---------------------------------------- */
.scene-load-more {
    padding: 12px 40px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    min-width: 160px;
}

.scene-load-more:hover:not(:disabled) {
    background: var(--primary-dark, #007a67);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 147, 128, 0.3);
}

.scene-load-more:disabled,
.scene-load-more.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.scene-load-more.loading::after {
    content: '...';
    animation: load-more-dots 1s infinite;
}

@keyframes load-more-dots {
    0%, 20% { content: '.'; }
    40%      { content: '..'; }
    60%,100% { content: '...'; }
}

/* 场景列表 */
.scene-categories {
    padding: 60px 0;
    background: var(--bg-primary);
}

.scene-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 40px;
}

.scene-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
    position: relative;
}

.scene-category-card:hover {
    border-color: var(--primary);
    z-index: 1;
    box-shadow: 0 0 30px rgba(0, 147, 128, 0.2);
}

.scene-category-card.hidden {
    display: none;
}

.scene-category-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.scene-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    transition: all 0.6s ease;
}

.scene-category-card:hover .scene-category-image img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.scene-category-info {
    padding: 24px 28px;
    background: var(--bg-card);
}

.scene-category-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.scene-category-card:hover .scene-category-name {
    color: var(--primary);
}

.scene-category-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式 */
@media (max-width: 992px) {
    .scene-categories {
        padding: 40px 0;
    }

    .scene-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .scene-categories {
        padding: 30px 0;
    }

    .scene-category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px;
    }

.scene-category-info {
    padding: 18px 20px;
}

/* 移动端筛选收起展开 */
    .scene-filter {
        position: relative !important;
        top: auto !important;
        padding: 12px 0 !important;
    }

    .scene-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        background: linear-gradient(135deg, var(--primary) 0%, #006b5a 100%);
        border-radius: 8px;
        cursor: pointer;
        color: #fff;
        box-shadow: 0 2px 8px rgba(0, 147, 128, 0.3);
    }

    .filter-header-title {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .filter-header-arrow {
        width: 10px;
        height: 10px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }

    .scene-filter.collapsed .filter-header-arrow {
        transform: rotate(-135deg);
    }

    .scene-filter-tabs {
        display: none;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 0 0 8px 8px;
        margin-top: -4px;
    }

    .scene-filter.collapsed .scene-filter-tabs {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 电脑端隐藏筛选头部标题（移动端不需要，移到文件末尾确保正确覆盖） */
@media (min-width: 577px) {
    .filter-header-title {
        display: none !important;
    }
}
