/* index.html */
.novel-container {
    width: 1280px;
    margin: 15px auto;
    text-align: center;
}
#nav-bar {
    display: flex;
    justify-content: right;
    align-items: center;
    position: relative;
    top: 0;
    right: 0;
    z-index: 998;
    margin-bottom: 10px;
}
#post-new {
    position: absolute;
    left: 0;
    width: 300px;
    gap: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#search {
    display: flex;
    position: relative;
    right: 20px;
    font-size: 14px;
}
#search-input {
    width: 200px;
    margin-right: 5px;
}
#search-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 60px;
}
#sort {
    position: relative;
    right: 0px;
    font-size: 14px;
}
#sort-select {
    height: 30px;
}
.table-header {
    background-color: #1abc9c;
}
.table-header th{
    text-align: center;
    font-size: 18px;
    padding: 10px 0;
}
a {
    cursor: pointer;
}
.name {
    width: 15%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 180px;
}
.text {
    font-size: 16px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 720px;
}
.author {
    width: 15%;
    text-align: center;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.time {
    width: 13%;
    text-align: center;
    min-width: 180px;
}
.time p {
    font-size: 11px;
}
.tag {
    font-size: 11px;
    margin-left: 5px;
    border-radius: 4px;
    padding: 1px;
}
.orange {
    color: orange;
    border: 1px solid orange;
}
.green {
    color: forestgreen;
    border: 1px solid forestgreen;
}
#index_bar {
    font: 0.8em sans-serif;
    margin-top: -18px;
    margin-bottom: 10px;
    text-align: right;
}
/* new.html */
#novel_content {
    resize: none;
    max-height: 400px;
}
#content_count {
    float: right;
    position: relative;
    bottom: 0px;
    right: 0px;
    font-size: 14px;
}
/* detail.html */
#prev_novel {
    float: left;
    margin-left: 70px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    width: 70px;
}
#next_novel {
    float: right;
    margin-right: 70px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    width: 70px;
    text-align: right;
}
.floor {
    width: 1000px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}
.floor span {
    margin-right: 10px;
}
h2 {
    text-align: center;
    color: #333;
    margin: 10px auto;
}
.right {
    font-size: 14px;
    float: right;
    margin-top: -30px;
    margin-right: -20px;
}
.light_gray {
    font-size: 12px;
    color: #999;
    margin: 0 20px;
}
span a {
    color: forestgreen;
    text-decoration: none;
    cursor: pointer;
}
#back-home {
    display: none;
}
.h-flip {
    margin-right: 4px;
    transform: scaleX(-1);
}
/* 弹窗样式 */
.comment-popup {
    position: fixed;
    width: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 0px 20px 16px;
    background: white;
    z-index: 10000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#commentCount, #rewriteCount {
    float: right;
    bottom: 10px;
    right: 0px;
    font-size: 14px;
}
#mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 关闭按钮样式 */
.close-btn {
    float: right;
    font-size: 1.8em;
    cursor: pointer;
}

form {
    margin-top: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

#commentText, #contentText{
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    resize: none;
}
.btn {
    width: 100%;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#mytable {
    width: 100%;
}
#table_bar {
    width: 1000px;
    text-align: right;
    font: 0.8em sans-serif;
    margin: 10px auto;
}
#table_bar a {
    cursor: pointer;
}
.active {
    background-color: #5cb85c;
    color: white;
}
.pno {
    padding: 0 5px;
}
#top_bottom {
    position: fixed;
    bottom: 40%;
}
.to_top {
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    height: 45px;
    line-height: 40px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}
