@charset "UTF-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #2c3e50;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6580 100%);
    color: white;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.collapsed .sidebar-header {
    padding: 20px 15px;
    justify-content: center;
}

.sidebar-header h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-header h3 {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.sidebar-title {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    transform: translateX(-10px);
    position: absolute;
    pointer-events: none;
}

.toggle-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
}

.toggle-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sidebar.collapsed .toggle-sidebar {
    transform: rotate(180deg);
}

.toggle-sidebar.collapsed::before {
    content: "\2630";
    /* ☰ */
}

.toggle-sidebar:not(.collapsed)::before {
    content: "\2190";
    /* ← */
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    flex: 1;
}

.sidebar-menu li {
    margin: 5px 10px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    padding: 5px 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.sidebar-menu li:hover {
    background: #3c5065;
    transform: translateX(5px);
}

.sidebar-menu li.active {
    background: rgba(52, 152, 219, 0.2);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.sidebar-menu li.active a {
    color: #3498db;
}

.sidebar-menu li.active i {
    color: #3498db;
}

.sidebar-menu a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #3498db;
}

.sidebar-menu i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    transition: margin 0.3s ease;
    font-size: 18px;
}

.sidebar-menu .menu-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-menu li {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.collapsed .sidebar-menu i {
    margin-right: 0;
    font-size: 20px;
}

/* 底部信息样式 */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-footer p {
    margin: 8px 0;
}

.text-center {
    text-align: center !important;
}


/* 修改现有的侧边栏样式 */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6580 100%);
    color: white;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

/* 修改侧边栏菜单，添加滚动支持 */
.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
    /* 添加滚动条 */
    max-height: calc(100vh - 140px);
    /* 限制高度，确保可以滚动 */
}

/* 自定义滚动条样式 */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}




/* 移动端遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}





/* 桌面端隐藏移动菜单按钮 */
@media (min-width: 769px) {
    .mobile-menu-button {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* 移动端菜单按钮 - 右下角浮标样式 */
.mobile-menu-button {
    display: none;
    /* 默认隐藏，移动端显示 */
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-button:hover {
    background: #2980b9;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mobile-menu-button:active {
    transform: scale(0.95);
}

/* 桌面端隐藏移动菜单按钮 */
@media (min-width: 769px) {
    .mobile-menu-button {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* 移动端样式 */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
        /* 移动端显示 */
    }

    .sidebar {
        position: fixed;
        left: -250px;
        /* 默认隐藏在左侧 */
        top: 0;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar.mobile-expanded {
        left: 0;
        /* 展开时显示 */
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    /* 移动端侧边栏菜单高度调整 */
    .sidebar-menu {
        max-height: calc(100vh - 120px);
    }
}

/* 为移动端按钮添加动画效果 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.mobile-menu-button {
    animation: float 3s ease-in-out infinite;
}




/* 侧边栏折叠时的滚动条隐藏 */
.sidebar.collapsed .sidebar-menu::-webkit-scrollbar {
    width: 0;
}

/* 确保侧边栏底部始终可见 */
.sidebar-footer {
    flex-shrink: 0;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
}




/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

.container {
    flex: 1;
    display: flex;
    height: 100%;
    background: white;
}

.editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #3498db;
    min-width: 0;
}

.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    gap: 6px;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
}


.panel-header button,
.panel-header select {
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding: 0 8px;
    font-size: 14px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.header-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* 移动端继续保持一行 */
@media (max-width:768px) {
    .panel-header {
        overflow-x: auto;
    }
}

/* 只读、可复制、小四字号 */
#chat-taolu,
#txst-sdys {
    resize: none;
    font-size: 12pt;
    color: #333;
    background: #ffffff;
    cursor: text;
}

.panel-content,
.panel-contents {
    flex: 1;
    overflow: auto;
    padding: 0;
    position: relative;
}

#inputText,
#zhidingzhiling {
    width: 100%;
    height: 100%;
    padding: 20px;
    border: none;
    resize: none;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    box-shadow: none;
}

#output,
#aizdys {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.btn-container {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

button.save-btn {
    background: #27ae60;
}

button.save-btn:hover {
    background: #219653;
}

button.reset-btn {
    background: #e74c3c;
}

button.reset-btn:hover {
    background: #c0392b;
}

button.download-btn {
    background: #9b59b6;
}

button.download-btn:hover {
    background: #8e44ad;
}

/* 状态栏 */
.status-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.status-bar.show {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .editor-panel,
    .preview-panel {
        height: 50vh;
    }

    .sidebar {
        position: absolute;
        z-index: 100;
        height: 100%;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
    }

    .sidebar:not(.collapsed) {
        width: 220px;
    }

    .sidebar.collapsed {
        width: 50px;
    }
}

.text-content {
    margin-bottom: 25px;
    line-height: 1.7;
}

.text-content h3 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ddd;
}

.text-content p {
    margin-bottom: 15px;
}

.text-content ul,
.text-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.text-content li {
    margin-bottom: 8px;
}

.table-container {
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9f7fe;
}

.table-title {
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
    font-size: 18px;
}

.resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    background: #3498db;
    cursor: col-resize;
    z-index: 10;
    right: -5px;
}

.editor-container {
    position: relative;
    height: 100%;
}

.ai-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-controls select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.hidden {
    display: none !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .editor-panel,
    .preview-panel {
        height: 50vh;
    }

    .resize-handle {
        width: 100%;
        height: 10px;
        right: 0;
        top: -5px;
        cursor: row-resize;
    }
}

/* 用户提问样式（靠右显示） */
.user-message {
    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 5px;
    max-width: 90%;
    text-align: left;
    margin-left: auto;
    float: right;
    clear: both;
    display: flex;
}

/* AI回答样式 */
.ai-message {
    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 5px;
    max-width: 90%;
    text-align: left;
    clear: both;
    display: flex;
}

/* 用户消息容器 */
.user-message .message-container {
    justify-content: flex-end;
    margin-right: 10px;
}

/* AI消息容器 */
.ai-message .message-container {
    justify-content: flex-start;
    margin-left: 10px;
}

.draggable {
    position: absolute;
    left: 0;
    top: 0;
}

/* 拖动窗口 */
.draggable .drag-handle {
    cursor: move;
}

.draggable .window-content {
    padding: 20px;
}

/* 默认样式（电脑端） */
#ai_zhiling {
    display: none;
    position: fixed;
    width: 750px;
    height: 580px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #f8f9fa;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

