/* AI 创作台 — 内嵌于运营台 #tab-copyweb */
*, *::before, *::after { box-sizing: border-box; }
#tab-copyweb button { font: inherit; cursor: pointer; }
#tab-copyweb .hidden { display: none !important; }

#tab-copyweb .layout { display: flex; min-height: 0; align-items: stretch; }
#tab-copyweb .modal { z-index: 1200; }
#tab-copyweb .main { contain: layout style; }

/* ── Sidebar ── */
#tab-copyweb .sidebar {
  width: 200px; flex-shrink: 0; background: #fff; border-right: 1px solid #e8e8e8;
  display: flex; flex-direction: column; padding: 16px 0;
}
#tab-copyweb .brand { padding: 0 16px 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
#tab-copyweb .brand h1 { margin: 0; font-size: 16px; font-weight: 700; color: #303133; }
#tab-copyweb .brand .sub { margin: 2px 0 0; font-size: 13px; color: #409eff; font-weight: 500; }

#tab-copyweb .sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 0 8px; overflow-y: auto; }
#tab-copyweb .sidebar-nav .nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 9px 12px; border: none; background: transparent; border-radius: 4px;
  color: #606266; font-size: 13px; transition: all .15s;
}
#tab-copyweb .sidebar-nav .nav-item .nav-icon { flex-shrink: 0; opacity: .65; }
#tab-copyweb .sidebar-nav .nav-item:hover { color: #409eff; background: #f5f7fa; }
#tab-copyweb .sidebar-nav .nav-item:hover .nav-icon { opacity: 1; }
#tab-copyweb .sidebar-nav .nav-item.active { color: #409eff; background: #ecf5ff; font-weight: 500; }
#tab-copyweb .sidebar-nav .nav-item.active .nav-icon { opacity: 1; }

#tab-copyweb .sidebar-footer { padding: 12px 16px 0; text-align: center; border-top: 1px solid #f0f0f0; margin-top: 8px; }
#tab-copyweb .qr-placeholder {
  width: 72px; height: 72px; margin: 0 auto 6px; background: #fafafa; border: 1px solid #eee; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #c0c4cc;
}
#tab-copyweb .meta { font-size: 11px; color: #909399; margin: 0; line-height: 1.5; }

/* ── Main ── */
#tab-copyweb .main { flex: 1; min-width: 0; padding: 20px 24px; overflow-y: auto; }

/* ── Task action bar (horizontal + icon) ── */
#tab-copyweb .task-bar-section { margin-bottom: 16px; }
#tab-copyweb .task-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch;
}
#tab-copyweb .task-bar-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px;
}
#tab-copyweb .task-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 16px; min-height: 36px; border: none; border-radius: 4px;
  background: #409eff; color: #fff; font-size: 13px; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
#tab-copyweb .task-btn-plus { font-size: 16px; font-weight: 300; line-height: 1; opacity: .9; }
#tab-copyweb .task-btn:hover { background: #66b1ff; box-shadow: 0 2px 8px rgba(64,158,255,.3); }
#tab-copyweb .task-bar-grid .task-btn { width: 100%; }

/* ── History table ── */
#tab-copyweb .history-section { margin-top: 0; }
#tab-copyweb .history-card { background: #fff; border-radius: 4px; border: 1px solid #ebeef5; overflow: hidden; min-height: 400px; display: flex; flex-direction: column; }
#tab-copyweb .history-table { width: 100%; border-collapse: collapse; font-size: 13px; flex: 1; }
#tab-copyweb .history-table th, .history-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #ebeef5; vertical-align: middle; }
#tab-copyweb .history-table th { background: #fafafa; color: #909399; font-weight: 500; font-size: 13px; }
#tab-copyweb .history-table td.empty { text-align: center; color: #909399; padding: 80px 16px; }
#tab-copyweb .history-table .requirement { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #606266; }
#tab-copyweb .btn-detail {
  padding: 4px 12px; border: 1px solid #91d5ff; border-radius: 4px; background: #ecf5ff;
  color: #409eff; font-size: 12px;
}
#tab-copyweb .btn-detail:hover { background: #409eff; color: #fff; border-color: #409eff; }
#tab-copyweb .task-row { cursor: pointer; transition: background .1s; }
#tab-copyweb .task-row:hover { background: #f5f7fa; }

