:root {
    --primary-color: #1a2a47;
    --secondary-color: #5468ff;
    --accent-color: #ff7b54;
    --text-light: #ffffff;
    --text-dark: #121212;
    --text-gray: #a0a0a0;
    --background-light: #f5f7fa;
    --background-dark: #0f1824;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-dark: 0 5px 15px rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #4559e6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 导航栏样式 */
.header {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-container {
    position: relative;
    margin-left: auto;
    margin-right: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    width: 200px;
}

.search-box:focus-within {
    background-color: rgba(255, 255, 255, 0.25);
    width: 280px;
}

.search-icon {
    color: var(--text-light);
    margin-right: 8px;
}

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

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--primary-color);
    border-radius: 4px;
    box-shadow: var(--shadow-dark);
    z-index: 1001;
    display: none;
}

.search-container:focus-within .search-results {
    display: block;
}
/* 将这段CSS添加到styles.css文件的搜索部分 */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.result-thumb {
    width: 50px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 10px;
}

.result-info {
    flex-grow: 1;
}

.result-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.result-meta {
    font-size: 12px;
    color: var(--text-gray);
}


.user-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    position: relative;
    cursor: pointer;
}

.notification i {
    color: var(--text-light);
    font-size: 20px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 10px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Banner区域 */
.hero-banner {
    margin-top: 70px;
    position: relative;
    height: 60vh;
}

.banner-carousel {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.banner-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-item.active {
    opacity: 1;
    z-index: 10;
}

.banner-content {
    width: 40%;
    padding: 0 50px;
    color: var(--text-light);
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.banner-description {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    gap: 15px;
}

.play-button, .info-button {
    padding: 12px 24px;
    font-size: 1rem;
}

.banner-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.banner-nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.banner-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--text-light);
    transform: scale(1.2);
}

/* 分类标签 */
.category-tags {
    padding: 30px 0 15px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.tag {
    padding: 8px 16px;
    background-color: var(--background-dark);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.tag.active {
    background-color: var(--secondary-color);
}

/* 内容区域 */
.content-section {
    padding: 20px 0 40px;
}

/* 视频行 */
.video-row {
    margin: 30px 0;
}

.row-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.row-navigation {
    position: relative;
}

.video-cards {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.video-cards::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--text-light);
    box-shadow: var(--shadow-dark);
}

.nav-btn.left {
    left: -20px;
}

.nav-btn.right {
    right: -20px;
}

/* 视频卡片 */
.video-card {
    flex: 0 0 240px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: scale(1.08);
    z-index: 50;
}

.thumbnail-container {
    position: relative;
    width: 100%;
    height: 135px;
}

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

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
}

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

.preview-info {
    color: var(--text-light);
}

.preview-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.preview-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.preview-btn i {
    color: var(--text-light);
    font-size: 14px;
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 12px;
}

.match {
    color: #46d369;
}

.preview-genres {
    font-size: 12px;
    opacity: 0.8;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
}

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

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-text {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    padding: 10px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 4px 0 0 4px;
    flex-grow: 1;
}

.newsletter-button {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #4559e6;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .banner-content {
        width: 50%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
    }
    
    .search-box:focus-within {
        width: 200px;
    }
}

@media screen and (max-width: 768px) {
    .banner-content {
        width: 70%;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
    }
    
    .nav-btn.left {
        left: -15px;
    }
    
    .nav-btn.right {
        right: -15px;
    }
}

@media screen and (max-width: 576px) {
    .banner-content {
        width: 85%;
        padding: 0 20px;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container {
        margin-right: 10px;
    }
    
    .search-box {
        width: 150px;
    }
}


