@charset "utf-8";

/* ========================================
   基础重置和全局样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:after, :before {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    line-height: 1.6;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    color: #333;
    font-size: 14px;
    margin: 0 auto;
    width: 1200px;
    min-width: 1200px;
    overflow-x: hidden;
}

/* ========================================
   布局系统
   ======================================== */
.container {
    position: relative;
    margin: 0 auto;
    width: 1200px;
    min-width: 1200px;
}

.row {
    position: relative;
    margin: 15px auto 25px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.clearfix:after, .clearfix:before, 
.container:after, .container:before, 
.row:after, .row:before {
    display: table;
    content: " ";
    clear: both;
}

.fix {
    zoom: 1;
}

.fix:after, .fix:before {
    display: block;
    content: "clear";
    height: 0;
    clear: both;
    overflow: hidden;
    visibility: hidden;
}

/* ========================================
   通用工具类
   ======================================== */
.none { display: none; }
.z, .fl { float: left; }
.y, .fr { float: right; }

ol, ul { list-style: none; }

/* ========================================
   字体和链接样式
   ======================================== */
h1 { font-size: 36px; font-weight: 600; }
h2 { font-size: 28px; font-weight: 500; }
h3 { font-size: 22px; font-weight: 500; }
h4 { font-size: 18px; font-weight: 500; }
h5 { font-size: 16px; font-weight: 500; }
h6 { font-size: 14px; font-weight: 500; }

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-bottom: 10px;
}

a, button {
    color: #3498db;
    text-decoration: none;
    outline: 0;
    transition: all 0.3s ease;
}

a:hover {
    color: #e74c3c;
    text-decoration: none;
}

button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

button:hover, input.btn {
    cursor: pointer;
}

a:active, a:focus, a:hover {
    text-decoration: none;
}

/* ========================================
   表单元素
   ======================================== */