/* 手机端样式 */
@media only screen and (max-width: 768px) {
    #ai_zhiling {
        width: 90%;
        height: 80vh;
        max-height: 80vh;
        padding: 15px;
    }

    #ai_zhiling .window-content {
        padding: 10px;
    }

    #ai_zhiling textarea {
        width: 100%;
        height: 200px;
    }

    #ai_zhiling,
    #aizhiling {
        flex-direction: column;
        align-items: center;
    }

    #ai_zhiling,
    #aizhiling button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 历史记录容器 - 添加滚动 */
.history-container {
    height: 450px;
    overflow-y: auto;
    padding: 10px;
    margin: 10px 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* 滚动条样式 */
.history-container::-webkit-scrollbar {
    width: 8px;
}

.history-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.history-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 会话项样式优化 */
.session-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.session-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.session-item .title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 100px;
}

.session-item .uuid {
    font-size: 11px;
    color: #95a5a6;
    margin-bottom: 8px;
    transition: opacity 0.2s;
}

.session-item .preview {
    font-size: 13px;
    color: #7f8c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.session-item .buttons {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
}

.session-item:hover .buttons {
    display: flex;
    gap: 5px;
}

.session-item .buttons button {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.session-item .buttons button:hover {
    background: #2980b9;
}

.session-item .buttons button:last-child {
    background: #e74c3c;
}

.session-item .buttons button:last-child:hover {
    background: #c0392b;
}

.session-item .time {
    font-size: 11px;
    color: #bdc3c7;
    align-self: flex-end;
}

/* 搜索区域样式 */
.search-area {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#searchInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#searchButton {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#searchButton:hover {
    background: #2980b9;
}

/* 分类标题样式 */
#todaySessions h2,
#thisMonthSessions h2,
#moreSessions h2 {
    font-size: 16px;
    color: #2c3e50;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 退出按钮样式 */
#aizhiling {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

#aizhiling button {
    padding: 8px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#aizhiling button:hover {
    background: #7f8c8d;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 30px;
    color: #95a5a6;
    font-style: italic;
}

/* 写故事功能区样式 */
.writing-container {
    display: none;
    width: 100%;
    padding: 0 15px;
}

.writing-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.writing-col-left {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.writing-col-right {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.writing-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    margin-bottom: 30px;
}

.writing-card-body {
    padding: 1.5rem;
}

.writing-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.writing-controls button {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.writing-controls button:hover {
    background: #e9ecef;
}

.writing-textarea {
    width: 100%;
    min-height: 600px;
    border: 0;
    resize: vertical;
    font-family: inherit;
    padding: 10px;
    box-sizing: border-box;
}

/* AI快写弹出窗口样式 - 修复点击问题 */
#aikuai {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: white;
    padding: 0;
    /* 改为0，因为拖动句柄会添加padding */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: transform 0.2s ease;
    /* 确保窗口高度自适应内容 */
    min-height: auto;
    height: auto;
    max-height: 90vh;
    overflow: visible;
}

/* 内容区域添加内边距 */
#aikuai .popup-content {
    padding: 20px;
}

/* 桌面端可拖动样式 */
@media (min-width: 769px) {
    #aikuai.draggable {
        user-select: none;
    }

    #aikuai.dragging {
        transition: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    /* 确保拖动时窗口高度自适应 */
    #aikuai.dragging {
        height: auto;
        min-height: auto;
    }
}

#aikuai textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    /* 确保文本区可以调整高度 */
    overflow: auto;
}

/* 弹出窗口样式 */
#aikuai .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* 移动端样式保持不变 */
@media (max-width: 768px) {
    #aikuai {
        width: 90%;
        max-width: none;
        padding: 20px;
        /* 移动端恢复内边距 */
    }

    /* 移动端隐藏拖动句柄 */
    #aikuai .drag-handle {
        display: none;
    }
}

.aikuai-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}



/* AI快写弹出窗口样式 - 修复点击问题 */
#aitanchuang,
#typeListwd,
#aizjfjfx,
#aizidong,
#aitanchuang {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: white;
    padding: 0;
    /* 改为0，因为拖动句柄会添加padding */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: transform 0.2s ease;
    /* 确保窗口高度自适应内容 */
    min-height: auto;
    height: auto;
    max-height: 90vh;
    overflow: visible;
}

/* 内容区域添加内边距 */
#aitanchuang .popup-content,
#typeListwd .popup-content,
#aizjfjfx .popup-content,
#aizidong .popup-content,
#aitanchuang .popup-content {
    padding: 20px;
}

/* 桌面端可拖动样式 */
@media (min-width: 769px) {

    #aitanchuang.draggable,
    #typeListwd.draggable,
    #aizjfjfx.draggable,
    #aizidong.draggable,
    #aitanchuang.draggable {
        user-select: none;
    }

    #aitanchuang.dragging,
    #typeListwd.dragging,
    #aizjfjfx.dragging,
    #aizidong.dragging,
    #aitanchuang.dragging {
        transition: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    /* 确保拖动时窗口高度自适应 */
    #aitanchuang.dragging,
    #typeListwd.dragging,
    #aizjfjfx.dragging,
    #aizidong.dragging,
    #aitanchuang.dragging {
        height: auto;
        min-height: auto;
    }
}

#aitanchuang textarea,
#typeListwd textarea,
#aizjfjfx textarea,
#aizidong textarea,
#aitanchuang textarea {
    width: 100%;
    min-height: 100px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    /* 确保文本区可以调整高度 */
    overflow: auto;
}

/* 弹出窗口样式 */
#aitanchuang .button-group,
#typeListwd .button-group,
#aizjfjfx .button-group,
#aizidong .button-group,
#aitanchuang .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* 移动端样式保持不变 */
@media (max-width: 768px) {

    #aitanchuang,
    #typeListwd,
    #aizjfjfx,
    #aizidong,
    #aitanchuang {
        width: 90%;
        max-width: none;
        padding: 20px;
        /* 移动端恢复内边距 */
    }

    /* 移动端隐藏拖动句柄 */
    #aitanchuang .drag-handle,
    #typeListwd .drag-handle,
    #aizjfjfx .drag-handle,
    #aizidong .drag-handle,
    #aitanchuang .drag-handle {
        display: none;
    }
}

#aitanchuang-controls,
#typeListwd-controls,
#aizjfjfx-controls,
#aizidong-controls,
.aitanchuang-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}













