/* 自定义样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}
body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
}
a{
    color: #333;
    text-decoration: none;
}
.meta a{
    color: #666;
}
.container {
    max-width: 1200px;
}
.breadcrumb{
    background-color: #fff;
}
/* 顶部导航 */
.top-nav {
    background-color: #fff;
    padding: 10px 0;
    position: relative;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #c62f2f;
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
}
.nav-links a {
    margin-left: 20px;
    color: #333;
    text-decoration: none;
}
.nav-links a:hover {
    color: #c62f2f;
}
/* 搜索框 */
.search-box {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}
.search-form {
    position: relative;
}
.search-form input {
    width: 100%;
    height: 40px;
    padding: 0 120px 0 15px;
    border: 2px solid #c62f2f;
    border-radius: 20px;
    font-size: 16px;
}
.search-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 100px;
    background-color: #c62f2f;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    font-size: 16px;
    cursor: pointer;
}
/* 分类导航 */
#mobile-category-nav {
    display: none;
}
.category-nav {
    background-color: #fff;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.category-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.category-nav li {
    margin: 5px 10px 5px 0;
}
.category-nav a {
    display: block;
    padding: 5px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    background-color: #f5f5f5;
}
.category-nav a:hover,
.category-nav a.active {
    background-color: #c62f2f;
    color: #fff;
}
/* 分类切换图标 */
.category-toggle {
    display: none;
    font-size: 20px;
    text-decoration: none;
    color: #333;
}
/* 分类导航下拉样式 */
.category-nav.collapsed {
    display: none;
}
/* 内容区块 */
.content-block {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #c62f2f;
    margin-bottom: 15px;
}
.block-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #c62f2f;
}
.block-title a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}
/* 小说列表 */
.novel-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.novel-item {
    width: 20%;
    padding: 0 10px;
    margin-bottom: 15px;
}
.novel-item a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s;
}
.novel-item a:hover {
    color: #c62f2f;
    border-color: #c62f2f;
}
.novel-item .title {
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.novel-item .author {
    font-size: 12px;
    color: #666;
}
/* 热门推荐列表 */
.hot-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.hot-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}
.hot-item:last-child {
    border-bottom: none;
}
.hot-item .rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #f5f5f5;
    color: #666;
    font-weight: bold;
    margin-right: 10px;
    border-radius: 4px;
}
.hot-item:nth-child(1) .rank,
.hot-item:nth-child(2) .rank,
.hot-item:nth-child(3) .rank {
    background-color: #c62f2f;
    color: #fff;
}
.hot-item .info {
    flex: 1;
}
.hot-item .title {
    font-weight: bold;
    margin-bottom: 3px;
}
.hot-item .meta {
    font-size: 12px;
    color: #666;
}
/* 最新更新列表 */
.update-container {
    padding: 0;
    margin: 0;
}
.update-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.update-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.update-item .info {
    flex: 1;
}
.update-item .title {
    font-weight: bold;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.update-item .meta {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.update-item .time {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    white-space: nowrap;
}
/* 页脚 */
footer {
    background-color: #333;
    color: #999;
    padding: 20px 0;
    margin-top: 30px;
}
.footer-content {
    text-align: center;
    font-size: 14px;
}
.footer-content p {
    margin: 5px 0;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }
    .nav-links a {
        margin-left: 10px;
        font-size: 14px;
    }
    .search-form input {
        height: 36px;
        font-size: 14px;
    }
    .search-form button {
        height: 36px;
        width: 80px;
        font-size: 14px;
    }
    .novel-item {
        width: 33.333%;
    }
}
@media (max-width: 480px) {
    .container{padding: 0 10px;}
    .novel-item {
        width: 50%;
    }
    .update-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .update-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .update-item .meta {
        margin-bottom: 5px;
    }
    .update-item .time {
        margin-left: 0;
    }
    .category-toggle {
        display: inline-block;
        margin-left: 10px;
        font-size: 17px;
    }
    .category-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .category-nav.active {
        display: block;
    }
    .category-nav ul {
        flex-direction: column;
        padding: 10px;
    }
    .category-nav li {
        margin: 5px 0;
    }
    .category-nav a {
        border-radius: 4px;
    }
    .search-box{margin-bottom: 10px;}
    /* 移动端分类导航下拉菜单 - 紧挨着 ☰ 图标显示 */
    #mobile-category-nav {
        display: none;
        position: absolute;
        right: 0;
        width: auto;
        min-width: 150px;
        z-index: 1000;
        background-color: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        padding: 5px 0;
    }
    /* 移动端分类导航列表样式 */
    #mobile-category-nav ul {
        display: flex;
        flex-direction: column;
        padding: 0 15px;
        margin: 0;
        list-style: none;
    }
    #mobile-category-nav li {
        margin: 5px 0;
    }
    #mobile-category-nav a {
        display: block;
        padding: 8px 15px;
        color: #333;
        text-decoration: none;
        border-radius: 4px;
        background-color: #f5f5f5;
        text-align: center;
    }
}

