/* 猫眼电影网站样式 - list.css */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    min-width: 1200px;
}

a {
    text-decoration: none;
    color: #333;
}

ul, li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 通用容器 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航栏 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    height: 80px;
}

.logo {
    margin-right: 40px;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin: 0 20px;
    font-size: 16px;
    position: relative;
}

.main-nav li.active a {
    color: #FF4D64;
    font-weight: bold;
}

.main-nav li.city-select {
    margin-right: 30px;
}

.user-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 20px;
    font-size: 15px;
}

.app-download .fa-mobile {
    font-size: 20px;
    margin-left: 5px;
}

/* 主要内容区 */
.site-main {
    padding: 30px 0;
}

/* 电影筛选区 */
.movie-filter {
    background-color: #fff;
    border-radius: 0;
    padding: 15px 20px;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid #e5e5e5;
}

.filter-line {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.filter-line:last-child {
    border-bottom: none;
}

.filter-label {
    width: 40px;
    color: #333;
    font-size: 14px;
    line-height: 24px;
    flex-shrink: 0;
    font-weight: bold;
}

.filter-values {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

.filter-values a {
    margin: 0 15px 5px 0;
    padding: 0 8px;
    font-size: 14px;
    line-height: 24px;
    border-radius: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.filter-values a:hover {
    color: #FF4D64;
}

.filter-values a.active {
    background-color: #FF4D64;
    color: #fff;
}

/* 电影排序 */
.movie-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 0;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: none;
    border-bottom: 1px solid #e5e5e5;
}

.sort-options a, 
.view-options a {
    margin-right: 20px;
    font-size: 14px;
    color: #666;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.2s ease;
}

.sort-options a:hover, 
.view-options a:hover {
    color: #FF4D64;
}

.sort-options a.active, 
.view-options a.active {
    background-color: #FF4D64;
    color: #fff;
}

/* 电影列表 */
.movie-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.movie-item {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    margin-bottom: 5px;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.movie-poster {
    position: relative;
    width: 100%;
}

.movie-poster img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.movie-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-score {
    text-align: center;
    padding: 8px 0;
    font-size: 20px;
    font-weight: bold;
    color: #ffb400;
    display: block;
    font-family: Arial, sans-serif;
}

/* 电影悬停内容 */
.movie-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
}

.movie-item:hover .movie-hover-content {
    opacity: 1;
}

.hover-poster {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.hover-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hover-poster::after {
    content: "正在热映";
    position: absolute;
    top: 10px;
    right: 0;
    background-color: #ef4238;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
}

.hover-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hover-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hover-score {
    font-size: 28px;
    font-weight: bold;
    color: #ffb400;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
}

.hover-score::after {
    content: "分";
    font-size: 14px;
    margin-left: 2px;
    color: #ffb400;
}

.hover-type, .hover-actor, .hover-showtime {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hover-type {
    color: #333;
    font-weight: bold;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    background-color: #fff;
    color: #666;
    border-radius: 2px;
    box-shadow: none;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.pagination a:hover {
    color: #FF4D64;
    border-color: #FF4D64;
}

.pagination a.current {
    background-color: #FF4D64;
    color: #fff;
    border-color: #FF4D64;
}

/* 底部信息 */
.site-footer {
    background-color: #262426;
    color: #999;
    padding: 40px 0;
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
    color: #999;
}

.footer-links a:hover {
    color: #fff;
}

.footer-info {
    text-align: center;
    line-height: 1.8;
}

.footer-certificates {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.footer-certificates img {
    height: 30px;
    margin: 0 10px;
}

/* 响应式设计 */
@media screen and (min-width: 1600px) {
    .container {
        width: 1400px;
    }
    
    .movie-list {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media screen and (min-width: 1920px) {
    .container {
        width: 1600px;
    }
    
    .movie-list {
        grid-template-columns: repeat(6, 1fr);
    }
} 