/* ===== 工作总结工具 - 主题色：深邃藏蓝 + 琥珀金 ===== */

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

/* 主容器 */
.ws-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;
}

/* 全屏模式 */
.ws-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;
}
.ws-container.fullscreen .ws-main-content {
    flex: 1;
    overflow: hidden;
}

/* ===== 工具栏 ===== */
.ws-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1a2744 0%, #2a4073 50%, #1e3260 100%);
    border-bottom: 2px solid #d4a843;
    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: #f0d060;
    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, #d4a843, #e0ba50);
    border-color: #b8942f;
    color: #1a202c;
    font-weight: 600;
}
.toolbar-btn-primary:hover {
    background: linear-gradient(135deg, #e0ba50, #ebc95a);
    color: #1a202c;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.4);
}
.toolbar-btn-active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #f0d060 !important;
}
.toolbar-btn-dark-active {
    background: linear-gradient(135deg, #d4a843, #e0ba50) !important;
    border-color: #b8942f !important;
    color: #1a202c !important;
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.4) !important;
}
.toolbar-btn-dark-active:hover {
    background: linear-gradient(135deg, #e0ba50, #ebc95a) !important;
    box-shadow: 0 0 14px rgba(212, 168, 67, 0.5) !important;
}
.toolbar-btn-pulse {
    animation: wsBtnPulse 0.6s ease-in-out 2;
}
@keyframes wsBtnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(212, 168, 67, 0.5); }
}

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

/* 左栏：历史记录 */
.ws-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: #2a4073;
}
.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: #edf2f7;
    border-color: #cbd5e0;
}
.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: #ebf4ff;
    color: #2a4073;
    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: #edf2f7;
    border-color: #2a4073 !important;
    box-shadow: inset 2px 0 0 #2a4073;
}
.history-item-active .history-item-title {
    color: #2a4073;
}

/* 中栏：输入面板 */
.ws-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: #1a2744;
}
.panel-tip {
    font-size: 11px;
    color: #a0aec0;
}
.ws-input-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
}

/* 表单组 */
.ws-form-group {
    margin-bottom: 18px;
}
.ws-form-group:focus-within .ws-form-label {
    color: #2a4073;
}
body.dark .ws-form-group:focus-within .ws-form-label {
    color: #90cdf4;
}
.ws-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.ws-form-label .required {
    font-size: 11px;
    color: #e53e3e;
    font-style: normal;
    margin-left: 4px;
}
body.dark .ws-form-label .required {
    color: #fc8181;
}

/* 基本信息 */
.ws-basic-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ws-field label {
    display: block;
    font-size: 11px;
    color: #718096;
    margin-bottom: 4px;
}
.ws-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;
}
.ws-field input:focus {
    border-color: #2a4073;
    box-shadow: 0 0 0 3px rgba(42, 64, 115, 0.1);
}

/* 选项组 */
.ws-option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ws-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;
}
.ws-option:hover {
    border-color: #2a4073;
    background: #edf2f7;
    color: #2a4073;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(42, 64, 115, 0.1);
}
.ws-option.selected {
    border-color: #2a4073;
    background: linear-gradient(135deg, #edf2f7, #dbeafe);
    color: #2a4073;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(42, 64, 115, 0.15);
}
.ws-option-icon {
    font-size: 14px;
}
.ws-check {
    font-size: 11px;
    font-weight: 700;
    color: #2a4073;
    margin-left: 2px;
}
body.dark .ws-check {
    color: #90cdf4;
}

/* 文本域 */
.ws-textarea-box {
    position: relative;
}
.ws-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;
}
.ws-textarea:focus {
    border-color: #2a4073;
    box-shadow: 0 0 0 3px rgba(42, 64, 115, 0.1);
}
.ws-char-counter {
    text-align: right;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 4px;
}

/* 提示框 */
.ws-tips-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #f0d060;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ws-tips-box:hover {
    box-shadow: 0 2px 10px rgba(212, 168, 67, 0.15);
    transform: translateY(-1px);
}
.ws-tips-box p {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #975a16;
}
.ws-tips-box ul {
    margin: 0;
    padding-left: 18px;
}
.ws-tips-box li {
    font-size: 11px;
    color: #744210;
    line-height: 1.8;
}