#tab-copyweb .result-block { margin-bottom: 16px; }
#tab-copyweb .result-block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
#tab-copyweb .block-label { margin: 0; font-size: 13px; color: #606266; font-weight: 600; }
#tab-copyweb .requirement-box {
  background: #fafafa; border: 1px solid #ebeef5; border-radius: 4px; padding: 12px 14px;
  font-size: 13px; line-height: 1.8; color: #606266;
}
#tab-copyweb .result-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#tab-copyweb .toolbar-select {
  height: 28px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 12px;
}
#tab-copyweb .btn-sm { padding: 4px 10px; font-size: 12px; }
#tab-copyweb .btn-outline { background: #fff; color: #606266; border: 1px solid #dcdfe6; }
#tab-copyweb .btn-outline:hover { color: #409eff; border-color: #409eff; }
#tab-copyweb .btn-text { background: none; border: none; color: #409eff; padding: 4px 8px; font-size: 12px; }
#tab-copyweb .btn-text:hover { text-decoration: underline; }
#tab-copyweb .result-editor {
  width: 100%; min-height: 280px; max-height: 420px; resize: vertical; font-family: inherit;
}
#tab-copyweb .result-editor.editing { border-color: #409eff; background: #fff; }
#tab-copyweb .detail-body { max-height: 70vh; overflow-y: auto; }

/* ── Pagination (Element Plus style) ── */
#tab-copyweb .pagination {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 10px 16px; font-size: 13px; color: #606266; border-top: 1px solid #ebeef5;
}
#tab-copyweb .pagination-total { margin-right: 8px; color: #606266; }
#tab-copyweb .page-arrow {
  width: 28px; height: 28px; padding: 0; border: 1px solid #dcdfe6; border-radius: 2px;
  background: #fff; color: #606266; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
#tab-copyweb .page-arrow:disabled { opacity: .45; cursor: not-allowed; }
#tab-copyweb .page-arrow:not(:disabled):hover { color: #409eff; border-color: #409eff; }
#tab-copyweb .page-current {
  min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #409eff; border-radius: 2px; color: #409eff; font-size: 13px;
}
#tab-copyweb .pagination-goto { color: #606266; }
#tab-copyweb .page-input {
  width: 40px; height: 28px; padding: 0 4px; border: 1px solid #dcdfe6; border-radius: 2px;
  text-align: center; font-size: 13px;
}
#tab-copyweb .page-input:focus { outline: none; border-color: #409eff; }

/* ── Modal ── */
#tab-copyweb .modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
#tab-copyweb .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
#tab-copyweb .modal-panel {
  position: relative; background: #fff; border-radius: 4px; width: min(520px, 92vw);
  max-height: 88vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
#tab-copyweb .modal-panel-wide { width: min(680px, 94vw); }
#tab-copyweb .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid #ebeef5; }
#tab-copyweb .modal-header h3 { margin: 0; font-size: 15px; font-weight: 600; }
#tab-copyweb .modal-close { border: none; background: none; font-size: 20px; color: #909399; line-height: 1; padding: 0 4px; }
#tab-copyweb .modal-body { padding: 20px; overflow-y: auto; flex: 1; }
#tab-copyweb .modal-result { padding: 0 20px 20px; border-top: 1px solid #ebeef5; }
#tab-copyweb .modal-result h4 { margin: 14px 0 8px; font-size: 13px; color: #606266; font-weight: 500; }
#tab-copyweb .modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid #ebeef5; }

#tab-copyweb .form-field { margin-bottom: 16px; }
#tab-copyweb .form-field label { display: block; margin-bottom: 6px; font-size: 13px; color: #606266; }
#tab-copyweb .form-field label .req { color: #f56c6c; margin-left: 2px; }
#tab-copyweb .form-field input, .form-field textarea {
  width: 100%; padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px;
  transition: border-color .15s;
}
#tab-copyweb .form-field input:focus, .form-field textarea:focus { outline: none; border-color: #409eff; }
#tab-copyweb .form-field textarea { min-height: 88px; resize: vertical; font-family: inherit; }

#tab-copyweb .btn { padding: 8px 18px; border-radius: 4px; font-size: 13px; border: 1px solid transparent; }
#tab-copyweb .btn-primary { background: #409eff; color: #fff; border-color: #409eff; }
#tab-copyweb .btn-primary:hover { background: #66b1ff; }
#tab-copyweb .btn-primary:disabled { opacity: .6; cursor: not-allowed; }
#tab-copyweb .btn-secondary { background: #fff; color: #606266; border-color: #dcdfe6; }
#tab-copyweb .btn-secondary:hover { color: #409eff; border-color: #409eff; }

