
:root {
    --accent: #ff7e67;
    --bg: #fafafa;
    --light-blue: #a2d5f2;
    --dark-blue: #07689f;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #5a6c7d;
    --border: #e8ecf1;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.10);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 顶部导航栏 100%宽度 ========== */
.top-nav {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.top-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    gap: 20px;
}
.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
    cursor: pointer;
    transition: color var(--transition);
}
.nav-brand h1:hover {
    color: var(--accent);
}
.nav-brand h1 .accent-dot {
    color: var(--accent);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.nav-links a:hover,
.nav-links a:focus {
    background: var(--light-blue);
    color: var(--dark-blue);
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-user .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform var(--transition);
}
.nav-user .user-avatar:hover {
    transform: scale(1.08);
}
.nav-user .login-text {
    font-size: 0.85rem;
    color: var(--dark-blue);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition);
}
.nav-user .login-text:hover {
    color: var(--accent);
}

/* ========== 主布局 ========== */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 28px;
    padding: 24px;
}
.content-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.sidebar-right {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 84px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.sidebar-right::-webkit-scrollbar {
    width: 4px;
}
.sidebar-right::-webkit-scrollbar-thumb {
    background: #d0d5db;
    border-radius: 4px;
}

/* ========== 区块标题 ========== */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title .badge {
    font-size: 0.7rem;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ========== 热门影视网格 6列 ========== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.movie-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.movie-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.movie-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background: #e0e6ed;
    flex-shrink: 0;
}
.movie-card .card-info {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.movie-card .card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-blue);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-card .card-meta {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.movie-card .card-meta span {
    display: inline-block;
    background: var(--light-blue);
    color: var(--dark-blue);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    margin-right: 3px;
    margin-bottom: 2px;
}
.movie-card .card-meta span.site-tag {
    background: var(--accent);
    color: #fff;
}

/* ========== 明星介绍 / 剧情介绍 / 电影详情 通用卡片行 ========== */
.card-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
}
.info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.info-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #e0e6ed;
}
.info-card .card-body {
    padding: 12px 14px 16px;
}
.info-card .card-body h4 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-blue);
    margin-bottom: 6px;
    line-height: 1.3;
}
.info-card .card-body p {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 右侧边栏卡片 ========== */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow);
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
    letter-spacing: 0.3px;
}
.sidebar-card .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border);
    font-size: 0.85rem;
    color: var(--text);
}
.sidebar-card .stat-row:last-child {
    border-bottom: none;
}
.sidebar-card .stat-val {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}
.sidebar-card .update-time {
    font-size: 0.7rem;
    color: #999;
    text-align: right;
    margin-top: 8px;
}
.rank-list {
    list-style: none;
}
.rank-list li {
    padding: 9px 0;
    border-bottom: 1px dotted var(--border);
    font-size: 0.84rem;
    cursor: pointer;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.rank-list li:hover {
    color: var(--accent);
}
.rank-list li .rank-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rank-list li:nth-child(1) .rank-num,
.rank-list li:nth-child(2) .rank-num,
.rank-list li:nth-child(3) .rank-num {
    background: var(--accent);
    color: #fff;
}

/* ========== 评论区域 ========== */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.comment-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--light-blue);
    transition: all var(--transition);
}
.comment-item:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow-hover);
}
.comment-item .comment-user {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-blue);
    margin-bottom: 4px;
}
.comment-item .comment-text {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
}
.comment-item .comment-time {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 4px;
}

/* ========== 平台介绍 ========== */
.platform-intro {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    color: var(--text);
}
.platform-intro h2 {
    color: var(--dark-blue);
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.platform-intro p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ========== APP下载区域 ========== */
.app-download {
    background: linear-gradient(135deg, #eef7fc 0%, #f0f8ff 100%);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.app-download h2 {
    color: var(--dark-blue);
    margin-bottom: 16px;
    font-size: 1.3rem;
    text-align: center;
}
.app-dl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.app-dl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}
.app-dl-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--accent);
}
.app-dl-btn .app-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.app-dl-btn:hover .app-icon {
    transform: scale(1.12);
}

/* ========== 底部导航 100%宽度 ========== */
.bottom-nav {
    width: 100%;
    background: var(--dark-blue);
    color: #d0dce8;
    padding: 28px 24px;
    margin-top: 32px;
}
.bottom-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
}
.bottom-nav-inner a {
    color: #c8dae8;
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 500;
}
.bottom-nav-inner a:hover {
    color: var(--accent);
}
.bottom-nav-inner .mobile-link {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    font-size: 0.82rem;
}
.bottom-nav-inner .mobile-link:hover {
    background: #e86955;
    color: #fff;
    transform: scale(1.04);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .card-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .app-dl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar-right {
        width: 280px;
    }
    .nav-links a {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        padding: 14px;
        gap: 20px;
    }
    .sidebar-right {
        width: 100%;
        position: static;
        max-height: none;
        order: 10;
    }
    .content-left {
        order: 1;
    }
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .card-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .app-dl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .movie-card img {
        height: 170px;
    }
    .info-card img {
        height: 150px;
    }
    .top-nav-inner {
        padding: 0 12px;
        height: 52px;
        gap: 8px;
    }
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    .nav-links {
        gap: 2px;
    }
    .nav-links a {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    .nav-user .login-text {
        font-size: 0.7rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
}
@media (max-width: 560px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .card-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .movie-card img {
        height: 140px;
    }
    .info-card img {
        height: 130px;
    }
    .app-dl-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .nav-links a {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
    .top-nav-inner {
        gap: 4px;
    }
    .nav-brand h1 {
        font-size: 1rem;
    }
    .comment-item {
        padding: 12px 14px;
    }
    .sidebar-card {
        padding: 14px 12px;
    }
}