/* 小说列表 */
.novellist {
	padding: 0;
	margin: 0;
	list-style: none;
}
.novelitem {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px dashed #e0e0e0;
}
.novelitem:last-child {
	border-bottom: none;
}
.novelitem .info {
	flex: 1;
}
.novelitem .title {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 8px;
}
.novelitem .title a {
	color: #333;
	text-decoration: none;
}
.novelitem .title a:hover {
	color: #c62f2f;
}
.novelitem .meta {
	margin-bottom: 8px;
}
.novelitem .desc {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	margin-top: 8px;
	font-size: 14px;
	color: #666;
}
.novelitem .meta .author, .novelitem .meta .date {
	color: #999;
}
.novelitem .meta .date {
	margin-left: 10px;
    font-size: .8rem;
}
.novelitem .meta .category a{
	color: #666;
	text-decoration: none;
	padding: 2px 8px;
	background-color: #f5f5f5;
	border-radius: 10px;
	font-size: 12px;
}
.novelitem .meta .category a:hover {
	background-color: #c62f2f;
	color: #fff;
}
.novelitem .meta .status {
	color: #666;
	font-size: 12px;
}
.novelitem .update-info {
	text-align: right;
	color: #999;
	font-size: 14px;
	margin-left: 20px;
	min-width: 200px;
}
.novelitem .update-info .chapter a {
	color: #999;
	text-decoration: none;
	display: block;
	margin-bottom: 5px;
}
.novelitem .update-info .chapter a:hover {
	color: #c62f2f;
}
.novelitem .update-info .time {
	font-size: 12px;
	color: #bbb;
}
/* 分页 */
.pagination {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}
/* 小说信息区 */
.novel-info {
    display: flex;
    margin-bottom: 30px;
}
.novel-meta {
    flex: 1;
}
.novel-meta h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}
.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}
.meta-info .author {
    color: #666;
}
.meta-info .author a{
	
	text-decoration: none;
}
.meta-info .category a, .meta-info .daxiao {
    color: #666;
    text-decoration: none;
    padding: 2px 8px;
    background-color: #f5f5f5;
    border-radius: 10px;
    font-size: 14px;
}
.meta-info .category a:hover {
    background-color: #c62f2f;
    color: #fff;
}
.meta-info .status {
    color: #c62f2f;
}
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.action-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}
.btn-download {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}
.btn-download:hover {
    background-color: #e0e0e0;
    color: #333;
}
.btn-bookmark {
    background-color: #fff;
    color: #666;
    border: 1px solid #ddd;
}
.btn-bookmark:hover {
    background-color: #f5f5f5;
    color: #333;
}
/* 小说简介 */
.intro-section {
    margin-bottom: 30px;
}
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #c62f2f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c62f2f;
}
.intro-content {
    line-height: 1.8;
    color: #333;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 16px;
}

/* 表单容器 */
.form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.form-container h2 {
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}
/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
/* 验证码区域 */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* 提交按钮 */
.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}
.footer-content a{
	color: #999;
}
/* 相关搜索 */
.related-search-section {
    margin-bottom: 30px;
}
.related-search-content {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}
.related-search-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.related-search-list li {
    margin-bottom: 5px;
}
.related-search-list li {
    display: block;
    padding: 8px 15px;
    color: #333;
    background-color: #fff;
    border-radius: 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    font-size: 14px;
    cursor: default;
}
.related-search-list li:hover {
    background-color: #c62f2f;
    color: #fff;
    border-color: #c62f2f;
}