/* ============================================================
   AI周报自动生成工具 - 样式文件
   布局：左侧历史面板 + 中间输入面板 + 右侧结果面板（三栏）
   主题色：翠绿/Emerald
   ============================================================ */

/* ── 容器 ── */
.awr-container {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

/* ── 顶部工具栏 ── */
.awr-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #bbf7d0;
    flex-wrap: wrap;
}

.awr-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 8px;
    margin-right: 4px;
    border-right: 1px solid #bbf7d0;
}

.awr-toolbar .toolbar-group:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.awr-toolbar .toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 5px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.awr-toolbar .toolbar-btn:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #34d399;
    color: #059669;
}

.awr-toolbar .toolbar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── 主操作按钮绿色高亮 ── */
.awr-toolbar .toolbar-btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border-color: #047857;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.30);
}

.awr-toolbar .toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    border-color: #065f46;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
    transform: translateY(-1px);
}

/* ── 主内容区（三栏） ── */
.awr-main-content {
    display: flex;
    height: 660px;
    overflow: hidden;
}

/* ── 左侧历史记录面板 ── */
.awr-history-panel {
    width: 200px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
    background: #fafbfc;
    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%, #f4f6f8 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.history-header h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #ef4444;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 4px;
    transition: background 0.2s;
    font-family: inherit;
}

.history-clear-btn:hover {
    background: #fde8e8;
}

.history-search {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.history-search input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    color: #334155;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.history-search input:focus {
    border-color: #34d399;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.history-list::-webkit-scrollbar-track { background: transparent; }

.history-empty {
    padding: 24px 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.history-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 9px 14px 9px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.history-item:hover {
    background: #f0fdf4;
    border-left-color: #34d399;
}

.history-item.active {
    background: #dcfce7;
    border-left-color: #059669;
}

.history-title {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 18px;
}

.history-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.history-del-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 10px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    font-family: inherit;
}

.history-item:hover .history-del-btn {
    opacity: 1;
}

.history-del-btn:hover {
    color: #ef4444;
    background: #fff0f0;
}

/* ── 中间输入面板 ── */
.awr-input-panel {
    width: 360px;
    min-width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    background: #ffffff;
    gap: 0;
}

.awr-input-panel::-webkit-scrollbar { width: 4px; }
.awr-input-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.awr-input-panel::-webkit-scrollbar-track { background: transparent; }

/* ── 右侧结果面板 ── */
.awr-result-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fafbfc;
}

/* ── 公共面板头部 ── */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.awr-result-panel .panel-header {
    padding: 13px 16px 10px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f7fa 100%);
}

.panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.char-counter {
    font-size: 12px;
    color: #94a3b8;
}

.result-actions {
    display: flex;
    gap: 6px;
}

/* ── 输入标签行（label + 计数器并排） ── */
.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── 表单元素 ── */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.required { color: #ef4444; }
.optional { font-weight: 400; color: #94a3b8; font-size: 11px; }

.work-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    resize: vertical;
    min-height: 110px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.6;
}

.work-input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.form-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.form-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    appearance: auto;
}

.form-select:focus {
    border-color: #34d399;
}

.form-textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    resize: vertical;
    min-height: 64px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.input-group.half {
    flex: 1;
    min-width: 0;
}

/* ── 包含模块复选框组 ── */
.sections-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
    font-weight: normal;
}

.checkbox-label:hover {
    color: #059669;
}

.checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #059669;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    white-space: nowrap;
}

/* ── 操作按钮 ── */
.action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 10px;
}

