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

:root {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --secondary-color: #06B6D4;
    --accent-color: #FBBF24;
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --border-color: #334155;
    --hover-color: #1D4ED8;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    font-size: 12px;
    color: var(--accent-color);
    background: rgba(251, 191, 36, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 150px;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

.login-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.upload-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(6, 182, 212, 0.2) 50%, rgba(251, 191, 36, 0.3) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=abstract%20blue%20video%20streaming%20background&image_size=landscape_16_9') center/cover no-repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--secondary-color);
}

.featured-section {
    padding: 60px 0;
}

.featured-video {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.featured-thumbnail {
    position: relative;
    width: 50%;
    height: 350px;
}

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

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(59, 130, 246, 1);
}

.play-icon {
    font-size: 32px;
    color: #fff;
    margin-left: 5px;
}

.duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.featured-info {
    width: 50%;
    padding: 30px;
}

.featured-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.featured-category {
    color: var(--primary-color);
    font-weight: 500;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.latest-section {
    padding: 60px 0;
    background: rgba(30, 41, 59, 0.3);
}

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

.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.video-thumbnail {
    position: relative;
    height: 150px;
}

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

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.video-info {
    padding: 15px;
}

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

.video-channel {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.categories-section {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
}

.category-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.category-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-count {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.channels-section {
    padding: 60px 0;
    background: rgba(30, 41, 59, 0.3);
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.channel-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.channel-avatar {
    font-size: 40px;
    margin-bottom: 10px;
}

.channel-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.channel-subscribers {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.banner-section {
    padding: 60px 0;
}

.banner-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.banner-content h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-content p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 30px;
}

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

.footer {
    background: var(--bg-card);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

.page-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 16px;
}

.filter-section {
    padding: 20px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.filter-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.sort-select {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.videos-section {
    padding: 40px 0;
}

.videos-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.videos-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.videos-grid .video-card .video-thumbnail {
    height: 200px;
}

.pagination-section {
    padding: 30px 0;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 10px;
}

.page-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.videos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.hot-list {
    list-style: none;
}

.hot-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.hot-list li:last-child {
    border-bottom: none;
}

.hot-thumbnail {
    position: relative;
    width: 80px;
    height: 50px;
    flex-shrink: 0;
}

.hot-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.hot-duration {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 10px;
}

.hot-info {
    flex: 1;
}

.hot-info a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.hot-info span {
    font-size: 12px;
    color: var(--text-secondary);
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.category-list span {
    color: var(--text-secondary);
    font-size: 12px;
    background: rgba(51, 65, 85, 0.5);
    padding: 2px 8px;
    border-radius: 10px;
}

.announcement {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.announcement p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.announcement p:last-child {
    margin-bottom: 0;
}

.categories-section .categories-grid {
    grid-template-columns: repeat(4, 1fr);
}

.categories-section .category-card {
    padding: 0;
}

.categories-section .category-featured {
    width: 100%;
    height: 120px;
}

.categories-section .category-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.categories-section .category-icon {
    padding: 20px;
}

.popular-section {
    padding: 40px 0;
    background: rgba(30, 41, 59, 0.3);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.popular-category {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.popular-list {
    list-style: none;
}

.popular-list li {
    padding: 8px 0;
}

.popular-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.quick-browse-section {
    padding: 40px 0;
}

.quick-browse-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.quick-browse-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.quick-browse-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.quick-browse-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.quick-browse-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.quick-browse-count {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.about-section {
    padding: 60px 0;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
