
:root {
    --color-light: #ceddef;
    --color-mid: #5893d4;
    --color-deep: #1f3c88;
    --color-darkest: #070d59;
    --color-white: #ffffff;
    --color-bg: #f4f7fb;
    --color-text: #1a1a2e;
    --color-text-light: #555;
    --color-border: #dce3ed;
    --color-star: #f0a830;
    --shadow-sm: 0 2px 8px rgba(7, 13, 89, 0.06);
    --shadow-md: 0 4px 16px rgba(7, 13, 89, 0.10);
    --shadow-lg: 0 8px 28px rgba(7, 13, 89, 0.14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-width: 1280px;
}

/* ========== 顶部导航栏 100%宽度 ========== */
.top-nav {
    width: 100%;
    background: var(--color-darkest);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(7, 13, 89, 0.3);
}
.top-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 60px;
}
.top-nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}
.top-nav-left h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--transition);
    margin: 0;
}
.top-nav-left h1:hover {
    color: var(--color-light);
}
.top-nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}
.top-nav-links li a {
    color: #c8d6f0;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all var(--transition);
    white-space: nowrap;
}
.top-nav-links li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.top-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-mid);
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
}
.user-avatar:hover {
    border-color: #fff;
}
.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #d0daf0;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color var(--transition);
}
.user-status:hover {
    color: #fff;
}
.vip-badge {
    background: linear-gradient(135deg, #f0a830, #e0801a);
    color: #1a1a00;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ========== 主布局 ========== */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 24px 28px;
}
.content-main {
    flex: 1;
    min-width: 0;
}
.sidebar {
    width: 310px;
    flex-shrink: 0;
    position: sticky;
    top: 84px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* ========== 区块标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-deep);
}
.section-header h2 {
    font-size: 1.35rem;
    color: var(--color-darkest);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.section-header .more-link {
    color: var(--color-mid);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}
.section-header .more-link:hover {
    color: var(--color-deep);
}

/* ========== 热门影视网格 6列 ========== */
.hot-movies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.movie-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.movie-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.movie-card .poster-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e8ecf2;
    position: relative;
}
.movie-card .poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
}
.movie-card .movie-info {
    padding: 10px 11px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.movie-card .movie-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-darkest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.movie-card .movie-meta {
    font-size: 0.73rem;
    color: #777;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-card .movie-type-tag {
    display: inline-block;
    background: var(--color-light);
    color: var(--color-deep);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    align-self: flex-start;
}
.movie-card .movie-rating {
    font-size: 0.75rem;
    color: var(--color-star);
    font-weight: 600;
}

/* ========== 周榜推荐 侧边栏 ========== */
.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--color-darkest);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-mid);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    cursor: pointer;
}
.rank-list li:hover {
    background: #f6f9fd;
}
.rank-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    color: #fff;
}
.rank-num.top1 {
    background: #e03030;
}
.rank-num.top2 {
    background: #f08030;
}
.rank-num.top3 {
    background: #f0a830;
}
.rank-num.normal {
    background: #9ab0c8;
}
.rank-list .rank-poster {
    width: 42px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.rank-list .rank-info {
    flex: 1;
    min-width: 0;
}
.rank-list .rank-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-darkest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-list .rank-sub {
    font-size: 0.7rem;
    color: #888;
}

/* ========== 热门明星推荐 ========== */
.stars-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.star-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
}
.star-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.star-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--color-light);
    transition: border-color var(--transition);
}
.star-card:hover img {
    border-color: var(--color-mid);
}
.star-card .star-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-darkest);
}
.star-card .star-desc {
    font-size: 0.78rem;
    color: #777;
    margin-top: 3px;
    line-height: 1.4;
}

/* ========== 剧情介绍 ========== */
.plot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.plot-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 14px;
    padding: 14px;
    transition: all var(--transition);
    cursor: pointer;
}
.plot-card:hover {
    box-shadow: var(--shadow-md);
}
.plot-card img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.plot-card .plot-content h4 {
    font-weight: 700;
    color: var(--color-darkest);
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.plot-card .plot-content p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 电影详细介绍 ========== */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}
.detail-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    padding: 16px;
    transition: all var(--transition);
    cursor: pointer;
}
.detail-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.detail-card img {
    width: 120px;
    height: 170px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.detail-card .detail-info h4 {
    font-weight: 700;
    color: var(--color-darkest);
    font-size: 1rem;
    margin-bottom: 4px;
}
.detail-card .detail-info .detail-meta {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 6px;
    line-height: 1.5;
}
.detail-card .detail-info .detail-desc {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.detail-card .detail-tag {
    display: inline-block;
    background: var(--color-deep);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 6px;
}

/* ========== 电影详解评论 ========== */
.comments-section {
    margin-bottom: 32px;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 14px;
    transition: all var(--transition);
}
.comment-item:hover {
    box-shadow: var(--shadow-md);
}
.comment-item img.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-body .comment-user {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-darkest);
}
.comment-body .comment-time {
    font-size: 0.7rem;
    color: #999;
    margin-left: 8px;
}
.comment-body .comment-text {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.6;
    margin-top: 4px;
}
.comment-body .comment-movie {
    font-size: 0.73rem;
    color: var(--color-mid);
    font-weight: 500;
    margin-top: 2px;
}

/* ========== 底部导航 100%宽度 ========== */
.bottom-nav {
    width: 100%;
    background: var(--color-darkest);
    color: #c0c8e0;
    padding: 32px 28px 20px;
    margin-top: 20px;
}
.bottom-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}
.bottom-nav-col h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.bottom-nav-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bottom-nav-col ul li a {
    color: #a0aac8;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color var(--transition);
}
.bottom-nav-col ul li a:hover {
    color: #fff;
}
.bottom-copyright {
    max-width: 1440px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.75rem;
    color: #7a85a8;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ========== 标签样式 ========== */
.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.tag-action {
    background: #ffe0e0;
    color: #c0392b;
}
.tag-comedy {
    background: #fff3d6;
    color: #b8700a;
}
.tag-scifi {
    background: #dce8ff;
    color: #1a4fa0;
}
.tag-romance {
    background: #ffe8f0;
    color: #b04060;
}
.tag-suspense {
    background: #e8e0f0;
    color: #5a2d82;
}
.tag-animation {
    background: #e0f8e8;
    color: #1a7040;
}
.tag-drama {
    background: #e8ecf8;
    color: #2d4a8a;
}
.tag-history {
    background: #f8ecd8;
    color: #7a5020;
}

/* 滚动条美化 */
.sidebar::-webkit-scrollbar {
    width: 5px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #c8d4e4;
    border-radius: 10px;
}