.btn-primary {
    flex: 1;
    padding: 9px 16px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    padding: 9px 14px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary:hover:disabled {
    background: #f1f5f9;
    color: #475569;
}

.icon-btn {
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.icon-btn:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #34d399;
    color: #059669;
}

.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── 状态栏 ── */
.status-bar {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.status-success { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }
.status-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.status-info    { background: #eff6ff; color: #2563eb; border: 1px solid #93c5fd; }

/* ── 结果内容区 ── */
.result-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
}

.result-content::-webkit-scrollbar { width: 5px; }
.result-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.result-content::-webkit-scrollbar-track { background: transparent; }

/* ── 结果占位符 ── */
.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #94a3b8;
    text-align: center;
    padding: 32px;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.7;
    animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

.placeholder-title {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 16px;
}

.placeholder-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.placeholder-tips li {
    font-size: 12px;
    color: #94a3b8;
    padding: 3px 0;
}

/* ── 结果元信息标签 ── */
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.meta-tag {
    padding: 2px 10px;
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

/* ── 结果区块 ── */
.result-section {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}

.result-section:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.section-title {
    margin: 0;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title::after {
    content: '▾';
    font-size: 11px;
    opacity: 0.55;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.result-section.collapsed .section-title::after {
    transform: rotate(-90deg);
}

.section-content {
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
    max-height: 2000px;
    opacity: 1;
}

.result-section.collapsed .section-content {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ── 周报内容列表样式 ── */
.report-list {
    margin: 4px 0 6px 0;
    padding-left: 20px;
    list-style: disc;
}

.report-list li {
    margin-bottom: 4px;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
}

ol.report-list {
    list-style: decimal;
}

.report-para {
    margin: 4px 0 6px 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
}

/* ── 工作总结区块 - 蓝色 ── */
.summary-section {
    border-color: #93c5fd;
    border-left: 4px solid #3b82f6;
}
.summary-section .section-title {
    color: #1e40af;
    background: linear-gradient(to bottom, #eff6ff, #dbeafe);
    border-bottom-color: #93c5fd;
}

/* ── 本周亮点区块 - 琥珀色 ── */
.highlights-section {
    border-color: #fcd34d;
    border-left: 4px solid #f59e0b;
}
.highlights-section .section-title {
    color: #92400e;
    background: linear-gradient(to bottom, #fffbeb, #fef3c7);
    border-bottom-color: #fcd34d;
}

/* ── 关键数据区块 - 紫色 ── */
.metrics-section {
    border-color: #c4b5fd;
    border-left: 4px solid #8b5cf6;
}
.metrics-section .section-title {
    color: #5b21b6;
    background: linear-gradient(to bottom, #faf5ff, #ede9fe);
    border-bottom-color: #c4b5fd;
}

/* ── 存在问题区块 - 橙红色 ── */
.issues-section {
    border-color: #fdba74;
    border-left: 4px solid #f97316;
}
.issues-section .section-title {
    color: #9a3412;
    background: linear-gradient(to bottom, #fff7ed, #ffedd5);
    border-bottom-color: #fdba74;
}

/* ── 下周计划区块 - 翠绿色 ── */
.plan-section {
    border-color: #86efac;
    border-left: 4px solid #22c55e;
}
.plan-section .section-title {
    color: #065f46;
    background: linear-gradient(to bottom, #f0fdf4, #dcfce7);
    border-bottom-color: #86efac;
}

/* ── 加载动画 ── */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    height: 100%;
    color: #64748b;
    gap: 14px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #059669;
    border-right-color: #34d399;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ── 原始文本降级展示 ── */
.raw-result {
    padding: 12px 14px;
    font-size: 13px;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.65;
    margin: 0;
    font-family: inherit;
}

/* ── 快捷键帮助弹窗 ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    width: 420px;
    max-width: 90vw;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(to bottom, #f0fdf4, #dcfce7);
    border-bottom: 1px solid #bbf7d0;
}

.modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s;
    font-family: inherit;
}

.modal-close:hover {
    color: #ef4444;
    background: #fff0f0;
}

.modal-body {
    padding: 18px;
}

.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.shortcuts-table th {
    text-align: left;
    padding: 7px 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.shortcuts-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.shortcuts-table tr:last-child td { border-bottom: none; }

.shortcuts-table kbd {
    display: inline-block;
    padding: 2px 7px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ── 取消生成按钮 ── */
.awr-toolbar .toolbar-btn-cancel {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}

.awr-toolbar .toolbar-btn-cancel:hover {
    background: #ffe4e6;
    border-color: #f43f5e;
    color: #be123c;
    transform: none;
}

/* ── 输入框错误状态 ── */
.work-input.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-4px); }
    40%       { transform: translateX(4px); }
    60%       { transform: translateX(-3px); }
    80%       { transform: translateX(3px); }
}

/* ── 历史记录数量徽章 ── */
.history-count {
    display: inline-block;
    min-width: 18px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background: #059669;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    padding: 0 5px;
    margin-left: 3px;
    vertical-align: middle;
}

/* ── 复制成功反馈：工具栏按钮 ── */
.awr-toolbar .toolbar-btn.btn-copied {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
    pointer-events: none;
}

/* ── 复制成功反馈：结果区图标按鈕 ── */
.icon-btn.btn-copied {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
    pointer-events: none;
}

/* ================================================================
   周末暖色调动态主题（awr-weekend）
   工作日：翠绿冷色调；周末：橙色暖色调
   ================================================================ */
.awr-container.awr-weekend .awr-toolbar {
    background: linear-gradient(to bottom, #fff7ed 0%, #ffedd5 100%);
    border-bottom-color: #fed7aa;
}

.awr-container.awr-weekend .awr-toolbar .toolbar-group {
    border-right-color: #fed7aa;
}

.awr-container.awr-weekend .awr-toolbar .toolbar-btn {
    border-color: #fed7aa;
}

.awr-container.awr-weekend .awr-toolbar .toolbar-btn:hover:not(:disabled) {
    background: #fff7ed;
    border-color: #fdba74;
    color: #ea580c;
}

.awr-container.awr-weekend .awr-toolbar .toolbar-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-color: #ea580c;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.30);
}

.awr-container.awr-weekend .awr-toolbar .toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: #c2410c;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
}

.awr-container.awr-weekend .awr-result-panel .panel-header {
    background: linear-gradient(to bottom, #fff7ed, #ffedd5);
    border-bottom-color: #fed7aa;
}

.awr-container.awr-weekend .btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.awr-container.awr-weekend .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.awr-container.awr-weekend .history-item:hover {
    background: #fff7ed;
    border-left-color: #f97316;
}

.awr-container.awr-weekend .history-item.active {
    background: #ffedd5;
    border-left-color: #ea580c;
}

.awr-container.awr-weekend .work-input:focus,
.awr-container.awr-weekend .form-input:focus,
.awr-container.awr-weekend .form-textarea:focus {
    border-color: #fdba74;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.awr-container.awr-weekend .history-search input:focus {
    border-color: #fdba74;
}

.awr-container.awr-weekend .meta-tag {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

.awr-container.awr-weekend .checkbox-label:hover {
    color: #ea580c;
}

.awr-container.awr-weekend .checkbox-label input[type="checkbox"] {
    accent-color: #f97316;
}

.awr-container.awr-weekend .form-select:focus {
    border-color: #fdba74;
}

.awr-container.awr-weekend .icon-btn:hover:not(:disabled) {
    background: #fff7ed;
    border-color: #fdba74;
    color: #ea580c;
}

.awr-container.awr-weekend .history-count {
    background: #f97316;
}

@media (max-width: 960px) {
    .awr-main-content {
        flex-direction: column;
        height: auto;
    }

    .awr-history-panel {
        width: 100%;
        min-width: unset;
        height: 160px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .awr-input-panel {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .awr-result-panel {
        min-height: 420px;
    }

    .input-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================================
   全屏模式
   ============================================================ */
.awr-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    border: none;
}

.awr-container.fullscreen .awr-main-content {
    height: calc(100vh - 50px);
}

/* 全屏模式下工具栏边框调整 */
.awr-container.fullscreen .awr-toolbar {
    border-radius: 0;
}

/* 全屏模式下左侧面板适配 */
.awr-container.fullscreen .awr-history-panel {
    height: 100%;
}

/* 全屏模式下结果面板适配 */
.awr-container.fullscreen .awr-result-panel {
    height: 100%;
}

/* 全屏按钮激活状态 */
.awr-toolbar .toolbar-btn.fullscreen-active {
    background: #dcfce7;
    border-color: #059669;
    color: #047857;
}

/* 周末暴色调下全屏按钮激活状态 */
.awr-container.awr-weekend .awr-toolbar .toolbar-btn.fullscreen-active {
    background: #ffedd5;
    border-color: #f97316;
    color: #ea580c;
}
