/* ========== 活动策划工具容器 ========== */
.ep-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 620px;
    background: #fffbf5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(200, 100, 30, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0d5b0;
}

/* 全屏模式 */
.ep-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    border: none;
}

/* ========== 顶部工具栏 ========== */
.ep-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 12px;
    background: linear-gradient(135deg, #c0651a 0%, #e8891a 50%, #c0651a 100%);
    color: white;
    flex-wrap: nowrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(192, 101, 26, 0.35);
    flex-shrink: 0;
    min-height: 36px;
}

.ep-toolbar .toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.ep-toolbar .toolbar-title-group {
    flex: 1;
    justify-content: center;
}

.ep-toolbar-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ep-toolbar-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #c0651a;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.ep-toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.ep-toolbar-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.ep-toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.6);
}

/* ========== 主内容区域 ========== */
.ep-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #fffbf5;
}

/* ========== 左侧历史面板 ========== */
.ep-history-panel {
    width: 210px;
    min-width: 160px;
    background: #fff;
    border-right: 1px solid #f0d5b0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.ep-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #fff4e6, #ffe8cc);
    border-bottom: 1px solid #f0d5b0;
    flex-shrink: 0;
}

.ep-history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #8b4510;
}

.ep-history-clear-btn {
    background: #fff0e0;
    border: 1px solid #f0c898;
    color: #c0551a;
    font-size: 11px;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ep-history-clear-btn:hover {
    background: #ffe0c0;
    border-color: #e09050;
}

.ep-history-search {
    padding: 7px 10px;
    border-bottom: 1px solid #f0d5b0;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #fff4e6, #ffe8cc);
}

.ep-history-search input {
    width: 100%;
    padding: 4px 10px 4px 26px;
    border: 1px solid #e8c898;
    border-radius: 12px;
    font-size: 11px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fffcf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e8891a' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='17' y1='17' x2='22' y2='22'/%3E%3C/svg%3E") no-repeat 8px center;
    color: #4a2a10;
}

.ep-history-search input::placeholder {
    color: #c8a468;
    font-size: 11px;
}

.ep-history-search input:focus {
    border-color: #e8891a;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(232, 137, 26, 0.15);
}

.ep-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    background: #fff;
}

