/* ===== 述职报告工具 - 主题色：商务蓝 + 金色点缀 ===== */

/* 暗黑模式全局过渡 */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 主容器 */
.pr-container {
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 全屏模式 */
.pr-container.fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    border-radius: 0;
    border: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.pr-container.fullscreen .pr-main-content {
    flex: 1;
    overflow: hidden;
}

/* ===== 工具栏 ===== */
.pr-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1a365d 100%);
    border-bottom: 2px solid #c9a84c;
    flex-wrap: wrap;
    gap: 8px;
}
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.toolbar-title {
    font-size: 15px;
    font-weight: 700;
    color: #f6e05e;
    margin-right: 8px;
    letter-spacing: 1px;
}
.toolbar-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-1px);
}
.toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
/* 取消按钮红色醒目 */
.toolbar-btn-cancel {
    background: rgba(229, 62, 62, 0.2);
    border-color: rgba(229, 62, 62, 0.5);
    color: #fed7d7;
}
.toolbar-btn-cancel:hover {
    background: rgba(229, 62, 62, 0.35);
    border-color: rgba(229, 62, 62, 0.7);
    color: #fff;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}
.toolbar-btn-primary {
    background: linear-gradient(135deg, #c9a84c, #d4a843);
    border-color: #b8942f;
    color: #1a202c;
    font-weight: 600;
}
.toolbar-btn-primary:hover {
    background: linear-gradient(135deg, #d4b44f, #e0b84a);
    color: #1a202c;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}

/* ===== 三栏布局 ===== */
.pr-main-content {
    display: flex;
    height: calc(100vh - 240px);
    min-height: 500px;
}
.pr-container.fullscreen .pr-main-content {
    height: auto;
}

/* 左栏：历史记录 */
.pr-history-panel {
    width: 220px;
    min-width: 220px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}
.history-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #f0f4f8, #e8ecf0);
    border-bottom: 1px solid #e2e8f0;
}
.history-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}
.history-count {
    font-size: 11px;
    color: #718096;
    margin-left: 4px;
}
.history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #e53e3e;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.history-clear-btn:hover {
    background: #fed7d7;
}
.history-search {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
}
.history-search input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.history-search input:focus {
    border-color: #3182ce;
}
.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}
.history-empty {
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
    padding: 40px 10px;
    line-height: 1.8;
}
.history-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    border: 1px solid transparent;
}
.history-item:hover {
    background: #ebf4ff;
    border-color: #bee3f8;
}
.history-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-item-meta {
    font-size: 10px;
    color: #a0aec0;
    margin-top: 3px;
}
.history-item-type {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #ebf8ff;
    color: #3182ce;
    margin-top: 3px;
}

/* 历史项头部布局 */
.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.history-item-del {
    background: none;
    border: none;
    color: #cbd5e0;
    font-size: 11px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    border-radius: 3px;
    transition: all 0.2s;
    opacity: 0;
    flex-shrink: 0;
}
.history-item:hover .history-item-del {
    opacity: 1;
}
.history-item-del:hover {
    color: #e53e3e;
    background: #fff5f5;
}
.history-item-active {
    background: #ebf4ff;
    border-color: #3182ce !important;
    box-shadow: inset 2px 0 0 #3182ce;
}
.history-item-active .history-item-title {
    color: #2b6cb0;
}

/* 工具栏按钮激活态 */
.toolbar-btn-active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #f6e05e !important;
}

/* 中栏：输入面板 */
.pr-input-panel {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}
.panel-header {
    padding: 14px 18px;
    background: linear-gradient(to bottom, #f0f4f8, #fff);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
}
.panel-tip {
    font-size: 11px;
    color: #a0aec0;
}
.pr-input-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
}

/* 表单组 */
.pr-form-group {
    margin-bottom: 18px;
}
.pr-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}
.pr-form-label .required {
    font-size: 11px;
    color: #e53e3e;
    font-style: normal;
    margin-left: 4px;
}

/* 基本信息4列 */
.pr-basic-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pr-field label {
    display: block;
    font-size: 11px;
    color: #718096;
    margin-bottom: 4px;
}
.pr-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.pr-field input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* 选项组 */
.pr-option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pr-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.pr-option:hover {
    border-color: #3182ce;
    background: #ebf8ff;
    color: #2b6cb0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(49, 130, 206, 0.1);
}
.pr-option.selected {
    border-color: #3182ce;
    background: linear-gradient(135deg, #ebf8ff, #dbeafe);
    color: #2b6cb0;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(49, 130, 206, 0.15);
}
.pr-option-icon {
    font-size: 14px;
}
/* 选中勾选标记 */
.pr-check {
    font-size: 11px;
    font-weight: 700;
    color: #3182ce;
    margin-left: 2px;
}
body.dark .pr-check {
    color: #90cdf4;
}

/* 文本域 */
.pr-textarea-box {
    position: relative;
}
.pr-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.pr-textarea:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}
.pr-char-counter {
    text-align: right;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 4px;
}

