/* ==================== 二次元现代化主题 ==================== */
/* 配色: 主色 #6c5ce7(紫), 辅色 #fd79a8(粉), 强调 #00cec9(青), 背景 #f8f9fe */

:root {
    --primary: #6c5ce7;
    --primary-rgb: 108, 92, 231;
    --primary-light: #a29bfe;
    --primary-dark: #5a4bd1;
    --accent: #fd79a8;
    --accent-light: #fab1c4;
    --accent-dark: #e84393;
    --cyan: #00cec9;
    --bg: #f8f9fe;
    --bg-card: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --border: #e8e6f0;
    --shadow: 0 2px 12px rgba(var(--primary-rgb), 0.08);
    --shadow-hover: 0 4px 20px rgba(var(--primary-rgb), 0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    font-size: 14px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(253, 121, 168, 0.03) 0%, transparent 50%);
}

footer { margin-top: auto; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); text-decoration: none; }

.brand-icon {
    color: var(--accent);
    font-size: 1.2em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%) !important;
    box-shadow: 0 4px 20px rgba(45, 27, 105, 0.3);
    padding: 0;
    min-height: 56px;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 12px 16px !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 14px;
    padding: 16px 16px !important;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.nav-novel:hover::after { background: var(--primary-light); }
.nav-anime:hover::after { background: var(--accent); }

.nav-register {
    background: rgba(253, 121, 168, 0.2) !important;
    border: 1px solid rgba(253, 121, 168, 0.4);
    border-radius: var(--radius-sm);
    margin-left: 8px;
    padding: 8px 16px !important;
}

.nav-register:hover {
    background: rgba(253, 121, 168, 0.3) !important;
}

.search-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 8px 14px;
    font-size: 13px;
    transition: all 0.3s;
}

.search-form .form-control::placeholder { color: rgba(255,255,255,0.5); }
.search-form .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: none;
    color: #fff;
}

.search-form .btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 8px 14px;
}

.search-form .btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ==================== 区块标题 ==================== */
.section-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: 3px solid var(--primary);
    padding: 12px 16px;
    font-size: 15px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.section-header i { margin-right: 8px; font-size: 16px; }

/* ==================== 卡片 ==================== */
.card {
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    background: var(--bg-card);
    transition: box-shadow 0.3s;
}

.card:hover { box-shadow: var(--shadow-hover); }
.card-body { padding: 16px; }

.card-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    background: linear-gradient(135deg, #f8f9fe 0%, #eee8ff 100%);
    border-bottom: 1px solid var(--border);
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    padding: 10px 16px;
}

/* ==================== 封面图片 ==================== */
.novel-cover-wrapper { width: 90px; height: 125px; }

.novel-cover-img {
    width: 90px; height: 125px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.novel-cover-img:hover { transform: scale(1.03); }

.novel-cover-placeholder {
    width: 90px; height: 125px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem;
    border-radius: var(--radius-sm);
}

.min-width-0 { min-width: 0; }

.novel-detail-cover {
    width: 180px; height: 250px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.novel-detail-cover-placeholder {
    width: 180px; height: 250px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 4rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ==================== 封面网格 ==================== */
.cover-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
}

.cover-grid-item { width: 115px; text-align: center; }

.cover-grid-item img {
    width: 115px; height: 160px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.cover-grid-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary-light);
}

.cover-grid-item .cover-title {
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.4;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cover-grid-item .cover-title a { color: var(--text); font-weight: 500; }
.cover-grid-item .cover-title a:hover { color: var(--primary); }

/* ==================== 侧边栏卡片 ==================== */
.sidebar-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.sidebar-card .sidebar-header {
    background: linear-gradient(135deg, #f8f9fe 0%, #eee8ff 100%);
    border-bottom: 2px solid var(--primary-light);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: bold;
    color: var(--primary);
}

.sidebar-card .sidebar-body {
    padding: 10px 12px;
    background: var(--bg-card);
}

/* ==================== 排行榜 ==================== */
.rank-list { list-style: none; padding: 0; margin: 0; }

.rank-list li {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    font-size: 13px;
    transition: all 0.2s;
}

.rank-list li:hover {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.05), transparent);
    padding-left: 16px;
}

.rank-list li:last-child { border-bottom: none; }

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
    color: #fff;
}