.input-text {
    padding: 8px 12px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.input-text:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ========================================
   顶部栏样式
   ======================================== */
.topbar {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-bottom: 3px solid #3498db;
    color: #ecf0f1;
    height: 35px;
    width: 100%;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.topbar-con {
    line-height: 32px;
    text-indent: 16px;
    vertical-align: middle;
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.topbar a {
    color: #ecf0f1;
    padding: 0 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.topbar a:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #fff;
}

.topbar-sethome, .topbar-addfavorite {
    float: left;
    margin-right: 20px;
}

.topbar-right {
    float: right;
    font-size: 13px;
}

/* ========================================
   头部样式
   ======================================== */
.header {
    height: 80px;
    width: 1200px;
    margin: auto;
    position: relative;
    padding: 0 15px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header .logo a {
    font-family: "STKaiti", "楷体", serif;
    display: block;
    float: left;
    height: 80px;
    width: 350px;
    line-height: 80px;
    color: #2c3e50;
    font-size: 42px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: bold;
    transition: all 0.3s ease;
}

.header .logo a:hover {
    color: #3498db;
    transform: scale(1.02);
}

/* ========================================
   搜索表单样式
   ======================================== */
.search-form {
    float: left;
    width: 550px;
    margin: 22px auto auto 40px;
}

.search-form .input-key {
    border: 2px solid #bdc3c7;
    font: 16px/36px "Microsoft YaHei", Arial;
    height: 40px;
    width: 400px;
    padding: 0 15px;
    border-radius: 20px 0 0 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.search-form .input-key:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-form .btn-tosearch {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    cursor: pointer;
    font-size: 16px;
    height: 40px;
    width: 120px;
    border: 0 none;
    color: #fff;
    border-radius: 0 20px 20px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.search-form .btn-tosearch:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* ========================================
   导航栏样式
   ======================================== */
.nav {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    height: 50px;
    overflow: hidden;
    width: 1200px;
    margin: 15px auto;
    padding: 0 15px;
    box-sizing: border-box;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
}

.nav li {
    float: left;
    line-height: 50px;
}

.nav li a {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 0 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: block;
}

.nav li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   布局容器样式
   ======================================== */
.layout, .layout2 {
    background: #fff;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    float: left;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.layout:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.layout2 {
    border: 2px solid #3498db;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.row .layout-col1 { width: 29%; float: right; }
.row .layout-col2 { width: 70%; }
.row .layout-col3 { width: 100%; }

/* ========================================
   内容项目样式
   ======================================== */
.layout-col2 .item {
    width: 48%;
    padding: 15px;
    float: left;
    margin-right: 2%;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.layout-col2 .item:hover {
    background: rgba(52, 152, 219, 0.05);
}

.layout-col2 .item .image {
    width: 130px;
    max-height: 160px;
    overflow: hidden;
    float: left;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.layout-col2 .item .image img {
    background-color: #fff;
    border: 2px solid #ecf0f1;
    padding: 3px;
    width: 130px;
    height: 160px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.layout-col2 .item .image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.layout-col2 .item dl {
    float: right;
    width: 220px;
    padding: 0 15px;
}

.layout-col2 .item dl dt {
    border-bottom: 2px dotted #bdc3c7;
    font-size: 16px;
    font-weight: 600;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    color: #2c3e50;
}

.layout-col2 .item dl dt span {
    color: #7f8c8d;
    float: right;
    font-weight: 400;
    font-size: 12px;
}

.layout-col2 .item dl dd {
    line-height: 22px;
    overflow: hidden;
    text-indent: 2em;
    padding: 10px 0 0;
    color: #555;
}

/* ========================================
   三列布局样式
   ======================================== */
.layout-col3 .item {
    width: 32%;
    padding: 15px;
    float: left;
    margin-right: 2%;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.layout-col3 .item:hover {
    background: rgba(52, 152, 219, 0.05);
}

.layout-col3 .item .image {
    width: 130px;
    max-height: 160px;
    overflow: hidden;
    float: left;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.layout-col3 .item .image img {
    background-color: #fff;
    border: 2px solid #ecf0f1;
    padding: 3px;
    width: 130px;
    height: 160px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.layout-col3 .item dl {
    float: right;
    width: 220px;
    padding: 0 15px;
}

.layout-col3 .item dl dt {
    border-bottom: 2px dotted #bdc3c7;
    font-size: 16px;
    font-weight: 600;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    color: #2c3e50;
}

.layout-col3 .item dl dt span {
    color: #7f8c8d;
    float: right;
    font-weight: 400;
    font-size: 12px;
}

.layout-col3 .item dl dd {
    line-height: 22px;
    overflow: hidden;
    text-indent: 2em;
    padding: 10px 0 0;
    color: #555;
}

/* ========================================
   标题栏样式
   ======================================== */
.layout-tit {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-bottom: 3px solid #3498db;
    font-size: 18px;
    font-weight: 600;
    height: 45px;
    line-height: 45px;
    overflow: hidden;
    margin: 0;
    padding: 0 20px;
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.layout2 .layout-tit {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-bottom: 3px solid #2c3e50;
}

/* ========================================
   文本列表样式
   ======================================== */
.txt-list {
    padding: 10px 20px;
}

.txt-list li {
    border-bottom: 1px solid #ecf0f1;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    padding: 0 8px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.txt-list li:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
}

.txt-list li span {
    float: left;
}

.txt-list li a {
    color: #3498db;
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.txt-list li a:hover {
    color: #e74c3c;
}

.txt-list .s1 { width: 80px; }
.txt-list .s5 { float: right; }

.txt-list-row5 .s1 { width: 90px; }
.txt-list-row5 .s2 { width: 180px; }
.txt-list-row5 .s3 { 
    width: 300px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.txt-list-row5 .s4 { 
    color: #7f8c8d; 
    width: 100px; 
    text-align: right; 
}
.txt-list-row5 .s5 { 
    color: #7f8c8d; 
}

/* ========================================
   推荐框样式
   ======================================== */
.tp-box {
    width: 33.33%;
    float: left;
    border-right: 2px dotted #bdc3c7;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tp-box:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.tp-box:last-child {
    border-right: none;
}

.tp-box h2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #bdc3c7;
    font-size: 16px;
    font-weight: 600;
    padding-left: 15px;
    line-height: 35px;
    height: 35px;
    overflow: hidden;
    color: #2c3e50;
}

.tp-box .top {
    overflow: hidden;
    padding: 15px;
}

.tp-box .top .image {
    float: left;
    margin-right: 15px;
}

.tp-box .top .image img {
    width: 80px;
    height: 100px;
    border: 2px solid #ecf0f1;
    padding: 2px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tp-box .top dl {
    float: right;
    width: 200px;
}

.tp-box .top dl dt {
    height: 28px;
    line-height: 28px;
    overflow: hidden;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
}

.tp-box .top dl dd {
    line-height: 22px;
    height: 66px;
    overflow: hidden;
    color: #555;
    font-size: 13px;
}

.tp-box ul {
    padding: 15px;
    overflow: hidden;
}

.tp-box ul li {
    border-bottom: 1px solid #ecf0f1;
    color: #7f8c8d;
    height: 30px;
    line-height: 30px;
    font-size: 13px;
    overflow: hidden;
    float: left;
    width: 50%;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.tp-box ul li:hover {
    background: rgba(52, 152, 219, 0.05);
}

.tp-box ul li a {
    font-size: 13px;
    color: #3498db;
}

/* ========================================
   页脚样式
   ======================================== */
.pc-footer {
    border-top: 3px solid #3498db;
    text-align: center;
    width: 1200px;
    margin: 30px auto 0;
    line-height: 28px;
    padding: 25px 0;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

/* ========================================
   表格样式
   ======================================== */
.grid {
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    border: 2px solid #bdc3c7;
    border-collapse: collapse;
    padding: 5px;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.grid caption {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #fff;
    border: 2px solid #2c3e50;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 600;
    margin: auto;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

.grid td {
    background-color: #fff !important;
    border: 1px solid #ecf0f1;
    padding: 12px 15px;
    position: relative;
}

.grid .td-width {
    width: 25%;
}

.grid .select, .grid input {
    border: 2px solid #bdc3c7;
    font: 14px/32px "Microsoft YaHei", Arial;
    height: 36px;
    margin-right: 8px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
}

.grid .select, .grid .text {
    width: 80%;
}

.grid .select:focus, .grid input:focus {
    border-color: #3498db;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ========================================
   特殊样式类
   ======================================== */
.red { color: #e74c3c; font-weight: 600; }

/* ========================================
   详情页样式
   ======================================== */
.row-detail .layout-col1, 
.row-rank .layout-col1, 
.row-section .layout-col1 {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
    float: none;
    padding-bottom: 0;
    border: 2px solid #3498db;
}

.row-rank .mr0 {
    margin-right: 0;
}

.row-detail .layout-tit, 
.row-rank .layout-tit {
    border-bottom: 3px solid #3498db;
}

.tab-hd {
    float: right;
}

.tab-hd li {
    font-weight: 500;
    cursor: pointer;
    float: left;
    height: 35px;
    line-height: 35px;
    overflow: hidden;
    color: #7f8c8d;
    padding: 0 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab-hd li:hover {
    background: rgba(52, 152, 219, 0.1);
}

.tab-hd .active {
    color: #fff;
    background: #3498db;
}

.row-rank .txt-list li {
    border-bottom: 0 none;
}

.row-rank .txt-list .s1 {
    max-width: 30px;
    font-style: italic;
    color: #7f8c8d;
    font-family: "Consolas", "Monaco", monospace;
    font-weight: 600;
}

.row-rank .txt-list .s2 {
    width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-rank .txt-list .s5 {
    width: 40px;
    font-family: "Consolas", "Monaco", monospace;
    color: #7f8c8d;
    text-align: right;
    font-weight: 600;
}

/* ========================================
   历史表格样式
   ======================================== */
.history-table {
    width: 100%;
    margin: 25px auto;
    border: 3px solid #bdc3c7;
    background: #fff;
    text-align: left;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.history-table caption {
    margin: 0;
    text-align: left;
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    padding: 0 0 0 15px;
}

.history-table th {
    font-size: 15px;
    font-weight: 600;
    background: #f8f9fa;
    color: #2c3e50;
}

.history-table td, .history-table th {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

/* ========================================
   详情框样式
   ======================================== */
.detail-box .imgbox {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    float: left;
    width: 160px;
    margin: 15px;
    padding: 15px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-box .imgbox img {
    height: 180px;
    width: 130px;
    margin: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.detail-box .info {
    float: left;
    width: 800px;
    font-size: 15px;
    overflow: hidden;
    padding: 15px;
}

.detail-box .info .top {
    padding: 0 15px;
}

.detail-box h1 {
    font-family: "Microsoft YaHei", "黑体", serif;
    font-size: 32px;
    font-weight: 700;
    overflow: hidden;
    margin: 15px auto;
    color: #2c3e50;
}

.detail-box .info p {
    height: 30px;
    line-height: 30px;
    width: 380px;
    margin: 8px auto 8px 0;
    float: left;
    overflow: hidden;
    font-size: 15px;
    color: #555;
}

.detail-box .desc {
    overflow: hidden;
    line-height: 160%;
    border-top: 2px dashed #3498db;
    padding: 15px;
    font-size: 14px;
    height: 100px;
    line-height: 22px;
    color: #555;
    background: rgba(52, 152, 219, 0.02);
    border-radius: 0 0 8px 8px;
}

/* ========================================
   章节列表样式
   ======================================== */
.row-section .layout-tit {
    text-align: center;
    font-weight: 600;
    border-bottom-color: #bdc3c7;
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
}

.section-list h3 {
    display: block;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.section-list ul {
    overflow: hidden;
    padding: 10px;
}

.section-list li {
    width: 25%;
    padding-left: 15px;
    height: 42px;
    line-height: 42px;
    border-bottom: 1px dashed #ecf0f1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    float: left;
    box-sizing: border-box;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.section-list li:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
}

.section-list li a {
    color: #555;
    font-weight: 500;
}

.section-list li a:visited {
    color: #95a5a6;
}

.section-list li a:hover {
    color: #e74c3c;
}

/* ========================================
   阅读器样式
   ======================================== */
.reader-fun {
    float: right;
}

.reader-fun .select {
    width: 80px;
    outline: 0 none;
    vertical-align: middle;
    margin: -3px 6px 0 0;
    padding: 5px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
}

.reader-main {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.reader-main .title {
    padding: 25px 25px 15px;
    font: 28px/40px "Microsoft YaHei", "黑体", serif;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
}

.reader-main .section-opt {
    text-align: center;
    font-size: 15px;
    padding: 20px 0;
    border-bottom: 2px dashed #3498db;
}

.reader-main .m-bottom-opt {
    border-top: 2px dashed #3498db;
    border-bottom: 0 none;
    margin-top: 15px;
}

.reader-main .section-opt a {
    margin: 0 12px;
    color: #27ae60;
    padding: 8px 16px;
    border: 2px solid #27ae60;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.reader-main .section-opt a:hover {
    background: #27ae60;
    color: #fff;
    transform: translateY(-2px);
}

.reader-main .content {
    font-size: 18px;
    line-height: 200%;
    padding-top: 20px;
    width: 90%;
    margin: auto;
    text-align: justify;
    color: #333;
}

/* ========================================
   按钮样式
   ======================================== */
.btn-addbs {
    display: block;
    text-align: center;
    font-size: 20px;
    line-height: 40px;
    margin: 25px auto;
    color: #e74c3c;
    font-weight: 600;
    padding: 10px 30px;
    border: 2px solid #e74c3c;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-addbs:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

.posterror {
    text-align: center;
    font-size: 18px !important;
    line-height: 28px;
    margin-bottom: 25px;
    color: #e74c3c;
    font-weight: 500;
}

/* ========================================
   主题模式样式
   ======================================== */
.nightmode {
    background: #2c3e50;
}

.nightmode .reader-main {
    color: #ecf0f1;
    background: #34495e;
}

.nightmode .section-opt a {
    background-color: #3e4245;
    color: #ecf0f1;
    border: 2px solid #34495e;
}

.huyanmode {
    background: #e8f5e8;
}

.huyanmode .reader-main {
    color: #2d5016;
    background: #f0f8f0;
}

.huyanmode .section-opt a {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

/* ========================================
   分页样式
   ======================================== */
.pagination {
    width: auto;
    overflow: hidden;
    font-size: 14px;
    margin: 25px 0;
}

.pagination-mga {
    display: table;
    margin: 6px auto 15px;
}

.pagination li {
    width: auto;
    border: 2px solid #ecf0f1;
    border-left: none;
    background: #fff;
    float: left;
    transition: all 0.3s ease;
}

.pagination li:first-child {
    border-left: 2px solid #ecf0f1;
    border-radius: 6px 0 0 6px;
    cursor: default;
}

.pagination li:last-child {
    border-radius: 0 6px 6px 0;
}

.pagination .hd, .pagination a {
    display: inline;
    padding: 8px 15px;
    font-weight: 500;
}

.pagination .active a, .pagination a:hover {
    color: #fff;
    border-color: #3498db;
    background: #3498db;
}

.listpage {
    margin: 15px;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
}

.listpage span {
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.listpage .left {
    float: left;
    width: 25%;
}

.listpage .left a, .listpage .right a {
    display: inline-block;
    height: 40px;
    width: 90%;
    padding: 0 15px;
    border: 2px solid #3498db;
    border-radius: 20px;
    color: #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
}

.listpage .left a:hover, .listpage .right a:hover {
    background: #3498db;
    color: #fff;
}

.listpage .left a {
    float: left;
}

.listpage .right a {
    float: right;
}

.listpage .right {
    float: right;
    width: 25%;
}

.listpage .middle {
    width: 49%;
    border: 2px solid #bdc3c7;
    height: 36px;
    display: block;
    float: left;
    border-radius: 18px;
    background: #fff;
}

.listpage .middle em {
    display: inline-block;
    width: 80%;
    text-align: center;
    color: #7f8c8d;
    font-style: normal;
    float: left;
    line-height: 36px;
    height: 32px;
}

.listpage .middle a {
    display: inline-block;
    float: left;
    width: 19%;
    height: 36px;
    line-height: 36px;
    vertical-align: middle;
    color: #3498db;
    font-weight: 500;
}

.listpage .middle select {
    border: none;
    color: #7f8c8d;
    display: inline-block;
    float: left;
    font-style: normal;
    height: 32px;
    line-height: 32px;
    text-align: center;
    width: 100%;
    background: transparent;
}

.listpage .onclick {
    background: #3498db;
    color: #fff;
}

.listpage .before {
    background: #95a5a6;
    color: #fff;
}

/* ========================================
   索引容器样式
   ======================================== */
.index-container {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#indexselect {
    width: 49%;
    margin: 0 1rem;
    text-indent: 8px;
    border: none;
    border-bottom: 2px solid #3498db;
    background: #fff;
    outline: 0;
    padding: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#indexselect:focus {
    border-bottom-color: #2980b9;
}

.index-container-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-radius: 20px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    display: block;
    width: 25%;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.index-container-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-2px);
}

/* ========================================
   登录相关样式
   ======================================== */
.novel_login .login {
    line-height: 55px;
    background: #fff;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #ecf0f1;
    margin: 60px auto;
    width: 400px;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.novel_login .login h2 {
    font-size: 22px;
    text-align: center;
    height: 40px;
    line-height: 28px;
    border-bottom: 2px solid #ecf0f1;
    color: #2c3e50;
    letter-spacing: 0.5em;
    font-weight: 600;
    margin-bottom: 20px;
}

.novel_login .login a {
    height: 35px;
    line-height: 35px;
    color: #e74c3c;
    font-weight: 500;
}

.novel_login .login input[type="text"], 
.login input[type="password"] {
    width: 250px;
    padding: 0px;
    border: none;
    outline: medium;
    height: 35px;
    line-height: 35px;
    padding-left: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.novel_login .login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.novel_login .login_name, 
.login_pass, 
.login_email, 
.login_code {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.novel_login .login .l1, 
.login .l2 {
    float: left;
}

.novel_login .login .l1 {
    width: 90px;
    text-align: right;
    font-weight: 500;
    color: #2c3e50;
}

.novel_login .login .l2 {
    width: 100%;
    text-align: left;
    position: absolute;
    box-sizing: border-box;
    padding-left: 110px;
    right: 15px;
    overflow: hidden;
}

.novel_login .login_btn {
    text-align: center;
    margin: 0;
    overflow: hidden;
}

.novel_login .login_btn a {
    display: block;
    color: #3498db;
    border-radius: 25px;
    text-align: center;
    margin: 25px 80px;
    box-sizing: border-box;
    border: 2px solid #3498db;
    height: 45px;
    line-height: 45px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.novel_login .login_btn a.ok {
    color: #fff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.novel_login .login_btn a.ok:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-2px);
}

/* ========================================
   我的书架样式
   ======================================== */
.novel_mybook .txt-list-row5 .s1 { width: 130px; }
.novel_mybook .txt-list-row5 .s2 { width: 130px; }
.novel_mybook .txt-list-row5 .s4 { width: 300px; text-align: left; }
.novel_mybook .txt-list-row5 .s5 > a {
    display: inline-block;
    padding: 0 12px;
    margin: 0 8px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.novel_mybook .txt-list-row5 .s5 > a.xsdel {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.novel_mybook .txt-list-row5 .s5 > a:hover {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    transform: translateY(-1px);
}

/* ========================================
   临时书架样式
   ======================================== */
.novel_tmpbook .txt-list-row5 .s1 { width: 280px; }
.novel_tmpbook .txt-list-row5 .s2 { width: 160px; }
.novel_tmpbook .txt-list-row5 .s3 { width: 300px; text-align: left; }
.novel_tmpbook .txt-list-row5 .s5 { text-align: center; width: 300px; }
.novel_tmpbook .txt-list-row5 .s5 > a {
    display: inline-block;
    padding: 0 12px;
    margin: 0 8px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.novel_tmpbook .txt-list-row5 .s5 > a.xsdel {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.novel_tmpbook .txt-list-row5 .s5 > a.a3 {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.3);
}

.novel_tmpbook .txt-list-row5 .s5 > a:hover {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    transform: translateY(-1px);
}

/* ========================================
   标签新闻样式
   ======================================== */
.tag_news {
    height: 80px;
    padding: 10px;
}

.tag_news > a {
    padding: 0 8px;
    margin: 2px;
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    color: #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 28px;
}

.tag_news > a:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-1px);
}

/* ========================================
   排序导航样式
   ======================================== */
.sort_nav {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #3498db;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sort_nav > p {
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    border-bottom: 2px dashed #bdc3c7;
    padding: 0 8px;
    color: #3498db;
    font-weight: 600;
}

.sort_nav > p > a {
    padding: 0 12px;
    color: #555;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sort_nav > p > a.on {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.sort_nav > p > a:hover {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

/* ========================================
   其他功能样式
   ======================================== */
.btn-mulu {
    padding: 12px;
    display: block;
    width: 180px;
    text-align: center;
    margin: 15px auto;
    border-radius: 25px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-mulu:hover {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    transform: translateY(-2px);
}

.page_num {
    text-align: center;
    font-size: 15px;
    box-sizing: border-box;
    padding: 15px;
    width: 360px;
    margin: 0 auto;
}

.page_num select {
    padding: 0 12px;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    border: 2px solid #3498db;
    background: #fff;
    border-radius: 19px;
    margin: 0 12px;
    width: 150px;
    cursor: pointer;
    font-weight: 500;
}

.page_num a {
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    display: block;
    margin: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-radius: 19px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.page_num a:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    transform: translateY(-1px);
}

.sort_page_num {
    text-align: center;
    padding: 15px;
}

.sort_page_num > a {
    padding: 8px 15px;
    background: linear-gradient(135deg, #52c4e8 0%, #3498db 100%);
    margin: 6px;
    color: #fff;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.sort_page_num > a.prev_off {
    background: #ecf0f1;
    color: #95a5a6;
    box-shadow: none;
}

.sort_page_num > a:hover, 
.sort_page_num > a.page_on {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    transform: translateY(-1px);
}

.word_read {
    box-sizing: border-box;
    padding: 25px;
    font-size: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.word_read > p {
    text-indent: 2em;
    padding-bottom: 1.8em;
    font-size: 18px;
    line-height: 1.8em;
    color: #333;
}

.word_read > h3 {
    text-align: center;
    color: #2c3e50;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 20px;
}

.read_btn {
    box-sizing: border-box;
    padding: 15px;
    text-align: center;
}

.read_btn > a {
    padding: 8px 15px;
    cursor: pointer;
    margin: 0 8px;
    border: 2px solid #3498db;
    border-radius: 20px;
    color: #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read_btn > a:hover {
    color: #fff;
    background: #3498db;
}

/* ========================================
   弹窗样式
   ======================================== */
.dvfd {
    background: #fff;
    width: 250px;
    height: 160px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -80px;
    margin-left: -125px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-radius: 15px;
    z-index: 99999;
    border: 3px solid #3498db;
}

.dvfd .red {
    display: block;
    margin: 40px 0 20px;
    font-size: 20px;
    color: #e74c3c;
    font-weight: 600;
}

.dvfd .qdbtn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    display: inline-block;
    padding: 8px 35px;
    color: #fff;
    border-radius: 20px;
    font-size: 16px;
    border: 2px solid #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.dvfd .qdbtn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
    transform: translateY(-1px);
}

#qs_login a {
    padding: 0 8px;
    margin: 0 6px;
    color: #ecf0f1;
    font-weight: 500;
}

/* ========================================
   热门命令样式
   ======================================== */
.hotcmd-wp {
    padding: 30px 0;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hotcmd-wp .cmd-hd {
    display: flex;
    color: #7f8c8d;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.hotcmd-wp .cmd-hd i {
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    border-radius: 1px;
}

.hotcmd-wp .cmd-hd span {
    font-size: 18px;
    margin: 0 20px;
    font-weight: 600;
    color: #2c3e50;
}

.hotcmd-wp .cmd-bd {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 25px 15px 0;
}

.hotcmd-wp .cmd-bd .item {
    flex: 0 0 48%;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 12px;
    color: #555;
    text-align: center;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hotcmd-wp .cmd-bd .item:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.hotcmd-box {
    padding: 15px 15px 0 15px;
    font-size: 15px;
    line-height: 1.9;
}

.hotcmd-box a {
    display: inline-block;
    margin: 2px;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    color: #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hotcmd-box a:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-1px);
}

.first_txt {
    font-size: 15px;
    box-sizing: border-box;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.first_txt > p {
    text-indent: 2em;
    line-height: 28px;
    margin-bottom: 1.2em;
    color: #333;
}

/* ========================================
   Sweet Alert 弹窗样式 (保留必要部分)
   ======================================== */
body.stop-scrolling {
    height: 100%;
    overflow: hidden;
}

.sweet-overlay {
    background-color: rgba(0,0,0,.6);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    z-index: 10000;
}

.sweet-alert {
    background-color: #fff;
    font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: 500px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -250px;
    margin-top: -200px;
    overflow: hidden;
    display: none;
    z-index: 99999;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    border: 3px solid #3498db;
}

.sweet-alert h2 {
    color: #2c3e50;
    font-size: 28px;
    text-align: center;
    font-weight: 600;
    position: relative;
    margin: 25px 0;
    padding: 0;
    line-height: 40px;
    display: block;
}

.sweet-alert p {
    color: #555;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    text-align: inherit;
    float: none;
    margin: 0;
    padding: 0;
    line-height: normal;
}

.sweet-alert button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    font-size: 17px;
    font-weight: 500;
    border-radius: 25px;
    padding: 12px 35px;
    margin: 30px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sweet-alert button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%);
    transform: translateY(-2px);
}

.sweet-alert button.cancel {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.sweet-alert button.cancel:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
}