body {
    background-color: #1A1A1A;
    color: #C0C0C0;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #FFD700; /* 金色用于标题 */
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 20px;
}

a:link, a:visited {
    color: #FFFACD; /* 未点击的链接采用柠檬薄纱色，比标题颜色更浅 */
    text-decoration: none;
}

a:hover {
    color: #FFFAF0; /* 鼠标悬停时的颜色采用花之白色，更加柔和且浅亮 */
}

a:active {
    color: #FFFFE0; /* 点击状态下的链接颜色采用浅黄色，名为浅米色 */
}

.logo {
    width: 65px;
    height: 65px;
    display: inline-block;
    vertical-align: bottom;
}

.brand {
    display: inline-block;
    margin-left: 15px;
    vertical-align: bottom;
}

.brand-title {
    font-size: 30px;
    font-weight: bold;
    color: #FFD700;
}

.brand-slogan {
    font-style: italic;
    color: #C0C0C0;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%; /* 修改为占据80%宽度以适应小屏设备 */
    max-width: 380px; /* 最大宽度为300px */
    height: 100vh;
    background-color: #333333;
    z-index: 4; /* 确保侧边栏在内容上方 */
    transform: translateX(0); /* 初始状态为隐藏 */
    transition: transform 0.3s ease-in-out; /* 平滑过渡 */
}

#middle-container {
    position: absolute;
    left: 380px;
    width: calc(100% - 680px);
    min-width: 750px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    align-items: center;
}

#interactive-container {
    padding-bottom: 50px;
    overflow-y: auto;
    flex-grow: 1;
    height: calc(100vh - 50px);
    width: calc(100% - 50px);
    max-width: 1000px;
}

.save-hint-bar {
    position:fixed;
    top:0;
    left:0;
    right:0;
    background-color:#000;
    padding:10px;
    text-align:center;
    z-index:1000;
}

#last-segment-section {
    text-align: center;
}

.deleted-paragraph {
    text-decoration: line-through;
}

.inserted-paragraph {
    background-color: #1A1A1A;
    padding: 10px;
    border-radius: 10px;
}

.diff-original {
    text-decoration: line-through;
    margin-bottom: 10px;
}

.diff-optimized {
    background-color: #1A1A1A;
    padding: 10px;
    border-radius: 10px;
}

#word-count-text {
    margin-left: 30px;
}

#sidebar.close {
    transform: translateX(-100%); /* 打开状态为初始位置 */
}

#chat-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background-color: #333333;
    display: flex;
    flex-direction: column;
}

#chat-conversation {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

#chat-input-area {
    padding: 10px;
    margin-bottom: 20px;
}

#chat-input {
    display: flex;
    margin-bottom: 0;
    width: 200px;
    height: 35px;
    padding: 5px;
    margin-top: 5px;
}

#chat-send-btn {
    padding: 0;
    margin-top: 5px;
    width: 70px;
    height: 35px;
}

#chat-input:disabled {
    color: #ccc;
}

#chat-send-btn:disabled {
    background-color: #ccc;
}

#segment-checkbox {
    font-size: 12px;
    margin-top: 5px;
}

#segment-checkbox input {
    height: 10px;
    width: 10px;
}

#chat-sidebar-header, #chat-sidebar-conversation-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    margin-top: 10px;
}

#chat-sidebar-header-title, #chat-sidebar-conversation-list-title {
    font-weight: bold;
}

#chat-sidebar-header-title {
    margin-left: 15px;
}

#chat-sidebar-header-new {
    margin-left: 20px;
    margin-right: 10px;
}

#chat-sidebar-header-list {
    margin-right: 10px;
}

#chat-sidebar-header-close {
    margin-right: 20px;
}

#chat-sidebar-conversation-list {
    display: none;
    padding-left: 15px;
    padding-right: 15px;
    height: 100%;
}

#chat-sidebar-conversation-list-content {
    padding-top: 15px;
    overflow-y: auto;
    height: calc(100% - 50px);
}

#chat-sidebar pre {
    position: relative;
    background-color: #1A1A1A;
    color: #FFFACD;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 35px 10px 10px 10px;
    width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-btn, .adopt-btn {
    position: absolute;
    top: 5px;
    padding: 3px 8px;
    border: none;
    border-radius: 3px;
    background-color: #333333;
    color: #FFFACD;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn i, .adopt-btn i {
    margin-right: 4px; /* 图标和文字之间的间距 */
}

