/* 全局重置 - 确保无白边 */
body, html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* 全屏滚动和吸磁效果 - 仅桌面端 */
@media (min-width: 769px) {
    .fullscreen-container {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
        height: 100vh;
        scroll-behavior: smooth;
    }
    
    .fullscreen-section {
        scroll-snap-align: start;
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
    }
    
    /* 自定义滚动条 */
    .fullscreen-container::-webkit-scrollbar {
        width: 8px;
    }
    
    .fullscreen-container::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.1);
    }
    
    .fullscreen-container::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 4px;
    }
    
    .fullscreen-container::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    }
}

/* 区域间导航指示器 */
.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
}

@media (min-width: 769px) {
    .scroll-indicator {
        display: block;
    }
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.scroll-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.scroll-dot:hover {
    border-color: white;
    transform: scale(1.1);
}

/* 滚动提示动画 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
    display: none;
}

@media (min-width: 769px) {
    .scroll-hint {
        display: block;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-hint-text {
    font-size: 14px;
    margin-top: 8px;
}

/* 移动端样式保持原有布局 */
@media (max-width: 768px) {
    .fullscreen-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 100vh !important;
    }
}

/* 滚动触发翻页效果 - 核心样式 */
html {
    scroll-behavior: smooth;
}

body {
    overflow-y: auto;
}

/* 每个区域都是翻页点 */
.hero-section,
.search-section,
.stations-section,
.categories-section,
.countries-section,
.languages-section,
.stats-section {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
}

/* 全屏无边框设置 */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.fullscreen-container {
    width: 100vw;
    margin: 0;
    padding: 0;
}

.fullscreen-section {
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
}

/* 英雄区域 - 使用背景图片 */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 50%, rgba(240, 147, 251, 0.8) 100%), 
                url('/static/images/wallpapers/hero-bg.jpg') center/cover no-repeat !important;
    color: white !important;
    padding: 2rem 0 !important;
    min-height: 100vh !important;
    position: relative !important;
    width: 100vw;
    margin: 0;
}

.hero-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem) !important;
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1rem, 4vw, 1.5rem) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* 战略合作伙伴区域背景 */
#section-partners {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%), 
                url('/static/images/wallpapers/featured-bg.jpg') center/cover no-repeat;
    width: 100vw;
    margin: 0;
}

/* 电台区域背景 */
#section-stations {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%), 
                url('/static/images/wallpapers/popular-bg.jpg') center/cover no-repeat;
    width: 100vw;
    margin: 0;
}

/* 分类浏览区域背景 */
#section-categories {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%), 
                url('/static/images/wallpapers/hero (5).jpg') center/cover no-repeat;
    width: 100vw;
    margin: 0;
}

/* 国家浏览区域背景 */
#section-countries {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%), 
                url('/static/images/wallpapers/hero (8).jpg') center/cover no-repeat;
    width: 100vw;
    margin: 0;
}

/* 统计信息区域背景 */
#section-stats {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%), 
                url('/static/images/wallpapers/stats-bg.jpg') center/cover no-repeat;
    color: white;
    width: 100vw;
    margin: 0;
}