.rank-num.top1 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.rank-num.top2 { background: linear-gradient(135deg, #fdcb6e, #f39c12); }
.rank-num.top3 { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.rank-num.normal { background: #dfe6e9; color: var(--text-light); }

/* ==================== 筛选按钮 ==================== */
.filter-btn {
    border: 1px solid var(--primary-light);
    color: var(--primary);
    background: var(--bg-card);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================== 状态标签 ==================== */
.badge-ongoing {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.badge-completed {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.badge-new {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: normal;
    margin-left: 4px;
}

/* ==================== 分类标签 ==================== */
.category-tag {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    color: var(--primary);
    background: var(--bg-card);
    font-size: 13px;
    transition: all 0.2s;
    margin: 3px;
}

.category-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================== 按钮 ==================== */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary-dark);
    border-radius: var(--radius-sm);
    font-size: 13px;
    padding: 6px 16px;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ==================== 分页 ==================== */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 3px;
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 13px;
    padding: 6px 14px;
    transition: all 0.2s;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.pagination .page-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-light);
    color: var(--primary);
}

/* ==================== 搜索栏 ==================== */
.search-banner {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(253, 121, 168, 0.08));
    border-radius: var(--radius);
    padding: 20px;
}

.search-banner-form .input-group {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-banner-form .input-group-text {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 18px;
    padding: 12px 16px;
}

.search-banner-form .form-control {
    border: none;
    font-size: 15px;
    padding: 12px 16px;
    box-shadow: none !important;
}

.search-banner-form .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ==================== 侧边栏链接 ==================== */
.sidebar-link {
    display: block;
    padding: 5px 10px;
    font-size: 13px;
    color: var(--text);
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.08), transparent);
    color: var(--primary);
    padding-left: 14px;
    text-decoration: none;
}

.sidebar-link-logout {
    font-size: 13px;
    color: var(--accent-dark);
    text-decoration: none;
}

.sidebar-link-logout:hover { color: #c0392b; }

/* ==================== 侧边栏标题变体 ==================== */
.sidebar-novel {
    background: linear-gradient(135deg, #f8f9fe 0%, #eee8ff 100%) !important;
    border-bottom-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

.sidebar-anime {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8ef 100%) !important;
    border-bottom-color: var(--accent-light) !important;
    color: var(--accent-dark) !important;
}

/* ==================== 区块标题变体 ==================== */
.section-novel {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.section-anime {
    border-bottom-color: var(--accent);
    color: var(--accent-dark);
}

.more-link {
    font-size: 12px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.more-link:hover { opacity: 1; }

/* ==================== 小说列表项 ==================== */
.novel-list-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.novel-list-item:hover {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.03), transparent);
}

.novel-list-item:last-child { border-bottom: none; }

.novel-title a {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.novel-title a:hover { color: var(--primary-dark); }

.anime-title a {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 15px;
}

.anime-title a:hover { color: #c0392b; }

.novel-meta {
    font-size: 12px;
    color: var(--text-light);
}

.novel-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* ==================== 注册按钮 ==================== */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent-dark);
    border-radius: var(--radius-sm);
    font-size: 13px;
    padding: 5px 14px;
    transition: all 0.2s;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ==================== 评论 ==================== */
.comment-avatar i { font-size: 1.8rem; color: var(--primary); }
.comment-item { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.comment-item:last-child { border-bottom: none; }

/* ==================== 评分 ==================== */
.rating-score { font-size: 2rem; font-weight: bold; color: #f39c12; }
.rating-stars i { font-size: 1.1rem; margin: 0 1px; }
.rating-btn { padding: 2px 6px; }
.rating-btn i { font-size: 1rem; }

/* ==================== 章节目录 ==================== */
.chapter-list { max-height: 500px; overflow-y: auto; }

.chapter-item {
    color: var(--text);
    transition: all 0.2s;
    padding: 6px 12px;
    border-bottom: 1px dotted var(--border);
    font-size: 13px;
    border-radius: 4px;
}

.chapter-item:hover {
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.08), transparent);
    color: var(--primary);
    text-decoration: none;
    padding-left: 16px;
}

.chapter-item:last-child { border-bottom: none; }

/* ==================== 阅读页 ==================== */
.chapter-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
    white-space: pre-wrap;
    text-align: justify;
    padding: 20px 0;
}

.chapter-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: var(--radius-sm);
}

.chapter-content p { margin-bottom: 1rem; }
.reading-settings .btn { padding: 2px 8px; font-size: 12px; }

/* ==================== 面包屑 ==================== */
.breadcrumb { background: transparent; padding: 8px 0; font-size: 13px; }
.breadcrumb-item a { color: var(--primary); }

/* ==================== 登录注册 ==================== */
.auth-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.auth-card .auth-header {
    background: linear-gradient(135deg, #f8f9fe 0%, #eee8ff 100%);
    border-bottom: 2px solid var(--primary-light);
    padding: 12px 16px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
}

/* ==================== 头像 ==================== */
.avatar-circle {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}

/* ==================== 页脚 ==================== */
.site-footer {
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
    color: rgba(255,255,255,0.9);
}

.site-footer .footer-brand {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* ==================== 文本截断 ==================== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 夜间模式 ==================== */
body.dark-mode { background-color: #1a1a2e; color: #e0e0e0; }
body.dark-mode .card { background-color: #16213e; border-color: #0f3460; }
body.dark-mode .card-header { background: #0f3460; border-color: #1a1a2e; color: #e0e0e0; }
body.dark-mode .section-header { background: #16213e; border-color: #0f3460; color: var(--primary-light); }
body.dark-mode .chapter-content { color: #e0e0e0; }
body.dark-mode .chapter-item { color: #e0e0e0; border-color: #0f3460; }
body.dark-mode .chapter-item:hover { background: rgba(var(--primary-rgb), 0.15); color: var(--primary-light); }
body.dark-mode a { color: var(--primary-light); }
body.dark-mode .text-muted { color: #888 !important; }
body.dark-mode .sidebar-card { border-color: #0f3460; }
body.dark-mode .sidebar-card .sidebar-header { background: #0f3460; border-bottom-color: var(--primary-dark); color: var(--primary-light); }
body.dark-mode .sidebar-card .sidebar-body { background: #16213e; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .chapter-content { font-size: 15px; line-height: 1.8; }
    .container { padding-left: 8px; padding-right: 8px; }
    .novel-cover-wrapper { width: 70px; height: 100px; }
    .novel-cover-img { width: 70px; height: 100px; }
    .novel-cover-placeholder { width: 70px; height: 100px; }
    .cover-grid-item { width: 90px; }
    .cover-grid-item img { width: 90px; height: 130px; }
    .navbar .nav-link { padding: 10px 10px !important; font-size: 13px; }
}

/* ==================== 聊天组件 ==================== */
#chat-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.4);
    z-index: 9998;
    transition: all 0.3s;
    user-select: none;
}

#chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.5);
}

#chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.25s, transform 0.25s;
}

#chat-window.chat-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

#chat-window.chat-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.chat-title { font-size: 15px; font-weight: 600; }
.chat-status { font-size: 11px; opacity: 0.85; }
.chat-status i { font-size: 8px; margin-right: 3px; }
.chat-header-actions { display: flex; gap: 6px; }

.chat-action-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.chat-action-btn:hover { background: rgba(255,255,255,0.3); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg);
}

.chat-msg {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.chat-msg.user { justify-content: flex-end; }

.chat-msg-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 8px;
}

.chat-msg-avatar.user {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    margin-right: 0;
    margin-left: 8px;
}

.chat-msg-bubble {
    max-width: 260px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

.chat-msg.bot .chat-msg-bubble {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-top-left-radius: 4px;
}

.chat-msg.user .chat-msg-bubble {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-top-right-radius: 4px;
}

.chat-quick-actions {
    padding: 6px 10px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.quick-btn {
    border: 1px solid var(--primary-light);
    background: var(--bg);
    color: var(--primary);
    border-radius: 14px;
    padding: 3px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    gap: 8px;
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

#chat-input:focus { border-color: var(--primary); }

.chat-send-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover { transform: scale(1.1); }

.typing-dots span {
    animation: typingBlink 1.4s infinite;
    font-size: 24px;
    font-weight: bold;
    color: #999;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    #chat-window {
        width: calc(100vw - 16px);
        height: calc(100vh - 140px);
        right: 8px;
        bottom: 80px;
    }
    #chat-toggle {
        width: 48px; height: 48px;
        bottom: 16px; right: 16px;
        font-size: 20px;
    }
}

/* ==================== 主题切换器 ==================== */
#theme-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
}

#theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

#theme-panel {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-panel-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}

.theme-panel-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.theme-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.theme-close-btn:hover {
    opacity: 1;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.theme-option:hover {
    background: var(--bg);
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.theme-option span {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}

.theme-option.active span {
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    #theme-toggle {
        width: 42px;
        height: 42px;
        bottom: 70px;
        right: 12px;
        font-size: 18px;
    }
    #theme-panel {
        width: 200px;
        right: 12px;
        bottom: 120px;
    }
    .theme-preview {
        width: 40px;
        height: 40px;
    }
}

/* ==================== 排行榜页面 ==================== */
.ranking-banner {
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.1), rgba(253,121,168,0.1));
    border-radius: var(--radius);
    padding: 20px;
    color: var(--primary);
}
.ranking-banner h4 { font-weight: bold; }
.ranking-banner p { font-size: 13px; color: var(--text-light); }

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.ranking-item:hover {
    background: linear-gradient(90deg, rgba(var(--primary-rgb),0.04), transparent);
}
.ranking-item:last-child { border-bottom: none; }
.ranking-item .rank-num { margin-right: 12px; }

.ranking-cover { width: 60px; height: 80px; }
.ranking-cover img {
    width: 60px; height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}
.ranking-cover-placeholder {
    width: 60px; height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem;
}
.ranking-title {
    font-size: 14px; font-weight: 600;
    color: var(--primary);
    display: block;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 400px;
}
.ranking-title:hover { color: var(--primary-dark); }
.ranking-title-anime {
    font-size: 14px; font-weight: 600;
    color: var(--accent-dark);
    display: block;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 400px;
}
.ranking-title-anime:hover { color: #c0392b; }
.ranking-meta {
    font-size: 12px; color: var(--text-light); margin-top: 4px;
}

/* ==================== 番剧时间表 ==================== */
.timetable-banner {
    background: linear-gradient(135deg, rgba(0,206,201,0.1), rgba(var(--primary-rgb),0.1));
    border-radius: var(--radius);
    padding: 20px;
    color: var(--cyan);
}
.timetable-day {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--bg-card);
}
.timetable-day-header {
    background: linear-gradient(135deg, #f8f9fe, #eee8ff);
    padding: 10px 16px;
    font-weight: bold;
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    font-size: 14px;
}
.timetable-day-header.today {
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.15), rgba(253,121,168,0.1));
    border-bottom-color: var(--accent);
}
.timetable-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.timetable-item:hover {
    background: linear-gradient(90deg, rgba(var(--primary-rgb),0.03), transparent);
}
.timetable-item:last-child { border-bottom: none; }
.timetable-cover {
    width: 50px; height: 68px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    margin-right: 12px;
}
.timetable-cover-placeholder {
    width: 50px; height: 68px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 12px;
}

/* ==================== 标签云 ==================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    color: var(--primary);
    background: var(--bg-card);
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
}
.tag-pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.2);
}
.tag-pill .tag-count {
    background: rgba(var(--primary-rgb),0.1);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    margin-left: 6px;
}
.tag-pill:hover .tag-count {
    background: rgba(255,255,255,0.2);
}

/* ==================== 角色百科 ==================== */
.character-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.3s;
}
.character-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.character-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.character-img-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 3rem;
}
.character-info {
    padding: 12px;
}
.character-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}
.character-anime {
    font-size: 11px;
    color: var(--text-light);
}

/* ==================== 壁纸区 ==================== */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.wallpaper-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.3s;
    cursor: pointer;
}
.wallpaper-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.wallpaper-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.wallpaper-card .wallpaper-info {
    padding: 8px 12px;
    font-size: 12px;
}

/* ==================== 用户主页 ==================== */
.profile-banner {
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
    border-radius: var(--radius);
    padding: 30px;
    color: white;
    margin-bottom: 20px;
}
.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    border: 3px solid rgba(255,255,255,0.4);
    overflow: hidden;
}
.profile-avatar-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}
.profile-stat {
    text-align: center;
}
.profile-stat-num {
    font-size: 1.5rem;
    font-weight: bold;
}
.profile-stat-label {
    font-size: 12px;
    opacity: 0.8;
}
.profile-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.profile-tab-btn:hover { color: var(--primary); }
.profile-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* 头像上传区域 */
.avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #333);
}
.avatar-upload-preview {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border: 2px solid var(--primary, #6c5ce7);
    flex-shrink: 0;
}
.avatar-preview-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.avatar-preview-icon {
    font-size: 1.8rem;
    color: var(--primary, #6c5ce7);
}
.avatar-upload-btn-wrapper {
    flex: 1;
}

/* 导航栏头像 */
.nav-avatar-wrapper {
    display: inline-flex;
    width: 24px; height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 6px;
    vertical-align: middle;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}
.nav-avatar {
    width: 100%; height: 100%;
    object-fit: cover;
}
.nav-avatar-icon {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}

/* ==================== 阅读历史 ==================== */
.history-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.history-item:hover {
    background: var(--bg);
}
.history-item:last-child {
    border-bottom: none;
}
.history-cover {
    width: 60px; height: 80px;
    flex-shrink: 0;
}
.history-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.history-cover-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.stat-label {
    color: var(--text-light);
    font-size: 13px;
}
.stat-value {
    font-weight: bold;
    color: var(--primary);
    font-size: 16px;
}

/* ==================== 每日推荐 ==================== */
.section-daily {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: white !important;
    border-bottom-color: transparent !important;
}
.section-daily::before {
    background: rgba(255,255,255,0.3);
}
.daily-subtitle {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 8px;
}
.daily-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.daily-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
}
.daily-cover {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}
.daily-cover-placeholder {
    width: 50px;
    height: 70px;
    background: var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}
.daily-type {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
}
.novel-type { color: var(--primary); }
.anime-type { color: var(--accent-dark); }
.daily-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.daily-title:hover {
    color: var(--primary);
}
.daily-meta {
    font-size: 11px;
    color: var(--text-light);
}

/* ==================== 美化增强 ==================== */

/* 卡片悬浮动画 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-2px);
}

/* 封面网格项增强 */
.cover-grid-item {
    transition: transform 0.3s ease;
}
.cover-grid-item:hover {
    transform: translateY(-4px);
}
.cover-grid-item img {
    transition: all 0.3s ease;
}
.cover-grid-item:hover img {
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary-light);
}

