
:root {
    --cream: #e8d5b7; --gold: #f9b248; --red: #fc3a52; --dark: #0e2431;
    --dark-light: #1a3a4a; --white: #ffffff; --gray-light: #f5f0eb; --gray: #8a8a8a;
    --text-dark: #1a1a1a; --text-light: #5a5a5a;
    --shadow-sm: 0 2px 8px rgba(14,36,49,0.08); --shadow-md: 0 4px 16px rgba(14,36,49,0.12);
    --shadow-lg: 0 8px 32px rgba(14,36,49,0.18); --shadow-xl: 0 16px 48px rgba(14,36,49,0.22);
    --radius-sm: 6px; --radius: 12px; --radius-lg: 16px; --radius-xl: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1400px; --sidebar-width: 340px; --header-height: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f8f6f3; color: var(--text-dark); line-height: 1.6;
    -webkit-font-smoothing: antialiased; min-height: 100vh;
}
.site-header { width:100%; background:var(--dark); position:sticky; top:0; z-index:1000; box-shadow:var(--shadow-lg); height:var(--header-height); }
.header-inner { max-width:var(--max-width); margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; height:100%; }
.site-logo h1 { font-size:1.5rem; font-weight:700; color:var(--gold); letter-spacing:0.04em; white-space:nowrap; margin:0; }
.site-logo h1 .logo-icon { display:inline-block; width:32px; height:32px; vertical-align:middle; margin-right:6px; background:var(--red); border-radius:8px; position:relative; top:-2px; }
.header-nav { display:flex; align-items:center; gap:6px; list-style:none; flex-wrap:wrap; justify-content:center; }
.header-nav a { color:#c8d6dd; text-decoration:none; font-size:0.9rem; font-weight:500; padding:8px 14px; border-radius:20px; transition:var(--transition); white-space:nowrap; }
.header-nav a:hover,.header-nav a:focus { color:var(--gold); background:rgba(255,255,255,0.06); outline:none; }
.user-status { display:flex; align-items:center; gap:10px; color:#e0e0e0; font-size:0.9rem; white-space:nowrap; cursor:pointer; padding:6px 14px; border-radius:20px; background:rgba(255,255,255,0.08); transition:var(--transition); }
.user-status:hover { background:rgba(255,255,255,0.14); color:#fff; }
.user-avatar { width:30px; height:30px; border-radius:50%; background:var(--gold); display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--dark); font-size:0.85rem; }
.mobile-menu-btn { display:none; background:none; border:none; cursor:pointer; padding:8px; color:#fff; font-size:1.5rem; }
@media (max-width:900px) {
    .header-nav { display:none; position:absolute; top:var(--header-height); left:0; width:100%; background:var(--dark); flex-direction:column; padding:16px 24px; gap:2px; box-shadow:var(--shadow-lg); border-top:1px solid rgba(255,255,255,0.08); }
    .header-nav.active { display:flex; }
    .header-nav a { display:block; padding:10px 16px; border-radius:8px; font-size:1rem; }
    .mobile-menu-btn { display:block; }
}
.main-container { max-width:var(--max-width); margin:0 auto; padding:20px 24px; display:flex; gap:28px; }
.content-area { flex:1; min-width:0; }
.sidebar { width:var(--sidebar-width); flex-shrink:0; display:flex; flex-direction:column; gap:20px; }
@media (max-width:1100px) {
    .main-container { flex-direction:column; }
    .sidebar { width:100%; flex-direction:row; flex-wrap:wrap; gap:16px; }
    .sidebar > * { flex:1 1 280px; min-width:260px; }
}
@media (max-width:600px) {
    .main-container { padding:12px 10px; gap:16px; }
    .sidebar { flex-direction:column; gap:14px; }
    .sidebar > * { flex:1 1 auto; min-width:auto; }
}
.banner-section { position:relative; border-radius:var(--radius-lg); overflow:hidden; margin-bottom:28px; box-shadow:var(--shadow-lg); aspect-ratio:21/9; min-height:280px; background:var(--dark); }
.banner-slider { display:flex; width:100%; height:100%; transition:transform 0.6s cubic-bezier(0.25,0.8,0.25,1.2); }
.banner-slide { min-width:100%; height:100%; position:relative; flex-shrink:0; }
.banner-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.banner-overlay { position:absolute; bottom:0; left:0; right:0; padding:40px 36px; background:linear-gradient(transparent, rgba(14,36,49,0.85)); color:#fff; }
.banner-overlay h2 { font-size:2rem; font-weight:700; margin-bottom:6px; text-shadow:0 2px 8px rgba(0,0,0,0.4); }
.banner-overlay p { font-size:1rem; opacity:0.9; max-width:600px; }
.banner-tag { display:inline-block; background:var(--red); color:#fff; padding:5px 14px; border-radius:20px; font-size:0.8rem; font-weight:600; margin-bottom:8px; }
.banner-dots { position:absolute; bottom:16px; right:36px; display:flex; gap:8px; z-index:5; }
.banner-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.5); cursor:pointer; transition:var(--transition); border:none; }
.banner-dot.active { background:var(--gold); transform:scale(1.3); box-shadow:0 0 10px rgba(249,178,72,0.6); }
.banner-arrow { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.2); border:none; color:#fff; width:40px; height:40px; border-radius:50%; cursor:pointer; font-size:1.2rem; z-index:5; transition:var(--transition); display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
.banner-arrow:hover { background:rgba(255,255,255,0.4); }
.banner-arrow.prev { left:16px; } .banner-arrow.next { right:16px; }
@media (max-width:768px) {
    .banner-section { aspect-ratio:16/9; min-height:200px; border-radius:var(--radius); }
    .banner-overlay { padding:20px 16px; } .banner-overlay h2 { font-size:1.3rem; } .banner-overlay p { font-size:0.85rem; max-width:100%; }
    .banner-arrow { width:32px; height:32px; font-size:0.9rem; }
}
.section-block { background:#fff; border-radius:var(--radius-lg); padding:28px 28px; margin-bottom:24px; box-shadow:var(--shadow-sm); border:1px solid rgba(0,0,0,0.04); }
.section-title { font-size:1.35rem; font-weight:700; color:var(--dark); margin-bottom:18px; padding-bottom:12px; border-bottom:2px solid var(--cream); display:flex; align-items:center; gap:10px; }
.section-title .title-icon { display:inline-block; width:6px; height:26px; background:var(--red); border-radius:3px; flex-shrink:0; }
.section-title .title-accent { color:var(--red); }
@media (max-width:600px) {
    .section-block { padding:16px 12px; border-radius:var(--radius); margin-bottom:16px; }
    .section-title { font-size:1.15rem; margin-bottom:12px; padding-bottom:8px; }
}
.movie-grid { display:grid; grid-template-columns: repeat(6, 1fr); gap:16px; }
.movie-card { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); transition:var(--transition); border:1px solid rgba(0,0,0,0.05); display:flex; flex-direction:column; cursor:pointer; }
.movie-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--gold); }
.movie-poster { position:relative; aspect-ratio:2/3; overflow:hidden; background:#e8e4df; flex-shrink:0; }
.movie-poster img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.4s ease; }
.movie-card:hover .movie-poster img { transform:scale(1.06); }
.movie-poster .play-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(14,36,49,0); transition:var(--transition); opacity:0; }
.movie-card:hover .play-overlay { background:rgba(14,36,49,0.45); opacity:1; }
.movie-poster .play-overlay img { width:44px; height:44px; }
.movie-info { padding:10px 12px 12px; flex:1; display:flex; flex-direction:column; gap:4px; }
.movie-info h3 { font-size:0.95rem; font-weight:600; color:var(--dark); line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:0; }
.movie-meta { font-size:0.72rem; color:var(--text-light); display:flex; flex-wrap:wrap; gap:4px 8px; }
.movie-meta span { background:#f5f1eb; padding:2px 8px; border-radius:10px; white-space:nowrap; }
.movie-type-tag { display:inline-block; background:var(--red); color:#fff; font-size:0.7rem; padding:3px 10px; border-radius:12px; font-weight:600; align-self:flex-start; margin-top:2px; }
@media (max-width:1400px) { .movie-grid { grid-template-columns: repeat(5,1fr); gap:12px; } }
@media (max-width:1100px) { .movie-grid { grid-template-columns: repeat(4,1fr); gap:10px; } }
@media (max-width:768px) { .movie-grid { grid-template-columns: repeat(3,1fr); gap:8px; } .movie-info h3 { font-size:0.8rem; } .movie-meta { font-size:0.68rem; } }
@media (max-width:480px) { .movie-grid { grid-template-columns: repeat(2,1fr); gap:8px; } .movie-info { padding:6px 8px 8px; } .movie-info h3 { font-size:0.78rem; } .movie-meta span { padding:1px 6px; font-size:0.65rem; } }
.star-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.star-card { text-align:center; background:#fff; border-radius:var(--radius); padding:20px 14px; box-shadow:var(--shadow-sm); transition:var(--transition); border:1px solid rgba(0,0,0,0.04); cursor:pointer; }
.star-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--cream); }
.star-avatar { width:100px; height:100px; border-radius:50%; object-fit:cover; margin:0 auto 10px; border:3px solid var(--cream); display:block; box-shadow:var(--shadow-sm); }
.star-card h3 { font-size:1rem; font-weight:600; color:var(--dark); margin:0 0 4px; }
.star-card p { font-size:0.8rem; color:var(--text-light); margin:0; }
@media (max-width:768px) { .star-grid { grid-template-columns: repeat(2,1fr); gap:10px; } .star-avatar { width:70px; height:70px; } }
.story-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; }
.sidebar .story-grid { grid-template-columns: 1fr; }
.story-card { background:#fdfcfa; border-radius:var(--radius); padding:18px 20px; border-left:4px solid var(--gold); transition:var(--transition); box-shadow:var(--shadow-sm); cursor:pointer; }
.story-card:hover { box-shadow:var(--shadow-md); border-left-color:var(--red); background:#fff; }
.story-card h3 { font-size:1rem; font-weight:600; color:var(--dark); margin:0 0 6px; }
.story-card p { font-size:0.85rem; color:var(--text-light); line-height:1.5; margin:0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:600px) { .story-grid { grid-template-columns: 1fr; gap:10px; } }
.sidebar-card { background:#fff; border-radius:var(--radius-lg); padding:20px; box-shadow:var(--shadow-sm); border:1px solid rgba(0,0,0,0.04); }
.sidebar-card h3 { font-size:1.05rem; font-weight:700; color:var(--dark); margin-bottom:14px; padding-bottom:10px; border-bottom:2px solid var(--cream); }
.reading-stats .stat-number { font-size:2.4rem; font-weight:800; color:var(--red); }
.reading-stats .stat-label { font-size:0.85rem; color:var(--text-light); margin-bottom:2px; }
.reading-stats .update-time { font-size:0.75rem; color:#999; margin-top:4px; }
.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:8px; transition:var(--transition); cursor:pointer; background:#fdfcfa; }
.rank-list li:hover { background:#fef9f0; box-shadow:var(--shadow-sm); }
.rank-num { width:26px; height:26px; border-radius:50%; background:var(--dark); color:#fff; font-weight:700; font-size:0.8rem; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rank-num.top1 { background:#e74c3c; } .rank-num.top2 { background:#f39c12; } .rank-num.top3 { background:#e67e22; }
.rank-info { font-size:0.85rem; font-weight:500; color:var(--dark); flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-info small { display:block; font-weight:400; color:var(--text-light); font-size:0.7rem; }
.stats-panel { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:16px; }
.stat-item { text-align:center; background:linear-gradient(135deg,#fefdfb,#fdf8f0); border-radius:var(--radius); padding:20px 14px; border:1px solid rgba(0,0,0,0.04); transition:var(--transition); }
.stat-item:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.stat-value { font-size:1.8rem; font-weight:800; color:var(--dark); } .stat-value.accent { color:var(--red); } .stat-value.gold { color:#d4941a; }
.stat-desc { font-size:0.78rem; color:var(--text-light); margin-top:2px; }
@media (max-width:600px) { .stats-panel { grid-template-columns:repeat(3,1fr); gap:8px; } .stat-value { font-size:1.3rem; } .stat-item { padding:12px 8px; } }
.comment-list { display:flex; flex-direction:column; gap:12px; max-height:500px; overflow-y:auto; }
.comment-item { background:#fdfcfa; border-radius:10px; padding:14px 16px; border:1px solid rgba(0,0,0,0.04); transition:var(--transition); }
.comment-item:hover { background:#fff; box-shadow:var(--shadow-sm); }
.comment-header { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.comment-user { font-weight:600; font-size:0.85rem; color:var(--dark); }
.comment-time { font-size:0.7rem; color:#aaa; margin-left:auto; }
.comment-text { font-size:0.83rem; color:#444; line-height:1.5; margin:0; }
.download-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; }
.sidebar .download-grid { grid-template-columns: repeat(2,1fr); }
.download-card { text-align:center; background:#fdfcfa; border-radius:var(--radius); padding:20px 14px; transition:var(--transition); border:2px solid transparent; cursor:pointer; text-decoration:none; color:inherit; display:flex; flex-direction:column; align-items:center; gap:8px; }
.download-card:hover { border-color:var(--gold); box-shadow:var(--shadow-md); transform:translateY(-3px); background:#fff; }
.download-card .app-icon { width:44px; height:44px; display:block; }
.download-card span { font-weight:600; font-size:0.9rem; color:var(--dark); } .download-card small { font-size:0.7rem; color:var(--text-light); }
@media (max-width:768px) { .download-grid { grid-template-columns: repeat(2,1fr); gap:10px; } }
.intro-text { font-size:0.95rem; color:#444; line-height:1.7; } .intro-text strong { color:var(--dark); }
.highlight-badge { display:inline-block; background:var(--gold); color:var(--dark); padding:3px 10px; border-radius:12px; font-weight:700; font-size:0.8rem; margin:0 2px; }
.site-footer { width:100%; background:var(--dark); color:#c8d6dd; padding:32px 24px 20px; margin-top:20px; }
.footer-inner { max-width:var(--max-width); margin:0 auto; display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; }
.footer-col h4 { color:var(--gold); font-size:1rem; margin-bottom:10px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:6px; }
.footer-col a { color:#a0b5c0; text-decoration:none; font-size:0.85rem; transition:var(--transition); }
.footer-col a:hover { color:#fff; text-decoration:underline; }
.footer-bottom { text-align:center; padding-top:16px; margin-top:20px; border-top:1px solid rgba(255,255,255,0.1); font-size:0.78rem; color:#8899a5; }
.footer-mobile-link { display:inline-block; background:var(--gold); color:var(--dark)!important; padding:8px 18px; border-radius:20px; font-weight:700; text-decoration:none; margin-top:6px; font-size:0.85rem; transition:var(--transition); }
.footer-mobile-link:hover { background:#fcaa30; transform:scale(1.04); text-decoration:none!important; }
@media (max-width:600px) { .footer-inner { flex-direction:column; gap:16px; } }
.back-to-top { position:fixed; bottom:30px; right:30px; width:44px; height:44px; border-radius:50%; background:var(--red); color:#fff; border:none; cursor:pointer; font-size:1.2rem; z-index:999; box-shadow:var(--shadow-lg); transition:var(--transition); display:flex; align-items:center; justify-content:center; opacity:0.85; }
.back-to-top:hover { opacity:1; transform:translateY(-3px); box-shadow:var(--shadow-xl); }
::-webkit-scrollbar { width:6px; } ::-webkit-scrollbar-track { background:#f1f0ed; border-radius:3px; } ::-webkit-scrollbar-thumb { background:#c5bfb3; border-radius:3px; }