.copy-btn {
    right: 85px;
}

.adopt-btn {
    right: 5px;
}

.copy-btn:hover, .adopt-btn:hover {
    background-color: #444444;
}

#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FFD700;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

#chat-button:hover {
    background-color: #FFFACD;
}

@keyframes slide-out {
    0% { left: 10px; } /* 元素的初始位置 */
    100% { left: 355px; } /* 元素部分露出 */
}

.toggle-button {
    position: fixed;
    top: 10px;
    left: 355px;
    cursor: pointer;
    z-index: 4;
}

.toggle-button.show {
    animation: slide-out 0.3s ease-in forwards; /* 应用动画 */
}

@keyframes slide {
    0% { left: 275px; } /* 元素的初始位置 */
    30% { left: -20px; } /* 元素完全隐藏 */
    100% { left: 10px; } /* 元素部分露出 */
}

.toggle-button.close1 {
    animation: slide 1s ease-out forwards; /* 应用动画 */
}

.title-section {
    width: calc(100% - 50px);
    max-width: 1000px;
    height: 50px;
    margin: 0px auto;
    padding: 10px;
    overflow: auto;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.last-segment-section {
    text-align: center;
}

#title-head {
    margin: 0;
}

.content-section {
    margin: 10px auto;
    padding: 10px;
    overflow: auto;
    background-color: #333333;
    border-radius: 5px;
}

.options-section {
    width: 800px;
    margin: 10px auto;
    padding: 10px;
    background-color: #333333;
    border-radius: 5px;
}

.think-section {
    font-style: italic;
    color: #C0C0C0;
    margin-bottom: 10px;
    display: none;
}

.think-content, .full-think-content {
    cursor: pointer;
}

.user-input-section {
    margin-bottom: 20px;
}

textarea {
    background-color: #1A1A1A;
    color: #C0C0C0;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

input[type="text"], #theme, #master-div, #start-theme, #length {
    background-color: rgba(50, 50, 50, 0);
    color: #C0C0C0;
    border: none;
    border-bottom: 1px solid #C0C0C0;
    border-radius: 0;
    margin-bottom: 10px;
    padding: 5px;
    font-size: 14px;
}

textarea {
    padding: 0;
    margin-top: 5px;
}

.blink-animation-running::after {
    content: '\2502';
    animation: blink 1s infinite;
    animation-play-state: running;
}

.blink-animation-paused::after {
    content: '\2502';
    animation: blink 1s infinite;
    animation-play-state: paused;
}

.reject-button {
    border: 1px solid #FFFACD;
    padding: 5px;
    font-size: 12px;
    border-radius: 5px;
    margin-left: 10px;
}

.random-tips {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
}

@keyframes blink {
    50% { opacity: 0; }
}

.create-button {
    position: absolute;
    top: 30px;
    right: 25px;
    text-decoration: none;
    background-color: #FFD700;
    color: #1A1A1A;
    padding: 5px 10px;
    border-radius: 5px;
}

.create-button:hover {
    background-color: #FFFACD;
}

.create-button-centered {
    display: inline-block;
    position: static;
    margin: 20px auto;
}

.option {
    background-color: #1A1A1A;
    color: #FFFACD;
    border: none;
    padding: 8px 16px;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: 0.3s;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
}

.option:hover {
    background-color: #555555;
}

.character-link {
    color: #C0C0C0;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 5px;
    cursor: pointer;
}

#start1 {
    background-color: #FFD700;
    color: #1A1A1A;
    border: none;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: 0.3s;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
}

#start:hover {
    background-color: #FFFACD;
}

#index-start {
    width: 90%;
    font-size: 16px;
    padding: 10px 20px;
    max-width: 750px;
}

.novel-list {
    width: 100%;
    background-color: #333333;
}

.dark-bg {
    background-color: #1A1A1A;
}

.black-bg {
    background-color: #000000;
}

.novel-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    overflow: auto;
    position: relative;
}

#empty-own-novels {
    background-color: #000;
    height: 400px;
}