/* 覆盖层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

/* 新增的CSS样式 */
#xie-container {
    flex: 1;
    display: flex;
    height: 100%;
    background: white;
}

.writing-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #3498db;
    min-width: 0;
}

.prompt-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.writing-header,
.prompt-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.writing-contents,
.writing-content,
.prompt-content {
    flex: 1;
    overflow: auto;
    padding: 0;
    position: relative;
}

#txst-aigai,
#yffx-inputText,
#yffx-reportOutput,
#yffx-statsOutput,
#aikuais_bj,
#txst-qingjie,
#txst-sw-hx,
#txst-sw-bj,
#txst-zidong,
#Text-typeList,
#Text-sd-mofang,
#Text-fj-mofang,
#Text-fj-fenxi,
#inputText,
#zhidingzhiling,
#aixhTest,
#aixhTest_end,
#AI_kuaigao,
#AI_xunhuan,
#aikuais,
#aikuais_fx,
#aikuais_fx2,
#aikuais_fx3,
#aikuais_fx4,
#aikuais_fx5,
#aikuais_fx6,
#aikuais_fx7,
#guanjianci,
#jianjie,
#zddgxs,
#txst-zimufenxi,
#txst-aifengge,
#txst-aifengge-jg,
#tyts_txt,
#txst-sw,
#txst-tl-txt,
#txst-tl-txt,
#wenbenfx_txt,
#chat-AIkuaixie,
#xuxietis,
#xuxietis1,
#xuxietis2,
#outputzimuText,
#outputText,
#subtitleInput,
#chat-taolu,
#chat-zhangjiegy {
    width: 100%;
    height: 100%;
    padding: 20px;
    border: none;
    resize: none;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 16px;
    line-height: 1.8;
    outline: none;
    box-shadow: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .selection-toolbar {
        transform: scale(0.9);
        transform-origin: center bottom;
        min-width: 280px;
        padding: 8px 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
    }
    
    .selection-toolbar .toolbar-btn {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0 3px;
    }
    
    .selection-toolbar #quhenselect {
        height: 36px;
        font-size: 13px;
        margin: 0 5px;
    }
    
    /* 防止移动端点击穿透 */
    .selection-toolbar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
    }
}

/* 触摸反馈 */
.toolbar-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.writing-controls {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #ffffff;
    border-top: 1px solid #1c1e20;
    flex-wrap: wrap;
}

.writing-controls button {
    padding: 8px 12px;
    font-size: 13px;
}

#input-AIkuaixie {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.chapter-select {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* 弹出窗口样式 */
#aikuai .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.writing-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
}

#zhangjie_name {
    width: 120px;
    background-color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

#input-AIkuaixie {
    flex: 1;
    min-width: 200px;
    transition: border-color 0.3s;
}

#input-AIkuaixie:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

#zhangjie_name:hover,
#input-AIkuaixie:hover {
    border-color: #a0a0a0;
}

/* 针对不同浏览器的调整 */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    #zhangjie_name {
        padding-top: 2px;
    }
}

/* 黑色按钮样式 */
.btn-dark {
    background-color: #f2f3f5;
    color: #2c3e50;
}

.btn-dark:hover {
    background-color: #d1d1d1;
    border-color: #f8f8f8;
}

/* 白色按钮样式 */
.btn-bai {
    background-color: white;
    color: #2c3e50;
    border: 1px solid #ddd;
}

.btn-bai:hover {
    background-color: #f8f9fa;
    border-color: #2c3e50;
}

/* 移动端样式优化 */
@media (max-width: 768px) {
    .sidebar:not(.mobile-expanded) {
        transform: translateX(-100%);
        width: 0;
        opacity: 0;
        overflow: hidden;
    }

    .sidebar.mobile-expanded {
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        height: 100%;
        z-index: 1000;
        transform: translateX(0);
        opacity: 1;
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-button {
        display: block;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 1001;
        background: #2c3e50;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 16px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar.mobile-expanded+.sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .container {
        width: 100%;
        padding: 10px;
    }
}

/* 桌面端隐藏移动菜单按钮 */
@media (min-width: 769px) {
    .mobile-menu-button {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* ===== 移动端只出图标 ===== */
@media (max-width: 768px) {

    .parse-btn,
    .save-btn,
    .reset-btn,
    .download-btn,
    #stopButton_zddag {
        font-size: 0;
        padding: 8px 10px;
        line-height: 1;
    }

    .parse-btn i,
    .save-btn i,
    .reset-btn i,
    .download-btn i,
    #stopButton_zddag i {
        font-size: 16px;
        margin: 0;
    }
}

/* ===== 给停止按钮补图标 ===== */
#stopButton_zddag::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f04d";
    margin-right: 4px;
}

/* 默认 PC：文字正常显示 */
.btn-responsive i {
    margin-right: 6px;
}

/* ≤768 px：文字消失，按钮压成方形 */
@media (max-width: 768px) {
    .btn-responsive {
        font-size: 0 !important;
        padding: 8px 9px;
        line-height: 1;
        min-width: 36px;
        text-align: center;
    }

    .btn-responsive i {
        margin: 0;
        font-size: 16px;
    }
}










/* 教程页面特定样式 */
#tutorial-container {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tutorial-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 430px;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tutorial-card .card-body {
    padding: 15px;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.tutorial-card h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.4;
}

.tutorial-card hr {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #eee;
    width: 100%;
}

.tutorial-card iframe {
    flex: 1;
    border: none;
    border-radius: 4px;
}











/* 搜索和过滤功能 */
.tutorial-controls {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tutorial-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.tutorial-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.tutorial-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.tutorial-filters select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    grid-column: 1 / -1;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .tutorial-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .tutorial-card {
        height: auto;
        min-height: 400px;
    }

    .tutorial-card .card-body {
        height: auto;
        min-height: 320px;
    }

    .mobile-menu-button {
        display: block;
    }

    .sidebar {
        position: fixed;
        z-index: 1000;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
    }

    .sidebar.mobile-expanded {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* 设置页面样式优化 */
#boogan_shezhi {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.setting-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 25px;
}

.setting-header {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
}

.setting-header i {
    margin-right: 10px;
    color: #3498db;
}

.setting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.setting-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.setting-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.setting-hint {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 8px;
    font-style: italic;
}

.setting-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 25px 0;
}












/* ===================== MERMAID图表专用样式 ===================== */
.mermaid-container {
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    margin: 16px 0;
    background: #fff;
    overflow: hidden;
}