/* 提示框 */
.pr-tips-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #f6e05e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
}
.pr-tips-box p {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #975a16;
}
.pr-tips-box ul {
    margin: 0;
    padding-left: 18px;
}
.pr-tips-box li {
    font-size: 11px;
    color: #744210;
    line-height: 1.8;
}

/* 右栏：结果面板 */
.pr-result-panel {
    flex: 1.2;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    background: #fafcff;
}
.pr-result-header {
    padding: 14px 18px;
    background: linear-gradient(to bottom, #f0f4f8, #fafcff);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pr-result-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
}
.result-type-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #ebf8ff;
    color: #2b6cb0;
    font-weight: 500;
}
.pr-result-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 占位提示 */
.result-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}
.placeholder-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.6;
}
.placeholder-title {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
}
.placeholder-desc {
    font-size: 13px;
    color: #a0aec0;
    margin: 4px 0;
    line-height: 1.6;
}

/* 加载动画 */
.result-loading {
    text-align: center;
    padding: 80px 20px;
}
.loading-pulse {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.pulse-bar {
    width: 6px;
    height: 32px;
    background: linear-gradient(to top, #3182ce, #63b3ed);
    border-radius: 3px;
    animation: pulseBar 1.2s ease-in-out infinite;
}
.pulse-bar:nth-child(2) { animation-delay: 0.2s; }
.pulse-bar:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulseBar {
    0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}
.loading-text {
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 6px;
}
.loading-sub {
    font-size: 13px;
    color: #a0aec0;
}

/* 结果内容样式 */
.result-content {
    line-height: 1.8;
    color: #2d3748;
    font-size: 14px;
}
.result-content .report-result {
    padding: 0;
}
.result-content .report-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}
.result-content .report-title {
    font-size: 20px;
    color: #1a365d;
    margin: 0 0 10px;
}
.result-content .report-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #718096;
}
.result-content .report-meta span {
    padding: 2px 10px;
    background: #f7fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.result-content .report-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #3182ce;
}
/* 结果区各section用不同左边框颜色区分 */
.result-content .report-section:nth-child(2) {
    border-left-color: #3182ce;
}
.result-content .report-section:nth-child(3) {
    border-left-color: #c9a84c;
}
.result-content .report-section:nth-child(4) {
    border-left-color: #e53e3e;
}
.result-content .report-section:nth-child(5) {
    border-left-color: #38a169;
}
.result-content .report-section:nth-child(6) {
    border-left-color: #805ad5;
}
.result-content .report-section:nth-child(7) {
    border-left-color: #dd6b20;
}
.result-content .report-section h4 {
    font-size: 15px;
    color: #1a365d;
    margin: 0 0 10px;
    font-weight: 600;
}
.result-content .report-section p {
    margin: 6px 0;
    line-height: 1.8;
}
.result-content .report-section ul {
    margin: 6px 0;
    padding-left: 20px;
}
.result-content .report-section li {
    margin: 4px 0;
    line-height: 1.8;
}
.result-content .achievement-item {
    padding: 10px 14px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

/* 错误提示 */
#prResultError {
    text-align: center;
    padding: 20px;
    color: #e53e3e;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #fed7d7;
}

