/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #2A466D;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: #FF6B35;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #FF6B35;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-button {
    background-color: #FF6B35;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #e55a2b;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    background: #16213e;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #e94560;
    transform: translateX(-5px);
}

.back-to-blog i {
    margin-right: 10px;
}

.search-icon, .user-icon {
    cursor: pointer;
    font-size: 1.2rem;
}

.sign-in {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Hero Section (Banner) */
.hero {
    height: 70vh;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 0;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #FF6B35;
    color: white;
}

.btn-primary:hover {
    background-color: #e55a2c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1A365D;
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #1A365D;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Genre Cards */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.genre-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.genre-card i {
    font-size: 2.5rem;
    color: #FF6B35;
    margin-bottom: 15px;
}

.genre-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1A365D;
}

.genre-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Carousel Styles */
.carousel {
    margin-bottom: 50px;
}

.carousel-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1A365D;
}

.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f9f9f9;
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.carousel-item {
    min-width: 200px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: 2/3;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-item img {
    width: 100%;
    height: 65%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-item-content {
    padding: 15px;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 修复绝对定位内容区域的显示问题 */
.carousel-item-content {
    position: relative;
    z-index: 10;
}

.carousel-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1A365D;
}

.carousel-item-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.rating {
    color: #FFB800;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    background-color: #2A466D;
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    border-left: 3px solid #FF6B35;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: #FF6B35;
}

/* Content Page Styles */
.content-page {
    background-color: white;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #1A365D;
    color: white;
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 50px;
}

/* Content Page Hero Section */
.content-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/mianfeikan.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.content-hero .container {
    position: relative;
    z-index: 2;
}

.content-hero .hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.content-hero .section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.content-hero .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.8);
}

/* Animation Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Quick Filters Styles */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: #f8f9fa;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active {
    background: #e94560;
    color: white;
}

.filter-btn:hover:not(.active) {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Content Grid Styles */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    opacity: 1;
}

/* Content Cards Styles */
.content-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 280px;
    position: relative;
    height: auto;
    max-width: 100%;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* 处理直接在content-card中的img标签 */
.content-card > img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.content-card > img:hover {
    transform: scale(1.05);
}

/* 处理使用card-image包装的图片 */
.content-card .card-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.content-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.content-card .card-image img:hover {
    transform: scale(1.05);
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.content-card:hover .image-overlay {
    opacity: 1;
}

.content-card:hover .watch-btn {
    background: #e94560;
    transform: translateY(-2px);
}

.content-card .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e94560;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 20;
}

.content-card .image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.content-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #16213e;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.content-card-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.rating {
    color: #f59e0b;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1rem;
}

.watch-btn {
    width: 100%;
    background: #16213e;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    background-color: #2a466d;
    transform: translateY(-2px);
}

/* Carousel Titles Styles */
.carousel-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #16213e;
    display: flex;
    align-items: center;
}

.carousel-title:not(:first-of-type) {
    margin-top: 60px;
}

.carousel-title i {
    margin-right: 10px;
}

.trending-title i {
    color: #e94560;
}

.action-title i {
    color: #dc2626;
}

.comedy-title i {
    color: #f59e0b;
}

.horror-title i {
    color: #7c3aed;
}

.sci-fi-title i {
    color: #0ea5e9;
}

.drama-title i {
    color: #db2777;
}

.documentary-title i {
    color: #14b8a6;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

.content-page {
    animation: pageLoad 0.8s ease-out;
    padding: 60px 0;
}

/* Background Decorations */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(22, 33, 62, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Blog Page Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1A365D;
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 20px;
}

.blog-card-author {
    font-size: 0.9rem;
    color: #FF6B35;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    color: #FF6B35;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #1A365D;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
}

/* Blog Post Styles */
.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-cover {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #666;
    margin-bottom: 20px;
}

.social-share {
    display: flex;
    gap: 15px;
}

.social-share a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-share a:hover {
    color: #1A365D;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #1A365D;
}

.blog-post-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-post-content img {
    width: 100%;
    border-radius: 8px;
    margin: 30px 0;
}

.movie-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.movie-info p {
    margin-bottom: 5px;
    font-weight: 500;
}

.related-posts {
    margin-top: 60px;
}

.related-posts-grid {
    display: flex;
    gap: 30px;
}

.related-post-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.related-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* About Us Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #1A365D;
}

/* Legal Page Styles */
.legal-section {
    padding: 4rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A365D;
    margin-bottom: 1rem;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A365D;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1A365D;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #FF6B35;
    margin-top: 0.25rem;
}

.info-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A365D;
    margin-bottom: 0.5rem;
}

.info-text p {
    color: #666;
    margin-bottom: 0.75rem;
}

.chat-btn,
.faq-link {
    color: #FF6B35;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.chat-btn:hover,
.faq-link:hover {
    color: #1A365D;
    text-decoration: underline;
}

.social-contact h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A365D;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    color: #333;
    border-radius: 50%;
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: #FF6B35;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer Styles */
.footer {
    background-color: #2A466D;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #FF6B35;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #FF6B35;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .genres-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .content-grid {
        justify-content: center;
    }
    
    .related-posts-grid {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}