:root {
    --primary: #ff2d55; /* 品牌主色 */
    --secondary: #25f4ee; /* 辅助色 */
    --bg-dark: #0f0f13; /* 背景深色 */
    --bg-card: #1a1a20; /* 卡片背景 */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --spacing-unit: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.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: 24px;
    font-weight: 700;
}

.section-title span {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px;
}

.more-link {
    color: var(--text-muted);
    font-size: 14px;
}

/* Header */
.site-header {
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

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

.nav-menu a {
    font-weight: 500;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.header-actions .btn-glow {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.4);
}

/* Hero Section */
.hero {
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(15,15,19,1)), url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    background: rgba(255, 45, 85, 0.2);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-btns .btn-glow {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 0 20px rgba(255, 45, 85, 0.5);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    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 Aspect Ratio */
}

.thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.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: opacity 0.3s;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 45, 85, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.6);
}

.card-info {
    padding: 15px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 12px;
}

/* Footer */
.site-footer {
    background: #0a0a0c;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Mobile Tab Bar */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 19, 0.98);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.tab-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 10px;
}

.tab-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tab-item.active {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu, .header-actions {
        display: none;
    }
    
    .header-inner {
        justify-content: center;
    }
    
    .hero {
        height: 400px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .mobile-tab-bar {
        display: block;
    }
    
    body {
        padding-bottom: 60px; /* Space for tab bar */
    }
}

/* Player Modal */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.player-header {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
}

.close-btn {
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.conversion-overlay {
    position: absolute;
    text-align: center;
    display: none;
}