.novel-list-grid {
    display: flex;
    flex-wrap: wrap;
}

.header-links {
    float: right;
    height: 100%;
    width: 70%;
}

.bottom-links {
    margin: 10px auto;
    position: relative;
    text-align: center;
}

#novel-tree, #novel-info, #novel-recommendations, #novel-comments, #ai-judge-section {
    width: 800px;
    margin: 10px auto;
    padding: 10px;
    overflow: auto;
    background-color: #333333;
    border-radius: 5px;
}

.recommendation-card {
    background-color: #1A1A1A;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s;
    box-shadow: 0 0 10px rgba(255, 250, 205, 0.3);
    margin-left: 10px;
    margin-right: 10px;
    flex-basis: 22%;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recommendation-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.recommendation-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.recommendation-author {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.recommendation-stats {
    font-size: 0.8em;
    color: #888;
}

.empty-novel-input {
    text-align: center;
    width: calc(100% - 20px);
    height: 75%;
    z-index: 100;
    padding: 30px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
}

.dialog-box {
    height: 100%; /* 限制最大高度为左边区域的一半 */
    width: 80%; /* 根据需要调节宽度 */
    margin: 20px 0; /* 上下外边距，根据需要调节 */
    overflow-y: hidden; /* 禁止垂滚动 */
}

#typewriter-text {
    height: 80%; /* 限制最大高度为左边区域的一半 */
    overflow-y: auto; /* 当内容超过最大高度时出现垂直滚动条 */
    padding: 20px; /* 添加右侧填充，为光标留出空 */
    color: #FFFACD;
}

.novel {
    padding: 20px;
    flex-basis: 25%;
    box-sizing: border-box;
}

.novel-info {
    padding: 10px 15px;
}

.novel-card {
    background-color: #1A1A1A;
    cursor: pointer;
    height: 400px;
    position: relative;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

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

.novel-card.dark-bg {
    background-color: #000;
}

.novel-card-info {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px 20px 20px;
    position: absolute;
    bottom: 0;
    display: none;
}

.novel h3 {
    margin-bottom: 10px;
}

.novel p {
    margin: 5px 0;
}

.novel:last-child {
    border-bottom: none;
}

.novel-title {
    margin-top: 10px;
}

#novel-tree-list, .novel-title, .novel-content {
    display: inline-flex;
    flex-direction: column;
}

#novel-tree-list {
    overflow-x: auto;
    margin-right: 10px;
}

.novel-content {
    border-bottom: 1px solid #4D4D4D;
}

.novel-title h2 {
    margin-bottom: 5px;
}

.novel-title h4 {
    margin-bottom: 5px;
    margin-right: 5px;
}

.bottom-nav {
    display: none;
}

.novel-title, .novel-content {
    width: 600px; /* 或您想要的最大宽度 */
    margin-right: 10px;
}

#nav-bar {
    padding-left: 10px;
}

.info-box {
    border: 1px dashed #fff;
    border-radius: 15px;
    background-color: #333333;
    padding: 15px;
    margin: 10px auto;
    width: 800px;
}

.info-box ul {
    list-style-type: none;
    padding-left: 10px;
}

.info-box ul li {
    font-style: italic;
}

.tree-div {
    width: 800px;
    margin: 10px auto;
    padding: 10px;
    background: #333333;
    border-radius: 5px;
}

.tree-container {
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    color: #333;
    display: flex;
    position: absolute;
    overflow-x: auto;
    width: 780px;
    border-radius: 5px;
}

.tree-node {
    display: block;
    position: absolute;
    border-radius: 5px;
    background: #333333;
    max-width: 200px;
    min-width: 150px;
    padding: 10px;
    font-size: 14px;
    line-height: 28px;
    z-index: 200;
}

.tree-link {
    position: absolute;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
}

.tree-link-up {
    position: absolute;
    border-top: 1px solid black;
    border-left: 1px solid black;
}

.tree-link-parent {
    position: absolute;
    border-top: 1px solid black;
    border-right: 1px solid black;
}

.tree-link-parent-up {
    position: absolute;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
}

.tree-container a {
    color: #FFFACD;
    text-decoration: none;
}

.tree-container h2 {
    color: #27ae60;
    border-bottom: 2px solid #FFFACD;
    font-size: 16px;
}

