:root {
    --primary-color: #0088cc;
    --primary-dark: #006699;
    --secondary-color: #5682a3;
    --dark-color: #1c2b36;
    --gray-color: #f0f2f5;
    --text-color: #333;
    --light-color: #ffffff;
    --primary-rgb: 0, 136, 204; /* 添加RGB值用于透明度效果 */
    
    --tech: #00bcd4;
    --entertainment: #9c27b0;
    --business: #ff9800;
    --lifestyle: #8bc34a;
    --news: #3f51b5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--gray-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 语言切换样式 */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.header-bg {
    background: url('images/header-bg.jpg') center/cover;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.2;
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    text-align: center;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.header-logo img {
    height: 60px;
    margin-right: 15px;
}

.header-logo h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-color);
    text-align: center;
}

.free-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff9f43);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    margin-left: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.header-text {
    max-width: 800px;
    margin: 0 auto 40px;
}

.header-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.header-text p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Featured Channels Section */
.featured-section {
    padding: 80px 0 50px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
}

/* 推广卡片容器布局 */
.featured-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-channel {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.featured-channel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featured-img {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    height: 0;
    padding-bottom: 56.25%; /* 16:9比例 */
}

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

.featured-channel:hover .featured-img img {
    transform: scale(1.05);
}

.featured-info {
    padding: 20px;
}

.featured-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.featured-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.featured-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 136, 204, 0.25);
    margin-top: 5px;
}

.featured-button svg {
    margin-right: 8px;
}

.featured-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 136, 204, 0.3);
    color: white;
}

.featured-button:hover svg {
    fill: white;
}

.featured-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.featured-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #888;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.meta-item svg {
    margin-right: 5px;
    fill: var(--primary-color);
}

/* All Channels Section */
.channels-section {
    padding: 50px 0 80px;
    background-color: var(--light-color);
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.channel-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 320px; /* 确保卡片高度一致 */
}

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

.channel-color-bar {
    height: 5px;
    width: 100%;
}

