
:root {
    --color-dark: #537780;
    --color-primary: #11d3bc;
    --color-light: #55e9bc;
    --color-highlight: #fffcca;
    --color-white: #ffffff;
    --color-bg: #f5f8f7;
    --color-text: #2c3e3a;
    --color-text-light: #5a6b67;
    --color-border: #e0e8e5;
    --color-card: #ffffff;
    --color-footer: #3a5458;
    --shadow-sm: 0 2px 8px rgba(83, 119, 128, 0.08);
    --shadow-md: 0 4px 16px rgba(83, 119, 128, 0.12);
    --shadow-lg: 0 8px 32px rgba(83, 119, 128, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
    --max-width: 1400px;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

/* ========== 顶部导航栏 100%宽度 ========== */
.top-nav {
    width: 100%;
    height: var(--nav-height);
    background: var(--color-white);
    border-bottom: 2px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.top-nav-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
}
.nav-logo h1:hover {
    color: var(--color-primary);
}
.nav-logo h1 span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}
.nav-links a:hover,
.nav-links a:focus {
    color: var(--color-primary);
    background: rgba(17, 211, 188, 0.06);
}
.nav-links a.nav-hot {
    color: #e85d3a;
    font-weight: 600;
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 8px rgba(232, 93, 58, 0.35); }
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.nav-user .user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(17, 211, 188, 0.4);
}
.nav-user .login-btn {
    padding: 7px 16px;
    border-radius: 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.nav-user .login-btn:hover {
    background: #0db8a3;
    box-shadow: 0 4px 16px rgba(17, 211, 188, 0.35);
    transform: translateY(-1px);
}
.nav-user .login-status {
    font-size: 0.8rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* ========== 主布局 ========== */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.content-area { min-width: 0; }
.sidebar { min-width: 0; }

/* ========== Banner轮播 ========== */
.banner-section {
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    background: var(--color-dark);
}
.banner-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    z-index: 1;
}
.banner-slide.active {
    opacity: 1;
    z-index: 2;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(46, 60, 56, 0.75) 0%, rgba(46, 60, 56, 0.3) 55%, rgba(46, 60, 56, 0.08) 100%);
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 40px;
}
.banner-text {
    color: #fff;
    max-width: 550px;
    z-index: 4;
}
.banner-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.banner-text p {
    font-size: 1rem;
    margin-bottom: 16px;
    opacity: 0.9;
    line-height: 1.5;
}
.banner-text .banner-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: 0.5px;
}
.banner-text .banner-btn:hover {
    background: #0db8a3;
    box-shadow: 0 6px 20px rgba(17, 211, 188, 0.45);
    transform: translateY(-2px);
}
.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.banner-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.banner-dots button.active {
    background: #fff;
    transform: scale(1.3);
}

/* ========== 区块标题 ========== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
    position: relative;
}
.section-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.5px;
    margin: 0;
}
.section-title h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--color-primary);
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}
.section-title .more-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}
.section-title .more-link:hover {
    color: var(--color-dark);
    text-decoration: underline;
}

/* ========== 平台介绍 ========== */
.intro-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 28px;
    border-left: 5px solid var(--color-primary);
}
.intro-section .intro-text { flex: 1; }
.intro-section .intro-text h2 {
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-weight: 700;
}
.intro-section .intro-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}
.intro-section .intro-img-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.intro-section .intro-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 热门影视卡片网格 ========== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.movie-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}
.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-light);
}
.movie-card .card-img {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #e8eceb;
    position: relative;
}
.movie-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.movie-card:hover .card-img img {
    transform: scale(1.06);
}
.movie-card .card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
}
.movie-card .card-info {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.movie-card .card-info h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.movie-card .card-info .meta {
    font-size: 0.7rem;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.movie-card .card-info .meta span {
    display: inline-block;
    background: var(--color-highlight);
    color: #6b5e30;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 500;
    margin-right: 2px;
    white-space: nowrap;
}

/* ========== 明星介绍卡片 ========== */
.star-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.star-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 14px;
    cursor: pointer;
    border: 1px solid transparent;
}
.star-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-light);
}
.star-card .star-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #e8eceb;
    border-radius: 50%;
    margin: 16px auto 10px;
    max-width: 130px;
    box-shadow: 0 4px 12px rgba(83, 119, 128, 0.15);
}
.star-card .star-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.star-card:hover .star-img img {
    transform: scale(1.08);
}
.star-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 2px;
}
.star-card .star-role {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 500;
}
.star-card .star-works {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* ========== 剧情/电影详情卡片 ========== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.info-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--color-light);
    cursor: pointer;
}
.info-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-primary);
    transform: translateX(2px);
}
.info-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 6px;
}
.info-card p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.info-card .info-tag {
    display: inline-block;
    background: var(--color-highlight);
    color: #6b5e30;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 6px;
}

/* ========== 评论区域 ========== */
.comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.comment-item {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}
.comment-item:hover {
    border-color: var(--color-light);
    box-shadow: var(--shadow-md);
}
.comment-item .comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.comment-item .comment-user {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9rem;
}
.comment-item .comment-time {
    font-size: 0.72rem;
    color: #999;
    margin-left: auto;
    white-space: nowrap;
}
.comment-item .comment-text {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.7;
}
.comment-item .comment-text .keyword {
    color: var(--color-primary);
    font-weight: 500;
}

