﻿body, div, strong,p {
    color: #666
}
table {
    margin-bottom: 10px;
    border-collapse: collapse;
    display: table;
    border: 1px dashed #ddd
}

#test td {
    padding: 5px;
    border: 1px solid #fff;
}

    #test td.section-title {
        border-bottom: 2px solid #e6f3ff
    }

    #test td.content {
        border-bottom: 2px solid #e6f3ff
    }

        #test td.content:hover {
            border-top: 2px solid #87ceeb;
            border-color: #87ceeb;
            background: #f8fbff;
            box-shadow: 10px 4px 15px rgba(135, 206, 235, 0.2);
            transform: translateY(-2px);
        }

/* Top Toolbar */
.toolbar {
    background: #c61717;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border-right: 1px solid #e0e0e0;
}

    .toolbar-group:last-child {
        border-right: none;
    }

.toolbar-btn {
    padding: 4px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    color: #666;
}

    .toolbar-btn:hover {
        background: #f0f0f0;
    }

    .toolbar-btn.active {
        background: #e3f2fd;
        color: #1976d2;
    }

.font-size-select {
    border: 1px solid #ddd;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

/* Main Layout */
.main-layout {
    display: flex;
    height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 30%;
    background: white;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    float: left;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.search-box {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.sidebar-content {
    padding: 16px;
}

.content-section {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quote-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    position: relative;
}

.quote-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

.quote-decoration {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 48px;
    color: #ddd;
    font-family: serif;
}

.timeline-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 16px;
}

.timeline-title {
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .timeline-title::before {
        content: "⭐";
    }

.timeline-content {
    font-size: 14px;
    color: #666;
}

.materials-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 16px;
}

.materials-title {
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .materials-title::before {
        content: "⭐";
    }

.notice-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 16px;
}

.notice-title {
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .notice-title::before {
        content: "⭐";
    }

.bottom-text {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 16px;
    font-size: 14px;
    color: #1976d2;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f5f5f5;
    width: 68%;
    float: left;
}

.document-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px dashed #ddd;
    position: relative;
}

    .document-card.orange-theme {
        background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
        border-color: #ffb74d;
    }

    .document-card.blue-theme {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border-color: #64b5f6;
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.card-icon {
    width: 24px;
    height: 24px;
    background: #ffb74d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.blue-theme .card-icon {
    background: #64b5f6;
}

.card-title {
    font-weight: bold;
    color: #333;
}

.card-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    border: 1px dashed #ccc;
    padding: 16px;
    border-radius: 4px;
    background: rgba(255,255,255,0.5);
}

.service-section {
    margin-top: 20px;
}

.service-header {
    background: #ffb74d;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    margin-bottom: 16px;
}

.service-list {
    list-style: none;
}

.service-item {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

    .service-item::before {
        content: "≫";
        position: absolute;
        left: 0;
        color: #64b5f6;
        font-weight: bold;
    }

.word-count {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 12px;
    color: #999;
}

.containerext {
    width: 100%;
    float: left;
}

.content-area {
    width: 80%;
    float: left;
}

    .content-area .sidebar {
        width: 20%;
        float: left;
        max-height: 900px;
        overflow-y: scroll;
    }

    .content-area .main-content {
        width: 78%;
        float: right;
        max-height: 800px;
        overflow: scroll;
    }

.chat-panel {
    width: 18%;
    float: right;
}

.fr-wrapper {
    min-height: 500px
}

.fr-box.fr-basic .fr-element {
    min-height: 500px
}
#sidebar {
    display: block;
}
.toolbar {
display:none;
}
/* 强制自定义按钮使用 Froala 默认样式 */
.fr-btn.fr-command.extract,
.fr-btn.fr-command.replace {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    padding: 5px 10px !important;
}

    /* 鼠标悬停效果 */
    .fr-btn.fr-command.extract:hover,
    .fr-btn.fr-command.replace:hover {
        background-color: #e9e9e9 !important;
    }
@media (max-width: 1108px) {
    #sidebar {
        display: none;
        width: 90%;
        position: fixed;
        background:#ffffff;
        z-index:9999
    }
    .content-area .main-content {
        width: 99%;
    }
    .toolbar {
        display: block;
        width: 100%;
        margin: 0 auto;
        overflow: hidden;
        height: 45px;
    }
        .toolbar .mobile-menu-btn {
            position: relative;
            display: inline-block;
            float: right;
            margin-right: 10px;
            top: -40px;
            color: #fff;
        }
        .toolbar .toolbar_title {
            width: 90%;
            text-align: center;
            font-size: 16px;
            color: #fff;
            font-family: 幼圆;
        }
    .header-btn {
     width:99%;
     margin-top:10px;
    }
    }
.containerext .chat-panel { 
    background: #9de18a; 
}
.chat-choose {
    width: 100%;
    margin: 0 auto;
}
    .chat-choose button {
        width: 48%;
        height: 40px;
        margin: 1%;
        border: none;
        border-radius: 5px;
        background: #fff;
        color: #333;
        font-size: 14px;
        cursor: pointer;
        float: left;
        display: inline-block;
    }
/** 增加选中背景色*/
    .chat-choose button.active {
         background:#7ba9e1;
         color:#ffffff
    }