/* 封面光晕效果 */
.cover-grid-item:hover .novel-cover-placeholder,
.cover-grid-item:hover .novel-detail-cover-placeholder {
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
}

/* 列表项悬浮增强 */
.novel-list-item {
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}
.novel-list-item:hover {
    border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.04), transparent);
    padding-left: 20px;
}

/* 区块标题装饰增强 */
.section-header {
    position: relative;
}
.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 0 4px 4px 0;
}
.section-header span {
    padding-left: 8px;
}

/* 搜索栏增强 */
.search-banner {
    position: relative;
    overflow: hidden;
}
.search-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.search-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.search-banner-form {
    position: relative;
    z-index: 1;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 150px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.container.mt-4 > .row > div {
    animation: fadeInUp 0.5s ease forwards;
}
.container.mt-4 > .row > div:nth-child(1) { animation-delay: 0.1s; }
.container.mt-4 > .row > div:nth-child(2) { animation-delay: 0.2s; }
.container.mt-4 > .row > div:nth-child(3) { animation-delay: 0.3s; }

/* 侧边栏卡片增强 */
.sidebar-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.12);
}

/* 排行榜列表增强 */
.rank-list li {
    position: relative;
}
.rank-list li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    transition: width 0.3s ease;
}
.rank-list li:hover::after {
    width: 100%;
}