.tooltip-content {
    display: none;
    background-color: #111111;
    border-radius: 5px;
    position: absolute;
    width: 300px;
    z-index: 300;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.optimize-text {
    width: 700px;
    height: 100px;
    padding-top: 5px;
    padding-left: 5px;
    margin-right: 10px;
}
.optimize-button {
    min-width: 100px;
}

.optimize-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.optimize-suggestion {
    width: 670px;
    display: inline-block;
}

.custom-option-text {
    width: 700px;
    height: 35px;
    padding-top: 5px;
    padding-left: 5px;
    margin-right: 10px;
}

.options-input {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.half-underline {
    position: relative;
}

.half-underline::after {
    content: "";
    position: absolute;
    left: calc(50% - 10px);
    bottom: -8px;
    width: 20px;
    border-bottom: 4px solid; /* 设置下划线样式 */
    border-radius: 2px;
}

.continue-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A1A1A;
    padding: 10px 10px;
    margin-top: 10px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    margin-left: 5px;
    font-size: 16px;
}

.secondary-button {
    background-color: transparent;
    color: #FFD700;
    border: 1px solid #FFD700;
}

.secondary-button:hover {
    background-color: #FFD700;
    color: #1A1A1A;
}

.continue-link {
    margin-left: 10px;
}

.continue-button:hover {
    background-color: #FFFACD;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 5px;
}


.tab-link.active {
    color: #FFD700;
}

#result-tips, #thanks-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: #000;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block; /* 初始状态是隐藏的 */
    z-index: 100; /* 确保在页面其他元素之上 */
}

.error-message {
    padding: 10px;
    color: #FFFACD;
    background: black;
    border-radius: 5px;
    width: 350px;
}

#top_bar {
    background-color: #333333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
}

#sidebar .info-box {
    border-radius: 15px;
    background-color: #1A1A1A;
    padding: 15px;
    margin-bottom: 5px;
    margin-top: 0;
    width: 100%;
}

.directory {
    width: 280px;
}
.sidebar-segment {
    background-color: #1A1A1A;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    cursor: pointer;
}

.sidebar-segment:hover {
    transform: translateY(-5px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.99);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    margin-top: 20px;
    border-radius: 50%;
    border: 2px solid #FFD700;
    border-color: #FFD700 transparent #FFD700 transparent;
    animation: loading 1.2s linear infinite;
    margin: 0 auto;
}

@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.multiple-children {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
}

#advanced_settings, #assistant {
    display: none;
    border: 1px #000;
    border-radius: 15px;
    background-color: #1A1A1A;
    padding: 15px;
    margin-top: 5px;
}

#system_msg {
    border: 1px #000;
    border-radius: 15px;
    background-color: #1A1A1A;
    width: 250px;
    height: 420px;
    padding-left: 5px;
}


.tab_span {
    margin-right: 20px;
    cursor: pointer;
    color: #FFFACD;
}

.active-tab {
    pointer-events: none;
    color: #FFD700;
}

.active-tab-clickable {
    color: #FFD700;
}

.info-box p {
    margin: 0;
    padding: 0;
}

.tips {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none; /* 初始状态是隐藏的 */
    z-index: 500; /* 确保在页面其他元素之上 */
}

#master-div {
    width: 280px;
}

.list-grid {
    display: grid;
    width: 800px;
    height: 60vh;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    overflow-y: auto;
}

.list-grid .master-item {
    background-color: #333333;
    border-radius: 10px;
    padding: 10px;
    height: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ref-text-input {
    width: 100%;
    height: 55vh;
    margin-bottom: 10px;
    padding: 10px;
}

.list-grid .cover-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-grid .cover-image {
    width: 220px;
    box-shadow: 0 0 10px rgba(255, 250, 205, 0.3);
}

#cover-list-grid {
    height: 350px;
}

.detail-cover-image {
    width: 200px;
    height: auto;
    margin-right: 20px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.edit-image {
    width: 90%;
    text-align: center;
}


#help-tips {
    position: fixed;
    top: 50%;
    left: 50%;
    height: 80%;
    transform: translate(-50%, -50%);
    background-color: black;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none; /* 初始状态是隐藏的 */
    z-index: 100; /* 确保在页面其他元素之上 */
}

