/* 色咪直播 - 直播间页面专用样式 */

/* 基础设置和变量 */
:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ff8a80;
    --accent-color: #ffc1cc;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #ffffff;
    --bg-secondary: #fff5f7;
    --bg-gradient: linear-gradient(135deg, #ff6b9d 0%, #ff8a80 50%, #ffc1cc 100%);
    --shadow-soft: 0 10px 35px rgba(255, 107, 157, 0.15);
    --shadow-hover: 0 20px 45px rgba(255, 107, 157, 0.25);
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

/* 基础容器居中系统 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* CSS重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
}

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    font-size: 28px;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

.slogan {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 12px;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-2px);
}

.nav-item.cta-btn {
    background: var(--bg-gradient);
    color: white;
    font-weight: 600;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding-top: 80px;
}

/* 页面头部 */
.page-hero {
    background: var(--bg-gradient);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* 直播间主要区域 */
.live-rooms-main {
    padding: 80px 0;
    background: var(--bg-primary);
}

.rooms-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--bg-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* 房间网格 */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.room-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.room-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.room-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #4caf50;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.room-status.away {
    background: #ff9800;
}

.room-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.room-badge.hot {
    background: #e74c3c;
}

.room-badge.trending {
    background: #f39c12;
}

.room-badge.new {
    background: #27ae60;
}

.room-badge.vip {
    background: #9b59b6;
}

.room-badge.music {
    background: #3498db;
}

.room-badge.cute {
    background: #e91e63;
}

.room-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 200px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.room-card:hover .room-overlay {
    opacity: 1;
}

.enter-room-btn {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.enter-room-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.enter-room-btn.disabled {
    background: #7f8c8d;
    cursor: not-allowed;
}

.room-info {
    padding: 20px;
}

.room-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.anchor-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.room-desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.room-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    background: var(--bg-gradient);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.tag.hot {
    background: #e74c3c;
}

.tag.trending {
    background: #f39c12;
}

.tag.new {
    background: #27ae60;
}

.tag.vip {
    background: #9b59b6;
}

.tag.music {
    background: #3498db;
}

.tag.cute {
    background: #e91e63;
}

.tag.quality {
    background: #8e44ad;
}

.room-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* 加载更多区域 */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    padding: 15px 40px;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.rooms-count {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 底部样式 */
.main-footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .rooms-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}