/* 工作中心 · 共用样式 */
.ws-page { padding: 0 4px 32px; }
.ws-page-head { margin-bottom: 16px; }
.ws-page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ws-page-title { margin: 0; font-size: 1.25rem; font-weight: 600; color: #1a1a2e; display: flex; align-items: center; gap: 8px; }
.ws-page-icon { font-size: 1.1em; }
.ws-page-desc { margin: 8px 0 0; font-size: 0.8125rem; color: #666; line-height: 1.5; }
.ws-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.ws-tab { border: none; background: transparent; padding: 6px 14px; font-size: 0.875rem; color: #666; cursor: pointer; border-radius: 6px; }
.ws-tab.is-active { color: #e8456a; background: #fff0f3; font-weight: 600; }
.ws-tab:hover:not(.is-active) { background: #f5f5f7; }
.ws-quota-bar { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 0.75rem; color: #888; }
.ws-quota-plan { color: #e8456a; font-weight: 600; }

.ws-layout { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .ws-layout { grid-template-columns: 1fr; } }

.ws-group-side { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 12px; }
.ws-group-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; font-weight: 600; margin-bottom: 8px; color: #333; }
.ws-link-btn { border: none; background: none; color: #e8456a; font-size: 0.75rem; cursor: pointer; padding: 0; }
.ws-group-list { display: flex; flex-direction: column; gap: 2px; }
.ws-group-item { text-align: left; border: none; background: transparent; padding: 8px 10px; border-radius: 6px; font-size: 0.8125rem; color: #555; cursor: pointer; }
.ws-group-item.is-active { background: #fff0f3; color: #e8456a; font-weight: 600; }
.ws-group-item:hover:not(.is-active) { background: #f8f8fa; }

.ws-main-panel { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 16px; min-height: 320px; }
.ws-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ws-btn { border: 1px solid #ddd; background: #fff; padding: 6px 14px; border-radius: 6px; font-size: 0.8125rem; cursor: pointer; }
.ws-btn:hover { border-color: #e8456a; color: #e8456a; }
.ws-btn-primary { background: #e8456a; border-color: #e8456a; color: #fff; }
.ws-btn-primary:hover { background: #d63a5c; color: #fff; }
.ws-btn-danger { color: #e8456a; border-color: #f5c6d0; }
.ws-btn-sm { padding: 4px 10px; font-size: 0.75rem; }

.ws-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ws-stat-card { background: #fafafa; border-radius: 8px; padding: 12px; }
.ws-stat-label { font-size: 0.75rem; color: #888; }
.ws-stat-value { font-size: 1.25rem; font-weight: 700; color: #1a1a2e; margin-top: 4px; }
.ws-stat-sub { font-size: 0.6875rem; color: #aaa; margin-top: 2px; }

.ws-table-wrap { overflow-x: auto; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.ws-table th, .ws-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.ws-table th { color: #888; font-weight: 500; background: #fafafa; }
.ws-table tr:hover td { background: #fafbfc; }
.ws-table .ws-actions { display: flex; gap: 8px; }

.ws-empty { text-align: center; padding: 48px 24px; color: #999; }
.ws-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.ws-empty h3 { margin: 0 0 8px; color: #555; font-size: 1rem; }
.ws-empty p { margin: 0 0 16px; font-size: 0.8125rem; }

.ws-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ws-type-card { border: 1px solid #eee; border-radius: 10px; padding: 16px; cursor: pointer; transition: border-color 0.15s; }
.ws-type-card.is-active, .ws-type-card:hover { border-color: #e8456a; }
.ws-type-card h4 { margin: 0 0 6px; font-size: 0.9375rem; }
.ws-type-card p { margin: 0; font-size: 0.75rem; color: #888; }

.ws-form { display: grid; gap: 12px; max-width: 480px; }
.ws-field label { display: block; font-size: 0.75rem; color: #666; margin-bottom: 4px; }
.ws-field input, .ws-field select, .ws-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.8125rem; box-sizing: border-box; }
.ws-field textarea { min-height: 72px; resize: vertical; }

.ws-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; }
.ws-modal[hidden] { display: none !important; }
.ws-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.ws-modal-panel { position: relative; background: #fff; border-radius: 12px; padding: 20px; width: min(480px, 92vw); max-height: 85vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.ws-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ws-modal-head h3 { margin: 0; font-size: 1rem; }
.ws-modal-close { border: none; background: none; font-size: 1.25rem; cursor: pointer; color: #999; }

.ws-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #333; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 0.8125rem; z-index: 9999; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.ws-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ws-toast--error { background: #e8456a; }
.ws-toast--success { background: #2d9f6f; }

.ws-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.6875rem; background: #f0f0f0; color: #666; }
.ws-badge--active { background: #e8f8ef; color: #2d9f6f; }
.ws-badge--done { background: #f0f0f0; color: #888; }

.ws-snapshot-time { font-size: 0.75rem; color: #aaa; margin-top: 8px; }
