
:root {
    --color-primary: #769fcd;
    --color-secondary: #b9d7ea;
    --color-light: #d6e6f2;
    --color-bg: #f7fbfc;
    --color-white: #ffffff;
    --color-text: #2c3e50;
    --color-text-light: #5a6c7d;
    --color-accent: #e8734a;
    --color-star: #f5a623;
    --color-shadow: rgba(118, 159, 205, 0.15);
    --color-shadow-hover: rgba(118, 159, 205, 0.3);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-heading);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
.top-nav {
    width: 100%;
    background: linear-gradient(135deg, #6a8fb8 0%, #769fcd 40%, #6d97c4 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(118, 159, 205, 0.35);
}
.top-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 62px;
    gap: 16px;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: var(--transition);
}
.site-logo .logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.site-logo:hover {
    transform: scale(1.03);
    text-shadow: 0 2px 8px rgba(255,255,255,0.3);
}
.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-link {
    color: #e8f0f8;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.4px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.22);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-link .icon-nav {
    margin-right: 3px;
    font-size: 14px;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.18);
    border-radius: 22px;
    padding: 7px 14px;
    gap: 7px;
    transition: var(--transition);
    border: 1.5px solid transparent;
}
.search-box:focus-within {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}
.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 13px;
    width: 140px;
    font-family: inherit;
    letter-spacing: 0.3px;
}
.search-box input::placeholder {
    color: #c5d8ec;
}
.search-icon {
    font-size: 15px;
    cursor: pointer;
    opacity: 0.85;
    flex-shrink: 0;
}
.btn-vip-top {
    background: linear-gradient(135deg, #e8734a, #f0a060);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(232,115,74,0.35);
    flex-shrink: 0;
}
.btn-vip-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,115,74,0.5);
    background: linear-gradient(135deg, #f08050, #f5b870);
}
.user-login-area {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 4px 10px 4px 4px;
    border-radius: 24px;
    transition: var(--transition);
    background: rgba(255,255,255,0.08);
    border: 1.5px solid transparent;
}
.user-login-area:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.3);
}
.user-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #fff;
    display: block;
    background: #d6e6f2;
}
.online-dot {
    position: absolute;
    bottom: 0px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #769fcd;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
    50% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}
.user-info-mini {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.user-name-mini {
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}
.user-status-mini {
    font-size: 10px;
    color: #d6e6f2;
    white-space: nowrap;
}
.vip-badge-mini {
    display: inline-block;
    background: linear-gradient(135deg, #e8734a, #f0a060);
    color: #fff;
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: 3px;
    vertical-align: middle;
}
/* 中间省略大量CSS，实际使用需要完整复制上一版HTML中的<style>内容 */
.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 28px 40px;
}
.hero-banner {
    background: linear-gradient(160deg, #769fcd 0%, #5a85b5 25%, #4a6d96 60%, #3d5a7c 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(118,159,205,0.3);
}
.hero-text h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    color: #d6e6f2;
}
.btn-hero {
    display: inline-block;
    background: #fff;
    color: #769fcd;
    padding: 13px 30px;
    border-radius: 28px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: #f7fbfc;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #3d5a7c;
    padding-left: 16px;
    position: relative;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 26px;
    background: #769fcd;
    border-radius: 3px;
}
.section-more {
    color: #769fcd;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 16px;
    background: var(--color-light);
}
.two-col-layout {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: flex-start;
}
.col-main {
    flex: 1;
    min-width: 0;
}
.col-sidebar {
    width: 320px;
    flex-shrink: 0;
}
.movie-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.movie-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--color-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--color-shadow-hover);
    border-color: #b9d7ea;
}
.movie-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background: #e0e8f0;
}
.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.movie-card:hover .movie-poster img {
    transform: scale(1.06);
}
.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 14px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}
.poster-title {
    font-weight: 700;
    font-size: 15px;
}
.poster-meta {
    font-size: 11px;
    opacity: 0.8;
}
.movie-card-body {
    padding: 12px 14px 14px;
    flex: 1;
}
.movie-card-body h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.movie-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.movie-tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #d6e6f2;
    color: #4a6d96;
    font-weight: 600;
}
.movie-rating {
    font-size: 13px;
    color: #f5a623;
    font-weight: 700;
}
.play-btn-overlay {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #769fcd;
    transition: var(--transition);
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.movie-card:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1);
}
.weekly-rank-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 16px var(--color-shadow);
    border: 2px solid #d6e6f2;
    position: sticky;
    top: 80px;
}
.rank-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d6e6f2;
}
.rank-list {
    list-style: none;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}
