:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e67e22;
    --bg-light: #f8f9fa;
    --text-dark: #333;
}

/* 双栏布局核心 */
.main-layout {
    display: flex;
    gap: 30px;
}
.movie-detail {
    flex: 7;  /* 70%宽度 */
}
.hot-ranking {
    flex: 3;  /* 30%宽度 */
}

/* 电影详情卡片 */
.detail-card {
    min-width: 815px;
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.movie-header {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}
.poster-container {
    flex: 0 0 200px;
}
.movie-poster {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.movie-info {
    flex: 1;
}
.movie-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #666;
}
.rating {
    color: var(--accent);
    font-weight: bold;
}
.movie-description {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* 新增内容样式 */
.section-title {
    font-size: 1.4rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 10px;
    color: var(--accent);
}

.section-title a{
    font-size: 1.2rem;
    margin-left: auto; /*文字靠右对其*/
}

/* 演职员表 */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
.cast-card {
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.cast-card:hover {
    transform: translateY(-5px);
}
.cast-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 2px solid var(--secondary);
}
.cast-name {
    font-weight: 600;
    margin-bottom: 5px;
}
.cast-role {
    color: #777;
    font-size: 0.9rem;
}

/* 剧照展示 */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.gallery-item {
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 奖项信息 */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.award-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.award-name {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}
.award-category {
    color: #666;
    margin-bottom: 10px;
}
.award-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}
.award-won {
    background: #d4edda;
    color: #155724;
}
.award-nominated {
    background: #fff3cd;
    color: #856404;
}

/* 用户评论 */
.review-card {
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-light);
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar, .user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}
.review-rating {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}
.review-content {
    line-height: 1.7;
}

/* 实时热榜样式 */
.ranking-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}
.ranking-list {
    list-style: none;
}
.ranking-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}
.ranking-item:hover {
    background-color: #f9f9f9;
}
.ranking-number {
    font-size: 1.2rem;
    font-weight: bold;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}
.top-1 { color: #ff9900; }
.top-2 { color: #dc3545; }
.top-3 { color: #28a745; }
.ranking-movie-title {
    font-weight: 600;
    margin-bottom: 3px;
}
.ranking-movie-meta {
    font-size: 0.9rem;
    color: #777;
}


/* 分页样式 */
.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;
}
