:root {
    --primary: #2c3e50;    /* 主色调 */
    --secondary: #3498db;  /* 辅助色 */
    --accent: #e67e22;     /* 强调色 */
    --bg-light: #f8f9fa;   /* 背景浅色 */
    --text-dark: #333;     /* 文字深色 */
}

/* 左侧电影列表 */
.movie-list {
    flex: 1;
}
/* 右侧侧边栏 */
.sidebar {
    width: 300px;
}
.section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    color: var(--primary);
}
/* 列表项样式 - 添加了图片展示 */
.list-item {
    display: flex; /* 改为flex布局以容纳图片 */
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

list-item a {
    max-width: 165px;
}
.list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* 新增的电影海报样式 */
.movie-poster {
    width: 165px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}
.item-details {
    flex: 1;
}
.item-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary);
}
.item-meta {
    display: flex;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}
.item-meta span,.item-meta p {
    margin-right: 15px;
}
.rating {
    color: var(--accent);
    font-weight: bold;
}
.item-info {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.item-footer {
    float: right;
    display: flex;
    justify-content: space-between;
}
.item-tag {
    background: #e9ecef;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}
.view-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}
.view-button:hover {
    background: #2980b9;
}
/* 排行榜样式 */
.top-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}
.top-list li:last-child {
    border: none;
}
.rank {
    width: 26px;
    height: 26px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.9rem;
}
.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.news-item:last-child {
    border: none;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}
.pagination-button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
.pagination-button:hover {
    background: #f0f0f0;
}
.pagination-button.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}
.pagination-button i {
    margin: 0 5px;
}