:root {
    --primary: #ffffff;
    --secondary: #f8f9fa;
    --accent: #006d77;
    --accent-dark: #004d55;
    --accent-light: #008891;
    --text: #333333;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, .12)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif
}

body {
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden
}

header {
    background: var(--primary);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    border-bottom: 1px solid var(--border)
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease
}

.logo:hover {
    transform: scale(1.05)
}

.logo i {
    margin-right: 10px;
    font-size: 32px
}

.search-container {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 30px
}

.search-box {
    display: flex;
    width: 100%;
    position: relative
}

.search-input {
    flex-grow: 1;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border);
    border-radius: 30px;
    background: var(--primary);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all .4s ease;
    box-shadow: var(--card-shadow)
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 109, 119, .1)
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center
}

.search-btn:hover {
    background: var(--accent-dark)
}

.nav-menu {
    display: flex;
    list-style: none
}

.nav-menu li {
    margin-left: 25px
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden
}

.nav-menu a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all .3s ease
}

.nav-menu a:hover {
    color: var(--accent)
}

.nav-menu a:hover:before {
    width: 100%
}

/* ===== 轮播区域 ===== */
.fullscreen-banner {
    width: 100%;
    height: 66.67vh;
    position: relative;
    overflow: hidden;
    margin-top: 70px
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 之前就有的淡入淡出 */
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;

    /* 关键修复：非激活 slide 不接收点击且层级低 */
    pointer-events: none;
    z-index: 0;
}

.banner-slide.active {
    opacity: 1;

    /* 关键修复：仅激活 slide 可点且在最上层 */
    pointer-events: auto;
    z-index: 10;
}

.banner-content {
    width: 100%;
    padding: 40px 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    color: #fff
}

.banner-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5)
}

.banner-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px
}

.banner-rating {
    display: flex;
    align-items: center;
    margin-right: 20px;
    color: #ffc107;
    font-weight: 600;
    font-size: 1.1rem
}

.banner-year {
    margin-right: 20px;
    color: rgba(255, 255, 255, .8);
    font-size: 1.1rem
}

.banner-genre {
    color: rgba(255, 255, 255, .8);
    font-size: 1.1rem
}

.banner-description {
    max-width: 700px;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem
}

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

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 109, 119, .3)
}

.btn-secondary {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    backdrop-filter: blur(10px)
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .3);
    transform: translateY(-2px)
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20
        /* 高于 slide 内容 */
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: all .3s ease
}

.indicator.active {
    background: #fff;
    transform: scale(1.2)
}

/* 避免残留的覆盖式 <a> 搞事（我们用 button+JS 处理跳转） */
.fullscreen-banner a {
    pointer-events: none;
}

main {
    padding: 40px 0;
    position: relative
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border)
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-left: 15px
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--accent);
    border-radius: 3px
}

.section-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .3s ease
}

.section-more:hover {
    gap: 10px
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px
}

.movie-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--primary);
    box-shadow: var(--card-shadow);
    transition: all .4s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border)
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--hover-shadow)
}

.movie-poster-container {
    position: relative;
    overflow: hidden
}

.movie-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease
}

.movie-card:hover .movie-poster {
    transform: scale(1.08)
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .7);
    color: #ffc107;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center
}

.movie-rating i {
    margin-right: 5px
}

.movie-info {
    padding: 15px
}

.movie-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    color: var(--text-secondary);
    margin-bottom: 10px
}

.movie-description {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em
}

.reviews-section {
    background: var(--secondary);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid var(--border)
}

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px
}

.review-card {
    background: var(--primary);
    border-radius: 8px;
    padding: 15px;
    transition: all .3s ease;
    box-shadow: var(--card-shadow)
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow)
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px
}

.review-movie {
    font-weight: 600;
    color: var(--text)
}

.review-rating {
    color: var(--accent);
    font-weight: 600
}

.review-content {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.review-author {
    margin-top: 10px;
    font-size: .8rem;
    color: var(--text-secondary);
    text-align: right
}

footer {
    background: var(--secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border)
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent)
}

.footer-links {
    list-style: none
}

.footer-links li {
    margin-bottom: 12px
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all .3s ease;
    display: flex;
    align-items: center
}

.footer-links a i {
    margin-right: 8px;
    font-size: .8rem;
    color: var(--accent)
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px)
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 109, 119, .1);
    color: var(--accent);
    transition: all .3s ease
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px)
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: .9rem;
    padding-top: 30px;
    border-top: 1px solid var(--border)
}

@media (max-width:1200px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))
    }
}

@media (max-width:992px) {
    .nav-menu li {
        margin-left: 15px
    }

    .search-container {
        margin: 0 20px
    }

    .banner-title {
        font-size: 2.3rem
    }

    .banner-content {
        padding: 30px 40px
    }
}

@media (max-width:768px) {
    .nav-container {
        flex-wrap: wrap
    }

    .logo {
        margin-bottom: 10px
    }

    .search-container {
        order: 3;
        width: 100%;
        margin: 15px 0 0
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        margin-top: 15px
    }

    .banner-content {
        padding: 25px 30px
    }

    .banner-title {
        font-size: 1.9rem
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr))
    }

    .review-list {
        grid-template-columns: 1fr
    }
}

@media (max-width:576px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .banner-title {
        font-size: 1.6rem
    }

    .banner-info {
        flex-wrap: wrap
    }

    .banner-actions {
        flex-direction: column;
        gap: 10px
    }

    .btn {
        width: 100%;
        justify-content: center
    }

    .banner-content {
        padding: 20px
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.fade-in {
    animation: fadeInUp .6s ease forwards
}

.delay-1 {
    animation-delay: .1s
}

.delay-2 {
    animation-delay: .2s
}

.delay-3 {
    animation-delay: .3s
}

.delay-4 {
    animation-delay: .4s
}

.delay-5 {
    animation-delay: .5s
}

/* 滚动条优化 */
::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .05)
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark)
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
    /* 按需 */
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 24px;
    line-height: 1;
}