#help-tips-content {
    height: 95%;
    margin-top: 20px;
    margin-bottom: 10px;
    overflow-y: auto;
}

#help-tips ol {
    padding-inline-start: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

#preview {
    padding-left: 5px;
}

#novel-detail {
    margin-bottom: 10px;
    display: none;
}

.option-tabs {
    display: flex;
    justify-content: space-between;
}

.toggle-options {
    width: 200px;
}

a:not([href]):not([tabindex]) {
    text-decoration: none;
    margin-left: 10px;
    color: #FFFACD;
    cursor: pointer;
}

.help-icon {
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    margin-right: 30px;
}

select {
    background: #1A1A1A;
    color: #C0C0C0;
    border-radius: 5px;
    border: #1A1A1A;
    padding: 7px 5px 7px 5px;
}

.tabs {
    margin: 20px auto;
    width: 300px;
    height: 50px;
    padding-top: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    border-radius: 30px;
    background-color: #333333;
}

/* 标签页链接按钮样式 */
.tab-links {
    cursor: pointer;
    transition: 0.3s;
    font-size: 17px;
    color: #C0C0C0;
    width: 48%;
    height: 45px;
    line-height: 45px;
    border-radius: 30px;
}

/* 标签页链接激活时的背景颜色 */
.tab-links.active {
    background-color: #000;
    color: #FFD700;
    height: 45px;
}

/* 标签内容区域的样式 */
.tab-content {
    display: none;
    padding: 6px 12px;
    border-top: none;
    margin: 20px auto;
    width: 90%;
}

.record-table th, .record-table td {
    padding: 0.5rem;
    text-align: left;
    vertical-align: top;
}

.record-table th {
    background-color: #000;
}

.record-table {
    width: 100%;
    margin-bottom: 1rem;
}

#sidebar-tabs {
    display: flex;
    width: 100%;
    height: 100%;
}

#sidebar-tabs-button {
    flex: 0 0 70px; /* This sets the width of the tabs to 20px and prevents them from growing or shrinking */
    display: flex;
    flex-direction: column; /* This makes the tabs stack vertically */
    background-color: #000000;
}

#sidebar-tabs-button .tab {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    color: #FFFACD;
}

#sidebar-tabs-button .tab.active {
    background-color: #FFD700;
    color: #1A1A1A;
}

#sidebar-tabs-content {
    flex: 1; /* This makes the content area take up the rest of the space in the sidebar */
    height: 100%;
    padding-top: 10px;
}

#sidebar-tabs-content .tabcontent {
    height: calc(100% - 35px);
    margin-top: 10px;
    padding: 10px 10px 10px;
    overflow-y: auto;
}

.left-button {
    /*漂浮在卡片上*/
    display: inline-block;
    background-color: #FFD700;
    color: #1A1A1A;
    padding: 5px 10px;
    margin-top: 10px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 16px;
}

.right-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A1A1A;
    padding: 5px 10px;
    margin-top: 10px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    margin-left: 5px;
    font-size: 16px;

}

.dropdown-button {
    float: right;
    position:relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #000;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    text-align: center;
}

.dropdown-content a {
    padding: 10px 20px;
    text-decoration: none;
    display: block;
}

.dropdown-button:focus .dropdown-content {
    display: block;
}

#start-theme {
    width: 60%;
    height: 35px;
    padding-left: 10px;
    padding-top: 10px;
}

.top_bar {
    display: none;
}

.setting-list {
    height: 40vh;
}

.stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    min-width: 100px;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 10px 10px 0;
    background-color: #3c3c3c;
}

.stat-data {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
}

#cookie-setting-bar {
    width: 100%;
    height: 100px;
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: rgb(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    font-weight: bold;
    text-decoration: none;
}

#cookie-setting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9900;
}

#cookie-setting {
    display: none;
}

.mobile-only {
    display: none;
}

.modal-content {
    background-color: #000000;
    border-radius: 10px;
}

.modal-content .close {
    color: #C0C0C0;
    text-shadow: none;
}

#npsFeedbackText {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-top: 10px;
}

.loading {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 380px;
  text-align: center;
    padding: 150px 90px;
}

#cover-reload {
    height: 380px;
    display: none;
    text-align: center;
    padding: 150px 90px
}