.hero-image-placeholder {
    width: clamp(200px, 50vw, 400px);
    height: clamp(200px, 50vw, 400px);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 搜索区域 - 美化样式 */
.search-section {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%), 
                url('/static/images/wallpapers/search-bg.jpg') center/cover no-repeat;
    position: relative;
}

        .search-box {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 30px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            border: 1px solid rgba(255,255,255,0.3);
            padding: 3rem;
            position: relative;
            overflow: hidden;
            margin: 0 auto;
        }
        
        /* 源网站风格的电台卡片 - 2行6列布局 */
        .stations-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 2rem;
            max-height: calc(2 * (200px + 20px)); /* 限制高度为2行 */
        }
        
        .stations-grid.languages-grid {
            grid-template-columns: repeat(6, 1fr);
            grid-template-rows: repeat(2, 1fr);
            max-height: calc(2 * (200px + 20px));
        }
        
        .station-item {
            width: auto;
            margin: 0 0 20px 0;
            box-sizing: border-box;
            background: white;
            border-radius: 5px;
            overflow: visible;
            box-shadow: rgba(149, 157, 165, 0.2) 0px 0px 10px;
            transition: all 0.3s ease;
        }
        
        .languages-grid .station-item {
            width: auto;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .station-item:hover {
            transform: translateY(-2px);
            box-shadow: rgba(149, 157, 165, 0.3) 0px 4px 20px;
        }
        
        .station-link {
            text-decoration: none;
            color: inherit;
            display: block;
            padding: 20px;
        }
        
        .station-link:hover {
            text-decoration: none;
            color: inherit;
        }
        
        .station-image {
            margin: 0;
            height: 120px; /* 固定图片高度 */
            width: 100%;
            overflow: hidden;
            text-align: center;
            background: #f8f9fa;
            flex-shrink: 0;
        }
        
        .station-image img {
            width: auto;
            height: auto;
            object-fit: none;
        }
        
        .station-placeholder {
            height: 85px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6c757d;
            font-size: 2rem;
        }
        
        .languages-grid .station-placeholder {
            color: rgba(255,255,255,0.8);
        }
        
        .station-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            height: 200px; /* 固定高度确保2行6列布局 */
            display: flex;
            flex-direction: column;
        }
        
        .station-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        }
        
        .station-info {
            padding: 15px;
        }
        
        .station-name {
            margin: 0 0 10px 0;
            font-weight: 600;
            color: #333;
            font-size: 1rem;
            line-height: 1.3;
        }
        
        .station-description {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 15px;
            line-height: 1.4;
        }
        
        .station-stats {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #666;
            font-size: 0.85rem;
        }
        
        .stat-item i {
            color: #667eea;
        }
        

        
        /* 响应式调整 - 小屏变成2列显示，保持合适行数 */
        @media (max-width: 768px) {
            .stations-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(6, 1fr); /* 小屏2列6行 */
                gap: 15px;
                max-height: none; /* 小屏不限制高度 */
            }
            
            .stations-grid.languages-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(6, 1fr);
                max-height: none;
            }
            
            .station-item {
                width: 100%;
                display: block;
                padding: 0;
            }
            
            .station-image {
                width: auto;
                height: auto;
                margin: 0 15px 0 0;
                flex-shrink: 0;
            }
            
            .station-image img {
                width: auto;
                height: auto;
                object-fit: none;
            }
            
            .station-placeholder {
                width: auto;
                height: auto;
                font-size: 1.5rem;
            }
            
            .station-name {
                margin: 0;
                text-align: left;
                flex: 1;
            }
            
            .languages-grid .station-item {
                flex-direction: column;
                text-align: center;
            }
            
            .languages-grid .station-image {
                width: 100%;
                height: 80px;
                margin: 0 0 15px 0;
            }
            
            .languages-grid .station-placeholder {
                width: 100%;
                height: 80px;
            }
        }

.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

/* 电台区域 - 紧凑布局 */
.stations-section.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.stations-section.popular {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.stations-section.latest {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.stations-section.top-rated {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* 电台区域标题和内容紧凑布局 */
.stations-section .container {
    padding: 2rem 0;
}

.stations-section .text-center {
    margin-bottom: 2rem !important;
}

.stations-section .display-4 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.stations-section .lead {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
}

/* 分类、国家、语言区域 - 使用Bootstrap类 */
.categories-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.countries-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.languages-section {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    color: white;
}

/* 统计信息区域 - 使用Bootstrap类 */
.stats-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%), 
                url('/static/images/wallpapers/stats-bg.jpg') center/cover no-repeat;
    color: white;
    position: relative;
}

/* 电台卡片 - 缩小尺寸，紧凑布局 */
.station-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.station-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.station-card:hover::before {
    transform: scaleX(1);
}

.station-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}





/* 电台卡片内容区域 - 紧凑布局 */
.station-card .card-body {
    padding: 1rem;
}

.station-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.station-card .card-text {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.station-card .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.station-card small {
    font-size: 0.75rem;
}

/* 分类、国家、语言卡片 - 使用Bootstrap类 */
.category-card, .country-card, .language-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: block;
    color: inherit;
}

.category-card:hover, .country-card:hover, .language-card:hover {
    transform: translateY(-8px) scale(1.05);
    text-decoration: none;
    color: inherit;
}

.category-icon, .country-flag, .language-icon {
    border-radius: 20px;
    transition: all 0.4s ease;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
    padding: 2rem;
    text-align: center;
}

.category-icon::before, .country-flag::before, .language-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon::before,
.country-card:hover .country-flag::before,
.language-card:hover .language-icon::before {
    transform: scaleX(1);
}

.category-icon:hover, .country-flag:hover, .language-icon:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
    transform: scale(1.02);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0;
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .search-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

/* 翻页指示器 */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.scroll-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* 全屏广告样式 */
.ad-container-fullwidth {
    position: relative;
    width: 100%;
    transition: transform 0.3s ease;
}

.ad-container-fullwidth:hover {
    transform: scale(1.02);
}

.ad-link-fullwidth {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
}

.ad-label-fullwidth {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    font-weight: 500;
}

.ad-placeholder-fullwidth {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .ad-container-fullwidth img {
        width: 100% !important;
        height: auto !important;
    }
    
    .ad-label-fullwidth {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}