#tab-copyweb .result-content {
  background: #fafafa; border: 1px solid #ebeef5; border-radius: 4px; padding: 14px;
  white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.7;
  max-height: 360px; overflow-y: auto;
}
#tab-copyweb .result-content img { max-width: 100%; border-radius: 4px; }
#tab-copyweb .result-content.result-error { background: #fef0f0; border-color: #fde2e2; color: #f56c6c; }
#tab-copyweb .result-failed { color: #f56c6c !important; }

#tab-copyweb .detail-meta { margin-bottom: 12px; font-size: 13px; color: #909399; line-height: 1.9; }
#tab-copyweb .detail-error { color: #f56c6c; margin-top: 4px; }

#tab-copyweb .image-list-section { margin-bottom: 16px; }
#tab-copyweb .image-list-toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
#tab-copyweb .view-toggle.active { background: #409eff; color: #fff; border-color: #409eff; }
#tab-copyweb .image-list-table-wrap { background: #fff; border: 1px solid #ebeef5; border-radius: 4px; overflow: hidden; }
#tab-copyweb .image-list-table .thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; background: #f5f7fa; }
#tab-copyweb .image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
#tab-copyweb .image-card { background: #fff; border: 1px solid #ebeef5; border-radius: 4px; overflow: hidden; cursor: pointer; transition: box-shadow .15s; }
#tab-copyweb .image-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
#tab-copyweb .image-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f5f7fa; }
#tab-copyweb .image-card .caption { padding: 8px 10px; font-size: 12px; color: #606266; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#tab-copyweb .empty-block { text-align: center; color: #909399; padding: 32px 16px; background: #fff; border-radius: 4px; border: 1px solid #ebeef5; font-size: 13px; }

#tab-copyweb .table-toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
#tab-copyweb .toolbar-check { font-size: 13px; color: #606266; display: inline-flex; align-items: center; gap: 6px; }
#tab-copyweb .btn-danger-outline { color: #f56c6c; border-color: #fbc4c4; }
#tab-copyweb .btn-danger-outline:hover { background: #fef0f0; color: #f56c6c; border-color: #f56c6c; }
#tab-copyweb .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
#tab-copyweb .status-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
#tab-copyweb .status-completed { background: #f0f9eb; color: #67c23a; }
#tab-copyweb .status-processing { background: #fdf6ec; color: #e6a23c; }
#tab-copyweb .status-failed { background: #fef0f0; color: #f56c6c; }
#tab-copyweb .modal-panel-tall { max-height: 92vh; }
#tab-copyweb .work-modal-body { max-height: calc(92vh - 120px); overflow-y: auto; }
#tab-copyweb .requirement-input {
  width: 100%; min-height: 120px; padding: 12px; border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; line-height: 1.7; font-family: inherit; resize: vertical;
}
#tab-copyweb .requirement-input:focus { outline: none; border-color: #409eff; }
#tab-copyweb .processing-hint {
  display: flex; align-items: center; gap: 8px; padding: 12px; color: #e6a23c; font-size: 13px;
  background: #fdf6ec; border-radius: 4px; margin-bottom: 8px;
}
#tab-copyweb .spinner {
  width: 16px; height: 16px; border: 2px solid #f3d19e; border-top-color: #e6a23c;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#tab-copyweb .related-conditions-row { margin-bottom: 14px; }
#tab-copyweb .related-conditions-row .block-label { display: block; margin-bottom: 8px; }
#tab-copyweb .condition-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#tab-copyweb .condition-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border: 1px solid #dcdfe6; border-radius: 4px; font-size: 12px; color: #606266; background: #fff;
  cursor: pointer; user-select: none;
}
#tab-copyweb .condition-chip input { margin: 0; }
#tab-copyweb .condition-chip.active { border-color: #409eff; background: #ecf5ff; color: #409eff; }