/* 右下角全屏退出按钮 */
.pr-exit-fullscreen {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10002;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    color: #f6e05e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pr-exit-fullscreen:hover {
    background: linear-gradient(135deg, #2c5282, #3182ce);
    box-shadow: 0 4px 16px rgba(49,130,206,0.4);
    transform: translateY(-1px);
}

/* ===== 模态框 ===== */
.pr-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(2px);
}
.pr-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 720px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    overflow: hidden;
    flex-direction: column;
}
.pr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    color: #fff;
}
.pr-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.pr-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.pr-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.pr-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.example-card {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.example-card:hover {
    border-color: #c9a84c;
    background: linear-gradient(135deg, #fffbeb, #fef9e7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}
.example-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}
.example-card-info {
    font-size: 11px;
    color: #718096;
    margin-bottom: 6px;
}
.example-card-desc {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 自定义滚动条 */
.history-list::-webkit-scrollbar,
.pr-input-body::-webkit-scrollbar,
.pr-result-body::-webkit-scrollbar,
.pr-modal-body::-webkit-scrollbar {
    width: 5px;
}
.history-list::-webkit-scrollbar-track,
.pr-input-body::-webkit-scrollbar-track,
.pr-result-body::-webkit-scrollbar-track,
.pr-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.history-list::-webkit-scrollbar-thumb,
.pr-input-body::-webkit-scrollbar-thumb,
.pr-result-body::-webkit-scrollbar-thumb,
.pr-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}
.history-list::-webkit-scrollbar-thumb:hover,
.pr-input-body::-webkit-scrollbar-thumb:hover,
.pr-result-body::-webkit-scrollbar-thumb:hover,
.pr-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ===== 暗黑模式 ===== */
body.dark .pr-container {
    background: #1a202c;
    border-color: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body.dark .pr-toolbar {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #0f1923 100%);
    border-bottom-color: #b8942f;
}
body.dark .toolbar-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
}
body.dark .toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
body.dark .toolbar-btn-primary {
    background: linear-gradient(135deg, #b8942f, #c9a84c);
    color: #1a202c;
    border-color: #9a7b24;
}

/* 暗黑-左栏 */
body.dark .pr-history-panel {
    background: #171e2e;
    border-right-color: #2d3748;
}
body.dark .history-panel-header {
    background: linear-gradient(to bottom, #1e2a3a, #1a2332);
    border-bottom-color: #2d3748;
}
body.dark .history-panel-header h3 {
    color: #e2e8f0;
}
body.dark .history-search input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
body.dark .history-search input:focus {
    border-color: #63b3ed;
}
body.dark .history-item:hover {
    background: #2a3444;
    border-color: #4a5568;
}
body.dark .history-item-title {
    color: #e2e8f0;
}
body.dark .history-item-type {
    background: #2a3444;
    color: #63b3ed;
}
body.dark .history-empty {
    color: #4a5568;
}
body.dark .history-item-meta {
    color: #718096;
}
body.dark .history-count {
    color: #718096;
}
body.dark .history-search {
    border-bottom-color: #2d3748;
}
body.dark .history-clear-btn {
    background: #2d1b1b;
    color: #fc8181;
}
body.dark .history-clear-btn:hover {
    background: #3d1f1f;
}

/* 暗黑-中栏 */
body.dark .pr-input-panel {
    border-right-color: #2d3748;
}
body.dark .panel-header {
    background: linear-gradient(to bottom, #1e2a3a, #1a202c);
    border-bottom-color: #2d3748;
}
body.dark .panel-header h3 {
    color: #e2e8f0;
}
body.dark .pr-form-label {
    color: #e2e8f0;
}
body.dark .pr-field label {
    color: #a0aec0;
}
body.dark .pr-field input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
body.dark .pr-field input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15);
}
body.dark .pr-option {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}
body.dark .pr-option:hover {
    border-color: #63b3ed;
    background: #2a3a52;
    color: #90cdf4;
}
body.dark .pr-option.selected {
    border-color: #63b3ed;
    background: linear-gradient(135deg, #1a3a5c, #234568);
    color: #90cdf4;
}
body.dark .pr-textarea {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
body.dark .pr-textarea:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15);
}
body.dark .pr-tips-box {
    background: linear-gradient(135deg, #2d2a1a, #342e1a);
    border-color: #6b5a1e;
}
body.dark .pr-tips-box p {
    color: #f6e05e;
}
body.dark .pr-tips-box li {
    color: #d4a843;
}
body.dark .pr-input-body {
    background: #1a202c;
}
body.dark .pr-char-counter {
    color: #4a5568;
}
body.dark .pr-basic-fields {
    gap: 10px;
}
body.dark .toolbar-btn-cancel {
    background: rgba(252, 129, 129, 0.15);
    border-color: rgba(252, 129, 129, 0.4);
    color: #fc8181;
}
body.dark .toolbar-btn-cancel:hover {
    background: rgba(252, 129, 129, 0.25);
    color: #fff;
}

/* 暗黑-右栏 */
body.dark .pr-result-panel {
    background: #171e2e;
}
body.dark .pr-result-header {
    background: linear-gradient(to bottom, #1e2a3a, #171e2e);
    border-bottom-color: #2d3748;
}
body.dark .pr-result-header h3 {
    color: #e2e8f0;
}
body.dark .result-type-badge {
    background: #1a3a5c;
    color: #63b3ed;
}
body.dark .result-placeholder {
    color: #4a5568;
}
body.dark .placeholder-title {
    color: #a0aec0;
}
body.dark .placeholder-desc {
    color: #4a5568;
}
body.dark .loading-text {
    color: #e2e8f0;
}
body.dark .loading-sub {
    color: #718096;
}
body.dark .pulse-bar {
    background: linear-gradient(to top, #63b3ed, #90cdf4);
}
body.dark .panel-tip {
    color: #718096;
}
body.dark .result-content {
    color: #e2e8f0;
}
body.dark .result-content .report-header {
    border-bottom-color: #4a5568;
}
body.dark .result-content .report-title {
    color: #f6e05e;
}
body.dark .result-content .report-meta span {
    background: #2d3748;
    border-color: #4a5568;
    color: #a0aec0;
}
body.dark .result-content .report-section {
    background: #1e2a3a;
    border-left-color: #63b3ed;
}
body.dark .result-content .report-section h4 {
    color: #f6e05e;
}
body.dark .result-content .report-section p,
body.dark .result-content .report-section li {
    color: #cbd5e0;
}
body.dark .result-content .achievement-item {
    background: #2d3748;
    border-color: #4a5568;
}
body.dark #prResultError {
    background: #2d1b1b;
    border-color: #742a2a;
    color: #fc8181;
}

body.dark .history-item-active {
    background: #1a3a5c;
    border-color: #63b3ed !important;
    box-shadow: inset 2px 0 0 #63b3ed;
}
body.dark .history-item-active .history-item-title {
    color: #90cdf4;
}
body.dark .history-item-del:hover {
    color: #fc8181;
    background: #2d1b1b;
}
body.dark .result-content .report-section:nth-child(3) {
    border-left-color: #d4a843;
}
body.dark .result-content .report-section:nth-child(4) {
    border-left-color: #fc8181;
}
body.dark .result-content .report-section:nth-child(5) {
    border-left-color: #68d391;
}
body.dark .result-content .report-section:nth-child(6) {
    border-left-color: #b794f4;
}
body.dark .result-content .report-section:nth-child(7) {
    border-left-color: #f6ad55;
}

/* 暗黑-模态框 */
body.dark .pr-modal {
    background: #1a202c;
}
body.dark .pr-modal-header {
    background: linear-gradient(135deg, #0d1b2a, #1b2838);
}
body.dark .example-card {
    background: #2d3748;
    border-color: #4a5568;
}
body.dark .example-card:hover {
    background: #342e1a;
    border-color: #d4a843;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.15);
}
body.dark .example-card-name {
    color: #e2e8f0;
}
body.dark .example-card-info {
    color: #a0aec0;
}
body.dark .example-card-desc {
    color: #cbd5e0;
}
body.dark .pr-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}
body.dark .pr-exit-fullscreen {
    background: linear-gradient(135deg, #0d1b2a, #1b2838);
    border-color: #4a5568;
}
body.dark .pr-exit-fullscreen:hover {
    background: linear-gradient(135deg, #1b2838, #234568);
}
body.dark .pr-field input::placeholder,
body.dark .pr-textarea::placeholder,
body.dark .history-search input::placeholder {
    color: #4a5568;
}
body.dark .pr-result-body {
    background: #171e2e;
}
/* 暗黑-滚动条 */
body.dark .history-list::-webkit-scrollbar-thumb,
body.dark .pr-input-body::-webkit-scrollbar-thumb,
body.dark .pr-result-body::-webkit-scrollbar-thumb,
body.dark .pr-modal-body::-webkit-scrollbar-thumb {
    background: #4a5568;
}
body.dark .history-list::-webkit-scrollbar-thumb:hover,
body.dark .pr-input-body::-webkit-scrollbar-thumb:hover,
body.dark .pr-result-body::-webkit-scrollbar-thumb:hover,
body.dark .pr-modal-body::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .pr-history-panel {
        display: none;
    }
    .pr-main-content {
        flex-direction: column;
        height: auto;
    }
    .pr-input-panel,
    .pr-result-panel {
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .pr-input-body {
        max-height: 50vh;
    }
    .pr-result-body {
        min-height: 300px;
    }
}
@media (max-width: 640px) {
    .pr-toolbar {
        padding: 8px 10px;
    }
    .toolbar-title {
        font-size: 13px;
    }
    .toolbar-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    .pr-basic-fields {
        grid-template-columns: 1fr;
    }
    .example-grid {
        grid-template-columns: 1fr;
    }
}