.empty-image {
   border-color: #C0C0C0;
    border-radius: 10px;
    border-style: dotted;
    width: 200px;
    height: 300px;
    margin-right: 20px;
    margin-bottom: 10px;
    padding: 120px 10px;
    text-align: center;
}

#new-ref-text {
    width: 100%;
    height: 60vh;
    padding: 10px;
}

#hot-themes-span {
   line-height: 30px;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: break-spaces;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-top: 10px;
    text-align: center;
    max-width: 200px;
    min-width: 150px;
}

[data-tooltip][data-tooltip-middle]:after {
    top: 50%;
}

[data-tooltip]:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    opacity: 0;
    transition: opacity 0.2s;
}

[data-tooltip].show-tooltip:before,
[data-tooltip].show-tooltip:after {
    opacity: 1;
}

.comment {
    background-color: #1A1A1A;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: #FFD700;
}

.comment-date {
    color: #666;
    font-size: 0.9em;
}

.comment-content {
    color: #C0C0C0;
    line-height: 1.5;
}

#novel-info-list-mobile {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    #novel-info, .info-box, .tree-div, .tree-container {
        width: 90%;
    }

    #novel-info-list-mobile {
        display: block;
    }

    .novel-list {
        background-color: #1A1A1A;
    }

    .novel-card {
        height: 250px;
    }

    .novel-card-info {
        height: 250px;
        font-size: 12px;
        overflow: hidden;
    }

    .novel-card-info h3 {
        font-size: 16px;
    }

    .novel-list-container {
        width: 90%;
        border-radius: 5px;
        background-color: #3c3c3c;
        margin: 10px auto;
    }

    .novel {
        flex-basis: 50%;
        padding-left: 10px;
        padding-right: 10px;
    }

    #slogan.novel-list-container {
        background-color: #000000;
        margin: 0 auto;
        width: 100%;
    }

    #empty-own-novels {
        height: 400px;
    }

    #empty-own-novels.novel-list-container {
        background-color: #000000;
        margin: 0 auto;
        width: 100%;
    }

    #hot-themes {
        height: 100px;
        overflow: hidden;
    }

    .header-links {
        display: none;
        overflow-x: auto;
    }

    .no-mobile-logo {
        display: none;
    }

    .top_bar {
        display: block;
        margin: 10px 0;
    }

    #start-theme {
        width: 80%;
    }

    #genre-tabs, #mine-tabs, .option-tabs {
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #genre-tabs::-webkit-scrollbar {
        display: none;
    }

    #mine-tabs::-webkit-scrollbar {
        display: none;
    }

    .novel-title, .novel-content {
        width: 350px; /* 或您想要的最大宽度 */
        margin-right: 10px;
    }

    .empty-novel-input {
        width: 90%;
        height: 70%;
    }

    #index-start {
        width: 90%;
        font-size: 16px;
        padding: 10px 20px;
    }

    .bottom-nav {
        display: flex;
        justify-content: space-evenly;
        position: fixed;
        bottom: 0;
        left: 0;
        align-items: center;
        width: 100%;
        height: 60px;
        background-color: #1A1A1A;
        box-shadow: 0px -2px 5px #4D4D4D;
        z-index: 9999;
    }

    .bottom-nav .nav-item {
        text-align: center;
        font-size: 20px;
        color: #C0C0C0;
        flex: 1;
        /*line-height: 60px;*/
        text-decoration: none;
    }

    .bottom-nav .nav-item.current {
        color:#FFD700;
    }

    .bottom-nav .round-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 60px;
        flex: 1;
    }

    .bottom-nav .round {
        margin: 0;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background-color: #FFD700;
        color: #1A1A1A;
        text-align: center;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .bottom-nav .small_round {
        margin: 0;
        width: 100%;
        height: 70px;
        border-radius: 5%;
        background-color: #FFD700;
        color: #1A1A1A;
        text-align: center;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .stat-item {
        background-color: #1A1A1A;
        width: 100%;
        min-width: 50px;
        margin: 10px 10px;
    }

    #bottom-links {
        display: none;
    }

    .detail-cover-image {
        width: 150px;
    }

    .setting-list {
        height: 100%;
    }

    .create-button {
        display: none;
    }

    .create-button-centered {
        display: block;
    }

    a {
        text-decoration: none;
    }

    #access-novels #home-link {
        display: none;
    }

    #nav-bar {
        display: none;
    }

    #sidebar {
        width: 100%;
    }

    .content-section, .options-section, .toolbar-section, .title-section {
        width: 100%;
    }

    #interactive-container {
        position: absolute;
        left: 5%;
        width: 90%;
    }

    .toggle-button {
        background-color: #111111; /* Change this to your desired color */
        padding: 5px; /* Add some padding to make it look nicer */
        border-radius: 5px; /* Optionally, add border-radius to make it round */
        color: white;
    }

    #help-tips {
        width: 80%;
        height: 80%;
    }

    .list-grid {
        width: 300px;
        height: 60vh;
        margin:auto;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    #cover-list-grid {
        height: 450px;
    }

    .list-grid .cover-image {
        width: 130px;
    }

    .loading, #cover-reload {
        padding: 200px 10px;
    }

    #help-link {
        margin-top: -2px;
    }

    .random-tips {
        display: none;
        position: fixed;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 300;
        background: black;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        border-radius: 5px;
        width: 80%;
    }

    .custom-option-text, .optimize-text, .optimize-button, .custom-option-button, .optimize-suggestion {
        width: 100%;
    }

    .custom-option-text {
        height: 70px;
    }

    .optimize-input, .options-input {
        display: block;
        text-align: center;
    }

    .optimize-button, .custom-option-button {
        text-align: center;
    }

    .continue-button {
        display: block;
        width: 80%;
        padding: 10px 10px;
        margin: 10px auto;
    }

    #create_action {
        text-align: center;
    }

    #preview {
        margin-left: 0;
        padding-left: 0;
    }

    #chat-sidebar {
        width: 100%;
        height: 100%;
        z-index: 100;
    }

    #chat-input {
        width: calc(100% - 100px);
    }

    #chat-sidebar-header {
        background-color: #1A1A1A;
        margin-top: 0px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    #chat-sidebar-header-title {
        font-size: 20px;
    }

    #chat-sidebar-conversation-list-header {
        padding-top: 30px;
        padding-bottom: 30px;
        background-color: #1A1A1A;
        margin-top: 0px;
        padding-left: 10px;
        padding-right: 10px;
    }

    #chat-sidebar-conversation-list {
        padding: 0px;
    }

    #chat-sidebar-conversation-list-title {
        font-size: 20px;
    }

    #chat-sidebar-conversation-list-close {
        margin-right: 10px;
    }

    #chat-sidebar-conversation-list-content {
        padding: 10px;
        height: calc(100% - 100px);
    }

    #novel-comments, #ai-judge-section {
        width: 90%;
    }

    .comment {
        padding: 10px;
    }

    .success-stats {
        font-size: 14px;
        margin: 8px 0;
    }

    .quick-start-guide {
        font-size: 12px;
        margin-top: 8px;
    }

    .empty-novel-input h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .free-tag {
        font-size: 10px;
        top: -8px;
        right: 5px;
        padding: 2px 6px;
    }
}