/* 按钮增强 */
.btn-primary-custom {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}
.btn-primary-custom:hover::before {
    width: 200px;
    height: 200px;
}

/* 分类标签增强 */
.category-tag {
    position: relative;
    overflow: hidden;
}
.category-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}
.category-tag:hover::before {
    left: 100%;
}

/* 页脚增强 */
.site-footer {
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--cyan), var(--primary));
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
}
@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 130px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .container.mt-4 > .row > div {
        animation: none;
    }
    .hero { padding: 32px 16px; }
    .hero-title { font-size: 1.8rem; }
    .hero-search { flex-direction: column; }
    .hero-tags { gap: 8px; }
}

/* ==================== Hero 主视觉 ==================== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 48px 24px;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 40%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    margin-bottom: 0;
}
.hero-sub {
    opacity: 0.9;
    margin: 8px 0 20px;
    font-size: 14px;
}
.hero-search {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    gap: 8px;
}
.hero-input {
    flex: 1;
    border: none;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    background: rgba(255,255,255,0.95);
    color: var(--text);
}
.hero-input::placeholder { color: #999; }
.hero-btn {
    border: none;
    border-radius: 24px;
    padding: 12px 22px;
    font-weight: 600;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-tags {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-tag {
    color: #fff;
    background: rgba(255,255,255,0.18);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.2s;
    text-decoration: none;
}
.hero-tag:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
}

/* ==================== 封面网格响应式 ==================== */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
    padding: 16px;
}

/* ==================== P2 优化增强 ==================== */

/* 图片懒加载防抖动 */
.cover-grid-item img,
.novel-cover-img,
.novel-detail-cover {
    aspect-ratio: 3/4;
}

/* 动画健壮性 - 基线opacity:1 */
.container.mt-4 > .row > div {
    opacity: 1;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 排版节奏 */
body {
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
