/* ============================================
   月陆直播平台 - 自定义样式
   ============================================ */

/* 全局变量 */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================
   导航栏样式
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   首页横幅区 Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f3e8ff 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    color: var(--text-dark);
    line-height: 1.3;
}

.hero-section .text-primary {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-image {
    position: relative;
    height: 350px;
}

/* 浮动卡片动画 */
.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.float-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.float-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.float-card span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.card-1 { top: 10%; left: 15%; animation-delay: 0s; }
.card-2 { top: 5%; right: 20%; animation-delay: 0.5s; }
.card-3 { bottom: 20%; left: 5%; animation-delay: 1s; }
.card-4 { bottom: 15%; right: 10%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================
   统计信息条
   ============================================ */
.stats-bar {
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    padding: 10px;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   直播列表区
   ============================================ */
.live-section {
    background-color: #fff;
}

.section-title {
    font-weight: 700;
    color: var(--text-dark);
}

.category-tags .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tags .badge:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* 直播卡片 */
.live-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.live-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.live-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.live-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-card:hover .live-cover img {
    transform: scale(1.05);
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.viewers-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.live-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-card:hover .live-overlay {
    opacity: 1;
}

.live-overlay i {
    font-size: 3rem;
    color: white;
}

.live-info {
    padding: 15px;
}

.live-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.performer {
    display: flex;
    align-items: center;
    gap: 4px;
}

.category-tag {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ============================================
   VIP会员区
   ============================================ */
.vip-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.vip-banner {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 40px;
    color: white;
}

.vip-title {
    font-weight: 700;
}

.vip-price {
    margin: 15px 0;
}

.price-tag {
    font-size: 1.1rem;
    color: #fcd34d;
}

.price-tag strong {
    font-size: 2.5rem;
    color: #fbbf24;
}

.vip-benefit-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.vip-benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.vip-benefit-item h6 {
    color: white;
    margin-bottom: 5px;
}

/* ============================================
   未成年人保护专区
   ============================================ */
.protection-section {
    background-color: #f0fdf4;
}

.protection-banner {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #86efac;
}

.protection-banner h4 {
    color: #166534;
}

/* ============================================
   帮助中心
   ============================================ */
.help-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.help-card h5 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* ============================================
   网站底部
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: white;
}

.footer-main {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    color: white;
    font-weight: 700;
}

.company-info {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer h6 {
    color: #fcd34d;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.site-footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .vip-banner {
        padding: 25px;
    }
    
    .live-title {
        font-size: 0.85rem;
    }
}

/* ============================================
   按钮动画效果
   ============================================ */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3730a3);
}
