/* ========== 会议日程编辑器容器 ========== */
.meeting-editor-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 620px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* 全屏模式 */
.meeting-editor-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

/* ========== 顶部工具栏 ========== */
.meeting-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #0f4c75 0%, #1b6ca8 50%, #118ab2 100%);
    color: white;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(17, 138, 178, 0.35);
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 28px;
}

.toolbar-btn {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #0f4c75;
    transition: all 0.2s;
    white-space: nowrap;
}

.toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.toolbar-btn:active:not(:disabled) {
    transform: translateY(0);
}

.toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toolbar-btn kbd {
    display: inline-block;
    padding: 1px 4px;
    font-size: 10px;
    background: rgba(15, 76, 117, 0.1);
    border: 1px solid rgba(15, 76, 117, 0.25);
    border-radius: 3px;
    font-family: inherit;
    color: #0f4c75;
    margin-left: 2px;
}

.primary-toolbar-btn {
    background: #fff;
    color: #0f4c75;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.cancel-toolbar-btn {
    background: #fff0f0;
    color: #e53e3e;
}

.cancel-toolbar-btn:hover:not(:disabled) {
    background: #fff5f5;
}

/* 工具栏组之间半透明竖线分隔 */
.toolbar-group + .toolbar-group {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

/* ========== 主内容区 ========== */
.meeting-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f8fafc;
}

/* ========== 左侧历史面板 ========== */
.meeting-history-panel {
    width: 210px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
}

.history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #ef4444;
    font-size: 11px;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 3px;
    transition: all 0.2s;
    white-space: nowrap;
}

.history-clear-btn:hover {
    background: #fde8e8;
}