.rotate180 {
    rotate: 180deg;
}
.floor-content {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* 限制行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 120px;
    line-height: 24px; /* 行高24px */
    margin: 10px 20px;
}
.floor-extended {
    display: block;
    line-height: 24px; /* 行高24px */
    margin: 10px 20px;
}
.extends {
    position: relative;
    left: 910px;
    top: -12px;
    color: forestgreen;
    font-size: 14px;
    cursor: pointer;
    width: 40px;
}
.floor-div {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    height: 200px;
    max-height: 200px;
    overflow: auto;
}
.floor-cmt {
    width: 100%;
    max-height: 400px;
    overflow: auto;
}
.comment-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 5px;
    word-wrap: break-word;
    overflow: auto;
    text-overflow: ellipsis;
}
.comment-author {
    font-size: 14px;
    color: #999;
    float: left;
}
.comment-time {
    font-size: 12px;
    color: #999;
    float: right;
}
.comment-extended {
    display: block;
    line-height: 24px; /* 行高24px */
    font-size: 18px;
    color: #333;
    margin-top: 30px;
    word-wrap: break-word;
}
.comment-content {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制行数 */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 72px;
    line-height: 24px; /* 行高18px */
    margin-top: 30px;
    /* margin: 30px 0; */
}
.extends-cmt {
    position: relative;
    left: 700px;
    top: -5px;
    color: forestgreen;
    font-size: 14px;
    cursor: pointer;
    width: 40px;
}
.info {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 970px;
    height: 1vh;
    margin-top: 20px;
}
.person-title {
    margin-right: 20px;
    min-width: 300px;
}
.nick-edit {
    color: #1abc9c;
    cursor: pointer;
}
.nick-edit:hover {
    color: #1abc9c;
}
.exp-text-bar {
    display: flex;
    justify-content: center;
}
.exp-bar {
    width: 100px;
}
.experience-bar-container {
    width: 200px;
    background-color: #ebeaea;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.experience-bar {
    height: 30px;
    background-color: #1abc9c;
    width: 0; /* Will be set dynamically */
    transition: width 0.5s ease-in-out;
}
.experience-text {
    position: absolute;
    width: 200px;
    text-align: center;
    top: 0;
    left: 0;
    line-height: 30px;
}
.person-content {
    text-align: center;
    height: 78vh;
    overflow: auto;
}
#title-tips {
    color: #fc4343;
    font-size: 16px;
}
.flex {
    display: flex;
    align-items: center;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.agree, .disagree {
    font-size: 16px;
    color: #999;
}
.agreed, .disagreed {
    font-size: 16px;
    color: forestgreen;
}
.no-data {
    text-align: center;
    font-size: 20px;
    color: #999;
}

.table-layout { display: table; }
.div-layout { display: none; }
.wrap { display: none; }
@media screen and (max-height: 1024px) {
    .floor-div {
        font-size: 16px;
        max-height: 150px;
    }
    .floor-cmt {
        max-height: 200px;
    }
    #commentText {
        font-size: 16px;
        max-height: 150px;
    }
}
@media screen and (max-width: 767px) {
    .table-layout { display: none; }
    .div-layout {
        margin: 0 auto;
        display: block;
        max-width: 380px;
    }
    #index_bar {
        margin-top: 10px;
        text-align: center;
    }
    .novel-container {
        width: 100%;
    }
    #post-new {
        font-size: 16px;
        position: relative;
        margin-top: 40px;
        margin-left: 16px;
    }
    #post-new button {
        width: 80%;
        height: 36px;
        line-height: 1.2;
    }
    #search {
        position: absolute;
        left: 16px;
        top: 0;
        width: 100%;
        margin-bottom: 10px;
    }
    #search-btn {
        width: 46px;
    }
    #sort {
        top: 10px;
        font-size: 13px;
    }
    #content-container {
        max-height: 400px;
        margin-bottom: 10px;
    }
    #novel_content {
        height: 400px;
    }
    .info {
        display: block;
        margin-top: 0px;
        width: 100%;
        min-width: 170px;
        height: 50px;
        font-size: 16px;
    }
    .wrap {
        display: block;
    }
    .experience-bar-container {
        width: 200px;
        background-color: #ebeaea;
        border-radius: 5px;
        overflow: hidden;
        position: relative;
        margin: 0px 0;
    }
    .exp-text-bar {
        display: flex;
        justify-content: left;
    }
    .exp-bar {
        width: 52px;
    }
    #nickname-container {
        font-size: 16px;
    }
    #table_bar {
        width: 90%;
        text-align: right;
        font: 0.8em sans-serif;
        margin: 10px auto;
    }
    .light_gray {
        margin: 0;
    }
    .floor-content-text {
        font-size: 16px;
        max-width: 300px;
    }
    .floor-content {
        display: -webkit-box;
        -webkit-line-clamp: 3; /* 限制行数 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 100px;
        line-height: 24px; /* 行高24px */
        margin: 10px 10px;
    }
    .comment-popup {
        width: 96%;
        margin-top: 20px;
        word-wrap: break-word;
    }
    .comment-item, .comment-extended {
        font-size: 16px;
    }
    .extends-cmt {
        left: 1px;
    }
    .floor span {
        margin-right: 4px;
    }
    #top_bottom {
        left: 2px;
        bottom: 10px;
    }
    .to_top {
        font-size: 20px;
        cursor: pointer;
        padding: 6px;
        height: 28px;
        line-height: 22px;
        border: 1px solid #ddd;
        margin-bottom: 5px;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
        opacity: 0.8;
    }
    #back-home {
        display: flex;
        font-size: 15px;
        border: none;
        padding: 4px 8px;
        border-radius: 4px;
        position: fixed;
        top: 65px;
    }
    .person-content {
        text-align: center;
        height: 68vh;
    }
}
.novel-item {
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 5px;
    position: relative;
    max-height: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}
.novel-item-title {
    font-weight: bold;
}
.novel-item-content {
    font-size: 16px;
    -webkit-line-clamp: 1; /* 限制行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.novel-item-author {
    color: #aaaaaa;
    text-align: right;
    margin-top: -6px;
}