:root {
    --primary: #ff3366;
    --primary-glow: rgba(255, 51, 102, 0.5);
    --bg-dark: #0f0f13;
    --bg-card: #1a1a20;
    --text-main: #ffffff;
    --text-sub: #a0a0a0;
    --gradient-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* 动态背景特效 */
.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000 100%);
    overflow: hidden;
}
.particle {
    position: absolute;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Header */
.site-header {
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo img { height: 40px; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
}
.nav-menu a.active, .nav-menu a:hover { color: var(--primary); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

.btn-glow {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: 0.3s;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    text-align: center;
    background: url('../images/hero-bg.jpg') no-repeat center/cover;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,19,0.3), var(--bg-dark));
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; color: #ccc; margin-bottom: 30px; }

/* Data Stats (参考源码精华) */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}
.stat-number { display: block; font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.stat-label { font-size: 0.9rem; color: #aaa; }

/* Video Grid */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}
.section-title { font-size: 1.8rem; }
.more-link { color: var(--text-sub); font-size: 0.9rem; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.video-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.thumb-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}
.thumb-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.video-card:hover .thumb-wrapper img { transform: scale(1.05); }
.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-btn {
    width: 50px; height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 0 15px var(--primary-glow);
}
.duration-badge {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(0,0,0,0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.card-info { padding: 15px; }
.card-title {
    font-size: 1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-sub);
}
.card-tags {
    margin-top: 8px;
    display: flex;
    gap: 5px;
}
.tag {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #ccc;
}

/* Footer */
.site-footer {
    background: #0a0a0c;
    padding: 60px 0 80px; /* 底部留出Tab Bar空间 */
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { color: var(--text-main); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-sub); }
.footer-col ul li a:hover { color: var(--primary); }
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-sub);
    font-size: 0.9rem;
}

/* Mobile Tab Bar */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(26, 26, 32, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 1001;
    padding-bottom: env(safe-area-inset-bottom);
}
.tab-items { display: flex; justify-content: space-around; height: 60px; align-items: center; }
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-sub);
    font-size: 10px;
    gap: 4px;
}
.tab-item i { font-size: 20px; }
.tab-item.active { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu, .header-actions { display: none; }
    .mobile-tab-bar { display: block; }
    .hero h1 { font-size: 2rem; }
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .thumb-wrapper { padding-top: 75%; /* 4:3 for mobile */ }
    .card-info { padding: 10px; }
    .card-title { font-size: 0.9rem; }
    .site-footer { padding-bottom: 100px; }
}