.history-search {
    padding: 8px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.history-search input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.history-search input:focus {
    border-color: #1b6ca8;
    box-shadow: 0 0 0 2px rgba(27, 108, 168, 0.1);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

.history-item {
    display: flex;
    flex-direction: column;
    padding: 9px 11px;
    margin: 3px 2px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    animation: fadeInItem 0.2s ease;
}

@keyframes fadeInItem {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.history-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

.history-item.active {
    background: #e0f2fe;
    border-color: #1b6ca8;
    box-shadow: 0 1px 3px rgba(27, 108, 168, 0.2);
}

.history-item-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #fde8e8;
    color: #ef4444;
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.history-item:hover .history-item-delete {
    opacity: 1;
}

.history-item-delete:hover {
    background: #ef4444;
    color: white;
}

.history-item-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 3px;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}

.history-item-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 6px;
}

.history-item-type {
    background: #e0f2fe;
    color: #0369a1;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
}

/* ========== 中间输入面板 ========== */
.input-panel {
    width: 320px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.input-panel-header {
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.input-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.input-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* ========== 表单元素 ========== */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.form-group .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #1e293b;
    background: #fdfdfd;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1b6ca8;
    box-shadow: 0 0 0 2px rgba(27, 108, 168, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.form-group.half {
    flex: 1;
    min-width: 0;
    margin-bottom: 14px;
}

.char-count {
    text-align: right;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.danger {
    color: #ef4444;
    font-weight: 700;
}

/* 时长调节控件 */
.duration-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.duration-wrapper input[type="number"] {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.duration-unit {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.count-btn {
    width: 30px;
    height: 34px;
    border: 1px solid #e0e0e0;
    background: #f8fafc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.count-btn:hover {
    background: #e0f2fe;
    border-color: #1b6ca8;
    color: #1b6ca8;
}

.count-btn:active {
    background: #bae6fd;
}

/* 主生成按钮 */
.form-actions {
    margin-top: 8px;
    margin-bottom: 12px;
}

.generate-main-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0f4c75 0%, #1b6ca8 50%, #118ab2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(17, 138, 178, 0.3);
}

.generate-main-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(17, 138, 178, 0.4);
}

.generate-main-btn:active {
    transform: translateY(0);
}

.generate-main-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.generate-main-btn .btn-icon {
    font-size: 16px;
}

.generate-main-btn .btn-shortcut {
    font-size: 11px;
    opacity: 0.7;
    margin-left: auto;
}

.generate-main-btn kbd {
    display: inline-block;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    font-size: 10px;
    font-family: inherit;
}

/* AI状态 */
.ai-status {
    padding: 12px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInItem 0.3s ease;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ai-loading span:last-child {
    font-size: 12px;
    color: #0369a1;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: #1b6ca8;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.cancel-mini-btn {
    padding: 4px 10px;
    background: #fee2e2;
    border: none;
    border-radius: 4px;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cancel-mini-btn:hover {
    background: #fecaca;
}

/* ========== 右侧预览面板 ========== */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
    min-width: 320px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.preview-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agenda-total {
    font-size: 12px;
    color: #64748b;
}

.agenda-count-badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
    margin-left: 4px;
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* 预览空状态 */
.preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    color: #94a3b8;
    text-align: center;
    padding: 40px;
}

.preview-empty-icon {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.preview-empty p {
    margin: 4px 0;
    font-size: 14px;
    color: #64748b;
}

.preview-empty-sub {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

/* ========== 会议日程卡片 ========== */
.schedule-header-card {
    background: linear-gradient(135deg, #0f4c75 0%, #118ab2 100%);
    color: white;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(17, 138, 178, 0.25);
}

.schedule-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.schedule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    opacity: 0.9;
}

.schedule-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.schedule-notes-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #92400e;
}

.schedule-notes-card .notes-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #78350f;
}

.schedule-notes-card ul {
    margin: 0;
    padding-left: 18px;
}

.schedule-notes-card li {
    margin-bottom: 3px;
    line-height: 1.5;
}

/* 议程时间线 */
.agenda-timeline {
    position: relative;
    padding-left: 16px;
}

.agenda-timeline::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #1b6ca8, #e2e8f0);
}

.agenda-item {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    position: relative;
    animation: fadeInItem 0.3s ease both;
}

.agenda-item:nth-child(1) { animation-delay: 0.05s; }
.agenda-item:nth-child(2) { animation-delay: 0.10s; }
.agenda-item:nth-child(3) { animation-delay: 0.15s; }
.agenda-item:nth-child(4) { animation-delay: 0.20s; }
.agenda-item:nth-child(5) { animation-delay: 0.25s; }
.agenda-item:nth-child(n+6) { animation-delay: 0.30s; }

.agenda-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
}

.agenda-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #e2e8f0;
    flex-shrink: 0;
    margin-top: 14px;
    z-index: 1;
}

.agenda-time-label {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
    text-align: center;
    line-height: 1.3;
}

.agenda-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: default;
    min-width: 0;
    position: relative;
}

.agenda-card:hover {
    background: #f1f5f9;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

/* 议程卡片点击复制 */
.agenda-card.copyable {
    cursor: pointer;
}

.agenda-card.copyable::after {
    content: '点击复制';
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 10px;
    color: #1b6ca8;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 500;
}

.agenda-card.copyable:hover::after {
    opacity: 1;
}

.agenda-card.just-copied {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2) !important;
}

.agenda-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.agenda-type-badge {
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.agenda-topic {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    flex: 1;
}

.agenda-card-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.agenda-card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.agenda-description {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 6px;
}

.agenda-action-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.agenda-action-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: #0369a1;
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.agenda-action-item::before {
    content: '✓';
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0;
}

/* 议题类型色彩 */
.type-opening   { background: #dcfce7; color: #166534; }
.type-opening-dot { background: #22c55e; }

.type-presentation { background: #e0f2fe; color: #075985; }
.type-presentation-dot { background: #0ea5e9; }

.type-discussion { background: #fef3c7; color: #92400e; }
.type-discussion-dot { background: #f59e0b; }

.type-decision  { background: #fce7f3; color: #9d174d; }
.type-decision-dot { background: #ec4899; }

.type-review    { background: #ede9fe; color: #5b21b6; }
.type-review-dot { background: #8b5cf6; }

.type-break     { background: #f1f5f9; color: #475569; }
.type-break-dot { background: #94a3b8; }

.type-closing   { background: #fee2e2; color: #991b1b; }
.type-closing-dot { background: #ef4444; }

/* ========== 模态框 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal.show {
    display: flex;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 720px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.2s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* 模板网格 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.template-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.template-item:hover {
    border-color: #1b6ca8;
    background: #e0f2fe;
    box-shadow: 0 3px 10px rgba(27, 108, 168, 0.12);
    transform: translateY(-1px);
}

.template-item-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.template-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.template-item-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

/* Toast提示 */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.3s ease;
    pointer-events: none;
    max-width: 280px;
}

.toast.success { background: #10b981; }
.toast.error   { background: #ef4444; }
.toast.info    { background: #1b6ca8; }
.toast.warning { background: #f59e0b; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

/* ========== 暗黑模式 ========== */
body.theme-dark .meeting-editor-container {
    background: #1e293b;
}

body.theme-dark .meeting-history-panel,
body.theme-dark .input-panel,
body.theme-dark .preview-panel {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.15);
}

body.theme-dark .history-header,
body.theme-dark .input-panel-header,
body.theme-dark .preview-header {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.15);
}

body.theme-dark .history-header h3,
body.theme-dark .input-panel-header h3,
body.theme-dark .preview-header h3 {
    color: #e2e8f0;
}

body.theme-dark .history-count-badge,
body.theme-dark .agenda-count-badge {
    background: #052e16;
    color: #86efac;
}

body.theme-dark .history-search input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.theme-dark .history-search input::placeholder {
    color: #64748b;
}

body.theme-dark .history-item {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.15);
}

body.theme-dark .history-item:hover {
    background: #263549;
    border-color: #475569;
}

body.theme-dark .history-item.active {
    background: #0c2a4a;
    border-color: #1b6ca8;
}

body.theme-dark .history-item-title {
    color: #e2e8f0;
}

body.theme-dark .history-item-meta {
    color: #64748b;
}

body.theme-dark .form-group label {
    color: #94a3b8;
}

body.theme-dark .form-group input,
body.theme-dark .form-group select,
body.theme-dark .form-group textarea {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.theme-dark .form-group input:focus,
body.theme-dark .form-group select:focus,
body.theme-dark .form-group textarea:focus {
    border-color: #1b6ca8;
    background: #263549;
}

body.theme-dark .form-group input::placeholder,
body.theme-dark .form-group textarea::placeholder {
    color: #4a5568;
}

body.theme-dark .count-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

body.theme-dark .count-btn:hover {
    background: #0c2a4a;
    border-color: #1b6ca8;
    color: #60a5fa;
}

body.theme-dark .char-count { color: #4a5568; }
body.theme-dark .char-count.warning { color: #fbbf24; }
body.theme-dark .char-count.danger  { color: #f87171; font-weight: 700; }

body.theme-dark .ai-status {
    background: #0c1a2e;
    border-color: #1b3a5a;
}

body.theme-dark .ai-loading span:last-child {
    color: #60a5fa;
}

body.theme-dark .preview-content {
    background: #0f172a;
}

body.theme-dark .schedule-header-card {
    background: linear-gradient(135deg, #0c2a4a 0%, #0f4c75 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

body.theme-dark .schedule-notes-card {
    background: #1c1a0a;
    border-color: #78350f;
    color: #fde68a;
}

body.theme-dark .schedule-notes-card .notes-title { color: #fcd34d; }

body.theme-dark .agenda-card {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.15);
}

body.theme-dark .agenda-card:hover {
    border-color: #475569;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

body.theme-dark .agenda-topic { color: #e2e8f0; }
body.theme-dark .agenda-card-meta { color: #64748b; }
body.theme-dark .agenda-description { color: #94a3b8; }

body.theme-dark .agenda-action-item {
    background: #0c2a4a;
    color: #60a5fa;
}

body.theme-dark .agenda-timeline::before {
    background: linear-gradient(to bottom, #1b6ca8, #334155);
}

body.theme-dark .agenda-dot {
    border-color: #0f172a;
}

body.theme-dark .modal-content {
    background: #0f172a;
}

body.theme-dark .modal-header {
    background: #1e293b;
    border-color: #334155;
}

body.theme-dark .modal-header h3 { color: #e2e8f0; }

body.theme-dark .modal-body { background: #0f172a; }

body.theme-dark .modal-close {
    background: #1e293b;
    color: #94a3b8;
}

body.theme-dark .modal-close:hover {
    background: #334155;
    color: #e2e8f0;
}

body.theme-dark .template-item {
    background: #1e293b;
    border-color: #334155;
}

body.theme-dark .template-item:hover {
    background: #0c2a4a;
    border-color: #1b6ca8;
}

body.theme-dark .template-item-name { color: #e2e8f0; }
body.theme-dark .template-item-desc { color: #64748b; }

body.theme-dark .agenda-card.copyable::after {
    background: #0c2a4a;
    color: #7dd3fc;
}

body.theme-dark .agenda-card.just-copied {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15) !important;
}

/* 类型徽章暗色修正（保持鲜亮） */
body.theme-dark .type-opening { background: #052e16; color: #86efac; }
body.theme-dark .type-presentation { background: #0c2a4a; color: #7dd3fc; }
body.theme-dark .type-discussion { background: #2a1a00; color: #fcd34d; }
body.theme-dark .type-decision { background: #2a0a1a; color: #f9a8d4; }
body.theme-dark .type-review { background: #1e0a3a; color: #c4b5fd; }
body.theme-dark .type-break { background: #1e293b; color: #94a3b8; }
body.theme-dark .type-closing { background: #2a0a0a; color: #fca5a5; }

/* ========== 周末暖色调模式 ========== */
.meeting-editor-container.weekend-mode .meeting-toolbar {
    background: linear-gradient(135deg, #92400e 0%, #c05621 50%, #dd6b20 100%);
    box-shadow: 0 2px 8px rgba(221, 107, 32, 0.35);
}

.meeting-editor-container.weekend-mode .toolbar-btn {
    color: #7c2d12;
}

.meeting-editor-container.weekend-mode .toolbar-btn kbd {
    background: rgba(124, 45, 18, 0.1);
    border-color: rgba(124, 45, 18, 0.25);
    color: #7c2d12;
}

.meeting-editor-container.weekend-mode .primary-toolbar-btn {
    color: #7c2d12;
}

.meeting-editor-container.weekend-mode .generate-main-btn {
    background: linear-gradient(135deg, #92400e 0%, #c05621 50%, #dd6b20 100%);
    box-shadow: 0 3px 10px rgba(221, 107, 32, 0.35);
}

.meeting-editor-container.weekend-mode .generate-main-btn:hover:not(:disabled) {
    box-shadow: 0 5px 14px rgba(221, 107, 32, 0.45);
}

.meeting-editor-container.weekend-mode .schedule-header-card {
    background: linear-gradient(135deg, #7c2d12 0%, #c05621 100%);
    box-shadow: 0 4px 12px rgba(192, 86, 33, 0.28);
}

.meeting-editor-container.weekend-mode .form-group input:focus,
.meeting-editor-container.weekend-mode .form-group select:focus,
.meeting-editor-container.weekend-mode .form-group textarea:focus {
    border-color: #c05621;
    box-shadow: 0 0 0 2px rgba(192, 86, 33, 0.12);
}

.meeting-editor-container.weekend-mode .count-btn:hover {
    background: #fff7ed;
    border-color: #c05621;
    color: #c05621;
}

.meeting-editor-container.weekend-mode .history-search input:focus {
    border-color: #c05621;
    box-shadow: 0 0 0 2px rgba(192, 86, 33, 0.1);
}

.meeting-editor-container.weekend-mode .history-item.active {
    background: #fff7ed;
    border-color: #c05621;
    box-shadow: 0 1px 3px rgba(192, 86, 33, 0.2);
}

body.theme-dark .meeting-editor-container.weekend-mode .meeting-toolbar {
    background: linear-gradient(135deg, #431407 0%, #7c2d12 50%, #9a3412 100%);
    box-shadow: 0 2px 8px rgba(154, 52, 18, 0.4);
}

body.theme-dark .meeting-editor-container.weekend-mode .schedule-header-card {
    background: linear-gradient(135deg, #431407 0%, #7c2d12 100%);
}

/* 生成按钮 loading 态 */
.generate-main-btn.loading .btn-icon {
    animation: btnIconPulse 0.75s ease-in-out infinite alternate;
}

@keyframes btnIconPulse {
    from { transform: scale(0.85); opacity: 0.7; }
    to   { transform: scale(1.15); opacity: 1; }
}

/* ========== Hint 栏 ========== */
.meeting-hint-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 7px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #0369a1;
    line-height: 1.5;
}

.meeting-hint-bar kbd {
    display: inline-block;
    padding: 1px 5px;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 3px;
    font-size: 10px;
    font-family: inherit;
    color: #075985;
}

.hint-sep {
    color: #7dd3fc;
    font-weight: 300;
}

body.theme-dark .meeting-hint-bar {
    background: #0c1a2e;
    border-color: #1b3a5a;
    color: #7dd3fc;
}

body.theme-dark .meeting-hint-bar kbd {
    background: #0f2840;
    border-color: #1b6ca8;
    color: #93c5fd;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .meeting-main-content {
        flex-direction: column;
        overflow-y: auto;
    }

    .meeting-history-panel {
        width: 100%;
        max-height: 180px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .input-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 400px;
    }

    .preview-panel {
        min-width: unset;
        min-height: 300px;
    }

    .meeting-editor-container {
        height: auto;
        min-height: unset;
    }
}