.mermaid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #e1e4e8;
    background: #f6f8fa;
    font-weight: 600;
}

.mermaid-controls {
    display: flex;
    gap: 8px;
}

.mermaid-btn {
    background: none;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: #24292e;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
}

.mermaid-btn:hover {
    background-color: #f3f4f6;
}

.mermaid-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mermaid-diagram {
    overflow: hidden;
    padding: 16px;
    background: #fff;
    min-height: 200px;
    position: relative;
    cursor: grab;
    height: 480px;
}

.mermaid-diagram.dragging {
    cursor: grabbing;
}

.mermaid-viewport {
    transform-origin: 0 0;
    transition: transform 0.1s ease;
}

.mermaid-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6a737d;
}

/* 下载按钮样式 */
.mermaid-btn.download-btn {
    color: #28a745;
    border-color: #28a745;
}

.mermaid-btn.download-btn:hover {
    background-color: rgba(40, 167, 69, 0.1);
}

/* 下载图标样式 */
.fa-download {
    font-size: 12px;
}
















/* ===== 新增：文生图、文生视频样式 ===== */

/* ===== 内容区域样式 ===== */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 生成器卡片样式 ===== */
.generator-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header .counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-body {
    padding: 25px;
}

/* ===== 输入区域样式 ===== */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.input-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

.input-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* ===== 按钮样式 ===== */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #e0e6ed;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-success {
    background: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-success:hover {
    background: #219653;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== 结果展示区域 ===== */
.results-container {
    margin-top: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-video {
    width: 100%;
    height: 200px;
    background: #000;
}

.result-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    padding: 15px;
}

.result-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.result-actions .btn {
    padding: 8px 15px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ===== 加载动画 ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab {
        justify-content: center;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 模态窗口样式 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: white;
}

.modal-content img,
.modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ===== 提示框样式 ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #27ae60;
    color: white;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.toast.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}







/* 人物关系图 */
.panel-main {
    flex: 1;
    display: flex;
    position: relative;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

#main {
    flex: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #main {
        width: 100%;
        height: 100%;
        /* 减去header高度 */
    }
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.table-responsive td:first-child,
.table-responsive th:first-child {
    position: sticky;
    left: 0;
    /* 首列永远固定在左侧 */
    z-index: 1;
    background-color: #ffffffef;
}

.table-responsive th:first-child {
    z-index: 2;
}

/*页面*/
.table-responsive th>div {
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
}

/* 默认样式 - 桌面端 */
.table-responsive {
    flex: 1;
    overflow: auto;
    max-height: 500px;
}

#novelTable {
    width: 1550px;
}

/* 手机端样式 */
@media only screen and (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #novelTable {
        min-width: 1550px;
        /* 保持表格原始宽度，强制横向滚动 */
    }
}

.rw-table-responsive {
    height: 580px;
}

@media (max-width: 768px) {
    .rw-table-responsive {
        height: 380px;
    }
}

/* 修复表格内容不铺满的问题 */
#test,
#test2 {
    width: 100% !important;
    /* 让表格宽度适应容器 */
    table-layout: fixed;
    /* 固定布局，确保列宽均匀分配 */
}

/* 确保输入框和选择框完全填充单元格 */
#test input,
#test2 input,
#test select,
#test2 select {
    width: 100%;
    height: 100%;
    /* border: 1px solid #ddd !important; 添加边框便于识别 */
    box-sizing: border-box;
    /* 包含边框在宽度内 */
    padding: 4px 8px;
    background-color: transparent;
}

/* 移除单元格默认间距 */
#test td,
#test2 td {
    padding: 0 !important;
    margin: 0 !important;
}

/* 确保表头也铺满 */
#test th,
#test2 th {
    padding: 8px 4px;
    background-color: #202020;
}


/* 调试样式 - 可以看到每个单元格的边界 */
#test td,
#test2 td {
    border: 1px solid #e0e0e0 !important;
    position: relative;
}

#test input:focus,
#test2 input:focus {
    background-color: #f0f8ff;
    outline: none;
}

/* 确保表格容器正确 */
.table-responsive {
    width: 100%;
    border: 1px solid #ddd;
}

/* 移除可能影响布局的样式 */
#new_renwu_sd,
#new_renwu_gx {
    box-sizing: border-box;
}






/* 地图区   添加以下CSS样式来确保输入框与单元格大小一致 */
.sticky-table {
    table-layout: fixed;
    /* 关键：固定表格布局 */
}

.sticky-table td,
.sticky-table th {
    padding: 0 !important;
    /* 关键：移除单元格内边距 */
    position: relative;
    /* 为输入框定位做准备 */
    height: 32px;
    /* 设置固定高度 */
    box-sizing: border-box;
    /* 确保边框包含在尺寸内 */
}

.sticky-table input {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    padding: 4px 6px !important;
    /* 添加适当内边距 */
    box-sizing: border-box !important;
    /* 关键：确保内边距包含在宽度内 */
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px;
    outline: none;
    background: transparent;
}

/* 特殊单元格样式的调整 */
.x21 {
    background-color: #13a9f5ef;
}

.x27 {

    background-color: #13a9f5ef;
}

.x30 {
    background-color: #13a9f5ef;
}

.x32 {
    vertical-align: bottom;
    background-color: #13a9f5ef;
}

.x33 {
    background-color: #13a9f5ef;
}

.x35 {
    border-top: 3px solid windowtext;

    border-left: 3px dashed windowtext;
}

.x36 {
    border-top: 3px solid windowtext;
}

.x37 {
    border-top: 3px solid windowtext;
    border-right: 2px solid windowtext;
}

.x38 {
    border-top: 3px solid windowtext;
    border-left: 3px dashed windowtext;
}

.x39 {
    border-top: 3px solid windowtext;
}

.x40 {
    border-top: 3px solid windowtext;
    border-right: 2px solid windowtext;
}

.x41 {
    border-left: 3px dashed windowtext;
}

.x43 {
    border-right: 2px solid windowtext;
}

.x44 {
    border-left: 3px dashed windowtext;
}

.x46 {
    border-right: 2px solid windowtext;
}

.x47 {
    border-bottom: 2px solid windowtext;
    border-left: 3px dashed windowtext;
}

.x48 {
    border-bottom: 2px solid windowtext;
}

.x49 {
    border-right: 2px solid windowtext;
    border-bottom: 2px solid windowtext;
}

