
:root {
    --primary: #f57170;
    --bg-light: #f5f5f5;
    --accent: #10ddc2;
    --secondary: #15b7b9;
    --text-dark: #2c3e50;
    --text-muted: #666;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.15);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.3s ease;
    --nav-height: 60px;
    --max-width: 1320px;
}

* { 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', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.top-nav {
    width: 100%; height: var(--nav-height); background: var(--white);
    border-bottom: 2px solid #eef2f7; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06); display: flex; align-items: center;
    justify-content: space-between; padding: 0 20px; gap: 12px;
}
.top-nav .nav-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.top-nav .nav-left .logo-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #e85d5c);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.top-nav .nav-left .logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.top-nav .nav-left h1 { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); white-space: nowrap; letter-spacing: -0.3px; margin: 0; }
.top-nav .nav-left h1 span { color: var(--primary); }
.top-nav .nav-center { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.top-nav .nav-center::-webkit-scrollbar { display: none; }
.top-nav .nav-center a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 7px 14px; border-radius: 20px; transition: var(--transition); white-space: nowrap; letter-spacing: 0.2px; }
.top-nav .nav-center a:hover, .top-nav .nav-center a:focus { color: var(--primary); background: #fff5f5; }
.top-nav .nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.top-nav .nav-right .user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition);
}
.top-nav .nav-right .user-avatar:hover { transform: scale(1.08); box-shadow: 0 3px 12px rgba(21,183,185,0.35); }
.top-nav .nav-right .user-avatar svg { width: 18px; height: 18px; fill: #fff; }
.top-nav .nav-right .login-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.top-nav .nav-right .login-text:hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; }
.mobile-menu-btn svg { width: 24px; height: 24px; fill: var(--text-dark); }

