.wmk-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #0284c7; --p-text: #0f172a; width: 100%; max-width: 1200px; margin: 0 auto; background: var(--p-bg); border-radius: 24px; padding: 32px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); transition: 0.3s; }
.wmk-header-main { font-size: 1.5rem; font-weight: 600; color: var(--p-text); margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.wmk-badge { background: #e0f2fe; color: #0369a1; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 500; }
.wmk-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 16px; border-bottom: 1px solid var(--p-border); margin-bottom: 24px; text-align: center; }

.wmk-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
@media(max-width: 900px) { .wmk-layout { grid-template-columns: 1fr; } }

/* 控制面板 */
.wmk-panel { background: #f8fafc; border-radius: 16px; padding: 24px; border: 1px solid var(--p-border); transition: 0.3s; }
.wmk-group { margin-bottom: 20px; }
.wmk-group-title { font-size: 0.9rem; font-weight: 600; color: #475569; margin-bottom: 10px; display: block; }
.wmk-input { width: 100%; padding: 10px 14px; background: #ffffff; border: 1px solid #cbd5e1; color: var(--p-text); border-radius: 10px; outline: none; font-size: 0.95rem; transition: 0.2s; }
.wmk-input:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }
.wmk-color-picker { width: 100%; height: 44px; border-radius: 10px; cursor: pointer; border: 1px solid #cbd5e1; padding: 2px; background: #fff; }

.wmk-slider-wrap { display: flex; align-items: center; gap: 12px; }
.wmk-slider { flex: 1; accent-color: var(--p-primary); }
.wmk-slider-val { width: 45px; text-align: right; font-family: monospace; font-size: 0.9rem; color: #64748b; }

.wmk-file-upload { position: relative; overflow: hidden; width: 100%; margin-bottom: 20px; }
.wmk-file-btn { width: 100%; padding: 24px 16px; background: #ffffff; border: 2px dashed #cbd5e1; border-radius: 12px; text-align: center; color: #64748b; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wmk-file-btn:hover { border-color: var(--p-primary); color: var(--p-primary); background: #f0f9ff; }
.wmk-file-upload input[type=file] { position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; height: 100%; width: 100%; }

/* 画布预览区 */
.wmk-preview-area { background: repeating-conic-gradient(#f1f5f9 0% 25%, #ffffff 0% 50%) 50% / 20px 20px; border-radius: 16px; border: 1px solid var(--p-border); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; min-height: 400px; box-shadow: inset 0 4px 10px rgba(0,0,0,0.02); }
.wmk-canvas { max-width: 100%; max-height: 60vh; object-fit: contain; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border-radius: 8px; transition: 0.2s; }
.wmk-btn-primary { background: linear-gradient(135deg, var(--p-primary), #0369a1); color: white; padding: 12px 32px; border: none; border-radius: 40px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3); margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; }
.wmk-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4); }
.wmk-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 黑夜模式 */
[data-theme="dark"] .wmk-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .wmk-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .wmk-group-title { color: #cbd5e1; }
[data-theme="dark"] .wmk-input { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .wmk-file-btn { background: #1e293b; border-color: #475569; color: #94a3b8; }
[data-theme="dark"] .wmk-file-btn:hover { background: #0c4a6e; border-color: var(--p-primary); }
[data-theme="dark"] .wmk-preview-area { background: repeating-conic-gradient(#1e293b 0% 25%, #0f172a 0% 50%) 50% / 20px 20px; border-color: #475569; }
[data-theme="dark"] .wmk-color-picker { background: #1e293b; border-color: #475569; }