.x50 {
    border-bottom: 2px solid windowtext;
    border-left: 3px dashed windowtext;
}

.x51 {
    border-bottom: 2px solid windowtext;
}

.x52 {
    border-right: 2px solid windowtext;
    border-bottom: 2px solid windowtext;
}


/* 确保滚动容器正常工作 */
#scrollable-content {
    height: 900px;
    overflow: auto;
}

/* 保持现有的固定表头和首列样式 */
.sticky-table th {
    position: sticky;
    top: 0;
    background-color: #13a9f5ef;
    z-index: 10;
}

.sticky-table td:first-child,
.sticky-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #f8f9fa;
}

.sticky-table th:first-child {
    z-index: 15;
    background-color: #13a9f5ef;
}










/* 词频图表专用样式 - 优化布局 */
.keyword-input {
    width: 80px;
    height: 30px;
    padding: 4px 8px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.generate-btn {
    height: 30px;
    padding: 0 12px;
    margin: 0 10px;
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.generate-btn:hover {
    background: #5a0db5;
}

.chart-type-selector {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 12px;
}

#cipintu {
    height: 100%;
    width: 100%;
    min-height: 100%;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 布局优化 */
.panel-cipin {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 50px;
}

/* 确保表格和图表有合适的空间分配 */
.editor-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.panel-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 表格容器 - 固定高度，可滚动 */
.table-responsive {
    height: 30%;
    /* 固定高度 */
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

/* 图表容器 - 剩余空间 */
.chart-area {
    flex: 1;
    min-height: 65%;
    position: relative;
}













/* 语法分析模块专用样式 */
.yffx-container {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.yffx-tutorial-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.yffx-output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    gap: 20px;
}

.yffx-input-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.yffx-input-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.yffx-section-title {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4299e1;
}

#yffx-inputText {
    width: 100%;
    min-height: 350px;
    max-height: 350px;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

#yffx-inputText:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.yffx-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.yffx-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

#yffx-analyzeBtn {
    background: #4299e1;
    color: white;
}

#yffx-analyzeBtn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

#yffx-resetBtn {
    background: #e2e8f0;
    color: #4a5568;
}

#yffx-cha-bc {
    background: #eb5c31;
    color: #ffffff;
}

#yffx-resetBtn:hover {
    background: #cbd5e0;
}

.yffx-stats-display {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.yffx-stats-display:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.yffx-stats-title {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yffx-stats-title::before {
    content: "📊";
    font-size: 1.2em;
}

.yffx-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.yffx-stat-item {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.yffx-stat-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.yffx-stat-label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 4px;
}

.yffx-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.yffx-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 10px 0;
}

.yffx-chart-box {
    height: 280px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.yffx-chart-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


.yffx-progress {
    margin: 10px 0;
    padding: 12px;
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    font-size: 14px;
    color: #2b6cb0;
}

#yffx-zl_copyBtn,
#yffx-highFreqBtn {
    background: #48bb78;
    color: white;
}

#yffx-zl_copyBtn,
#yffx-highFreqBtn:hover {
    background: #38a169;
}

#yffx-clearFreqBtn {
    background: #f56565;
    color: white;
}

#yffx-clearFreqBtn:hover {
    background: #e53e3e;
}

#yffx-statsOutput,
#yffx-reportOutput {
    width: 100%;
    min-height: 350px;
    max-height: 350px;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f8fafc;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
}


#yffx-copyBtn {
    background: #9f7aea;
    color: white;
}

#yffx-copyBtn:hover {
    background: #805ad5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .yffx-stats-grid {
        grid-template-columns: 1fr;
    }

    .yffx-charts-container {
        grid-template-columns: 1fr;
    }

    .yffx-chart-box {
        height: 250px;
    }

    .yffx-buttons {
        flex-direction: column;
    }

    .yffx-buttons button {
        width: 100%;
    }


}


















/* 移除结果容器的固定高度和内部滚动 */
#image-results,
#video-results {
    /* 移除以下这些限制高度的属性 */
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    min-height: 0;

    /* 改为使用网格布局 */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
    margin-bottom: 40px;
}

/* 如果需要，可以为内容区域添加滚动，但不是结果容器 */


/* 确保选项卡内容没有高度限制 */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    height: auto;
}

/* 你的卡片样式保持不变，已经很好 */
.result-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 图片和视频区域固定高度 */
.result-image,
.result-video {
    height: 200px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

/* 内容区域自适应剩余空间 */
.result-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.result-content h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* 按钮区域固定在底部 */
.result-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 空状态样式 */
.empty-state {
    grid-column: 1 / -1;
    /* 空状态占满整行 */
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 10px 0;
    color: #333;
    font-size: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {

    #image-results,
    #video-results {
        grid-template-columns: 1fr;
        /* 移动端单列显示 */
        gap: 15px;
    }

    .result-card {
        min-height: 340px;
    }

    .result-image,
    .result-video {
        height: 180px;
        min-height: 180px;
    }

    .result-content {
        padding: 15px;
    }
}

/* AI临时显示 */
.ai-draggable {
    cursor: move !important;
    user-select: none !important;
}

.ai-draggable:active {
    cursor: grabbing !important;
}















/* 试用弹窗样式 */
.trial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.trial-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.trial-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.trial-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.trial-subtitle {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 15px;
}

.trial-body {
    padding: 24px;
}

.trial-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.feature-icon {
    font-size: 18px;
}

.feature-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 获取试用码说明区域 */
.trial-instructions {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #d1e3ff;
}

.instructions-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.instruction-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.step-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.bilibili-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f7ff;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d1e3ff;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.bilibili-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.bilibili-icon {
    font-size: 14px;
}

.wechat-info {
    background: #f5f7ff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}

.wechat-account {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.wechat-icon {
    font-size: 14px;
}

.wechat-code {
    background: #2c3e50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.step-tip {
    background: #fff9e6;
    border-left: 3px solid #ffc107;
    padding: 6px 10px;
    font-size: 12px;
    color: #8a6d3b;
    border-radius: 0 4px 4px 0;
    margin-top: 8px !important;
}

.trial-code-section {
    margin-bottom: 20px;
}

.trial-code-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.trial-code-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: monospace;
    background: white;
    transition: all 0.3s;
    box-sizing: border-box;
}

.trial-code-input:focus {
    outline: none;
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.trial-code-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #888;
}

.trial-error-message,
.trial-success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.trial-error-message.show {
    display: block;
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    animation: fadeIn 0.3s;
}

.trial-success-message.show {
    display: block;
    background: #efffee;
    color: #2a8;
    border: 1px solid #cfc;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.trial-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-activate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-activate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-activate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-skip {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-skip:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.trial-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.trial-note {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .trial-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 85vh;
    }

    .trial-header {
        padding: 20px;
    }

    .trial-header h2 {
        font-size: 22px;
    }

    .trial-body {
        padding: 20px;
    }

    .trial-instructions {
        padding: 14px;
    }

    .instruction-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .step-number {
        margin: 0;
    }

    .bilibili-link {
        width: 100%;
        justify-content: center;
    }
}

/* 滚动条样式 */
.trial-modal-content::-webkit-scrollbar {
    width: 8px;
}

.trial-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.trial-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.trial-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}










