/* 全局重置 - 消除所有边距和空隙 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            width: 100%;
            overflow-x: hidden;
            position: relative;
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-color: white;
            font-family: 'Arial', sans-serif;
        }

        /* 背景图 - 确保完全覆盖 */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-image: url(../images/background.webp);
            background-size: cover;
            background-position: center;
            opacity: 0.4;
            z-index: -1;
        }

        /* 顶部横幅 - 修复移动端显示问题 */
        .top-section {
            width: 100vw;
            height: 150px;
            overflow: hidden;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(90deg, #5da5a7, #447278);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 2.5rem;
            font-weight: bold;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            z-index: 50; /* 确保在导航栏下方 */
        }

        /* 导航栏容器 */
        .navbar-container {
            width: 100%;
            height: 65px;
            position: relative;
            background-color: #5da5a7;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        /* 桌面导航栏样式 */
        .desktop-navbar {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .nav-container {
            width: 100%;
            max-width: 1200px;
        }

        .nav-menu {
            display: flex;
            justify-content: center;
            list-style: none;
            position: relative;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 20px 15px;
            color: white;
            text-decoration: none;
            font-size: 18px;
            transition: all 0.3s ease;
            text-align: center;
            white-space: nowrap;
        }

        .nav-link:hover {
            background-color: #447278;
        }

        /* 导航文本样式 - 修复链接样式 */
        .nav-text {
            flex: 1;
            text-align: center;
            padding: 0 8px;
            cursor: pointer;
            color: white; /* 确保文本为白色 */
            text-decoration: none; /* 移除下划线 */
        }

        /* 确保所有导航链接都是白色且无下划线 */
        .nav-link a {
            color: white;
            text-decoration: none;
        }

        /* 桌面导航栏下拉箭头 */
        .desktop-dropdown-arrow {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: transform 0.3s ease;
            cursor: pointer;
            border-radius: 3px;
            margin-left: 5px;
        }

        .desktop-dropdown-arrow:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .nav-item:hover .desktop-dropdown-arrow {
            transform: rotate(180deg);
        }

        /* 平板设备导航栏下拉箭头 */
        .tablet-dropdown-arrow {
            display: none;
            width: 30px;
            height: 30px;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            cursor: pointer;
            border-radius: 3px;
            margin-left: 5px;
        }

        .tablet-dropdown-arrow:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* 下拉菜单样式 */
        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            width: 200px;
            background-color: #5da5a7;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 1000;
            border-radius: 0 0 5px 5px;
            overflow: hidden;
        }

        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-item {
            display: block;
            padding: 12px 20px;
            color: white;
            text-decoration: none;
            font-size: 16px;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .dropdown-item:hover {
            background-color: #447278;
            padding-left: 25px;
        }

        /* 移动端汉堡菜单按钮 */
        .mobile-menu-btn {
            display: none;
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            z-index: 1000;
            background-color: #447278;
            border: none;
            border-radius: 5px;
            width: 50px;
            height: 50px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .mobile-menu-btn span {
            display: block;
            width: 30px;
            height: 3px;
            background-color: white;
            margin: 3px 0;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        /* 移动端导航菜单 */
        .mobile-nav-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 900;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mobile-nav {
            position: fixed;
            top: 0;
            left: -300px;
            width: 280px;
            height: 100%;
            background-color: #5da5a7;
            z-index: 950;
            overflow-y: auto;
            transition: left 0.3s ease;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
            padding: 70px 0 20px 0;
        }

        .mobile-nav.active {
            left: 0;
            display: block;
        }

        .mobile-nav-overlay.active {
            display: block;
            opacity: 1;
        }

        .mobile-nav-link-container a {
            color:white;
            text-decoration: none;
        }
        
        .mobile-nav-item {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-nav-link {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            color: white;
            text-decoration: none;
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .mobile-nav-link:hover {
            background-color: #447278;
            padding-left: 30px;
        }

        .mobile-dropdown {
            display: none;
            background-color: #447278;
        }

        .mobile-dropdown.active {
            display: block;
        }

        .mobile-dropdown-item {
            display: block;
            padding: 12px 20px 12px 40px;
            color: white;
            text-decoration: none;
            font-size: 16px;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-dropdown-item:hover {
            background-color: #3a6266;
            padding-left: 45px;
        }

        .dropdown-toggle {
            position: relative;
        }

        .dropdown-toggle::after {
            content: '\f107';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 20px;
            transition: transform 0.3s ease;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .dropdown-toggle.active::after {
            transform: rotate(180deg);
        }

        /* 内容区域 */
        .content-section {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px 15px;
            box-sizing: border-box;
            flex: 1;
        }

        /* 顶部标题栏 - 修复版本 */
        .container-1 {
            width: 100%;
            height: 80px;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            /* 主要内容居中 */
            position: relative;
            border-bottom: 1px solid #e0e0e0;
        }

        /* 返回按钮固定在左侧 */
        .back-icon {
            width: 80px;
            height: 40px;
            background-image: url('../images/back.webp');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            z-index: 1;
        }

        /* 标题完美居中 */
        .text {
            font-size: clamp(28px, 6vw, 36px);
            color: #5da5a7;
            text-align: center;
            margin: 0;
            padding: 0;
            width: 100%;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .container-1 {
                height: 70px;
            }

            .back-icon {
                width: 60px;
                height: 30px;
                left: 15px;
            }

            .box {
                padding: 12px;
                width: 98%;
                /* 更宽以适应小屏幕 */
            }

            .image-container {
                width: calc(33.333% - 8px);
                /* 保持3个一行 */
            }
        }

        @media (max-width: 480px) {
            .container-1 {
                height: 60px;
            }

            .back-icon {
                width: 50px;
                height: 25px;
                left: 10px;
            }

            .text {
                font-size: 20px;
            }

            .box {
                padding: 10px;
            }

            .box p {
                font-size: 14px;
                /* 固定最小字号 */
            }

            .image-container {
                width: calc(33.333% - 6px);
                /* 保持3个一行 */
            }

            #back-to-top {
                width: 40px;
                height: 40px;
                right: 10px;
                bottom: 30px;
            }
        }


        /* 电影详情气泡样式 */
        .movie-bubble {
            background-color: rgba(255, 255, 255, 0.85);
            border-radius: 20px;
            padding: 25px;
            margin: 30px auto;
            box-shadow: 0 10px 30px rgba(93, 165, 167, 0.2);
            position: relative;
            max-width: 1000px;
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
        }

        .movie-bubble::after {
            content: '';
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 20px 20px 0;
            border-style: solid;
            border-color: rgba(255, 255, 255, 0.85) transparent transparent;
        }

        .movie-poster {
            flex: 0 0 300px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .movie-poster img {
            width: 100%;
            height: auto;
            display: block;
        }

        .movie-info {
            flex: 1;
            min-width: 300px;
            display: flex;
            flex-direction: column;
        }

        .movie-title {
            font-size: 28px;
            color: #447278;
            margin-bottom: 15px;
            border-bottom: 2px solid #5da5a7;
            padding-bottom: 10px;
        }
        
        .movie-description {
            line-height: 1.6;
            color: #333;
            flex-grow: 1;
        }

        /* 剧集选择按钮 */
        .episodes-section {
            text-align: center;
            margin: 40px 0 20px;
        }

        .episodes-title {
            font-size: 22px;
            color: #447278;
            margin-bottom: 20px;
        }

        .episodes-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            max-width: 800px;
            margin: 0 auto;
        }

        .episode-btn a {
            color: white;
            text-decoration: none;
        }

         /* 原色按钮样式 */
        .episode-btn.original {
            background-color: #5da5a7;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 60px;
        }

        .episode-btn.original:hover {
            background-color: #447278;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(93, 165, 167, 0.4);
        }

        .episode-btn.original.active {
            background-color: #447278;
            transform: translateY(-2px);
            box-shadow: 0 3px 10px rgba(93, 165, 167, 0.3);
        }

        /* 灰色按钮样式 */
        .episode-btn.gray {
            background-color: #9e9e9e;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 60px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .movie-bubble {
                flex-direction: column;
                padding: 20px;
            }
            
            .movie-poster {
                flex: 0 0 auto;
                max-width: 280px;
                margin: 0 auto;
            }
            
            .movie-info {
                min-width: auto;
            }
            
            .episode-btn {
                padding: 10px 16px;
                font-size: 14px;
                min-width: 50px;
            }
        }

        @media (max-width: 480px) {
            .movie-poster {
                max-width: 220px;
            }
            
            .movie-title {
                font-size: 24px;
            }
            
            .episode-btn {
                padding: 8px 12px;
                font-size: 13px;
                min-width: 44px;
            }
        }

        /* 修改后的頁腳樣式 */
        footer {
            width: 100%;
            height: auto;
            padding: 10px 0;
            background-color: #5da5a7;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 14px;
            color: white;
            position: relative;
            bottom: 0;
            z-index: 1;
            margin-top: 40px;
        }

        .footer-line {
            margin: 2px 0;
            text-align: center;
            width: 100%;
        }

        #back-to-top {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 99;
            border: none;
            outline: none;
            background-color: transparent;
            cursor: pointer;
            padding: 0;
            width: 50px;
            height: 50px;
            filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
            transition: all 0.3s ease;
        }

        #back-to-top:hover {
            transform: scale(1.1);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
        }

        #back-to-top img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
            background-color: white;
        }

        /* 响应式设计 - 重新配置断点 */
        @media (min-width: 1200px) {
            .nav-link {
                padding: 20px 25px;
            }
        }

        @media (max-width: 991px) {
            .nav-link {
                padding: 20px 15px;
                font-size: 16px;
            }
            
            .desktop-dropdown-arrow {
                display: none;
            }
            
            .tablet-dropdown-arrow {
                display: flex;
            }
            
            .nav-item.tablet-active .dropdown {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
            
            .nav-item.tablet-active .tablet-dropdown-arrow {
                transform: rotate(180deg);
            }
        }

        /* 移动端样式修复 */
        @media (max-width: 767px) {
            .desktop-navbar {
                display: none;
            }
            
            .mobile-menu-btn {
                display: flex;
            }
            
            .top-section {
                height: 130px;
                font-size: 2rem;
                z-index: 50; /* 确保在导航栏下方 */
                position: relative;
            }
            
            /* 修复移动端导航栏覆盖内容的问题 */
            .content-section {
                padding-top: 20px;
                z-index: 10;
                position: relative;
            }
            
            /* 确保移动端导航栏不会影响页面布局 */
            .mobile-nav {
                z-index: 1000;
            }
            
            .mobile-nav-overlay {
                z-index: 999;
            }
        }

        @media (max-width: 575px) {
            .top-section {
                height: 120px;
                font-size: 1.8rem;
                padding: 0 15px;
                text-align: center;
            }
            
            .mobile-nav {
                width: 250px;
            }
        }

        @media (max-width: 480px) {
            .top-section {
                height: 100px;
                font-size: 1.5rem;
                padding: 0 10px;
            }
            
            .section-title {
                font-size: 1.4rem;
            }
            
            .mobile-menu-btn {
                width: 45px;
                height: 45px;
                left: 15px;
            }
            
            .mobile-menu-btn span {
                width: 25px;
            }
            
            .mobile-nav {
                width: 220px;
                padding: 60px 0 20px 0;
            }
            
            .mobile-nav-link {
                padding: 12px 15px;
                font-size: 16px;
            }
            
            .mobile-dropdown-item {
                padding: 10px 15px 10px 35px;
                font-size: 15px;
            }
        }

        @media (max-width: 359px) {
            .top-section {
                height: 90px;
                font-size: 1.3rem;
                padding: 0 5px;
            }
            
            .mobile-nav {
                width: 200px;
            }
        }

        @media (max-height: 500px) and (orientation: landscape) {
            .top-section {
                height: 100px;
                font-size: 1.8rem;
            }
            
            .navbar-container {
                height: 55px;
            }
            
            .nav-link {
                padding: 15px 20px;
            }
            
            .mobile-nav {
                padding-top: 60px;
            }
            
            .mobile-nav-link {
                padding: 10px 15px;
            }
        }

        @media (max-width: 768px) {
            .nav-toggle {
                display: block;
            }

            .nav-menu {
                flex-direction: column;
                display: none;
            }

            .nav-menu.active {
                display: flex;
            }

            .dropdown {
                position: static;
                width: 100%;
                opacity: 1;
                visibility: visible;
                transform: none;
                display: none;
                box-shadow: none;
            }

            .nav-item:hover .dropdown {
                display: none;
            }

            .dropdown-item {
                padding-left: 40px;
            }
        }