/* 右栏：结果面板 */
.ws-result-panel {
    flex: 1.2;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    background: #fafcff;
}
.ws-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;
}
.ws-result-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a2744;
}
.result-type-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #edf2f7;
    color: #2a4073;
    font-weight: 500;
}
.ws-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;
    animation: wsFloat 3s ease-in-out infinite;
}
@keyframes wsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.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: 5px;
    height: 32px;
    background: linear-gradient(to top, #2a4073, #5a7cbf);
    border-radius: 3px;
    animation: wsPulseBar 1.2s ease-in-out infinite;
}
.pulse-bar:nth-child(2) { animation-delay: 0.15s; }
.pulse-bar:nth-child(3) { animation-delay: 0.3s; }
.pulse-bar:nth-child(4) { animation-delay: 0.45s; }
.pulse-bar:nth-child(5) { animation-delay: 0.6s; }
@keyframes wsPulseBar {
    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 ::selection {
    background: rgba(42, 64, 115, 0.15);
    color: #1a2744;
}
body.dark .result-content ::selection {
    background: rgba(90, 124, 191, 0.25);
    color: #f0f4f8;
}
.result-content .ws-report-result {
    padding: 0;
}
.result-content .ws-report-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}
.result-content .ws-report-title {
    font-size: 20px;
    color: #1a2744;
    margin: 0 0 10px;
}
.result-content .ws-report-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #718096;
}
.result-content .ws-report-meta span {
    padding: 2px 10px;
    background: #f7fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.result-content .ws-report-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #2a4073;
    transition: transform 0.2s, box-shadow 0.2s;
}
.result-content .ws-report-section:hover {
    transform: translateX(3px);
    box-shadow: -3px 0 12px rgba(42, 64, 115, 0.08);
}
.result-content .ws-report-section:nth-child(2) { border-left-color: #2a4073; }
.result-content .ws-report-section:nth-child(3) { border-left-color: #d4a843; }
.result-content .ws-report-section:nth-child(4) { border-left-color: #e53e3e; }
.result-content .ws-report-section:nth-child(5) { border-left-color: #38a169; }
.result-content .ws-report-section:nth-child(6) { border-left-color: #805ad5; }
.result-content .ws-report-section:nth-child(7) { border-left-color: #dd6b20; }
.result-content .ws-report-section h4 {
    font-size: 15px;
    color: #1a2744;
    margin: 0 0 10px;
    font-weight: 600;
}
.result-content .ws-report-section p {
    margin: 6px 0;
    line-height: 1.8;
}
.result-content .ws-report-section ul {
    margin: 6px 0;
    padding-left: 20px;
}
.result-content .ws-report-section li {
    margin: 4px 0;
    line-height: 1.8;
}
.result-content .ws-achievement-item {
    padding: 10px 14px;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

/* 错误提示容器（内部由 .ws-error-card 控制样式） */
#wsResultError {
    padding: 0;
    background: transparent;
    border: none;
}

/* 全屏退出按钮 */
.ws-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, #1a2744, #2a4073);
    color: #f0d060;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.ws-exit-fullscreen:hover {
    background: linear-gradient(135deg, #2a4073, #3a5593);
    box-shadow: 0 4px 16px rgba(42,64,115,0.4);
    transform: translateY(-1px);
}

/* ===== 模态框 ===== */
.ws-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);
}
.ws-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;
}
.ws-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a2744, #2a4073);
    color: #fff;
}
.ws-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.ws-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.ws-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.ws-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    counter-reset: ws-example;
}
/* 弹框通用提示 */
.ws-modal-tip {
    text-align: center;
    padding: 30px;
    font-size: 13px;
}
.ws-modal-tip.loading { color: #a0aec0; }
.ws-modal-tip.error { color: #e53e3e; }
body.dark .ws-modal-tip.loading { color: #718096; }
body.dark .ws-modal-tip.error { color: #fc8181; }
.example-card {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    position: relative;
    counter-increment: ws-example;
}
.example-card::before {
    content: counter(ws-example);
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2a4073, #3a5593);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.example-card:hover {
    border-color: #d4a843;
    background: linear-gradient(135deg, #fffbeb, #fef9e7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 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;
}

/* Toast 通知 */
.ws-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: #1a2744;
    color: #f0d060;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}
body.dark .ws-toast {
    background: #2d3748;
    color: #f0d060;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border: 1px solid #4a5568;
}

/* 错误卡片 */
.ws-error-card {
    text-align: center;
    padding: 30px 20px;
    color: #e53e3e;
    background: #fff5f5;
    border-radius: 10px;
    border: 1px solid #fed7d7;
}
.ws-error-card .error-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.ws-error-card .error-msg {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.ws-error-card .error-retry-btn {
    display: inline-block;
    padding: 6px 20px;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.ws-error-card .error-retry-btn:hover {
    background: #c53030;
    transform: translateY(-1px);
}
body.dark .ws-error-card {
    background: #2d1b1b;
    border-color: #742a2a;
    color: #fc8181;
}
body.dark .ws-error-card .error-retry-btn {
    background: #c53030;
}
body.dark .ws-error-card .error-retry-btn:hover {
    background: #e53e3e;
}

/* Shake 动画 */
@keyframes wsShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}
.ws-shake {
    animation: wsShake 0.4s ease-in-out;
    border-color: #e53e3e !important;
}
body.dark .ws-shake {
    border-color: #fc8181 !important;
}

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

/* ===== 暗黑模式 ===== */
body.dark .ws-container {
    background: #1a202c;
    border-color: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body.dark .ws-toolbar {
    background: linear-gradient(135deg, #0c1524 0%, #162038 50%, #101a30 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, #d4a843);
    color: #1a202c;
    border-color: #9a7b24;
}
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 .toolbar-btn-dark-active {
    background: linear-gradient(135deg, #b8942f, #d4a843) !important;
    border-color: #9a7b24 !important;
    color: #1a202c !important;
    box-shadow: 0 0 10px rgba(184, 148, 47, 0.3) !important;
}
body.dark .toolbar-btn-dark-active:hover {
    background: linear-gradient(135deg, #d4a843, #e0ba50) !important;
    box-shadow: 0 0 14px rgba(184, 148, 47, 0.4) !important;
}

/* 暗黑-左栏 */
body.dark .ws-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-count {
    color: #718096;
}
body.dark .history-search input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
body.dark .history-search input:focus {
    border-color: #5a7cbf;
}
body.dark .history-search {
    border-bottom-color: #2d3748;
}
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: #5a7cbf;
}
body.dark .history-empty {
    color: #4a5568;
}
body.dark .history-item-meta {
    color: #718096;
}
body.dark .history-clear-btn {
    background: #2d1b1b;
    color: #fc8181;
}
body.dark .history-clear-btn:hover {
    background: #3d1f1f;
}
body.dark .history-item-active {
    background: #1a2a44;
    border-color: #5a7cbf !important;
    box-shadow: inset 2px 0 0 #5a7cbf;
}
body.dark .history-item-active .history-item-title {
    color: #90cdf4;
}
body.dark .history-item-del:hover {
    color: #fc8181;
    background: #2d1b1b;
}

/* 暗黑-中栏 */
body.dark .ws-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 .panel-tip {
    color: #718096;
}
body.dark .ws-form-label {
    color: #e2e8f0;
}
body.dark .ws-field label {
    color: #a0aec0;
}
body.dark .ws-field input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
body.dark .ws-field input:focus {
    border-color: #5a7cbf;
    box-shadow: 0 0 0 3px rgba(90, 124, 191, 0.15);
}
body.dark .ws-option {
    background: #2d3748;
    border-color: #4a5568;
    color: #cbd5e0;
}
body.dark .ws-option:hover {
    border-color: #5a7cbf;
    background: #2a3a52;
    color: #90cdf4;
}
body.dark .ws-option.selected {
    border-color: #5a7cbf;
    background: linear-gradient(135deg, #1a2a44, #1e3260);
    color: #90cdf4;
}
body.dark .ws-textarea {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}
body.dark .ws-textarea:focus {
    border-color: #5a7cbf;
    box-shadow: 0 0 0 3px rgba(90, 124, 191, 0.15);
}
body.dark .ws-tips-box {
    background: linear-gradient(135deg, #2d2a1a, #342e1a);
    border-color: #6b5a1e;
}
body.dark .ws-tips-box p {
    color: #f0d060;
}
body.dark .ws-tips-box li {
    color: #d4a843;
}
body.dark .ws-input-body {
    background: #1a202c;
}
body.dark .ws-char-counter {
    color: #4a5568;
}
body.dark .ws-field input::placeholder,
body.dark .ws-textarea::placeholder,
body.dark .history-search input::placeholder {
    color: #4a5568;
}

/* 暗黑-右栏 */
body.dark .ws-result-panel {
    background: #171e2e;
}
body.dark .ws-result-header {
    background: linear-gradient(to bottom, #1e2a3a, #171e2e);
    border-bottom-color: #2d3748;
}
body.dark .ws-result-header h3 {
    color: #e2e8f0;
}
body.dark .result-type-badge {
    background: #1a2a44;
    color: #5a7cbf;
}
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, #5a7cbf, #90cdf4);
}
body.dark .result-content {
    color: #e2e8f0;
}
body.dark .result-content .ws-report-header {
    border-bottom-color: #4a5568;
}
body.dark .result-content .ws-report-title {
    color: #f0d060;
}
body.dark .result-content .ws-report-meta span {
    background: #2d3748;
    border-color: #4a5568;
    color: #a0aec0;
}
body.dark .result-content .ws-report-section {
    background: #1e2a3a;
    border-left-color: #5a7cbf;
}
body.dark .result-content .ws-report-section:hover {
    box-shadow: -3px 0 12px rgba(90, 124, 191, 0.1);
}
body.dark .result-content .ws-report-section h4 {
    color: #f0d060;
}
body.dark .result-content .ws-report-section p,
body.dark .result-content .ws-report-section li {
    color: #cbd5e0;
}
body.dark .result-content .ws-report-section:nth-child(3) { border-left-color: #d4a843; }
body.dark .result-content .ws-report-section:nth-child(4) { border-left-color: #fc8181; }
body.dark .result-content .ws-report-section:nth-child(5) { border-left-color: #68d391; }
body.dark .result-content .ws-report-section:nth-child(6) { border-left-color: #b794f4; }
body.dark .result-content .ws-report-section:nth-child(7) { border-left-color: #f6ad55; }
body.dark .result-content .ws-achievement-item {
    background: #2d3748;
    border-color: #4a5568;
}
body.dark #wsResultError {
    background: transparent;
    border: none;
    color: #fc8181;
}
body.dark .ws-result-body {
    background: #171e2e;
}

/* 暗黑-模态框 */
body.dark .ws-modal {
    background: #1a202c;
}
body.dark .ws-modal-header {
    background: linear-gradient(135deg, #0c1524, #162038);
}
body.dark .example-card {
    background: #2d3748;
    border-color: #4a5568;
}
body.dark .example-card::before {
    background: linear-gradient(135deg, #5a7cbf, #90cdf4);
    color: #1a202c;
}
body.dark .example-card:hover {
    background: #342e1a;
    border-color: #d4a843;
    box-shadow: 0 4px 12px rgba(212, 168, 67, 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 .ws-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}
body.dark .ws-exit-fullscreen {
    background: linear-gradient(135deg, #0c1524, #162038);
    border-color: #4a5568;
}
body.dark .ws-exit-fullscreen:hover {
    background: linear-gradient(135deg, #162038, #1e3260);
}

/* 暗黑-滚动条 */
body.dark .history-list::-webkit-scrollbar-thumb,
body.dark .ws-input-body::-webkit-scrollbar-thumb,
body.dark .ws-result-body::-webkit-scrollbar-thumb,
body.dark .ws-modal-body::-webkit-scrollbar-thumb {
    background: #4a5568;
}
body.dark .history-list::-webkit-scrollbar-thumb:hover,
body.dark .ws-input-body::-webkit-scrollbar-thumb:hover,
body.dark .ws-result-body::-webkit-scrollbar-thumb:hover,
body.dark .ws-modal-body::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

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