/* 知鱼漫画网站自定义样式 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    font-size: 14px;
    line-height: 1.4;
}

/* 统一标题大小 */
h1 { font-size: 1.6rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* 统一段落文字 */
p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* 容器优化 */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* 行间距优化 */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* 表单元素优化 */
.form-control {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

.form-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

/* 导航栏样式 */
/* .navbar-brand {
    font-weight: bold;
    color: #007bff !important;
    font-size: 1.5rem;
} */

/* .navbar-nav .nav-link {
    font-weight: 500;
    color: #495057;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff;
} */

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 0.75rem;
}

.card-header {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

/* 漫画卡片样式 */
.manga-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.manga-card:hover {
    transform: translateY(-5px);
}

/* 可点击的漫画图片和标题样式 */
.manga-card a {
    transition: opacity 0.3s ease;
}

.manga-card a:hover {
    opacity: 0.8;
}

.manga-card .manga-title {
    color: #333;
    transition: color 0.3s ease;
}

.manga-card a:hover .manga-title {
    color: #007bff;
}

.manga-cover {
    height: 180px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.manga-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.manga-author {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.manga-stats {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.2;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

/* 表单样式 */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 轮播图样式 */
.carousel-item img {
    border-radius: 8px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
}

.footer h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px 20px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #007bff;
}

/* 错误和成功消息 */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* 章节列表样式 */
.chapter-item {
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    transition: background-color 0.3s ease;
}

.chapter-item:hover {
    background-color: #f8f9fa;
}

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

.chapter-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.chapter-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 评论样式 */
.comment-item {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 0;
}

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

.comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.comment-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 8px;
}

.comment-time {
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-rating {
    color: #ffc107;
}

/* 阅读器样式 */
.reader-container {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.reader-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.reader-controls {
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-top: 1px solid #e9ecef;
}

.reader-nav {
    max-height: 400px;
    overflow-y: auto;
}

.reader-nav .btn {
    margin-bottom: 8px;
    text-align: left;
    white-space: normal;
    height: auto;
    padding: 8px 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .manga-cover {
        height: 150px;
    }
    
    .manga-title {
        font-size: 0.875rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .footer {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .manga-cover {
        height: 120px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 徽章样式 */
.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 分页样式 */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    color: #007bff;
    border-color: #dee2e6;
    border-radius: 6px;
    margin: 0 2px;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 搜索框样式 */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-right: 40px;
}

.search-box .search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

/* 用户菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 2px;
}

.tag-primary {
    background-color: #007bff;
    color: #fff;
}

.tag-success {
    background-color: #28a745;
    color: #fff;
}

.tag-warning {
    background-color: #ffc107;
    color: #212529;
}

.tag-danger {
    background-color: #dc3545;
    color: #fff;
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #007bff;
    border-radius: 4px;
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

/* 警告框样式 */
.alert {
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-primary {
    background-color: #cce7ff;
    color: #004085;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 表格样式 */
.table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table td {
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* 列表组样式 */
.list-group-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.sidebar .list-group-item {
    border: none;
    padding: 8px 0;
    margin-bottom: 4px;
}

.sidebar .list-group-item:hover {
    background-color: transparent;
    transform: none;
    color: #007bff;
}

/* 统计卡片样式 */
.stat-card {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* 自定义滚动条 */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}