.ep-history-list::-webkit-scrollbar { width: 4px; }
.ep-history-list::-webkit-scrollbar-track { background: #fff4e6; }
.ep-history-list::-webkit-scrollbar-thumb { background: #e8c898; border-radius: 2px; }

.ep-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    color: #b08050;
    text-align: center;
    gap: 6px;
}

.ep-history-empty span { font-size: 13px; }
.ep-history-empty small { font-size: 11px; color: #c8a060; }

.ep-history-item {
    display: flex;
    flex-direction: column;
    padding: 9px 12px;
    margin: 3px 8px;
    background: #fffbf5;
    border: 1px solid #f0d5b0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    animation: epFadeInHistory 0.2s ease;
}

@keyframes epFadeInHistory {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

.ep-history-item:hover {
    background: #ffeedd;
    border-color: #e8891a;
    transform: translateX(2px);
    box-shadow: inset 3px 0 0 rgba(232, 137, 26, 0.55);
}

.ep-history-item.active {
    background: #ffe8c8;
    border-color: #e8891a;
    box-shadow: inset 3px 0 0 #e8891a, 0 1px 6px rgba(232, 137, 26, 0.2);
}

.ep-history-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #5a2510;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.ep-history-item-meta {
    display: inline-block;
    margin-top: 3px;
    font-size: 10px;
    color: #c0651a;
    background: #fff4e6;
    border: 1px solid #f0d5b0;
    border-radius: 8px;
    padding: 1px 6px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-history-item-time {
    font-size: 10px;
    color: #b09070;
    margin-top: 2px;
}

.ep-history-item-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: transparent;
    color: #cc7748;
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    opacity: 0;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}

.ep-history-item:hover .ep-history-item-delete { opacity: 1; }
.ep-history-item-delete:hover { background: #ffd8b0; color: #c0381a; }

.ep-history-footer {
    padding: 6px 12px;
    border-top: 1px solid #f0d5b0;
    background: #fff4e6;
    flex-shrink: 0;
}

.ep-history-count { font-size: 11px; color: #9a7050; }

/* ========== 中间输入面板 ========== */
.ep-input-panel {
    width: 360px;
    min-width: 290px;
    background: #fff;
    border-right: 1px solid #f0d5b0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.ep-panel-header {
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fff4e6, #ffe8cc);
    border-bottom: 1px solid #f0d5b0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ep-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #8b4510;
}

.ep-input-section {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ep-input-section::-webkit-scrollbar { width: 4px; }
.ep-input-section::-webkit-scrollbar-thumb { background: #e8c898; border-radius: 2px; }

/* 表单行布局 */
.ep-form-row {
    display: flex;
    gap: 8px;
}

.ep-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ep-field-wide {
    flex: 1 1 100%;
}

.ep-input-label {
    font-size: 12px;
    font-weight: 600;
    color: #7a3a10;
    letter-spacing: 0.2px;
}

.ep-required {
    color: #c0401a;
    margin-left: 2px;
}

.ep-text-input,
.ep-select-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e8c898;
    border-radius: 5px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #3a1808;
    background: #fffcf8;
    font-family: inherit;
}

.ep-text-input:focus,
.ep-select-input:focus {
    border-color: #e8891a;
    box-shadow: 0 0 0 2px rgba(232, 137, 26, 0.15);
    background-color: #fff;   /* 修复：不能用background快捷属性，会清除select的自定义箭头图标 */
}

.ep-text-input::placeholder { color: #c8a868; font-size: 12px; }

.ep-select-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23e8891a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.ep-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e8c898;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #3a1808;
    background: #fffcf8;
    font-family: inherit;
}

.ep-textarea:focus {
    border-color: #e8891a;
    box-shadow: 0 0 0 2px rgba(232, 137, 26, 0.15);
    background-color: #fff;
}

.ep-textarea::placeholder { color: #c8a868; font-size: 12px; }

/* 输入框 hover 态，增强交互反馈层次 */
.ep-text-input:hover:not(:focus),
.ep-select-input:hover:not(:focus) {
    border-color: #d4a870;
    background-color: #fffaf5;
}

.ep-textarea:hover:not(:focus) {
    border-color: #d4a870;
    background-color: #fffaf5;
}

/* 策划内容选项 */
.ep-options-section {
    background: #fffbf0;
    border: 1px solid #f0d5b0;
    border-radius: 7px;
    padding: 10px 12px;
}

.ep-options-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ep-options-title {
    font-size: 12px;
    font-weight: 600;
    color: #7a3a10;
}

.ep-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ep-option-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s;
    user-select: none;
}

.ep-option-checkbox:hover { background: #ffeedd; }

.ep-option-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #e8891a;
    flex-shrink: 0;
}

.ep-checkbox-label { font-size: 12px; color: #5a2510; white-space: nowrap; }

.ep-options-quick-btns { display: flex; gap: 4px; }

.ep-quick-btn {
    padding: 2px 7px;
    background: #fff;
    border: 1px solid #e8c898;
    color: #c0651a;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.6;
}

.ep-quick-btn:hover { background: #ffeedd; border-color: #e8891a; }

/* 操作按钮 - 固定在面板底部，不随表单滚动 */
.ep-action-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    padding: 12px 14px;
    border-top: 1px solid #f0d5b0;
    background: #fff;
}

.ep-plan-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #c0651a 0%, #e8891a 100%);
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(192, 101, 26, 0.3);
}

.ep-plan-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #a85415 0%, #d07818 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(192, 101, 26, 0.4);
}

.ep-plan-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(192, 101, 26, 0.3);
}

.ep-plan-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: epBtnPulse 1.8s ease-in-out infinite;
}

@keyframes epBtnPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 0.9; }
}

.ep-btn-icon { font-size: 16px; }

.ep-cancel-btn {
    padding: 10px 16px;
    background: #fde8cc;
    color: #c0651a;
    border: 1px solid #f0c898;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ep-cancel-btn:hover { background: #fbd8b8; border-color: #e8891a; }

/* ========== 右侧结果面板 ========== */
.ep-result-panel {
    flex: 1;
    background: #fffcf8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 300px;
}

.ep-result-panel-header { justify-content: space-between; }

.ep-result-actions { display: flex; gap: 6px; }

.ep-result-action-btn {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e8c898;
    color: #c0651a;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ep-result-action-btn:hover { background: #ffeedd; border-color: #e8891a; }

/* 占位符 */
.ep-result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
}

.ep-placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
    animation: epGentleBounce 3s ease-in-out infinite;
}