.rank-item:hover {
    background: #f7fbfc;
}
.rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.rank-num.top1 { background: #e8734a; color: #fff; box-shadow: 0 3px 10px rgba(232,115,74,0.4); }
.rank-num.top2 { background: #f5a623; color: #fff; box-shadow: 0 3px 10px rgba(245,166,35,0.4); }
.rank-num.top3 { background: #769fcd; color: #fff; box-shadow: 0 3px 10px rgba(118,159,205,0.4); }
.rank-num.normal { background: #d6e6f2; color: #5a6c7d; }
.rank-info .rank-title {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-info .rank-meta {
    font-size: 11px;
    color: #8a9aaa;
}
.rank-hot {
    font-size: 11px;
    color: #e8734a;
    font-weight: 700;
    white-space: nowrap;
}
.star-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.star-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 16px var(--color-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
}
.star-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px var(--color-shadow-hover);
    border-color: #b9d7ea;
}
.star-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    border: 3px solid #fff;
    background: #d6e6f2;
}
.plot-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.plot-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: 0 4px 16px var(--color-shadow);
    border-left: 4px solid #769fcd;
    transition: var(--transition);
    cursor: pointer;
}
.plot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px var(--color-shadow-hover);
    border-left-color: #e8734a;
}
.plot-genre {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #769fcd;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: #d6e6f2;
    padding: 4px 10px;
    border-radius: 10px;
}
.detail-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}
.detail-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 16px var(--color-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
    align-items: flex-start;
}
.detail-card:hover {
    box-shadow: 0 10px 28px var(--color-shadow-hover);
    border-color: #b9d7ea;
    transform: translateX(4px);
}
.detail-poster-mini {
    width: 100px;
    height: 140px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: #e0e8f0;
}
.detail-info h3 {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 4px;
}
.detail-meta {
    font-size: 12px;
    color: #769fcd;
    font-weight: 600;
    margin-bottom: 8px;
}
.detail-desc {
    font-size: 13px;
    color: #5a6c7d;
    line-height: 1.7;
}
.detail-extra {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.detail-score {
    font-size: 28px;
    font-weight: 800;
    color: #f5a623;
}
.btn-watch-detail {
    background: #769fcd;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}
.comment-section {
    margin-bottom: 32px;
}
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: 0 2px 10px var(--color-shadow);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid transparent;
}
.comment-card:hover {
    border-color: #d6e6f2;
    box-shadow: 0 4px 18px var(--color-shadow-hover);
}
.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}
.comment-body .comment-user {
    font-weight: 700;
    font-size: 13px;
}
.comment-time {
    font-size: 11px;
    color: #aab8c4;
    margin-left: 8px;
}
.comment-stars {
    color: #f5a623;
    font-size: 12px;
    margin: 2px 0 4px;
}
.comment-text {
    font-size: 13px;
    color: #4a5c6e;
    line-height: 1.6;
}
.comment-movie-tag {
    display: inline-block;
    font-size: 10px;
    background: #d6e6f2;
    color: #769fcd;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 4px;
}
.bottom-nav {
    width: 100%;
    background: #3d5a7c;
    color: #c5d8ec;
    padding: 32px 0 20px;
    margin-top: auto;
}
.bottom-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.bottom-col h4 {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}
.bottom-col ul {
    list-style: none;
}
.bottom-col ul li a {
    color: #a8c0d8;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}
.bottom-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}
.bottom-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    color: #8a9aaa;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
}
@media (max-width: 1200px) {
    .movie-card-grid,
    .star-card-grid,
    .plot-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .two-col-layout {
        flex-direction: column;
    }
    .col-sidebar {
        width: 100%;
    }
    .weekly-rank-card {
        position: static;
    }
    .bottom-nav-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .detail-extra {
        flex-direction: row;
        gap: 16px;
    }
}
@media (max-width: 768px) {
    .movie-card-grid,
    .star-card-grid,
    .plot-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .top-nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 14px;
    }
    .nav-center {
        order: 3;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
    }
    .bottom-nav-inner {
        grid-template-columns: 1fr 1fr;
    }
    .detail-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .user-info-mini {
        display: none;
    }
}
