/* 
 * 淘南京 - 景点列表页专属样式 (重构版 - 追求视觉冲击力)
 */

.spot-list-hero {
    position: relative;
    height: 40vh;
    min-height: 350px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spot-list-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.spot-list-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-list-hero .hero-overlay {
    position: absolute;
    inset: 0;
}

.spot-list-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 0 1.5rem;
    max-width: 780px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero-featured-tag {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
}

.hero-desc {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 600;
    opacity: 0.92;
}

/* 筛选条优化 */
.filter-bar-spots {
    padding: 1.5rem 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 60px;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.spot-tabs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.spot-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f5f5f5;
    padding: 0.4rem;
    border-radius: 1.25rem;
}

.spot-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
}

.spot-tab:hover {
    color: var(--text-main);
}

.spot-tab.active {
    background: var(--white);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Featured Spot - 模块化设计 */
.featured-section {
    padding: 6rem 0 3rem;
}

.spot-featured-card {
    position: relative;
    height: 550px;
    border-radius: 3.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25);
    margin: 0 auto;
}

.featured-img-box {
    position: absolute;
    inset: 0;
}

.featured-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
}

.spot-featured-card:hover .featured-img-box img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.featured-content {
    position: relative;
    z-index: 10;
    padding: 4rem;
    width: 100%;
    color: var(--white);
    max-width: 800px;
    text-align: center;
}

.featured-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 2rem;
}

.featured-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.featured-desc {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 800;
    transition: all 0.3s;
}

.btn-glass:hover {
    background: #fff;
    color: var(--text-main);
    transform: translateY(-3px);
}

/* Masonry Grid */
.spot-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 4rem 0 8rem;
    transition: opacity 0.3s ease;
}

@media (max-width: 1024px) {
    .spot-grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .spot-grid-layout {
        grid-template-columns: 1fr;
    }
}

.spot-masonry-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.spot-card-modern {
    background: #fff;
    border-radius: 2.5rem;
    overflow: hidden;
    transition: all 0.5s;
    border: 1px solid #f0f0f0;
    width: 100%;
}

.spot-card-featured-inline {
    border-color: rgba(220, 38, 38, 0.16);
    box-shadow: 0 24px 60px -36px rgba(220, 38, 38, 0.45);
}

.spot-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
}

.card-img-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-img-wrap.tall {
    height: 390px;
}

.card-img-wrap.short {
    height: 240px;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s;
}

.spot-card-modern:hover .card-img-wrap img {
    transform: scale(1.1);
}

.card-time-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-body-modern {
    padding: 2rem;
}

.card-title-modern {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.inline-featured-tag {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: #fef2f2;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 800;
}

.card-desc-modern {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f9fafb;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.spot-load-sentinel {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -4rem 0 4rem;
}

.spot-loader {
    width: 28px;
    height: 28px;
    border: 3px solid #f3f4f6;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spot-loader-spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.spot-load-sentinel.loading .spot-loader {
    opacity: 1;
}

@keyframes spot-loader-spin {
    to {
        transform: rotate(360deg);
    }
}
