
:root {
    --color-blue-light: #bfcfff;
    --color-teal-light: #c8e7ed;
    --color-yellow-light: #ffffc2;
    --color-pink-light: #ffa5a5;
    --color-white: #ffffff;
    --color-dark: #1a1a2e;
    --color-text: #2c2c3a;
    --color-text-light: #555566;
    --color-border: #e8e8f0;
    --color-accent: #4a6cf7;
    --color-star: #f5a623;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.25s ease;
    --max-width: 1320px;
    --header-height: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background: #f8f9fc; color: var(--color-text); line-height: 1.6; min-height: 100vh;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.site-header { position: sticky; top: 0; z-index: 1000; width: 100%; background: var(--color-white); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-sm); height: var(--header-height); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-left .logo-icon { width: 38px; height: 38px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #4a6cf7, #6d8cff); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.site-header h1 { font-size: 1.35rem; font-weight: 700; color: var(--color-dark); letter-spacing: 0.5px; white-space: nowrap; margin: 0; }
.header-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; list-style: none; }
.header-nav a { display: inline-block; padding: 8px 14px; text-decoration: none; color: var(--color-text-light); font-size: 0.9rem; font-weight: 500; border-radius: 20px; transition: var(--transition); white-space: nowrap; }
.header-nav a:hover, .header-nav a:focus { background: var(--color-blue-light); color: #3a3a5c; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: linear-gradient(135deg, #4a6cf7, #5d7ef9); color: #fff; border: none; border-radius: 22px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; text-decoration: none; letter-spacing: 0.3px; }
.btn-login:hover { background: linear-gradient(135deg, #3b5de7, #4a6cf7); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--color-teal-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #3a5a6c; font-size: 0.85rem; cursor: pointer; border: 2px solid #d0e8f0; transition: var(--transition); }
.user-avatar:hover { border-color: #8cb8c8; }
.main-container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; gap: 28px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.banner-section { margin-top: 20px; margin-bottom: 28px; border-radius: var(--radius-xl); overflow: hidden; position: relative; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 6; max-height: 420px; background: #e0e5f0; }
.banner-track { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.banner-slide { min-width: 100%; height: 100%; position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 36px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); color: #fff; pointer-events: none; }
.banner-overlay h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.5px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.banner-overlay p { font-size: 0.95rem; opacity: 0.9; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.banner-dots { position: absolute; bottom: 16px; right: 28px; 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; padding: 0; transition: var(--transition); }
.banner-dots button.active { background: #fff; transform: scale(1.3); }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255, 255, 255, 0.85); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; font-weight: 700; color: #333; box-shadow: var(--shadow-md); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.banner-arrow:hover { background: #fff; box-shadow: var(--shadow-lg); }
.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }
.section-block { background: #fff; border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; border: 1px solid var(--color-border); }
.section-title { font-size: 1.3rem; font-weight: 700; color: var(--color-dark); margin-bottom: 18px; padding-left: 14px; border-left: 4px solid #4a6cf7; letter-spacing: 0.4px; display: flex; align-items: center; gap: 8px; }
.section-title .badge { display: inline-block; font-size: 0.75rem; background: var(--color-pink-light); color: #c0392b; padding: 3px 10px; border-radius: 12px; font-weight: 600; letter-spacing: 0.5px; }
.intro-card { display: flex; gap: 28px; align-items: center; background: linear-gradient(135deg, #fdfdff 0%, var(--color-blue-light) 100%); border-radius: var(--radius-lg); padding: 28px 30px; border: 1px solid #dde4ff; margin-bottom: 24px; }
.intro-card .intro-text { flex: 1; }
.intro-card .intro-text h3 { font-size: 1.25rem; font-weight: 700; color: var(--color-dark); margin-bottom: 8px; }
.intro-card .intro-text p { color: var(--color-text-light); font-size: 0.95rem; line-height: 1.7; }
.intro-card .intro-image { flex-shrink: 0; width: 180px; height: 120px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.intro-card .intro-image img { width: 100%; height: 100%; object-fit: cover; }
.movie-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.movie-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: var(--transition); cursor: pointer; display: flex; flex-direction: column; }
.movie-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #c0c8e8; }
.movie-card .poster { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #eef0f6; position: relative; flex-shrink: 0; }
.movie-card .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.movie-card .poster .tag { position: absolute; top: 8px; left: 8px; background: #e74c3c; color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 10px; font-weight: 600; letter-spacing: 0.5px; }
.movie-card .info { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.movie-card .info h4 { font-size: 0.95rem; font-weight: 700; color: var(--color-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-card .info .meta { font-size: 0.75rem; color: #888; display: flex; flex-wrap: wrap; gap: 4px 8px; line-height: 1.4; }
.movie-card .info .meta span { background: #f5f5f8; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.movie-card .info .rating { font-size: 0.8rem; color: var(--color-star); font-weight: 600; }
.star-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.star-card { text-align: center; background: #fff; border-radius: var(--radius-md); padding: 18px 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: var(--transition); }
.star-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.star-card .avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; background: #eef0f6; box-shadow: var(--shadow-sm); }
.star-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.star-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--color-dark); }
.star-card p { font-size: 0.78rem; color: #999; margin-top: 2px; }
.plot-list { display: flex; flex-direction: column; gap: 16px; }
.plot-item { display: flex; gap: 16px; padding: 16px; background: #fafbfd; border-radius: var(--radius-md); border-left: 3px solid var(--color-teal-light); transition: var(--transition); align-items: flex-start; }
.plot-item:hover { background: #f0f4f8; }
.plot-item .plot-poster { width: 80px; height: 110px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #eef0f6; }
.plot-item .plot-poster img { width: 100%; height: 100%; object-fit: cover; }
.plot-item .plot-content h4 { font-weight: 700; font-size: 1rem; color: var(--color-dark); margin-bottom: 4px; }
.plot-item .plot-content p { font-size: 0.85rem; color: #666; line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-card { display: flex; gap: 16px; background: #fff; border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: var(--transition); }
.detail-card:hover { box-shadow: var(--shadow-md); }
.detail-card .detail-poster { width: 100px; height: 140px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #eef0f6; }
.detail-card .detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-card .detail-info h4 { font-weight: 700; font-size: 1rem; color: var(--color-dark); margin-bottom: 6px; }
.detail-card .detail-info .detail-meta { font-size: 0.78rem; color: #777; line-height: 1.5; }
.detail-card .detail-info .detail-meta strong { color: #555; }
.sidebar-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.sidebar-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--color-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--color-yellow-light); letter-spacing: 0.4px; }
.reading-info .update-time { font-size: 0.78rem; color: #999; margin-bottom: 10px; }
.reading-info .reading-value { font-size: 2.4rem; font-weight: 700; color: #4a6cf7; letter-spacing: 1px; }
.reading-info .reading-label { font-size: 0.8rem; color: #888; }
.stat-row { display: flex; gap: 12px; margin-top: 12px; }
.stat-item { flex: 1; text-align: center; background: #fafbfd; border-radius: var(--radius-sm); padding: 14px 10px; }
.stat-item .stat-num { font-size: 1.5rem; font-weight: 700; color: #e74c3c; }
.stat-item .stat-label { font-size: 0.75rem; color: #999; margin-top: 2px; }
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #fafbfd; transition: var(--transition); cursor: pointer; font-size: 0.85rem; font-weight: 500; }
.rank-list li:hover { background: var(--color-yellow-light); }
.rank-list li .rank-num { width: 26px; height: 26px; border-radius: 50%; background: #e0e0e8; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.rank-list li:nth-child(1) .rank-num { background: #e74c3c; color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: #f39c12; color: #fff; }
.rank-list li:nth-child(3) .rank-num { background: #f5a623; color: #fff; }
.rank-list li .rank-poster { width: 36px; height: 48px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #eef0f6; }
.rank-list li .rank-poster img { width: 100%; height: 100%; object-fit: cover; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { padding: 16px 18px; background: #fafbfd; border-radius: var(--radius-md); border: 1px solid #eeeef4; transition: var(--transition); }
.comment-item:hover { background: #f4f5fa; }
.comment-item .comment-user { font-weight: 700; font-size: 0.9rem; color: var(--color-dark); margin-bottom: 6px; }
.comment-item .comment-text { font-size: 0.85rem; color: #555; line-height: 1.7; }
.comment-item .comment-time { font-size: 0.72rem; color: #bbb; margin-top: 6px; }
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.download-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition); border: 2px solid transparent; letter-spacing: 0.3px; cursor: pointer; color: #333; background: #f8f9fc; }
.download-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.download-btn.android { border-color: #3ddc84; background: #f0fdf6; }
.download-btn.ios { border-color: #333; background: #f5f5f5; }
.download-btn.pc { border-color: #52616b; background: #f6f8f9; }
.download-btn.mac { border-color: #999; background: #fafafa; }
.site-footer { width: 100%; background: #1a1a2e; color: #ccc; margin-top: 40px; padding: 32px 0 20px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.4px; }
.footer-col a { display: block; color: #aaa; text-decoration: none; font-size: 0.85rem; padding: 3px 0; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 18px; margin-top: 18px; border-top: 1px solid #333; font-size: 0.78rem; color: #888; max-width: var(--max-width); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.footer-bottom a { color: #ccc; text-decoration: underline; }
@media (max-width: 1200px) {
    .main-container { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 16px; }
    .sidebar-card { flex: 1 1 260px; min-width: 240px; }
    .movie-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .download-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .star-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .download-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-section { aspect-ratio: 16 / 7; max-height: 300px; }
    .banner-overlay h2 { font-size: 1.3rem; }
    .banner-overlay p { font-size: 0.8rem; }
    .header-nav { display: none; }
    .intro-card { flex-direction: column; }
    .intro-card .intro-image { width: 100%; height: 160px; }
    .sidebar { flex-direction: column; }
    .sidebar-card { flex: 1 1 auto; min-width: auto; }
}
@media (max-width: 600px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .star-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .detail-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .banner-section { aspect-ratio: 16 / 9; max-height: 220px; border-radius: var(--radius-md); }
    .banner-overlay { padding: 16px 18px; }
    .banner-overlay h2 { font-size: 1rem; }
    .banner-overlay p { font-size: 0.7rem; }
    .banner-arrow { width: 30px; height: 30px; font-size: 0.9rem; }
    .section-title { font-size: 1.05rem; }
    .plot-item { flex-direction: column; }
    .plot-item .plot-poster { width: 100%; height: 140px; }
    .detail-card { flex-direction: column; }
    .detail-card .detail-poster { width: 100%; height: 180px; }
    .header-inner { gap: 8px; }
    .site-header h1 { font-size: 1.05rem; }
    .btn-login { padding: 6px 12px; font-size: 0.78rem; }
    .footer-inner { flex-direction: column; gap: 16px; }
}
.mobile-nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; color: var(--color-dark); }
@media (max-width: 900px) {
    .mobile-nav-toggle { display: block; }
    .header-nav.mobile-open { display: flex; position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 20px; box-shadow: var(--shadow-lg); border-bottom: 2px solid var(--color-border); z-index: 999; gap: 2px; }
    .header-nav.mobile-open a { padding: 10px 14px; width: 100%; text-align: left; border-radius: 8px; }
}