/* 移动端响应式设计 - 修复工作区高度问题 */
@media (max-width: 768px) {

    /* 主内容区域 - 固定高度，允许滚动 */
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 0;
        overflow-x: hidden;
        height: 100vh;
        /* 视口高度 */
        overflow-y: auto;
        /* 允许垂直滚动 */
        -webkit-overflow-scrolling: touch;
    }

    .container {
        flex-direction: column;
        height: auto;
        /* 自动高度，不会限制内容 */
        min-height: 180vh;
        /* 两个80vh的工作区加上一些间距 */
        padding: 0;
        overflow: visible;
        /* 允许溢出 */
    }

    /* 左右大区各占80%屏幕高度，可以独立滚动 */
    .editor-panel,
    .preview-panel,
    .writing-panel {
        height: 95vh;
        /* 固定80%屏幕高度 */
        min-height: 95vh;
        /* 最小高度 */
        border-right: none;
        border-bottom: 2px solid #3498db;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        /* 隐藏外部滚动条 */
        position: relative;
        margin-bottom: 10px;
        /* 两个工作区之间的间距 */
    }

    /* 最后一个大区不需要底部边框 */
    .container>div:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* 大区标题栏 */
    .panel-header,
    .writing-header,
    .prompt-header {
        flex-shrink: 0;
        /* 防止标题栏被压缩 */
        padding: 12px 15px;
        background: #2c3e50;
        color: white;
    }

    /* 内容区域 - 可以滚动 */
    .panel-content,
    .panel-contents,
    .writing-contents,
    .writing-content,
    .prompt-content {
        flex: 1;
        /* 占满剩余空间 */
        min-height: 0;
        /* 允许收缩 */
        overflow-y: auto;
        /* 内部可以滚动 */
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    /* ===== 针对影视分析区左侧的特殊结构 ===== */
    /* editor-container 作为 flex 容器 */
    .editor-container {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* 当 editor-container 中有多个文本区域时 */
    .editor-container textarea:nth-child(1):nth-last-child(3),
    .editor-container textarea:nth-child(1):nth-last-child(3)~textarea {
        flex: 0 0 44%;
        /* 各占44%高度 */
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    /* 中间的按钮区域 */
    .editor-container .panel-header {
        flex: 0 0 12%;
        /* 固定12%高度 */
        min-height: 40px;
        flex-shrink: 0;
        padding: 8px 15px;
        background: #f8f9fa;
        color: #333;
        border-top: 1px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
    }

    /* ===== 针对影视分析区右侧的结构 ===== */
    /* 只有一个文本区域时占满整个editor-container */
    .editor-container textarea:only-child {
        flex: 1;
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ===== 针对写作区左侧的结构 ===== */
    /* 写作区左侧的特殊布局：输入框+选择框区域 */
    .writing-panel>div:not(.panel-header):not(.writing-contents):not(.prompt-content) {
        flex-shrink: 0;
        padding: 8px 15px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }

    /* 写作区内容区域（只有一个textarea） */
    .writing-contents>textarea {
        height: 100%;
        min-height: 0;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ===== 通用文本区域样式 ===== */
    #txst-aigai,
    #inputText,
    #zhidingzhiling,
    #output,
    #aizdys,
    #yffx-inputText,
    #yffx-reportOutput,
    #yffx-statsOutput,
    #aikuais_bj,
    #txst-qingjie,
    #txst-sw-hx,
    #txst-sw-bj,
    #txst-zidong,
    #Text-typeList,
    #Text-sd-mofang,
    #Text-fj-mofang,
    #Text-fj-fenxi,
    #aixhTest,
    #aixhTest_end,
    #AI_kuaigao,
    #AI_xunhuan,
    #aikuais,
    #aikuais_fx,
    #aikuais_fx2,
    #aikuais_fx3,
    #aikuais_fx4,
    #aikuais_fx5,
    #aikuais_fx6,
    #aikuais_fx7,
    #guanjianci,
    #jianjie,
    #zddgxs,
    #txst-zimufenxi,
    #txst-aifengge,
    #txst-aifengge-jg,
    #tyts_txt,
    #txst-sw,
    #txst-tl-txt,
    #wenbenfx_txt,
    #chat-AIkuaixie,
    #xuxietis,
    #xuxietis1,
    #xuxietis2,
    #outputzimuText,
    #outputText,
    #subtitleInput,
    #chat-taolu,
    #chat-zhangjiegy {
        width: 100%;
        box-sizing: border-box;
        resize: none;
        background: white;
    }

    /* 按钮容器 */
    .btn-container,
    .writing-controls {
        flex-shrink: 0;
        padding: 12px 15px;
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* 确保按钮在移动端可见 */
    .btn-container button,
    .writing-controls button {
        min-height: 36px;
        font-size: 14px;
    }

    /* 侧边栏移动端样式 */
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar.mobile-expanded {
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-menu-button {
        display: flex;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 1001;
    }
}

/* 针对特别小的屏幕优化 */
@media (max-width: 480px) {

    .editor-panel,
    .preview-panel,
    .writing-panel {
        height: 75vh;
        /* 在小屏幕上稍微减小高度 */
        min-height: 75vh;
    }

    .editor-container textarea:nth-child(1):nth-last-child(3),
    .editor-container textarea:nth-child(1):nth-last-child(3)~textarea {
        flex: 0 0 42%;
        /* 稍微调整高度比例 */
    }

    .editor-container .panel-header {
        flex: 0 0 16%;
        /* 增加按钮区域高度 */
    }

    .panel-header,
    .writing-header,
    .prompt-header {
        flex-wrap: wrap;
    }

    /* 在非常小的屏幕上，按钮堆叠显示 */
    .btn-container,
    .writing-controls {
        flex-direction: column;
    }

    .btn-container button,
    .writing-controls button {
        width: 100%;
    }
}

/* 隐藏/显示容器的类保持不变 */
.hidden {
    display: none !important;
}

.container:not(.hidden) {
    display: flex;
}










/* 移动端响应式设计 - 修复工作区高度问题 */
@media (max-width: 768px) {
    /* ... 前面的样式保持不变 ... */

    /* ===== 针对文本词频分析区的特殊结构 ===== */
    #cpfx-container .editor-container {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* 表格区域 - 最大高度50% */
    #cpfx-container .table-responsive {
        flex: 0 0 50%;
        /* 固定50%高度 */
        min-height: 0;
        max-height: 50%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    /* 表格样式调整 */
    #cpfx-container .table-responsive table {
        width: 100%;
        table-layout: fixed;
    }

    #cpfx-container .table-responsive th,
    #cpfx-container .table-responsive td {
        padding: 8px 5px;
        font-size: 12px;
    }

    #cpfx-container .table-responsive th:first-child,
    #cpfx-container .table-responsive td:first-child {
        width: 30px;
        /* 固定章列宽度 */
        text-align: center;
    }

    #cpfx-container .table-responsive td:nth-child(2) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 控制区域 - 最大高度30% */
    #cpfx-container .panel-cipin {
        flex: 0 0 30%;
        /* 固定30%高度 */
        min-height: 0;
        max-height: 30%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 10px;
        border-bottom: 1px solid #eee;
        background: #f8f9fa;
    }

    /* 关键词输入框在移动端调整 */
    #cpfx-container .keyword-input {
        width: 70px;
        height: 28px;
        font-size: 12px;
        padding: 2px 5px;
    }

    /* 生成按钮在移动端调整 */
    #cpfx-container .generate-btn {
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    /* 图表类型选择器在移动端调整 */
    #cpfx-container .chart-type-selector {
        height: 28px;
        font-size: 12px;
        padding: 0 5px;
    }

    /* 图表区域 - 最大高度70% */
    #cpfx-container .chart-area {
        flex: 0 0 70%;
        /* 固定70%高度 */
        min-height: 0;
        max-height: 70%;
        overflow: hidden;
        position: relative;
    }

    #cpfx-container #cipintu {
        width: 100%;
        height: 100%;
        min-height: 200px;
        /* 最小高度保证图表可见 */
        background: white;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    /* 在非常小的屏幕上调整比例 */
    @media (max-width: 480px) {
        #cpfx-container .table-responsive {
            flex: 0 0 45%;
            /* 稍微减小表格高度 */
        }

        #cpfx-container .panel-cipin {
            flex: 0 0 25%;
            /* 稍微减小控制区域高度 */
        }

        #cpfx-container .chart-area {
            flex: 0 0 90%;
            /* 增加图表区域高度 */
        }

        /* 在超小屏幕上，控制区域垂直排列 */
        #cpfx-container .panel-cipin {
            flex-direction: column;
            align-items: stretch;
        }

        #cpfx-container .keyword-input {
            width: 100%;
            margin-bottom: 5px;
        }

        #cpfx-container .generate-btn,
        #cpfx-container .chart-type-selector {
            width: 100%;
        }
    }

    /* ... 后面的其他样式保持不变 ... */
}

