/* ==== Extracted from film.html ==== */

: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, 0.08);
    --hover-shadow: 0 8px 24px rgba(0, 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: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 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 0.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 0.4s ease;
    box-shadow: var(--card-shadow);
}

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

.search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.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 0.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 0.3s ease;
}

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

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

/* 页面标题 */
.page-header {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 筛选栏 */
.filter-bar {
    background: var(--secondary);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--primary);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--accent);
}

/* 排序选项 */
.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-weight: 500;
    color: var(--text);
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--primary);
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 电影网格布局 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* 电影卡片 */
.movie-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--primary);
    box-shadow: var(--card-shadow);
    transition: all 0.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: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 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: 20px;
}

.movie-title {
    font-size: 1.3rem;
    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-original-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-style: italic;
}

.movie-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.movie-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.movie-meta-item i {
    color: var(--accent);
    width: 16px;
}

.movie-description {
    font-size: 0.95rem;
    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;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--primary);
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: var(--accent);
    color: white;
}

.page-btn.active {
    background: var(--accent);
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.disabled:hover {
    background: var(--primary);
    color: var(--text);
}

/* 页脚 */
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 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.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, 0.1);
    color: var(--accent);
    transition: all 0.3s ease;
}

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

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

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

    .search-container {
        margin: 0 20px;
    }

    .filter-options {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        min-width: 100%;
    }
}

@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;
    }

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

    .sort-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

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

    .page-title {
        font-size: 1.8rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

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

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

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

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 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;
}