@import url('http://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

/* 夜色主题 */
.night-theme {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    min-height: 100vh;
    position: relative;
}

/* 夜空星星背景 */
.night-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* 霓虹渐变 */
.neon-gradient {
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neonShift 4s ease-in-out infinite;
}

@keyframes neonShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 顶部横幅 */
.night-banner {
    background: linear-gradient(90deg, #8338ec, #ff006e, #3a86ff, #06ffa5);
    background-size: 400% 100%;
    animation: neonFlow 8s ease-in-out infinite;
    padding: 0.75rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

@keyframes neonFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.neon-text {
    color: white;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(255,255,255,0.8); }
    to { text-shadow: 0 0 20px rgba(255,255,255,1), 0 0 30px rgba(131,56,236,0.8); }
}

/* 导航栏 */
.night-nav {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(131, 56, 236, 0.3);
    position: sticky;
    top: 0;
    z-index: 50;
}

.night-logo {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #8338ec, #ff006e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.6);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { box-shadow: 0 0 20px rgba(131, 56, 236, 0.6); }
    to { box-shadow: 0 0 30px rgba(131, 56, 236, 0.9), 0 0 40px rgba(255, 0, 110, 0.6); }
}

.night-nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.night-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(131, 56, 236, 0.4), transparent);
    transition: left 0.5s;
}

.night-nav-link:hover::before,
.night-nav-link.active::before {
    left: 100%;
}

.night-nav-link:hover,
.night-nav-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.3), rgba(255, 0, 110, 0.3));
    box-shadow: 0 0 15px rgba(131, 56, 236, 0.4);
}

/* 按钮样式 */
.night-btn-primary {
    background: linear-gradient(135deg, #8338ec, #ff006e);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.4);
}

.night-btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.night-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.night-btn-primary:hover::before {
    left: 100%;
}

.night-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(131, 56, 236, 0.8);
}

.night-btn-secondary {
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #8338ec;
    cursor: pointer;
    transition: all 0.3s ease;
}

.night-btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.night-btn-secondary:hover {
    background: linear-gradient(135deg, #8338ec, #ff006e);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.6);
}

/* 英雄区域 */
.night-hero {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-moon {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffd700, #ffed4e);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    animation: floatMoon 8s ease-in-out infinite;
}

@keyframes floatMoon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.floating-star {
    position: absolute;
    font-size: 1.5rem;
    animation: floatStar 6s ease-in-out infinite;
}

.star-1 { top: 20%; left: 15%; animation-delay: 0s; }
.star-2 { top: 30%; right: 20%; animation-delay: -2s; }
.star-3 { bottom: 40%; left: 25%; animation-delay: -4s; }
.star-4 { top: 60%; right: 30%; animation-delay: -6s; }

@keyframes floatStar {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
}

.hero-description {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 4xl;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.night-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.night-tag {
    background: rgba(131, 56, 236, 0.2);
    border: 2px solid rgba(131, 56, 236, 0.4);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.night-tag:hover {
    background: linear-gradient(135deg, #8338ec, #ff006e);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(131, 56, 236, 0.4);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* 统计卡片 */
.night-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 4xl;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(131, 56, 236, 0.3);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(131, 56, 236, 0.3);
    border-color: rgba(131, 56, 236, 0.6);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* 夜色区域 */
.night-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.night-section.alt {
    background: rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 2xl;
    margin: 0 auto;
}

/* 夜色网格 */
.night-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.night-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid rgba(131, 56, 236, 0.2);
    transition: all 0.5s ease;
    position: relative;
}

.night-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.night-card:hover::after {
    opacity: 1;
}

.night-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(131, 56, 236, 0.4);
    border-color: rgba(131, 56, 236, 0.6);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    transition: transform 0.5s ease;
}

.night-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.live-indicator {
    background: #ff006e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    align-self: flex-start;
    animation: livePulse 2s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 110, 0.6); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 110, 1); }
}

.viewer-count {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    align-self: flex-end;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.show-category {
    background: #8338ec;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    align-self: flex-start;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.popularity-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    align-self: flex-end;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 10;
}

.streamer-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.streamer-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid rgba(131, 56, 236, 0.4);
}

.streamer-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.streamer-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    padding: 2.5rem;
    border-radius: 25px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.category-card.purple {
    background: linear-gradient(135deg, #8338ec, #6f2dbd);
}

.category-card.pink {
    background: linear-gradient(135deg, #ff006e, #d90368);
}

.category-card.blue {
    background: linear-gradient(135deg, #3a86ff, #0077b6);
}

.category-card.gold {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.category-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-description {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.category-stats {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.stat-row:last-child {
    margin-bottom: 0;
}

/* 评价网格 */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 25px;
    border: 2px solid rgba(131, 56, 236, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8338ec, #ff006e, #3a86ff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 25px 25px 0 0;
}

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

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(131, 56, 236, 0.3);
    border-color: rgba(131, 56, 236, 0.4);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reviewer-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid rgba(131, 56, 236, 0.4);
}

.reviewer-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.rating {
    color: #ffd700;
}

.review-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.125rem;
}

.review-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 页脚 */
.night-footer {
    background: linear-gradient(135deg, #0f0f23, #1a1a2e);
    padding: 5rem 0;
    border-top: 2px solid rgba(131, 56, 236, 0.3);
    position: relative;
    z-index: 10;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.footer-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(131, 56, 236, 0.8);
}

/* 数字计数器 */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .night-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .night-tags {
        flex-direction: column;
        align-items: center;
    }
}

/* 动画性能优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .neon-gradient {
        background: #8338ec;
        -webkit-text-fill-color: #8338ec;
    }
    
    .live-indicator {
        background: #ff0000;
    }
}

/* 打印样式 */
@media print {
    .floating-elements,
    .night-stars,
    .live-indicator,
    nav,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}