.tech-bar {
    background: linear-gradient(to right, var(--tech), #4dd0e1);
}

.entertainment-bar {
    background: linear-gradient(to right, var(--entertainment), #d500f9);
}

.business-bar {
    background: linear-gradient(to right, var(--business), #ff6f00);
}

.lifestyle-bar {
    background: linear-gradient(to right, var(--lifestyle), #64dd17);
}

.news-bar {
    background: linear-gradient(to right, var(--news), #1a237e);
}

.free-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff9f43);
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.channel-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.channel-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tech-icon {
    background: rgba(0, 188, 212, 0.1);
    color: var(--tech);
}

.entertainment-icon {
    background: rgba(156, 39, 176, 0.1);
    color: var(--entertainment);
}

.business-icon {
    background: rgba(255, 152, 0, 0.1);
    color: var(--business);
}

.lifestyle-icon {
    background: rgba(139, 195, 74, 0.1);
    color: var(--lifestyle);
}

.news-icon {
    background: rgba(63, 81, 181, 0.1);
    color: var(--news);
}

.channel-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.channel-desc {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.channel-btn {
    display: block;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    background: var(--gray-color);
    color: var(--text-color);
}

.channel-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 调整背景图卡片样式 */
.channel-card.with-bg {
    background-position: center;
    background-size: cover;
    aspect-ratio: 1/1; /* 修改为正方形 */
    height: auto;
    max-height: none; /* 移除最大高度限制 */
}

/* 添加卡片背景图类 */
.channel-card.with-bg .channel-content {
    background: transparent; /* 完全移除背景色 */
    backdrop-filter: none; /* 移除模糊效果 */
    height: 100%;
    z-index: 1;
    margin-top: 0; /* 取消顶部彩条预留空间 */
}

/* 隐藏带背景图卡片的顶部彩条 */
.channel-card.with-bg .channel-color-bar {
    display: none;
}

.channel-card.with-bg:hover .channel-content {
    background: transparent;
}

/* 为了保持文字可读性，给文字添加阴影 */
.channel-card.with-bg .channel-name,
.channel-card.with-bg .channel-desc {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.9);
}

/* 调整按钮样式，确保在透明背景上可见 */
.channel-card.with-bg .channel-btn {
    background: rgba(0, 136, 204, 0.85);
    color: white;
}

.channel-card.with-bg .channel-btn:hover {
    background: var(--primary-color);
}

/* 隐藏频道卡片中的emoji图标 */
.channel-card.with-bg .channel-icon {
    display: none;
}

/* AI频道背景 */
.bg-ai {
    background-image: url('images/ai-channel.jpg');
    background-size: cover;
    background-position: center;
}

/* 影视频道背景 */
.bg-movie {
    background-image: url('images/bg-movie.jpg');
    background-size: cover;
    background-position: center;
}

/* 商业频道背景 */
.bg-business {
    background-image: url('images/bg-business.jpg');
    background-size: cover;
    background-position: center;
}

/* 抖音美女频道背景 */
.bg-tiktok {
    background-image: url('images/tiktok-channel.jpg');
    background-size: cover;
    background-position: center;
}

/* DJ频道背景 */
.bg-dj {
    background-image: url('images/bg-dj.jpg');
    background-size: cover;
    background-position: center;
}

/* 东南亚新闻频道背景 */
.bg-asia {
    background-image: url('images/bg-asia.jpg');
    background-size: cover;
    background-position: center;
}

/* 环球新闻频道背景 */
.bg-global {
    background-image: url('images/bg-global.jpg');
    background-size: cover;
    background-position: center;
}

/* 支付频道背景 */
.bg-payment {
    background-image: url('images/bg-payment.jpg');
    background-size: cover;
    background-position: center;
}

/* Marble Dash频道背景 */
.bg-mbd {
    background-image: url('images/bg-mbd.jpg');
    background-size: cover;
    background-position: center;
}

/* ISP/VPS资源整合频道背景 */
.bg-isp {
    background-image: url('images/bg-isp.jpg');
    background-size: cover;
    background-position: center;
}

/* WhatsApp养号频道背景 */
.bg-whatsapp {
    background-image: url('images/bg-whatsapp.jpg');
    background-size: cover;
    background-position: center;
}

/* Advantages Section */
.advantages-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
}

.advantage-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.advantage-desc {
    color: #666;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-color), #263238);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Stats Section */
.stats-section {
    padding: 50px 0;
    background-color: var(--primary-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
}

/* Responsive Designs */
@media (max-width: 992px) {
    .featured-channels {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        padding: 80px 0;
    }
    
    .header-text h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 60px 0;
    }
    
    .header-logo h1 {
        font-size: 2rem;
    }
    
    .free-badge {
        font-size: 0.8rem;
        padding: 3px 10px;
        margin-left: 10px;
    }
    
    .header-text h2 {
        font-size: 1.6rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .featured-img {
        height: 180px;
    }
    
    .featured-title {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .primary-btn, .secondary-btn {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .featured-channels {
        grid-template-columns: 1fr;
    }
    
    .featured-channel .featured-img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .header-content {
        padding: 50px 0;
    }
    
    .featured-img {
        height: 160px;
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
    }
    
    .header-logo {
        flex-direction: column;
    }
    
    .header-logo h1 {
        margin-bottom: 15px;
    }
    
    .free-badge {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .language-switcher {
        position: relative;
        top: 15px;
        right: 0;
        align-self: center;
        margin: 0 auto;
        justify-content: center;
        width: fit-content;
    }
}

.resource-features .meta-item:last-child {
    margin-bottom: 0;
}

.featured-channel.with-bg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    aspect-ratio: 2/2.5;
    position: relative;
    color: #fff;
}

.featured-channel.with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    z-index: 1;
    border-radius: 15px;
}

.featured-channel.with-bg .featured-title,
.featured-channel.with-bg .featured-desc {
    color: #fff;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-channel.with-bg .featured-info {
    position: relative;
    z-index: 2;
    background: transparent;
}

.featured-channel.with-bg .featured-img {
    display: none;
}

.featured-channel.with-bg .featured-info {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    padding-top: 40px;
}

.resource-features.standard {
    background-color: rgba(0, 0, 0, 0.05); 
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.resource-features.standard .meta-item {
    margin-bottom: 12px;
    color: #555;
    font-weight: 500;
}

.resource-features.standard .meta-item:last-child {
    margin-bottom: 0;
}

/* 调整featured-img的样式，确保图片正常显示 */
.featured-channel .featured-img {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    height: 220px;
}

.featured-channel .featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
} 