/* 移动端导航样式 */


.footer{
    font-size: 13px;
    color: #999;
    text-align: center;
}


body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
}
.header {
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.site-title {
    margin: 0;
    font-size: 20px;
}

.user-nav {
    display: flex;
    align-items: center;
}

.user-nav li {
    list-style: none;
    margin-left: 15px;
}

.user-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.user-nav a:hover {
    color: #1890ff;
}
.site-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px;
    text-align: center;
}
.search-box {
    display: flex;
    margin: 10px 0;
}
.search-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
}
.search-btn {
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
}
.nav-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
}
.nav-item {
    color: #666;
    text-decoration: none;
}
.nav-item.active {
    color: #007bff;
    font-weight: bold;
}
.category-section {
    margin: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.category-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}
.category-more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}
.novel-list {
    padding: 0 15px;
}
.novel-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.novel-item:last-child {
    border-bottom: none;
}

.novel-info {
    flex: 1;
}
.novel-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px;
    color: #333;
    text-decoration: none;
}
.novel-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.novel-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}




/* 分类侧边栏样式 */
.category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.category-overlay.active {
    display: block;
}

.category-sidebar {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.category-sidebar.active {
    left: 0;
}

.category-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.category-list {
    padding: 15px;
}

.category-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.category-item:hover {
    background: #f5f5f5;
}



/* 书架页面样式 */
.novel-list {
    padding: 10px;
}

.novel-item {
    display: flex;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}



.novel-info {
    flex: 1;
}

.novel-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.novel-title a {
    color: #333;
    text-decoration: none;
}

.novel-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.novel-meta a {
    color: #666;
    text-decoration: none;
}

.novel-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;  
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-chapter {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.latest-chapter a {
    color: #1890ff;
    text-decoration: none;
}

.action-buttons {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.continue-read, .remove-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.continue-read {
    background: #1890ff;
    color: #fff;
}

.remove-btn {
    background: #f5f5f5;
    color: #ff4444;
}
.novel-item {
    display: flex;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}



.novel-info {
    flex: 1;
}

.novel-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.novel-title a {
    color: #333;
    text-decoration: none;
}

.novel-author, .novel-update, .novel-status {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.novel-author a, .novel-update a {
    color: #666;
    text-decoration: none;
}

.page-nav {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.page-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.page-btn:hover {
    background: #f5f5f5;
}

.novel-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.novel-title a {
    color: #333;
    text-decoration: none;
}

.novel-author {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.novel-update {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}



.page-title {
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    background: #fff;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.novel-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.novel-title a {
    color: #333;
    text-decoration: none;
}

.novel-author {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.novel-push-time {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.novel-update {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}


.page-title {
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    background: #fff;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}


/* 面包屑导航样式 */
.breadcrumb {
    background: #fff;
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb .separator {
    color: #999;
    margin: 0 8px;
}

/* 确保横向滚动时不显示滚动条 */
.breadcrumb::-webkit-scrollbar {
    display: none;
}


/* 排行榜侧边栏样式 */
.rank-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.rank-overlay.active {
    display: block;
}

.rank-sidebar {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.rank-sidebar.active {
    left: 0;
}

.rank-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-header h3 {
    margin: 0;
    font-size: 16px;
}

.rank-list {
    padding: 15px;
}

.rank-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.rank-item:hover {
    background: #f5f5f5;
}







/* 小说详情页样式 */
.novel-detail {
    padding: 15px;
    background: #fff;
}

.novel-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

/* 小说封面通用样式 */
.novel-cover {
    position: relative;
    
    border-radius: 4px;
    overflow: hidden;
    padding: 12px;
}

.novel-cover img {
    border-radius: 5%;
    box-shadow: -1px 1px 5px 0 #666;
    transition-duration: .5s;
    object-fit: cover;
    width: 120px;
    height: 150px;
}

.novel-cover .status-icon {
    top: 5px;
    position: absolute;
    display: block;
    right: 6px;
    width: 88px;
    height: 88px;
    background: url('/static/images/all.gif') no-repeat;
}

.novel-cover .status-icon.completed {
    background-position: 0 -206px;  /* 已完结图标位置 */
}

.novel-cover .status-icon.ongoing {
    background-position: 0 -294px;  /* 连载中图标位置 */
}

/* 移除之前的 status-tag 相关样式 */
.status-tag {
    display: none;
}

.novel-info {
    flex: 1;
}

.novel-info h1 {
    font-size: 20px;
    margin: 0 0 12px;
    color: #333;
}

.meta-info {
    font-size: 14px;
    color: #666;
}

.meta-info p {
    margin: 8px 0;
}

.meta-info span {
    color: #999;
    margin-right: 5px;
}

.meta-info a {
    color: #1890ff;
    text-decoration: none;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-buttons a {
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.shelf-btn {
    background: #1890ff;
    color: #fff;
}

.vote-btn {
    background: #52c41a;
    color: #fff;
}



.novel-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #999;
    font-size: 14px;
}

.novel-tags span {
    color: #999;
    font-size: 14px;
}

.novel-tags a{
    color: #ef8b33;
}

.tag-item {
    padding: 4px 10px;
    background: #e6f7ff;
    color: #1890ff;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
}

.recommend-section {
    margin-top: 20px;
}

.recommend-box {
    margin-bottom: 20px;
}

.recommend-box h3 {
    font-size: 16px;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.recommend-box h3 a {
    color: #333;
    text-decoration: none;
}

.recommend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recommend-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.recommend-list a:hover {
    color: #1890ff;
}


/* 用户中心侧边栏样式 */
.user-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.user-overlay.active {
    display: block;
}

.user-sidebar {
    position: fixed;
    top: 0;
    right: -80%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.user-sidebar.active {
    right: 0;
}

.user-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-header h3 {
    margin: 0;
    font-size: 16px;
}

.user-header .close-btn {
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.user-menu {
    padding: 15px;
}

.user-menu .menu-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.user-menu .menu-item:hover {
    background: #f5f5f5;
}

.user-menu .logout {
    color: #ff4444;
}

/* 章节列表显示样式 */
.chapter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.chapter-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 80%;
    background: #fff;
    z-index: 999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.chapter-sidebar.active {
    left: 0;
}

.chapter-overlay.active {
    display: block;
}

.chapter-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chapter-group {
    border-bottom: 1px solid #eee;
}

.group-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-title {
    font-weight: bold;
    color: #666;
}

.group-header:hover {
    background: #e8e8e8;
}

.group-toggle {
    transition: transform 0.3s;
    transform: rotate(-90deg);
    color: #999;
}

.group-toggle.expanded {
    transform: rotate(0);
}

.group-content {
    display: none;
}

.chapter-item {
    display: block;
    padding: 12px 15px 12px 30px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    position: relative;
}

.chapter-item.current {
    background: #f5f5f5;
    color: #ff6b81;
}

.reading-mark {
    position: absolute;
    right: 15px;
    color: #ff6b81;
    font-size: 12px;
}

/* 标签侧边栏样式 */
.tag-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.tag-overlay.active {
    display: block;
}

.tag-sidebar {
    position: fixed;
    top: 0;
    left: -300px; /* 改为从左边滑出 */
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: left 0.3s ease; /* 调整过渡效果 */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* 添加滚动条 */
}

.tag-sidebar.active {
    left: 0; /* 改为向右滑动到0位置 */
}

.tag-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-header h3 {
    margin: 0;
}

.tag-header .close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.tag-list {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 3px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.tag-item:hover {
    background: darkcyan;
    color: #fff;
    text-decoration: none;
}


#product {
	width: 980px;
	margin: 10px auto;
	float: none;
	color: #999;
}

#product h2 {
	width: 968px;
}

#product ul {
	border-bottom: none;
}

.prodlist {
	width: 980px;
	border: 1px solid darkcyan;
	border-top: none;
	height: 178px;
	float: left;
}

.prodlist ol {
	border-top: 1px dashed #C0C0C0;
	margin: 0 15px;
	padding-top: 5px;
	float: left;
}

.prodlist ol li {
	float: left;
	width: 235px;
	overflow: hidden;
	height: 28px;
	line-height: 28px;
	*height: 28px;
	*line-height: 28px;
	font-size: 13px;
}

.prodlist ol span {
	color: #888;
}

.prodlist ol a {
	margin-left: 5px;
}

.prodlist ol a:hover {
	color: #3993d1;
}