
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #f0f2f5;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    background: #81e6d6;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}


.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #4361ee;
    border: 2px solid #4361ee;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    color: white;
    border-color: transparent;
}

.btn-accent {
    background: linear-gradient(135deg, #81e6d6, #ff9e00);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 109, 0, 0.4);
}

/* 导航栏 */
.main-header {

    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.main-header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #4361ee;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: rotate(15deg);
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo:hover .logo-icon {
    transform: rotate(0deg);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #81e6d6, #ff9e00);
    bottom: 0;
    left: 0;
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #4361ee;
}

.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
}

.search-input {
    padding: 10px 20px 10px 45px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    width: 0;
    opacity: 0;
    transition: all 0.5s ease;
    background: transparent;
}

.search-input.active {
    width: 250px;
    opacity: 1;
    background: white;
}

.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #212529;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
    color: #4361ee;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    padding: 3px;
    cursor: pointer;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.user-avatar:hover {
    transform: scale(1.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4361ee;
    border-radius: 3px;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 英雄区域 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, #4361ee, #4ec1dd, #81e6d6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #212529;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

/* 特色视频区域 */
.featured-videos {
    background: white;
    position: relative;
}

.featured-container {

    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: #4361ee #f0f0f0;
}

.featured-container::-webkit-scrollbar {
    height: 8px;
}

.featured-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.featured-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    border-radius: 10px;
}

.featured-video-card {
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.featured-video-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(67, 97, 238, 0.2);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.featured-video-card:hover .play-btn {
    opacity: 1;
}

.video-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.tag-new {
    background: #81e6d6;
}

.tag-popular {
    background: #4361ee;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}

/* 分类区域 */
.categories {
    background: #f8f9fa;
    position: relative;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    z-index: -1;
    transition: height 0.4s ease;
}

.category-card:hover::before {
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    color: white;
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    color: white;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card:hover .category-icon {
    background: white;
    color: #4361ee;
    transform: scale(1.1) rotate(10deg);
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 视频网格 */
.video-grid {
    background: white;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-grid-card {
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.video-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
}

.video-grid-card:hover .grid-thumbnail img {
    transform: scale(1.1);
}

.grid-thumbnail {
    height: 180px;
    overflow: hidden;
}

.grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-video-info {
    padding: 20px;
}

.grid-video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-video-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 0.9rem;
    color: #666;
}

.grid-video-stats {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

/* 播放列表 */
.playlists {
    background: #f8f9fa;
}

.playlists-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
}

.playlist-card {
    flex: 0 0 300px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.playlist-card:hover {
    transform: translateY(-10px);
}

.playlist-header {
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    color: white;
    position: relative;
}

.playlist-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.playlist-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.playlist-count {
    opacity: 0.9;
    font-size: 0.9rem;
}

.playlist-videos {
    padding: 20px;
}

.playlist-video-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.playlist-video-item:last-child {
    border-bottom: none;
}

.playlist-video-thumb {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.playlist-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-video-title {
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 视频播放器模拟 */
.player-section {
    background: #212529;
    color: white;
    padding: 60px 0;
}

.player-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-screen {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.player-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-controls {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.player-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 70%;
    background: linear-gradient(135deg, #81e6d6, #ff9e00);
    border-radius: 3px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #aaa;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-left, .control-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    color: #81e6d6;
}

.volume-slider {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    width: 80%;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    border-radius: 3px;
}

/* 用户交互 */
.interaction-section {
    background: white;
}

.interaction-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.interaction-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.interaction-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    color: #666;
}

.interaction-btn:hover {
    transform: scale(1.1);
}

.interaction-btn.liked {
    background: #ff4757;
    color: white;
}

.interaction-btn.saved {
    background: #4361ee;
    color: white;
}

.comment-section {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
}

.comment-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.comment-input {
    flex: 1;
    padding: 15px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comment-input:focus {
    outline: none;
    border-color: #4361ee;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
}

.comment-time {
    color: #888;
    font-size: 0.9rem;
}

/* 页脚 */
.main-footer {
    background: #212529;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-description {
    color: #aaa;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    transform: translateY(-5px);
}

.footer-heading {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #81e6d6, #ff9e00);
    bottom: 0;
    left: 155px;
    border-radius: 3px;
}

.footer-links li {
    margin-bottom: 12px;
    text-align: center;
}

.footer-links a {
    color: #aaa;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px 0 0 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-btn {
    background: linear-gradient(135deg, #81e6d6, #4ec1dd);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #81e6d6, #ff9e00);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 40px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .search-input.active {
        width: 200px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 80%;
        max-width: 300px;
    }
    
    .player-screen {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .featured-video-card {
        flex: 0 0 300px;
    }
    
    .interaction-buttons {
        flex-wrap: wrap;
    }
    
    .comment-form {
        flex-direction: column;
    }
    
    .comment-form .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}
