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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f5f7;
    color: #333;
}

/* 顶部导航栏 */
.header {
    background: white;
    border-bottom: 1px solid #e1e2e3;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-svg {
    width: 80px;
    height: 32px;
}

.logo-text {
    fill: #fb7299;
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-icon {
    color: #999;
    cursor: pointer;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.download-btn {
    background: #fb7299;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.download-btn:hover {
    background: #e85d75;
}

/* 导航菜单 */
.nav-menu {
    background: white;
    border-bottom: 1px solid #e1e2e3;
    padding: 0 16px;
}

.nav-items {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: #666;
    padding: 16px 0;
    font-size: 15px;
    position: relative;
    transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active {
    color: #fb7299;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #fb7299;
}

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

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* 视频卡片 */
.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.play-icon {
    align-self: center;
    margin: auto;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.play-count,
.danmu-count {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-title {
    padding: 12px 16px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部App推广横幅 */
.app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fb7299, #ff6b9d);
    color: white;
    padding: 16px;
    z-index: 50;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-logo {
    font-size: 18px;
    font-weight: bold;
}

.banner-text {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        padding: 8px 12px;
    }
    
    .nav-items {
        gap: 20px;
        padding: 0 4px;
    }
    
    .nav-item {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .main-content {
        padding: 16px 12px 80px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .banner-logo {
        font-size: 16px;
    }
    
    .banner-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .download-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}