#tab-copyweb .structured-fields { display: flex; flex-direction: column; gap: 14px; }
#tab-copyweb .field-row { display: flex; flex-direction: column; gap: 6px; }
#tab-copyweb .field-row.hidden-field { display: none; }
#tab-copyweb .field-row-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#tab-copyweb .field-row-label label { font-size: 13px; color: #606266; font-weight: 500; }
#tab-copyweb .field-row-label .required-mark { color: #f56c6c; margin-left: 2px; }
#tab-copyweb .field-translate-tools { display: inline-flex; align-items: center; gap: 6px; }
#tab-copyweb .field-translate-lang-label {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #909399; font-weight: 400;
}
#tab-copyweb .field-translate-lang {
  max-width: 96px; height: 26px; padding: 0 6px; border: 1px solid #dcdfe6;
  border-radius: 4px; background: #fff; font-size: 12px;
}
#tab-copyweb .field-input, .field-textarea, .field-select {
  width: 100%; padding: 8px 10px; border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; font-family: inherit;
}
#tab-copyweb .field-textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
#tab-copyweb .field-input:focus, .field-textarea:focus, .field-select:focus { outline: none; border-color: #409eff; }
#tab-copyweb .checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 14px; }
#tab-copyweb .checkbox-group label {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #606266; cursor: pointer;
}
#tab-copyweb .btn-field-translate {
  padding: 2px 8px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff;
  color: #409eff; font-size: 12px;
}
#tab-copyweb .btn-field-translate:hover { border-color: #409eff; background: #ecf5ff; }
#tab-copyweb .btn-field-translate:disabled { opacity: .5; cursor: not-allowed; }
#tab-copyweb .continent-wrap { display: flex; flex-direction: column; gap: 10px; }
#tab-copyweb .continent-group {
  border: 1px solid #ebeef5; border-radius: 6px; padding: 8px 10px; background: #fafafa;
}
#tab-copyweb .continent-all {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: #303133; margin-bottom: 6px; cursor: pointer;
}
#tab-copyweb .continent-all em { font-style: normal; color: #909399; font-weight: 400; font-size: 12px; }

#tab-copyweb .modal-footer-params {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 10px 20px; border-top: 1px solid #ebeef5; background: #fafafa;
}
#tab-copyweb .footer-param { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #606266; }
#tab-copyweb .footer-param select, .footer-param input {
  padding: 4px 8px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px;
}

#tab-copyweb .footer-param select, .footer-param input {
  padding: 4px 8px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px;
}

/* ── 投流建议（安建议） ── */
#tab-copyweb .advice-section { margin-bottom: 16px; }
#tab-copyweb .advice-card {
  background: #fff; border: 1px solid #ebeef5; border-radius: 4px; padding: 16px 20px;
}
#tab-copyweb .advice-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#tab-copyweb .advice-title { margin: 0; font-size: 15px; font-weight: 600; color: #303133; }
#tab-copyweb .advice-badge {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px;
  background: #409eff; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 500; text-align: center;
}
#tab-copyweb .advice-sub { margin: 4px 0 0; font-size: 12px; color: #909399; }
#tab-copyweb .advice-list { display: flex; flex-direction: column; gap: 10px; }
#tab-copyweb .advice-empty { margin: 0; padding: 24px; text-align: center; color: #909399; font-size: 13px; }
#tab-copyweb .advice-empty--error { color: #c45656; background: #fef0f0; border-radius: 4px; }

/* ── 商业闭环导航 ── */
#tab-copyweb .copy-web-loop-section { margin-bottom: 16px; }
#tab-copyweb .copy-web-loop-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding: 12px 16px; background: #fff; border: 1px solid #ebeef5; border-radius: 4px;
}
#tab-copyweb .copy-web-loop-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px;
}
#tab-copyweb .copy-web-loop-step { color: #64748b; }
#tab-copyweb .copy-web-loop-step--ok { color: #15803d; font-weight: 600; }
#tab-copyweb .copy-web-loop-step--here { color: #409eff; font-weight: 600; }
#tab-copyweb .copy-web-loop-arrow { color: #cbd5e1; }
#tab-copyweb .copy-web-loop-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#tab-copyweb .advice-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid #ebeef5; border-radius: 4px; background: #fafcff;
}
#tab-copyweb .advice-item-main { flex: 1; min-width: 0; }
#tab-copyweb .advice-item-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #303133; }
#tab-copyweb .advice-item-reason { margin: 0 0 6px; font-size: 12px; color: #606266; line-height: 1.5; }
#tab-copyweb .advice-item-meta { font-size: 11px; color: #909399; }
#tab-copyweb .advice-item-actions { display: flex; flex-shrink: 0; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
#tab-copyweb .advice-list-footer { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed #ebeef5; text-align: center; }
#tab-copyweb .advice-list-truncated { margin: 10px 0 0; text-align: center; color: #909399; font-size: 12px; }
#tab-copyweb .btn-advice-apply { background: #67c23a; color: #fff; border: none; }
#tab-copyweb .btn-advice-apply:hover { background: #85ce61; }
#tab-copyweb .trace-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
#tab-copyweb .trace-tag {
  display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; line-height: 1.4;
}
#tab-copyweb .trace-advice { background: #fdf6ec; color: #e6a23c; border: 1px solid #f5dab1; }
#tab-copyweb .trace-source { background: #f0f9eb; color: #67c23a; border: 1px solid #c2e7b0; }
#tab-copyweb .advice-mode-tag { font-size: 11px; color: #909399; margin-left: 6px; }