.comments-empty-state {
    text-align: center;
    padding: 20px;
    color: #666;
}

.add-comment-btn {
    background-color: #FFD700;
    color: #1A1A1A;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.add-comment-btn:hover {
    background-color: #FFFACD;
}

.login-to-comment {
    display: inline-block;
    margin-top: 10px;
    color: #FFD700;
    text-decoration: underline;
}

.comment-form {
    background-color: #1A1A1A;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-input {
    width: 100%;
    min-height: 100px;
    background-color: #333333;
    border: 1px solid #4D4D4D;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    color: #C0C0C0;
    resize: vertical;
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    color: #666;
    font-size: 12px;
}

.comment-form-buttons {
    display: flex;
    gap: 10px;
}

.cancel-comment-btn {
    background-color: transparent;
    border: 1px solid #4D4D4D;
    color: #C0C0C0;
}

.submit-comment-btn {
    background-color: #FFD700;
    color: #1A1A1A;
}

.cancel-comment-btn, .submit-comment-btn {
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.submit-comment-btn:hover {
    background-color: #FFFACD;
}

.cancel-comment-btn:hover {
    background-color: #333333;
}

.add-comment-section {
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .comment-form-footer {
        flex-direction: column;
        gap: 10px;
    }

    .comment-form-buttons {
        width: 100%;
    }

    .cancel-comment-btn, .submit-comment-btn {
        flex: 1;
    }
}

.rating-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avg-rating {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
}

.rating-stars {
    color: #FFD700;
}

.ratings-count {
    color: #666;
    font-size: 14px;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.rating-star {
    cursor: pointer;
    color: #FFD700;
    transition: transform 0.1s;
}

.rating-star:hover {
    transform: scale(1.2);
}

.rating-star.selected {
    color: #FFD700;
}

@media (max-width: 768px) {
    .rating-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.rate-novel-trigger {
    cursor: pointer;
    color: #FFFACD;
}

.rate-novel-trigger:hover {
    color: #FFD700;
}

.user-rating {
    margin-left: 10px;
}

.judge-result {
    background-color: #1A1A1A;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.judge-name {
    font-size: 18px;
}

.feature-container {
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-heading {
    text-align: center;
    margin-bottom: 2rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: #000;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    height: 200px;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #6c5ce7;
}
.feature-card h3 {
    margin-bottom: 1rem;
    color: #FFD700;
}
.feature-card p {
    color: #C0C0C0;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .feature-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }

    .feature-card-link {
        flex: 0 0 auto;
        width: 80%;
        max-width: 300px;
        margin-right: 15px;
        scroll-snap-align: start;
    }

    .feature-card {
        height: 200px;
        overflow-y: hidden;
    }

    .feature-card p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .feature-icon {
        margin-bottom: 15px;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .feature-grid::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .feature-grid {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.feature-card-link .feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-link:hover .feature-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* AI Judge Results - Expand/Collapse functionality */
.judge-reason {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.judge-reason.collapsed p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.expand-collapse {
    text-align: center;
    cursor: pointer;
    color: #FFD700;
    padding: 2px;
}

.expand-collapse i {
    transition: transform 0.3s ease;
}

.judge-result {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.judge-name {
    margin-bottom: 5px;
    align-items: center;
}

.intro-video-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    display: none;
}
.close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #FFD700;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    border: none;
    outline: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-button {
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    background: #333;
    color: #FFD700;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}
.video-button:hover { background: #555; }
.video-button i { margin-right: 5px; }

.success-stats {
    color: #FFD700;
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}

.quick-start-guide {
    font-size: 14px;
    color: #C0C0C0;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

#start-theme {
    min-height: 80px;
    font-size: 16px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid #555;
    color: #FFF;
    border-radius: 6px;
    width: 100%;
    max-width: 750px;
    box-sizing: border-box;
    margin: 10px 0;
    transition: border-color 0.3s;
}

#start-theme:focus {
    border-color: #FFD700;
    outline: none;
}

#index-start {
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: #000;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

#index-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.button-container {
    position: relative;
    display: inline-block;
    width: 500px;
}

.button-container #index-start {
    margin-top: 0;
}

.free-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FF4500;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: rotate(10deg);
    z-index: 2;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: rotate(10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
    100% { transform: rotate(10deg) scale(1); }
}

@media (max-width: 768px) {
    .button-container {
        width: 90%;
        display: block;
        margin: 10px auto;
    }

    .free-tag {
        font-size: 10px;
        top: -8px;
        right: 5px;
        padding: 2px 6px;
    }
}

.footer-columns {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin: 0 15px;
}

.footer-column a {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        margin-bottom: 15px;
        align-items: center;
    }
}

.membership-plans-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
    margin-bottom: 30px;
}

.membership-intro-card {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    background: rgba(30, 30, 40, 0.7);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.membership-intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.membership-intro-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #FFD700;
}

.membership-intro-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.membership-intro-card li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.membership-intro-card li i {
    color: #00dd00;
    margin-right: 10px;
}

.membership-intro-card .continue-button {
    width: 90%;
    margin-top: 10px;
    text-align: center;
    color: #1A1A1A;
}

.cosmic-points-info {
    background: rgba(30, 30, 40, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 560px;
    max-width: 900px;
}

.cosmic-points-info h3 {
    color: #FFD700;
    margin-bottom: 10px;
}
