/* 爱夜视频 - 主样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #2d1b69, #11998e);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.logo h1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.logo span {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 8px 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.search-box input {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.search-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 英雄区域 */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 60px 0;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.6);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.night-scene {
    position: relative;
    width: 400px;
    height: 300px;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.moon {
    position: absolute;
    top: 30px;
    right: 50px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #f5f5dc, #e6e6fa);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(245,245,220,0.5);
    animation: moonGlow 3s ease-in-out infinite alternate;
}

@keyframes moonGlow {
    0% { box-shadow: 0 0 20px rgba(245,245,220,0.5); }
    100% { box-shadow: 0 0 30px rgba(245,245,220,0.8); }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite alternate;
}

.star:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 30%; left: 70%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 50%; left: 30%; animation-delay: 1s; }
.star:nth-child(4) { top: 60%; left: 80%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 80%; left: 60%; animation-delay: 2s; }

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.5); }
}

.video-screen {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    border: 3px solid rgba(255,255,255,0.2);
}

.screen-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    opacity: 0.3;
    filter: blur(10px);
    animation: screenPulse 2s ease-in-out infinite alternate;
}

@keyframes screenPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* 功能特色区域 */
.features-section {
    margin-bottom: 80px;
}

.features-section h3 {
    text-align: center;
    font-size: 36px;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

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

.feature-card {
    background: rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.feature-card h4 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.feature-card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* 数据统计区域 */
.stats-section {
    margin-bottom: 80px;
    background: rgba(255,255,255,0.05);
    padding: 60px 0;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.stats-section h3 {
    text-align: center;
    font-size: 36px;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: rgba(102,126,234,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102,126,234,0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(102,126,234,0.2);
    box-shadow: 0 15px 40px rgba(102,126,234,0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(102,126,234,0.5);
}

.stat-label {
    font-size: 18px;
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* 夜间分类区域 */
.night-categories {
    margin-bottom: 80px;
}

.night-categories h3 {
    text-align: center;
    font-size: 36px;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

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

.category-item {
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.category-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.category-thumb {
    height: 150px;
    position: relative;
    overflow: hidden;
}

.category-thumb.thriller {
    background: linear-gradient(45deg, #8B0000, #FF4500);
}

.category-thumb.romance {
    background: linear-gradient(45deg, #FF69B4, #FFB6C1);
}

.category-thumb.documentary {
    background: linear-gradient(45deg, #4682B4, #87CEEB);
}

.category-thumb.anime {
    background: linear-gradient(45deg, #9370DB, #DDA0DD);
}

.category-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    backdrop-filter: blur(5px);
}

.category-item span {
    display: block;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* 夜间模式展示区域 */
.night-mode-showcase {
    margin-bottom: 80px;
}

.night-mode-showcase h3 {
    text-align: center;
    font-size: 36px;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tech-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(102,126,234,0.5));
}

.tech-content h4 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.tech-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.night-demo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-screen {
    width: 300px;
    height: 200px;
    background: rgba(0,0,0,0.8);
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.demo-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.demo-video {
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    opacity: 0.8;
}

.demo-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.control-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.control-btn.active {
    background: #667eea;
    box-shadow: 0 0 15px rgba(102,126,234,0.5);
}

.demo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 25px;
    opacity: 0.2;
    filter: blur(15px);
    animation: demoGlow 3s ease-in-out infinite alternate;
}

@keyframes demoGlow {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

/* 夜间新闻区域 */
.night-news {
    margin-bottom: 80px;
}

.night-news h3 {
    text-align: center;
    font-size: 36px;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

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

.news-item {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.news-item.featured {
    border: 2px solid #667eea;
    background: rgba(102,126,234,0.1);
}

.news-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(102,126,234,0.5);
}

.news-date {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 15px;
}

.news-item h4 {
    font-size: 20px;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.news-item p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #764ba2;
    text-shadow: 0 0 10px rgba(102,126,234,0.5);
}

/* 夜间CTA区域 */
.night-cta {
    margin-bottom: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.night-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: ctaGlow 4s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-text h3 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.cta-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-tag {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

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

.btn-primary.large,
.btn-secondary.large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
}

.btn-secondary.large {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary.large:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* 用户评价区域 */
.user-reviews {
    margin-bottom: 60px;
}

.user-reviews h3 {
    text-align: center;
    font-size: 36px;
    color: white;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

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

.review-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.user-avatar.night {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 0 15px rgba(102,126,234,0.5);
}

.review-content h5 {
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.rating {
    color: #FFD700;
    font-size: 16px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255,215,0,0.5));
}

.review-content p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-time {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #667eea;
    text-shadow: 0 0 10px rgba(102,126,234,0.5);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
    text-shadow: 0 0 10px rgba(102,126,234,0.5);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    color: rgba(255,255,255,0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin: 15px 0;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .night-scene {
        width: 300px;
        height: 250px;
    }
    
    .features-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

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

/* 通用工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }