:root {
    --color-yellow: #f6fcae;
    --color-purple: #d89fff;
    --color-blue: #c7f5ff;
    --color-pink: #ffabe5;
    --text-dark: #2c3e50;
    --text-gray: #5a6c7d;
    --text-light: #7f8c8d;
    --bg-white: #ffffff;
    --bg-light: #fafbfc;
    --border-color: #e8ecf1;
    --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 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1360px;
    --sidebar-width: 370px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    background-color: #f7f8fa; color: var(--text-dark); line-height: 1.6; min-height: 100vh;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

.site-header {
    width: 100%; background: #ffffff; border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.header-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--text-dark); }
.site-logo .logo-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0; letter-spacing: 0;
}
.site-logo h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; color: #2c3e50; margin: 0; line-height: 1; }
.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 15px; text-decoration: none; color: var(--text-gray); font-weight: 500; font-size: 0.93rem; border-radius: 20px; transition: var(--transition); white-space: nowrap; letter-spacing: 0.3px; }
.header-nav a:hover, .header-nav a:focus { background-color: var(--color-yellow); color: #3d3d1a; outline: none; }
.btn-watch-now {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b9d, #e8537c); color: #fff !important; border-radius: 24px;
    font-weight: 600; font-size: 0.93rem; text-decoration: none; letter-spacing: 0.4px; transition: var(--transition);
    white-space: nowrap; flex-shrink: 0; box-shadow: 0 4px 14px rgba(255,107,157,0.35); border: none; cursor: pointer;
}
.btn-watch-now:hover { background: linear-gradient(135deg, #ff5289, #d43d64); box-shadow: 0 6px 20px rgba(255,107,157,0.5); transform: translateY(-1px); }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--text-dark); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

.main-container {
    max-width: var(--max-width); margin: 0 auto; padding: 24px 20px 40px;
    display: flex; gap: 28px; align-items: flex-start;
}
.content-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.sidebar-right {
    width: var(--sidebar-width); flex-shrink: 0; display: flex; flex-direction: column; gap: 24px;
    position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #d0d5dc transparent; padding-right: 4px;
}
.sidebar-right::-webkit-scrollbar { width: 5px; }
.sidebar-right::-webkit-scrollbar-track { background: transparent; border-radius: 10px; }
.sidebar-right::-webkit-scrollbar-thumb { background: #d0d5dc; border-radius: 10px; }

.section-block {
    background: #ffffff; border-radius: var(--radius-lg); padding: 24px 26px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition);
}
.section-block:hover { box-shadow: var(--shadow-md); }
.section-title { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 3px solid var(--color-purple); display: flex; align-items: center; gap: 10px; letter-spacing: 0.4px; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 50px; height: 3px; background: var(--color-pink); border-radius: 2px; }
.section-subtitle { font-size: 0.9rem; color: var(--text-light); margin-bottom: 14px; font-weight: 400; }

.comic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.comic-card { background: #ffffff; border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); cursor: pointer; border: 1px solid transparent; display: flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.comic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--color-purple); }
.comic-card .card-img-wrap { position: relative; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; background: #eef1f5; flex-shrink: 0; }
.comic-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.comic-card:hover .card-img-wrap img { transform: scale(1.06); }
.comic-card .card-badge { position: absolute; top: 8px; left: 8px; background: var(--color-pink); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; letter-spacing: 0.5px; z-index: 2; box-shadow: 0 2px 6px rgba(255,171,229,0.5); }
.comic-card .card-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.comic-card .card-title { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comic-card .card-meta { font-size: 0.75rem; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 4px 10px; line-height: 1.5; }
.comic-card .card-meta span { white-space: nowrap; }
.comic-card .card-type-tag { display: inline-block; background: var(--color-blue); color: #1a5c6e; font-size: 0.7rem; font-weight: 600; padding: 2px 9px; border-radius: 10px; letter-spacing: 0.3px; align-self: flex-start; }

.featured-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.featured-item { background: linear-gradient(135deg, #fefefe 0%, #fdf2f8 100%); border-radius: var(--radius-lg); padding: 20px 22px; display: flex; gap: 16px; align-items: center; border: 1px solid #fde4f0; transition: var(--transition); cursor: pointer; }
.featured-item:hover { box-shadow: var(--shadow-md); border-color: var(--color-pink); }
.featured-item img { width: 100px; height: 140px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.featured-item .featured-info h4 { font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: #2c3e50; }
.featured-item .featured-info p { font-size: 0.82rem; color: var(--text-gray); line-height: 1.5; }
.featured-item .featured-tag { display: inline-block; background: var(--color-pink); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; margin-top: 6px; letter-spacing: 0.4px; }

.character-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.character-card { text-align: center; background: #fefefe; border-radius: var(--radius-md); padding: 18px 12px; border: 1px solid var(--border-color); transition: var(--transition); cursor: pointer; }
.character-card:hover { border-color: var(--color-purple); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.character-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; display: block; border: 3px solid var(--color-blue); box-shadow: var(--shadow-sm); transition: var(--transition); }
.character-card:hover img { border-color: var(--color-purple); box-shadow: 0 0 0 6px rgba(216,159,255,0.18); }
.character-card .char-name { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 3px; }
.character-card .char-role { font-size: 0.75rem; color: var(--text-light); }

.faq-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); background: #fefefe; }
.faq-item:hover { border-color: var(--color-blue); background: #fafffe; }
.faq-question { padding: 14px 18px; font-weight: 600; font-size: 0.93rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); letter-spacing: 0.3px; }
.faq-answer { padding: 0 18px 16px; font-size: 0.85rem; color: var(--text-gray); line-height: 1.6; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open { border-color: var(--color-purple); background: #fdfbff; }
.faq-toggle-icon { width: 22px; height: 22px; flex-shrink: 0; transition: transform 0.3s ease; color: var(--text-light); font-weight: 700; font-size: 1.1rem; text-align: center; line-height: 22px; }
.faq-item.open .faq-toggle-icon { transform: rotate(45deg); color: var(--color-purple); }

.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.advantage-card { text-align: center; padding: 22px 16px; border-radius: var(--radius-md); transition: var(--transition); border: 1px solid transparent; cursor: default; }
.advantage-card:nth-child(1) { background: #fefef5; border-color: #f5f0c8; }
.advantage-card:nth-child(2) { background: #fdf5ff; border-color: #eed9ff; }
.advantage-card:nth-child(3) { background: #f5faff; border-color: #d0eafa; }
.advantage-card:nth-child(4) { background: #fff5fa; border-color: #fcd9ed; }
.advantage-card:nth-child(5) { background: #f5fff9; border-color: #c8f0d8; }
.advantage-card:nth-child(6) { background: #fffaf3; border-color: #f5e0c0; }
.advantage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.advantage-card .adv-icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; }
.adv-icon.adv-1 { background: #e8d44d; } .adv-icon.adv-2 { background: #b87fdb; } .adv-icon.adv-3 { background: #5bb8d4; }
.adv-icon.adv-4 { background: #e879a8; } .adv-icon.adv-5 { background: #4caf84; } .adv-icon.adv-6 { background: #e89a50; }
.advantage-card h4 { font-weight: 700; font-size: 0.93rem; margin-bottom: 4px; color: #2c3e50; }
.advantage-card p { font-size: 0.78rem; color: var(--text-gray); line-height: 1.4; }

.sidebar-right .section-block { padding: 18px 16px; border-radius: var(--radius-md); }
.sidebar-right .section-title { font-size: 1.05rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom-width: 2px; }
.sidebar-right .section-title::after { width: 36px; height: 2px; bottom: -2px; }

.rank-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); transition: var(--transition); cursor: pointer; border: 1px solid transparent; }
.rank-item:hover { background: #fdfbff; border-color: #eed9ff; }
.rank-num { width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; letter-spacing: 0; }
.rank-num.top1 { background: #e8a030; } .rank-num.top2 { background: #8a9bae; } .rank-num.top3 { background: #c08a5c; } .rank-num.top-other { background: #c0c7cf; }
.rank-item img { width: 44px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-info .rank-title { font-weight: 600; font-size: 0.82rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info .rank-sub { font-size: 0.7rem; color: var(--text-light); }

.total-read-card { background: linear-gradient(135deg, #fdfbff, #fef8fc); border: 2px solid #eed9ff; border-radius: var(--radius-md); padding: 16px 18px; text-align: center; }
.total-read-card .big-number { font-size: 2rem; font-weight: 800; color: #5c3d7a; letter-spacing: 1px; }
.total-read-card .update-time { font-size: 0.7rem; color: var(--text-light); margin-top: 4px; }

.stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; text-align: center; }
.stat-item { background: #fefefe; border-radius: var(--radius-sm); padding: 12px 8px; border: 1px solid var(--border-color); }
.stat-item .stat-val { font-weight: 700; font-size: 1.15rem; color: #5c3d7a; }
.stat-item .stat-label { font-size: 0.7rem; color: var(--text-light); margin-top: 2px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .tag { display: inline-block; padding: 6px 14px; border-radius: 16px; font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: var(--transition); letter-spacing: 0.3px; border: 1px solid transparent; }
.tag.tag-yellow { background: #fefce8; border-color: #f0e88a; color: #6b5e10; }
.tag.tag-purple { background: #faf3ff; border-color: #e0c4f5; color: #5c3078; }
.tag.tag-blue { background: #f3faff; border-color: #c5e4f5; color: #2d6078; }
.tag.tag-pink { background: #fff5fa; border-color: #f5c8e0; color: #783050; }
.tag:hover { transform: scale(1.05); box-shadow: var(--shadow-sm); }

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.comment-item { padding: 12px 14px; border-radius: var(--radius-sm); background: #fefefe; border: 1px solid #f0f0f4; transition: var(--transition); font-size: 0.8rem; color: var(--text-gray); line-height: 1.55; cursor: default; }
.comment-item:hover { border-color: #e0d0f0; background: #fdfcff; }
.comment-item .comment-user { font-weight: 600; font-size: 0.78rem; color: #4a3a5c; margin-bottom: 3px; }
.comment-item .comment-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.app-download-area { background: linear-gradient(135deg, #fefefe 0%, #f9f5ff 40%, #fdf8fc 100%); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-sm); border: 2px dashed #e8d8f5; text-align: center; transition: var(--transition); }
.app-download-area:hover { border-color: var(--color-purple); box-shadow: var(--shadow-md); }
.app-download-area h3 { font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; color: #2c3e50; }
.app-download-area .app-subtitle { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; }
.app-download-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.app-dl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 24px; font-weight: 600; font-size: 0.88rem; text-decoration: none; letter-spacing: 0.4px; transition: var(--transition); border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.app-dl-btn.android { background: #e8fce8; border-color: #3ddc84; color: #1a5c2e; }
.app-dl-btn.android:hover { background: #d0f8d0; box-shadow: 0 4px 14px rgba(61,220,132,0.3); }
.app-dl-btn.ios { background: #f5f5f7; border-color: #333; color: #1a1a1a; }
.app-dl-btn.ios:hover { background: #e8e8ec; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.app-dl-btn.pc { background: #f0f4f8; border-color: #52616b; color: #1a2a35; }
.app-dl-btn.pc:hover { background: #e2e8f0; box-shadow: 0 4px 14px rgba(82,97,107,0.3); }
.app-dl-btn.mac { background: #f5f5f7; border-color: #555; color: #1a1a1a; }
.app-dl-btn.mac:hover { background: #e8e8ec; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }

.site-footer { width: 100%; background: #ffffff; border-top: 2px solid var(--border-color); padding: 28px 24px 20px; margin-top: 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.03); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; list-style: none; font-size: 0.85rem; }
.footer-links a { color: var(--text-gray); text-decoration: none; transition: var(--transition); letter-spacing: 0.3px; }
.footer-links a:hover { color: #5c3d7a; text-decoration: underline; }
.footer-bottom { max-width: var(--max-width); margin: 16px auto 0; padding-top: 14px; border-top: 1px solid #eee; text-align: center; font-size: 0.78rem; color: var(--text-light); letter-spacing: 0.3px; }
.footer-bottom a { color: #5c3d7a; text-decoration: none; font-weight: 500; margin: 0 6px; }
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 1200px) {
    .comic-grid { grid-template-columns: repeat(4, 1fr); }
    .character-grid { grid-template-columns: repeat(3, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar-right { width: 320px; }
    :root { --sidebar-width: 320px; }
    .featured-banner { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .main-container { flex-direction: column; gap: 24px; }
    .sidebar-right { width: 100%; position: static; max-height: none; overflow-y: visible; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .comic-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .character-grid { grid-template-columns: repeat(4, 1fr); }
    .advantages-grid { grid-template-columns: repeat(3, 1fr); }
    .header-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-nav.mobile-open { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 20px; border-bottom: 2px solid var(--border-color); box-shadow: var(--shadow-md); z-index: 999; gap: 2px; }
    .header-nav.mobile-open a { padding: 10px 16px; border-radius: 8px; width: 100%; }
}
@media (max-width: 768px) {
    .comic-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .character-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sidebar-right { grid-template-columns: 1fr; }
    .featured-banner { grid-template-columns: 1fr; }
    .section-block { padding: 16px 14px; }
    .app-download-buttons { flex-direction: column; align-items: center; }
    .app-dl-btn { width: 100%; justify-content: center; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .header-inner { padding: 0 14px; height: 56px; }
    .site-logo h1 { font-size: 1.1rem; }
    .btn-watch-now { padding: 8px 14px; font-size: 0.8rem; }
    .comic-card .card-info { padding: 8px 10px 10px; }
    .comic-card .card-title { font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .comic-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .character-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .advantages-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .featured-item { flex-direction: column; text-align: center; gap: 10px; }
    .featured-item img { width: 80px; height: 110px; }
    .section-title { font-size: 1.05rem; }
}