#tab-copyweb .advice-code-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #606266;
  vertical-align: middle;
}

#tab-copyweb .advice-next-step {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  font-size: 11px;
  color: #065f46;
  line-height: 1.45;
}

#tab-copyweb .advice-next-step--pending {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #93c5fd;
  color: #1e40af;
}

#tab-copyweb .task-advice-followup { margin-top: 4px; }

#tab-copyweb .trace-pending-advice { background: #fef3c7; color: #92400e; }

/* ── 邮件助手快捷入口 ── */
#tab-copyweb .email-quick-section { margin-bottom: 16px; }
#tab-copyweb .email-quick-bar { display: flex; flex-wrap: wrap; gap: 10px; }
#tab-copyweb .email-quick-bar .task-btn { padding: 0 20px; min-height: 40px; }

/* ── 文生图 / 图生图工作室 ── */
#tab-copyweb .image-studio-section { margin-bottom: 16px; }
#tab-copyweb .image-studio {
  display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 20px;
  background: #fff; border: 1px solid #ebeef5; border-radius: 4px; padding: 20px;
}
#tab-copyweb .studio-task-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
#tab-copyweb .studio-tab {
  padding: 4px 10px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff;
  font-size: 12px; color: #606266;
}
#tab-copyweb .studio-tab.active { border-color: #409eff; color: #409eff; background: #ecf5ff; }
#tab-copyweb .studio-block { margin-bottom: 14px; }
#tab-copyweb .studio-hint { font-size: 11px; color: #909399; margin: 4px 0 8px; }
#tab-copyweb .studio-prompt {
  width: 100%; padding: 10px; border: 1px solid #dcdfe6; border-radius: 4px;
  font-size: 13px; line-height: 1.6; resize: vertical; font-family: inherit;
}
#tab-copyweb .style-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#tab-copyweb .style-tag {
  padding: 4px 10px; border: 1px solid #dcdfe6; border-radius: 16px; background: #fff;
  font-size: 12px; color: #606266;
}
#tab-copyweb .style-tag.active { border-color: #409eff; color: #409eff; background: #ecf5ff; }
#tab-copyweb .preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
#tab-copyweb .preset-card {
  padding: 8px 10px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fafafa;
  text-align: left; display: flex; flex-direction: column; gap: 2px;
}
#tab-copyweb .preset-card.active { border-color: #409eff; background: #ecf5ff; }
#tab-copyweb .preset-label { font-size: 12px; font-weight: 500; color: #303133; }
#tab-copyweb .preset-hint { font-size: 11px; color: #909399; }
#tab-copyweb .upload-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 24px; border: 1px dashed #dcdfe6; border-radius: 4px; cursor: pointer;
  background: #fafafa; font-size: 13px; color: #606266;
}
#tab-copyweb .upload-drop:hover { border-color: #409eff; color: #409eff; }
#tab-copyweb .strength-slider { width: 100%; }
#tab-copyweb .studio-generate-btn { width: 100%; margin-top: 8px; padding: 10px; }
#tab-copyweb .image-studio-preview {
  min-height: 360px; border: 1px dashed #dcdfe6; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; background: #fafafa; padding: 16px;
}
#tab-copyweb .image-studio-preview img { max-width: 100%; max-height: 480px; border-radius: 4px; }
#tab-copyweb .preview-hint { color: #909399; font-size: 13px; text-align: center; margin: 0; }
#tab-copyweb .reply-image-wrap { margin-bottom: 10px; text-align: center; }
#tab-copyweb .reply-image-wrap img { max-width: 100%; max-height: 320px; border-radius: 4px; border: 1px solid #ebeef5; }

@media (max-width: 900px) {
  .image-studio { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e8e8e8; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
}

#tab-copyweb tr.task-row-highlight {
  background: #ecf5ff !important;
  outline: 2px solid #409eff;
  outline-offset: -2px;
}