@keyframes epGentleBounce {
    0%, 100% { transform: translateY(0); opacity: 0.38; }
    50% { transform: translateY(-10px); opacity: 0.52; }
}

.ep-placeholder-title {
    font-size: 18px;
    font-weight: 600;
    color: #8b5020;
    margin: 0 0 8px 0;
}

.ep-placeholder-desc {
    font-size: 13px;
    color: #a08050;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 0 20px 0;
}

.ep-placeholder-tips {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
    background: #fff4e6;
    border: 1px solid #f0d5b0;
    border-radius: 8px;
    padding: 14px 18px;
    max-width: 360px;
    width: 100%;
    margin-bottom: 16px;
}

.ep-tip-item {
    font-size: 12px;
    color: #8b5020;
    line-height: 1.5;
}

.ep-placeholder-quick-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ep-placeholder-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #c0651a 0%, #e8891a 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(192, 101, 26, 0.25);
}

.ep-placeholder-btn:hover {
    background: linear-gradient(135deg, #a85415 0%, #d07818 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(192, 101, 26, 0.35);
}

.ep-placeholder-shortcut { font-size: 11px; color: #b09070; }

/* 加载动画 */
.ep-result-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.ep-loading-animation {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ep-loading-dot {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 40% 35%, #f0b070, #e8891a 60%, #c0651a 100%);
    border-radius: 50%;
    animation: epDotBounce 1.2s ease-in-out infinite;
    box-shadow: 0 3px 6px rgba(232, 137, 26, 0.4);
}

.ep-loading-dot:nth-child(1) { animation-delay: 0s; }
.ep-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.ep-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes epDotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.ep-loading-text {
    font-size: 15px;
    color: #8b4510;
    font-weight: 500;
    margin: 0 0 6px 0;
}

.ep-loading-sub {
    font-size: 12px;
    color: #a07050;
    margin: 0;
    transition: opacity 0.25s ease;
    min-height: 1.4em;
}

/* 结果内容 */
.ep-result-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ep-result-content::-webkit-scrollbar { width: 5px; }
.ep-result-content::-webkit-scrollbar-track { background: #fffbf5; }
.ep-result-content::-webkit-scrollbar-thumb { background: #e8c898; border-radius: 3px; }

/* 结果分区 */
.ep-result-section {
    background: #fff;
    border: 1px solid #f0d5b0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(192, 101, 26, 0.06), inset 3px 0 0 #f0c878;
    animation: epSectionFadeIn 0.3s ease;
}

/* 各结果区块左侧专属色标，提升区分度 */
#sectionSummary       { box-shadow: 0 1px 5px rgba(192,101,26,.07), inset 3px 0 0 #e8891a; }
#sectionAgenda        { box-shadow: 0 1px 5px rgba(60,120,220,.07),  inset 3px 0 0 #4a90d9; }
#sectionVenue         { box-shadow: 0 1px 5px rgba(100,60,160,.07),  inset 3px 0 0 #7c5dc8; }
#sectionCatering      { box-shadow: 0 1px 5px rgba(220,80,40,.07),   inset 3px 0 0 #e06040; }
#sectionEntertainment { box-shadow: 0 1px 5px rgba(200,150,20,.07),  inset 3px 0 0 #d4a020; }
#sectionBudget        { box-shadow: 0 1px 5px rgba(40,160,90,.07),   inset 3px 0 0 #2da66a; }
#sectionNotes         { box-shadow: 0 1px 5px rgba(160,60,20,.07),   inset 3px 0 0 #c0551a; }
#sectionRawText       { box-shadow: 0 1px 5px rgba(100,100,100,.06), inset 3px 0 0 #aaa; }

.ep-result-section.collapsed > :not(.ep-result-section-header) {
    display: none !important;
}

.ep-result-section.collapsed .ep-result-section-header { border-bottom: none; }
.ep-result-section.collapsed .ep-section-collapse-icon { transform: rotate(-90deg); }

@keyframes epSectionFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ep-result-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(to right, #fff4e6, #fff0dd);
    border-bottom: 1px solid #f0d5b0;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.ep-result-section-header:hover {
    background: linear-gradient(to right, #ffeedd, #ffe8cc);
}

.ep-section-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-section-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ep-section-collapse-icon {
    font-size: 12px;
    color: #b09070;
    transition: transform 0.2s ease;
    line-height: 1;
}

.ep-section-copy-btn {
    padding: 2px 6px;
    background: transparent;
    border: 1px solid transparent;
    color: #b09070;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
    opacity: 0;
}

.ep-result-section-header:hover .ep-section-copy-btn { opacity: 1; }

.ep-section-copy-btn:hover {
    background: #ffeedd;
    border-color: #e8c898;
    color: #c0651a;
}

.ep-section-icon { font-size: 15px; }

.ep-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #7a3a10;
    letter-spacing: 0.3px;
}

.ep-section-body {
    padding: 12px 14px;
    font-size: 13px;
    color: #3a1808;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ep-section-body p { margin: 0 0 8px 0; }
.ep-section-body p:last-child { margin-bottom: 0; }

/* AI 返回富文本内容样式 */
.ep-section-body ul,
.ep-section-body ol {
    margin: 4px 0 10px 20px;
    padding: 0;
}

.ep-section-body li {
    margin-bottom: 5px;
    line-height: 1.7;
}

.ep-section-body ul li::marker { color: #e8891a; }
.ep-section-body ol li::marker { color: #c0651a; font-weight: 600; }

.ep-section-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #7a3a10;
    margin: 12px 0 6px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0d5b0;
}

.ep-section-body h4 {
    font-size: 13px;
    font-weight: 600;
    color: #8b4510;
    margin: 10px 0 4px 0;
}

.ep-section-body strong,
.ep-section-body b {
    color: #5a2510;
    font-weight: 600;
}

.ep-section-body em { color: #8b4510; font-style: italic; }

.ep-section-body a {
    color: #c0651a;
    text-decoration: none;
}
.ep-section-body a:hover { text-decoration: underline; }

/* 区块内的表格支持横向滚动 */
.ep-section-body .ep-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
    margin: 6px 0;
}

/* AI 返回的通用表格样式（无 ep-budget-table class 时也能正常显示） */
.ep-section-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 6px 0;
}

.ep-section-body table th {
    background: #fff4e6;
    color: #7a3a10;
    padding: 7px 10px;
    text-align: left;
    border: 1px solid #f0d5b0;
    font-weight: 600;
    white-space: nowrap;
}

.ep-section-body table td {
    padding: 7px 10px;
    border: 1px solid #f0d5b0;
    color: #3a1808;
    background: #fff;
    vertical-align: top;
}

.ep-section-body table tr:nth-child(even) td { background: #fffbf0; }
.ep-section-body table tr:hover td { background: #ffeedd; }

/* 概述信息网格与摘要文字之间的分隔 */
.ep-info-grid + .ep-section-body:not(:empty) {
    border-top: 1px dashed #f0e0c8;
    padding-top: 10px;
}

/* 必填字段校验错误高亮 */
.ep-text-input.ep-field-error,
.ep-select-input.ep-field-error {
    border-color: #e05028 !important;
    box-shadow: 0 0 0 3px rgba(224, 80, 40, 0.18) !important;
    animation: epShakeInput 0.42s ease;
}

@keyframes epShakeInput {
    0%, 100% { transform: translateX(0); }
    18%       { transform: translateX(-6px); }
    36%       { transform: translateX(6px); }
    54%       { transform: translateX(-4px); }
    72%       { transform: translateX(4px); }
}

/* 概述信息网格 */
.ep-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    padding: 10px 12px;
}

.ep-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #fffbf0;
    border: 1px solid #f0d5b0;
    border-radius: 6px;
    padding: 8px 10px;
    transition: all 0.15s;
}

.ep-info-item:hover { background: #ffeedd; border-color: #e8891a; }

.ep-info-label {
    font-size: 11px;
    color: #a07850;
    font-weight: 500;
}

.ep-info-value {
    font-size: 13px;
    color: #5a2510;
    font-weight: 600;
}

/* 议程时间线样式 */
.ep-agenda-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f0d5b0;
    position: relative;
}

.ep-agenda-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.ep-agenda-time {
    flex-shrink: 0;
    width: 80px;
    font-size: 12px;
    font-weight: 600;
    color: #e8891a;
    padding-top: 2px;
}

.ep-agenda-content { flex: 1; }

.ep-agenda-title {
    font-size: 13px;
    font-weight: 600;
    color: #5a2510;
    margin-bottom: 3px;
}

.ep-agenda-desc { font-size: 12px; color: #7a5030; line-height: 1.6; }

/* 预算表格样式 */
.ep-budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ep-budget-table th {
    background: #fff4e6;
    color: #7a3a10;
    padding: 7px 10px;
    text-align: left;
    border: 1px solid #f0d5b0;
    font-weight: 600;
}

.ep-budget-table td {
    padding: 7px 10px;
    border: 1px solid #f0d5b0;
    color: #3a1808;
    background: #fff;
}

.ep-budget-table tr:nth-child(even) td { background: #fffbf0; }
.ep-budget-table tr:hover td { background: #ffeedd; }

.ep-budget-total td {
    background: #fff4e6 !important;
    font-weight: 700;
    color: #c0651a !important;
    border-top: 2px solid #e8891a;
}

/* 原始文本区域 */
.ep-raw-text-body {
    white-space: pre-wrap;
    font-family: inherit;
    background: #fffbf5;
    border-radius: 0 0 7px 7px;
    font-size: 13px;
    line-height: 1.8;
}

/* 错误提示区域 */
.ep-error-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(to right, #fff5f5, #fff8f8);
    border: 1px solid #fad7d7;
    border-left: 4px solid #e05050;
    border-radius: 8px;
    animation: epSectionFadeIn 0.3s ease;
}
.ep-error-icon { font-size: 15px; flex-shrink: 0; line-height: 1.7; }
.ep-error-msg  { font-size: 13px; color: #c03030; line-height: 1.7; font-weight: 500; }

/* ========== 示例模态框 ========== */
.ep-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100002;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ep-modal.active { display: flex; }

.ep-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 720px;
    width: 100%;
    max-height: 82vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    animation: epModalSlideIn 0.22s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes epModalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ep-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(to right, #fff4e6, #ffe8cc);
    border-bottom: 1px solid #f0d5b0;
    flex-shrink: 0;
}

.ep-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #7a3a10;
}

.ep-modal-close {
    background: #fff;
    border: 1px solid #e8c898;
    color: #a07050;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-modal-close:hover { background: #ffeedd; color: #c0651a; border-color: #e8891a; }

.ep-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.ep-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100001;
    backdrop-filter: blur(2px);
}

.ep-modal-overlay.active { display: block; }

.ep-example-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ep-example-category-title {
    font-size: 13px;
    font-weight: 700;
    color: #7a3a10;
    padding: 6px 0;
    margin-bottom: 8px;
    border-bottom: 2px solid #f0d5b0;
}

.ep-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.ep-example-card {
    background: #fffbf5;
    border: 1px solid #f0d5b0;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.18s;
}

.ep-example-card:hover {
    border-color: #e8891a;
    background: #ffeedd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 137, 26, 0.15);
}

.ep-example-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #5a2510;
    margin-bottom: 4px;
}

.ep-example-card-type {
    font-size: 11px;
    color: #e8891a;
    font-weight: 500;
    margin-bottom: 6px;
    background: #fff4e6;
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
}

.ep-example-card-desc {
    font-size: 11px;
    color: #9a7050;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========== 响应式布局 ========== */
@media (max-width: 900px) {
    .ep-history-panel { width: 170px; min-width: 140px; }
    .ep-input-panel { width: 300px; min-width: 260px; }
}

@media (max-width: 680px) {
    .ep-main-content { flex-direction: column; }
    .ep-history-panel {
        width: 100%;
        min-width: 100%;
        height: 120px;
        min-height: 120px;
        border-right: none;
        border-bottom: 1px solid #f0d5b0;
        flex-direction: row;
    }
    .ep-history-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
    .ep-history-item { min-width: 140px; }
    .ep-input-panel { width: 100%; min-width: 100%; border-right: none; border-bottom: 1px solid #f0d5b0; }
    .ep-input-section { max-height: 320px; }
    .ep-result-panel { min-width: 100%; }
    .ep-toolbar { flex-wrap: wrap; }
    .ep-example-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== 打印适配 ========== */
@media print {
    .ep-container { height: auto !important; }
    .ep-toolbar, .ep-history-panel, .ep-input-panel { display: none !important; }
    .ep-result-panel { width: 100% !important; overflow: visible !important; }
    .ep-result-content { overflow: visible !important; }
    .ep-result-section { break-inside: avoid; }
    .ep-result-section-header { background: #fff4e6 !important; -webkit-print-color-adjust: exact; }
}