/* ========== 右侧边栏 ========== */
.sidebar .side-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}
.sidebar .side-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar .side-card h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 2px;
    display: inline-block;
}
.reading-info .reading-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}
.reading-info .reading-label { font-size: 0.82rem; color: var(--color-text-light); margin-top: 2px; }
.reading-info .reading-update { font-size: 0.72rem; color: #999; margin-top: 6px; }
.stat-row { display: flex; justify-content: space-around; text-align: center; gap: 10px; }
.stat-item .stat-num { font-size: 1.8rem; font-weight: 700; color: var(--color-dark); }
.stat-item .stat-label { font-size: 0.75rem; color: var(--color-text-light); }
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rank-list li {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: var(--radius-sm); transition: var(--transition); cursor: pointer; font-size: 0.85rem;
}
.rank-list li:hover { background: rgba(17, 211, 188, 0.05); }
.rank-list .rank-num {
    width: 24px; height: 24px; border-radius: 6px; background: var(--color-light);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.rank-list li:nth-child(1) .rank-num { background: #e85d3a; }
.rank-list li:nth-child(2) .rank-num { background: #f0a040; }
.rank-list li:nth-child(3) .rank-num { background: #e8c840; }
.rank-list .rank-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--color-dark); }
.rank-list .rank-hot { font-size: 0.68rem; color: #e85d3a; white-space: nowrap; }

/* ========== APP下载区域 ========== */
.download-section {
    background: linear-gradient(135deg, #f9fdfb 0%, #eefaf6 100%);
    border-radius: var(--radius-lg); padding: 32px; margin-bottom: 28px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
}
.download-section h2 { font-size: 1.4rem; font-weight: 700; color: var(--color-dark); margin: 0 0 8px; text-align: center; }
.download-section .download-subtitle { text-align: center; color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 20px; }
.download-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.download-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border-radius: 24px; text-decoration: none; font-weight: 600; font-size: 0.88rem;
    transition: var(--transition); border: 2px solid transparent; white-space: nowrap; letter-spacing: 0.5px;
}
.download-btn.android { background: #e8faf5; color: #1a7a5a; border-color: #3ddc84; }
.download-btn.android:hover { background: #d0f5e8; box-shadow: 0 4px 14px rgba(61, 220, 132, 0.3); transform: translateY(-2px); }
.download-btn.ios { background: #f5f5f7; color: #1d1d1f; border-color: #8e8e93; }
.download-btn.ios:hover { background: #e8e8ed; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); transform: translateY(-2px); }
.download-btn.pc { background: #f0f4f7; color: #3a4f5c; border-color: #52616b; }
.download-btn.pc:hover { background: #e2eaf0; box-shadow: 0 4px 14px rgba(82, 97, 107, 0.3); transform: translateY(-2px); }
.download-btn.mac { background: #f7f7f9; color: #2d2d30; border-color: #6e6e73; }
.download-btn.mac:hover { background: #ececf0; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); transform: translateY(-2px); }
.app-icon { flex-shrink: 0; }

/* ========== 底部导航 100%宽度 ========== */
.footer-nav {
    width: 100%; background: var(--color-footer); color: #c8d6d4; padding: 32px 20px 20px; margin-top: 20px;
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 10px; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.footer-col ul li a { color: #b0c2bf; text-decoration: none; font-size: 0.82rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--color-light); text-decoration: underline; }
.footer-bottom {
    max-width: var(--max-width); margin: 20px auto 0; padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15); text-align: center; font-size: 0.78rem;
    color: #8a9e9a; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center;
}
.footer-bottom a { color: var(--color-light); text-decoration: none; font-weight: 500; transition: var(--transition); }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .main-container { grid-template-columns: 1fr 280px; gap: 16px; padding: 14px; }
    .movie-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .star-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .banner-text h2 { font-size: 1.6rem; }
    .banner-overlay { padding: 24px; }
}
@media (max-width: 900px) {
    .main-container { grid-template-columns: 1fr; gap: 16px; padding: 10px; }
    .sidebar { order: 10; }
    .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .star-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .info-grid { grid-template-columns: 1fr; gap: 10px; }
    .nav-links {
        display: none; position: absolute; top: var(--nav-height); left: 0; width: 100%;
        background: #fff; flex-direction: column; padding: 12px 16px; box-shadow: var(--shadow-md);
        z-index: 999; gap: 2px; border-bottom: 2px solid var(--color-border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 16px; width: 100%; border-radius: 8px; font-size: 0.9rem; }
    .hamburger { display: block; }
    .banner-carousel { aspect-ratio: 16/9; }
    .banner-text h2 { font-size: 1.3rem; }
    .banner-text p { font-size: 0.82rem; }
    .banner-overlay { padding: 16px; }
    .intro-section { flex-direction: column; padding: 20px; text-align: center; }
    .intro-section .intro-img-wrap { width: 100%; max-width: 240px; height: auto; aspect-ratio: 3/2; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .download-buttons { flex-direction: column; align-items: center; }
    .download-btn { width: 100%; max-width: 280px; justify-content: center; }
    .stat-row { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 560px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .star-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .star-card .star-img { max-width: 90px; }
    .movie-card .card-info { padding: 6px 8px; }
    .movie-card .card-info h3 { font-size: 0.76rem; }
    .movie-card .card-info .meta { font-size: 0.65rem; }
    .banner-text h2 { font-size: 1.1rem; }
    .banner-text p { font-size: 0.72rem; margin-bottom: 8px; }
    .banner-text .banner-btn { padding: 7px 16px; font-size: 0.78rem; }
    .section-title h2 { font-size: 1.1rem; }
    .nav-logo h1 { font-size: 1.2rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 12px; }
    .top-nav-inner { gap: 8px; }
    .nav-user .login-status { font-size: 0.7rem; }
    .comment-item .comment-text { font-size: 0.8rem; }
}