/* 针对特别小的屏幕优化 */
@media (max-width: 480px) {
    /* ... 其他样式保持不变 ... */

    /* 词频分析区的特殊调整 */
    #cpfx-container .writing-panel {
        height: 85vh;
        /* 增加一点高度容纳三个区域 */
        min-height: 85vh;
    }
}









/* 地图区 基础样式 */
.dtwriting-panel {
    height: 100vh;
    /* 占据整个视口高度 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 防止整个面板滚动 */
}

.dtpanel-header {
    height: 12%;
    min-height: 60px;
    /* 确保在手机上有足够高度 */
    flex-shrink: 0;
    /* 防止标题区被压缩 */
    padding: 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    /* 标题区内容过多时可水平滚动 */
}

.ditu-main {
    flex: 1;
    /* 占据剩余空间 */
    overflow: auto;
    /* 启用滚动 */
    position: relative;
    -webkit-overflow-scrolling: touch;
    /* iOS平滑滚动 */
}

#scrollable-content {
    min-height: 100%;
    min-width: 100%;
}

#dt-table {
    table-layout: fixed;
    width: 2367pt;
    border: 0;
    border-collapse: collapse;
    margin: 0;
}

/* 手机端优化 */
@media only screen and (max-width: 768px) {
    .dtwriting-panel {
        height: 100vh;
    }

    .dtpanel-header {
        height: auto;
        min-height: 70px;
        padding: 6px;
    }

    .ditu-main {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #dt-table {
        min-width: 2367pt;
        width: 2367pt;
        transform: none !important;
        zoom: 1 !important;
    }



}

/* 桌面端样式 */
@media only screen and (min-width: 769px) {
    .dtpanel-header {
        height: 7%;
        min-height: 50px;
        padding: 10px;
    }

    .ditu-main {
        overflow: auto;
    }

    #dt-table {
        width: 2367pt;
    }
}

/* 确保滚动条始终可见 */
.ditu-main::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.ditu-main::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ditu-main::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.ditu-main::-webkit-scrollbar-thumb:hover {
    background: #555;
}


#dt-table td input {
    border: none !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    font-size: inherit !important;
    font-family: inherit !important;
    color: inherit !important;
    text-align: inherit !important;
}



/* 清除表格行的默认样式 */
#dt-table tr {
    border: none !important;
    background: none !important;
}

/* 确保输入框在单元格内正确显示 */
#dt-table td {
    position: relative;
}

#dt-table td input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
}











#selected-quhen {
    display: flex;
    align-items: center;
    gap: 8px;  /* 与外层 toolbar 的 gap 保持一致 */
    width: 100%;  /* 确保占满可用宽度 */
    flex-wrap: nowrap;  /* 强制不换行 */
}

/* 文本选择提示条样式 */
.selection-toolbar {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 8px 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: 'Microsoft YaHei', sans-serif;
    animation: fadeInUp 0.25s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    /* 改为自动宽度 */
    min-width: min-content; /* 根据内容调整最小宽度 */
    max-width: 90%; /* 限制最大宽度为父容器的90% */
    box-sizing: border-box;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* 提示条箭头（位于下方） */
.selection-toolbar::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #764ba2;
}