.main-container { max-width: var(--max-width); margin: 0 auto; padding: 16px 20px; display: flex; gap: 24px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

.banner-section { border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 24px; box-shadow: var(--shadow); background: #e8e8e8; aspect-ratio: 21/9; max-height: 420px; min-height: 200px; }
.banner-section .banner-slides { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25,0.8,0.25,1.2); }
.banner-section .banner-slide { min-width: 100%; height: 100%; position: relative; }
.banner-section .banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-section .banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 32px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; }
.banner-section .banner-overlay h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.2px; }
.banner-section .banner-overlay p { font-size: 0.9rem; opacity: 0.9; }
.banner-section .banner-dots { position: absolute; bottom: 14px; right: 24px; display: flex; gap: 8px; z-index: 5; }
.banner-section .banner-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: var(--transition); }
.banner-section .banner-dots button.active { background: #fff; transform: scale(1.3); }

.section-block { background: var(--white); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.section-block .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.section-block .section-header h2 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; letter-spacing: -0.2px; }
.section-block .section-header h2::before { content: ''; width: 4px; height: 20px; background: var(--primary); border-radius: 2px; display: inline-block; }
.section-block .section-header .badge { font-size: 0.75rem; background: #fff5f5; color: var(--primary); padding: 4px 10px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.section-block .section-header .more-link { font-size: 0.85rem; color: var(--secondary); text-decoration: none; font-weight: 500; transition: var(--transition); white-space: nowrap; }
.section-block .section-header .more-link:hover { color: var(--primary); }

.movie-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.movie-card { background: #fafbfc; border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); cursor: pointer; border: 1px solid #eef2f7; display: flex; flex-direction: column; }
.movie-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #dde5f0; }
.movie-card .card-poster { width: 100%; aspect-ratio: 2/3; overflow: hidden; background: #e8ecf1; position: relative; }
.movie-card .card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.movie-card:hover .card-poster img { transform: scale(1.06); }
.movie-card .card-poster .quality-tag { position: absolute; top: 6px; left: 6px; background: var(--primary); color: #fff; font-size: 0.7rem; padding: 2px 7px; border-radius: 3px; font-weight: 600; letter-spacing: 0.3px; }
.movie-card .card-poster .rating-tag { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.7); color: #ffc107; font-size: 0.7rem; padding: 2px 7px; border-radius: 3px; font-weight: 700; }
.movie-card .card-info { padding: 10px 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(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.2px; }
.movie-card .card-info .meta-row { font-size: 0.7rem; color: #888; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.movie-card .card-info .meta-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.movie-card .card-info .type-badge { display: inline-block; font-size: 0.65rem; background: #e8faf8; color: var(--secondary); padding: 1px 7px; border-radius: 10px; font-weight: 500; white-space: nowrap; align-self: flex-start; margin-top: 2px; }

.star-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.star-card { text-align: center; background: #fafbfc; border-radius: var(--radius-sm); padding: 16px 10px; transition: var(--transition); cursor: pointer; border: 1px solid #eef2f7; }
.star-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.star-card .star-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; background: #e8ecf1; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.star-card .star-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.star-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }
.star-card .star-role { font-size: 0.72rem; color: #999; margin-top: 2px; }
.star-card .star-works { font-size: 0.7rem; color: var(--secondary); margin-top: 4px; font-weight: 500; }

.plot-grid, .detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plot-card, .detail-card { display: flex; gap: 12px; background: #fafbfc; border-radius: var(--radius-sm); padding: 12px; border: 1px solid #eef2f7; transition: var(--transition); cursor: pointer; }
.plot-card:hover, .detail-card:hover { box-shadow: var(--shadow-hover); border-color: #dde5f0; }
.plot-card .plot-thumb, .detail-card .detail-thumb { width: 100px; height: 140px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #e8ecf1; }
.plot-card .plot-thumb img, .detail-card .detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plot-card .plot-content, .detail-card .detail-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plot-card .plot-content h4, .detail-card .detail-content h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.plot-card .plot-content .plot-meta, .detail-card .detail-content .detail-meta { font-size: 0.72rem; color: #999; }
.plot-card .plot-content p, .detail-card .detail-content p { font-size: 0.8rem; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.sidebar .side-card { background: var(--white); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); }
.sidebar .side-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; letter-spacing: -0.1px; }
.sidebar .side-card h3::before { content: ''; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; display: inline-block; }
.sidebar .reading-count { font-size: 2.4rem; font-weight: 800; color: var(--primary); text-align: center; letter-spacing: -1px; }
.sidebar .reading-count .unit { font-size: 0.85rem; font-weight: 500; color: #999; }
.sidebar .update-time { text-align: center; font-size: 0.75rem; color: #aaa; margin-top: 4px; }
.sidebar .stats-row { display: flex; gap: 10px; margin-top: 10px; }
.sidebar .stats-row .stat-item { flex: 1; text-align: center; background: #fafbfc; border-radius: 8px; padding: 12px 8px; }
.sidebar .stats-row .stat-item .stat-value { font-size: 1.3rem; font-weight: 700; color: var(--secondary); }
.sidebar .stats-row .stat-item .stat-label { font-size: 0.7rem; color: #999; margin-top: 2px; }
.sidebar .rank-list { list-style: none; padding: 0; }
.sidebar .rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f3f7; cursor: pointer; transition: var(--transition); }
.sidebar .rank-list li:hover { background: #fafcfd; border-radius: 4px; padding-left: 6px; }
.sidebar .rank-list li:last-child { border-bottom: none; }
.sidebar .rank-list .rank-num { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; color: #fff; }
.sidebar .rank-list .rank-num.top1 { background: #f57170; } .rank-num.top2 { background: #f5a623; } .rank-num.top3 { background: #f7c948; color: #333; } .rank-num.normal { background: #c0c8d2; }
.sidebar .rank-list .rank-info { flex: 1; min-width: 0; }
.sidebar .rank-list .rank-info .rank-title { font-size: 0.82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .rank-list .rank-info .rank-extra { font-size: 0.68rem; color: #aaa; }

.comment-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item { background: #fafbfc; border-radius: 8px; padding: 14px 16px; border-left: 3px solid var(--accent); transition: var(--transition); }
.comment-item:hover { background: #f8fdfc; border-left-color: var(--secondary); }
.comment-item .comment-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-item .comment-user .comment-name { font-weight: 600; font-size: 0.82rem; color: var(--text-dark); }
.comment-item .comment-user .comment-time { font-size: 0.7rem; color: #bbb; margin-left: auto; }
.comment-item .comment-body { font-size: 0.83rem; color: #555; line-height: 1.7; }

.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.download-card { text-align: center; background: #fafbfc; border-radius: var(--radius-sm); padding: 18px 10px; border: 1px solid #eef2f7; transition: var(--transition); cursor: pointer; text-decoration: none; color: inherit; display: block; }
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.download-card .app-icon { width: 44px; height: 44px; margin: 0 auto 8px; display: block; }
.download-card .app-name { font-weight: 600; font-size: 0.85rem; color: var(--text-dark); }
.download-card .app-ver { font-size: 0.7rem; color: #aaa; margin-top: 2px; }

.platform-intro { line-height: 1.8; color: #555; font-size: 0.9rem; }
.platform-intro strong { color: var(--text-dark); }
.platform-intro .highlight { color: var(--primary); font-weight: 600; }

.bottom-nav { width: 100%; background: #1a1d24; color: #ccc; padding: 28px 20px; margin-top: 30px; }
.bottom-nav .bottom-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.bottom-nav .bottom-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; font-weight: 600; }
.bottom-nav .bottom-col a { display: block; color: #aaa; text-decoration: none; font-size: 0.8rem; padding: 3px 0; transition: var(--transition); }
.bottom-nav .bottom-col a:hover { color: var(--accent); }
.bottom-nav .bottom-copyright { text-align: center; width: 100%; margin-top: 20px; padding-top: 16px; border-top: 1px solid #2a2d34; font-size: 0.75rem; color: #777; }
.bottom-nav .bottom-copyright a { color: var(--accent); text-decoration: none; font-weight: 500; }

@media (max-width: 1200px) {
    .movie-grid { grid-template-columns: repeat(4, 1fr); } .sidebar { width: 280px; } .download-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .main-container { flex-direction: column; padding: 10px 12px; gap: 14px; } .sidebar { width: 100%; order: 99; }
    .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .star-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .plot-grid, .detail-grid { grid-template-columns: 1fr; } .download-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .top-nav .nav-center { display: none; }
    .top-nav .nav-center.mobile-open { display: flex; position: absolute; top: var(--nav-height); left: 0; right: 0; background: #fff; padding: 12px 16px; flex-direction: column; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 999; border-radius: 0 0 10px 10px; }
    .mobile-menu-btn { display: block; }
    .banner-section { aspect-ratio: 16/9; max-height: 280px; } .banner-section .banner-overlay h2 { font-size: 1.1rem; } .banner-section .banner-overlay { padding: 16px 18px; }
}
@media (max-width: 600px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } .movie-card .card-info { padding: 6px 7px 8px; } .movie-card .card-info h3 { font-size: 0.78rem; } .movie-card .card-info .meta-row { font-size: 0.65rem; }
    .star-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } .star-card .star-avatar { width: 54px; height: 54px; }
    .download-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } .section-block { padding: 14px 10px; }
    .top-nav h1 { font-size: 1rem; } .sidebar .reading-count { font-size: 1.8rem; } .bottom-nav .bottom-inner { flex-direction: column; gap: 16px; }
}