/* 字数统计样式 - 优化布局 */
#selected-char-count {
    color: white;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 70px; /* 稍微宽一点容纳文字 */
}

#selected-char-count span {
    font-weight: 700;
    color: #ffd700;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

/* 按钮样式优化 - 统一尺寸 */
.toolbar-btn {
    border: none;
    color: white;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 60px; /* 统一按钮宽度 */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
}

.toolbar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.toolbar-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 不同按钮颜色配置 */
#runse-btn {
    background: linear-gradient(135deg, #36D1DC, #5B86E5);
}

#runse-btn:hover {
    background: linear-gradient(135deg, #5B86E5, #36D1DC);
    box-shadow: 0 4px 12px rgba(91, 134, 229, 0.3);
}

#quhen-btn {
    background: linear-gradient(135deg, #36D1DC, #5B86E5);
}

#quhen-btn:hover {
    background: linear-gradient(135deg, #5B86E5, #36D1DC);
    box-shadow: 0 4px 12px rgba(91, 134, 229, 0.3);
}

#polish-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

#polish-btn:hover {
    background: linear-gradient(135deg, #FF8E53, #FF6B6B);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

#copy-btn {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

#copy-btn:hover {
    background: linear-gradient(135deg, #44A08D, #4ECDC4);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* 润色按钮加载状态 */
.polish-btn.loading {
    position: relative;
    color: transparent;
}

.polish-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式调整 - 如果在小屏幕上 */
@media (max-width: 300px) {
    .selection-toolbar {
        width: 260px;
        padding: 8px 10px;
        gap: 6px;
    }
    
    .toolbar-btn {
        width: 55px;
        font-size: 11px;
    }
    
    #selected-char-count {
        font-size: 12px;
        min-width: 65px;
    }
}

/* 响应式调整 */
@media (max-width: 600px) {
    .selection-toolbar {
        max-width: 95%;
        padding: 6px 10px;
        gap: 6px;
        font-size: 14px;
    }
    
    .selection-toolbar::after {
        display: none; /* 在小屏幕上隐藏箭头 */
    }
}

/* 防止内容溢出 */
#selected-quhen {
    display: flex;
    align-items: center;
    overflow: visible;
    flex-shrink: 0;
}

/* 按钮和下拉框样式优化 */
.toolbar-btn {
    padding: 4px 12px;
    font-size: 13px;
    height: 32px;
    flex-shrink: 0;
}

#quhenselect {
    height: 32px;
    font-size: 13px;
    padding: 0 8px;
    flex-shrink: 0;
}












/* 基础样式保持不变，添加以下样式 */

/* PC端样式 */
@media (min-width: 769px) {
    .container.resizable .editor-panel {
        flex: 0 0 55%;
        min-width: 300px;
        max-width: 85%;
        transition: flex-basis 0.2s ease;
        overflow: hidden;
    }
    
    .container.resizable .preview-panel {
        flex: 0 0 45%;
        min-width: 300px;
        max-width: 85%;
        transition: flex-basis 0.2s ease;
        overflow: hidden;
        position: relative;
    }
    
    /* 拖动条样式 */
    .resize-handle {
        width: 10px;
        height: 100%;
        background-color: #f0f0f0;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        cursor: col-resize;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10;
        flex-shrink: 0;
        transition: background-color 0.2s;
    }
    
    .resize-handle:hover {
        background-color: #e0e0e0;
    }
    
    .resize-handle.active {
        background-color: #3498db;
    }
    
    .resize-handle.active::before {
        background-color: #fff !important;
    }
    
    /* 拖动条中间的视觉指示器 */
    .resize-handle::before {
        content: '';
        width: 2px;
        height: 30px;
        background-color: #bbb;
        border-radius: 1px;
    }
    
    /* 隐藏/显示按钮样式 */
    .panel-actions {
        position: absolute;
        top: 10px;
        left: -35px;
        z-index: 20;
    }
    
    .toggle-panel-btn {
        width: 30px;
        height: 30px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #495057;
        transition: all 0.2s;
    }
    
    .toggle-panel-btn:hover {
        background: #e9ecef;
        color: #212529;
    }
    
    /* 面板隐藏时的样式 */
    .preview-panel.hidden {
        flex: 0 0 0px !important;
        min-width: 0 !important;
        max-width: 0 !important;
        overflow: hidden;
        border: none;
    }
    
    .preview-panel.hidden .panel-content,
    .preview-panel.hidden .btn-container {
        display: none;
    }
    
    .preview-panel.hidden .toggle-panel-btn {
        left: 0;
        transform: rotate(180deg);
    }
    
    /* 当右侧面板隐藏时，左侧面板占据全部空间 */
    .preview-panel.hidden ~ .editor-panel {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}




/* 输出内容区域样式 */
.output-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    
    /* 自定义滚动条 */
    --scrollbar-thumb-color: #b8b8b8;
    --scrollbar-track-color: #f0f0f0;
    --scrollbar-width: 14px;
    --scrollbar-hover-width: 16px;
}

/* 优化滚动体验 */
.output-content {
    /* 标准属性 */
    scrollbar-width: var(--scrollbar-width);
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
    
    /* 平滑滚动 */
    scroll-behavior: smooth;
}

/* Webkit 浏览器 */
.output-content::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

.output-content::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
    border-radius: 0;
}

.output-content::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
    border-radius: 7px;
    border: 3px solid var(--scrollbar-track-color);
    background-clip: padding-box;
    min-height: 40px; /* 最小高度，方便点击 */
}

.output-content::-webkit-scrollbar-thumb:hover {
    background: #999;
    border-width: 2px;
}

.output-content::-webkit-scrollbar-thumb:active {
    background: #777;
}

.output-content::-webkit-scrollbar-corner {
    background: var(--scrollbar-track-color);
}

/* 移动端触摸友好 */
@media (hover: none) and (pointer: coarse) {
    .output-content {
        --scrollbar-width: 18px;
    }
    
    .output-content::-webkit-scrollbar-thumb {
        border: 4px solid var(--scrollbar-track-color);
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .output-content {
        --scrollbar-thumb-color: #555;
        --scrollbar-track-color: #2a2a2a;
    }
}

/* 确保内容区域样式 */
#output {
    font-family: inherit;
    font-size: inherit;
    line-height: 1.6;
    color: inherit;
}

#output * {
    max-width: 100%;
    word-break: break-word;
}