  :root {
    --red: #FF2442;
    --red-light: #FF6B81;
    --red-bg: #FFF0F0;
    --red-hover: #E61E3A;
    --warm-bg: #FBF7F5;
    --warm-card: #FFFFFF;
    --warm-border: #F0E8E4;
    --warm-divider: #F5EFEB;
    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-tertiary: #9A9490;
    --accent-green: #16A34A;
    --accent-green-bg: #E8FAE8;
    --accent-purple: #7C3AED;
    --accent-purple-bg: #F3EEFF;
    --accent-orange: #E67700;
    --accent-blue: #1A73E8;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 100px;
    --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 2px 12px rgba(0,0,0,.06);
    --shadow-hover: 0 4px 20px rgba(0,0,0,.1);
    --shadow-float: 0 8px 32px rgba(0,0,0,.12);
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
  }

  /* ── 无障碍：焦点环 ── */
  :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
  button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--red); outline-offset: 2px; }

  /* ── 减弱动画偏好 ── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important; }
  }

  /* ── SVG 图标基础 ── */
  .icon-svg { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
  .icon-svg svg { width: 100%; height: 100%; display: block; }
  .icon-sm { width: 14px; height: 14px; }

  .icon-lg { width: 20px; height: 20px; }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: "Noto Sans SC", -apple-system, "PingFang SC", sans-serif;
         background: var(--warm-bg); color: var(--text-primary); min-height: 100vh; }

  /* ── 顶栏 ── */
  .header { background: #1C1A18;
            padding: 16px 28px; position: sticky; top: 0; z-index: 100; overflow: visible;
            display: flex; align-items: center; gap: 14px;
            box-shadow: 0 2px 16px rgba(0,0,0,.15); }
  .header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0;
                   height: 2px; background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 50%, transparent 100%); }
  .header .brand-logo { display: flex; align-items: center; gap: 10px; }
  .header .brand-dot { width: 28px; height: 28px; background: var(--red); border-radius: 7px;
                       display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .header .brand-dot svg { width: 16px; height: 16px; }
  .header h1 { font-size: 17px; font-weight: 600; color: rgba(255,255,255,.95); letter-spacing: .5px; }
  .header h1 span { color: var(--red); font-weight: 700; }
  .header .brand-client { font-size: 12px; color: rgba(255,255,255,.45); font-weight: 400;
                          border-left: 1px solid rgba(255,255,255,.15); padding-left: 12px; margin-left: 4px; }
  .badge { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); border-radius: var(--radius-pill);
           font-size: 12px; padding: 3px 10px; font-weight: 600; }
  .header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .header-actions span { color: rgba(255,255,255,.55); font-size: 13px; }

  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

  /* ── 主容器 ── */
  .container { max-width: 1400px; margin: 0 auto; padding: 24px 28px; }
  body { padding-bottom: 60px; }
  .empty { text-align: center; padding: 80px 20px; color: var(--text-tertiary); }
  .empty .icon { font-size: 52px; margin-bottom: 16px; opacity: .5;
                 width: 80px; height: 80px; display: flex; align-items: center;
                 justify-content: center; margin: 0 auto 16px;
                 background: var(--warm-bg); border-radius: 50%; }
  .empty div:nth-child(2) { font-size: 15px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
  .empty .empty-hint { font-size: 13px; margin-top: 4px; color: #B0A8A3; }
  .empty .empty-hint a { color: var(--red); text-decoration: none; cursor: pointer; font-weight: 600; }
  .empty .empty-hint a:hover { text-decoration: underline; }
  .loading-state { text-align: center; padding: 80px; color: var(--text-tertiary); font-size: 15px; }

  /* ── 骨架屏 ── */
  .skeleton { background: linear-gradient(90deg, #f0ebe8 25%, #f7f3f0 50%, #f0ebe8 75%);
              background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  .skeleton-card { height: 280px; border-radius: var(--radius-md); margin-bottom: 20px; }
  .skeleton-group { margin-bottom: 28px; }
  .skeleton-header { height: 24px; width: 200px; margin-bottom: 16px; }

  /* ── 快捷键提示 ── */
  .kbd { display: inline-block; background: #F5F0ED; border: 1px solid var(--warm-border);
         border-radius: 4px; padding: 1px 6px; font-size: 11px; font-family: 'SF Mono', Menlo, monospace;
         color: var(--text-secondary); line-height: 1.6; vertical-align: middle; }
  .shortcut-bar { display: flex; gap: 16px; align-items: center; padding: 8px 28px;
                  background: #FEFCFB; border-bottom: 1px solid var(--warm-divider);
                  font-size: 12px; color: var(--text-tertiary); }



  /* ── 进度指示器 ── */
  .progress-ring { display: inline-flex; align-items: center; gap: 10px; }
  .progress-bar-mini { width: 160px; height: 8px; background: rgba(255,255,255,.2);
                       border-radius: 4px; overflow: hidden; }
  .progress-bar-mini .fill { height: 100%; background: linear-gradient(90deg, #fff 0%, #52c41a 100%);
                              border-radius: 4px; transition: width .4s ease; }
  .progress-bar-mini .fill.complete { background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%); }


  /* ── 关键词分组 ── */
  .kw-group { margin-bottom: 32px; }
  .kw-header { display: flex; align-items: center; gap: 10px; padding: 12px 0;
               cursor: pointer; user-select: none; }
  .kw-header h2 { font-size: 17px; font-weight: 700; color: var(--text-primary); }
  .kw-header .count { font-size: 13px; color: var(--text-secondary);
                      background: var(--red-bg); padding: 2px 10px;
                      border-radius: var(--radius-pill); }
  .kw-header .arrow { font-size: 12px; color: var(--text-tertiary); transition: transform .2s; }
  .kw-header.collapsed .arrow { transform: rotate(-90deg); }
  .kw-body { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .kw-body.hidden { display: none; }

  /* ── 笔记卡片 ── */
  .note-card { background: var(--warm-card); border-radius: var(--radius-md);
               box-shadow: var(--shadow-card); overflow: hidden;
               display: grid; grid-template-columns: 1fr 1fr;
               border: 1px solid var(--warm-border);
               transition: box-shadow .2s, transform .2s, opacity .4s; }
  .note-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
  .note-card.done { opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; }
  .note-card.skipping { animation: slideOutLeft .4s ease forwards; }
  @keyframes slideOutLeft {
    to { opacity: 0; transform: translateX(-40px) scale(0.96); }
  }

  .card-left { border-right: 1px solid var(--warm-divider); }
  .card-right { display: flex; flex-direction: column; }

  .card-header { grid-column: 1 / -1; padding: 14px 18px 12px;
                 border-bottom: 1px solid var(--warm-divider);
                 display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap;
                 background: linear-gradient(180deg, #FEFCFB 0%, #fff 100%); }
  .meta-tag { font-size: 11px; color: var(--text-tertiary); background: #F5F0ED;
              border-radius: var(--radius-pill); padding: 2px 9px; font-weight: 500;
              letter-spacing: .2px; display: inline-flex; align-items: center; gap: 3px; }
  .meta-tag.grade-a-plus { background: #FFF8E1; color: #D4A017; }
  .meta-tag.grade-a { background: #E8F5E9; color: #4CAF50; }
  .meta-tag.grade-a-minus { background: #E3F2FD; color: #1565C0; }
  .note-title { font-size: 13px; color: var(--text-secondary); margin-left: auto;
                max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                flex-shrink: 1; min-width: 0; }
  .note-title a { color: var(--red); text-decoration: none; font-weight: 500; }
  .note-title a:hover { text-decoration: underline; }

  /* 图片区 */
  .images-section { padding: 14px 16px; background: #FEFCFB; }
  .section-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px;
                   display: flex; align-items: center; gap: 6px; }
  .section-label .tip { background: var(--red); color: #fff; border-radius: var(--radius-pill);
                        font-size: 10px; padding: 2px 8px; font-weight: 500; }
  .compare-label { font-size: 11px; color: var(--text-tertiary); text-align: center;
                   padding: 4px 0; font-weight: 500; letter-spacing: .5px; }
  .compare-label.original { color: var(--accent-blue); }
  .compare-label.variant { color: var(--accent-purple); }

  .image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .img-item { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden;
              cursor: pointer; border: 2.5px solid transparent; transition: all .2s; }
  .img-item.selected { border-color: var(--red); }
  .img-item.cover-selected { border-color: var(--accent-orange); }
  .img-item.active-tool { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(124,58,237,.2); }
  .scope-all .img-item { border-color: var(--accent-purple); box-shadow: 0 0 0 2px rgba(124,58,237,.15); }
  .img-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
  .img-item:hover img { transform: scale(1.05); }
  .img-item .check { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px;
                     border-radius: 50%; background: var(--red); color: #fff;
                     font-size: 10px; display: none; align-items: center; justify-content: center; }
  .img-item.selected .check { display: flex; }
  .img-item .cover-badge { position: absolute; bottom: 3px; left: 3px;
                            background: var(--accent-orange); color: #fff; font-size: 9px;
                            padding: 2px 6px; border-radius: var(--radius-pill); display: none; font-weight: 600; }
  .img-item.cover-selected .cover-badge { display: block; }
  .img-item .processing { position: absolute; inset: 0; background: rgba(0,0,0,.45);
                           display: none; align-items: center; justify-content: center;
                           backdrop-filter: blur(2px); }
  .img-item .processing .spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.3);
                                    border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .img-item.loading .processing { display: flex; }

  /* 工具栏 */
  .tool-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
              border-radius: var(--radius-pill); border: 1.5px solid var(--warm-border); background: #fff;
              font-size: 12px; cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; font-weight: 500;
              color: var(--text-primary); }
  .tool-btn:hover { background: var(--red-bg); border-color: var(--red-light); color: var(--red); }
  .tool-btn:active { transform: scale(0.96); }
  .tool-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
  .tool-btn:disabled { opacity: .35; cursor: not-allowed; }
  .tool-btn .icon-svg { width: 14px; height: 14px; }
  .tool-btn .kbd { font-size: 10px; opacity: .5; margin-left: 2px; padding: 0 4px; }
  .tool-btn:hover .kbd { opacity: .8; }
  .tool-btn:hover .icon-svg { color: var(--red); }
  .tool-btn.active .icon-svg { color: #fff; }

  .lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
  .lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
  .tool-hint { font-size: 11px; color: var(--text-tertiary); padding: 4px 16px 8px; transition: all .3s; }
  .tool-hint.highlight { color: var(--red); font-weight: 500; animation: hint-pulse .6s ease; }
  @keyframes hint-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }

  /* 场景 */
  .scene-chip { padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px;
                background: var(--red-bg); color: var(--red); cursor: pointer;
                transition: all .15s; font-weight: 500; }
  .scene-chip:hover { background: var(--red); color: #fff; }

  /* 右栏 */
  .content-section { padding: 14px 16px 10px; flex: 1; background: #fff; }
  .tab-bar { display: flex; gap: 0; margin-bottom: 10px; }
  .tab-bar > button + button { margin-left: 6px; }
  .tab-btn { flex: 1; padding: 8px; text-align: center; font-size: 13px; font-weight: 600;
             border: 1.5px solid var(--warm-border); background: #FEFCFB; cursor: pointer;
             transition: all .15s; color: var(--text-secondary); }
  .tab-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .tab-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .tab-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
  .content-textarea { width: 100%; border: 1.5px solid var(--warm-border); border-radius: var(--radius-sm);
                       padding: 14px; font-size: 14px; line-height: 1.8;
                       min-height: 150px; resize: vertical; font-family: inherit;
                       background: #FEFCFB; }
  .content-textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,36,66,.1); }
  .content-textarea[readonly] { background: #F9F6F4; color: var(--text-secondary); }
  .char-count { font-size: 11px; color: var(--text-tertiary); text-align: right; margin-top: 3px; }

  /* 挂车链接 */
  .link-section { padding: 4px 16px 10px; }
  .link-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; font-weight: 500; }
  .link-input { width: 100%; border: 1.5px solid var(--warm-border); border-radius: var(--radius-sm);
                padding: 9px 12px; font-size: 13px; font-family: inherit; background: #FEFCFB; }
  .link-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,36,66,.1); }

  /* 按钮 */
  .card-actions { display: flex; gap: 10px; padding: 12px 16px 16px; margin-top: auto;
                  border-top: 1px solid var(--warm-divider); }
  .btn { flex: 1; padding: 11px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700;
         border: none; cursor: pointer; transition: all var(--transition-normal); letter-spacing: .3px;
         display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
  .btn-primary { background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%); color: #fff;
                 box-shadow: 0 4px 14px rgba(255,36,66,.3); position: relative; overflow: hidden; }
  .btn-primary:hover { box-shadow: 0 6px 20px rgba(255,36,66,.4); }
  .btn-primary::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.15);
                         transform: translateX(-100%); transition: transform .3s; }
  .btn-primary:hover::after { transform: translateX(100%); }
  .btn-secondary { background: #F5F0ED; color: var(--text-primary); border: 1px solid var(--warm-border); }
  .btn-secondary:hover { background: #EDE6E1; border-color: #d4ccc7; }
  .btn:disabled { opacity: 0.35; pointer-events: none; transform: none; }
  .btn.loading { position: relative; color: transparent; pointer-events: none; }
  .btn.loading::before { content: ''; position: absolute; top: 50%; left: 50%;
                          width: 18px; height: 18px; margin: -9px 0 0 -9px;
                          border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
                          border-radius: 50%; animation: spin .6s linear infinite; }

  /* Toast — 增加入场动画 */
  .toast { position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%) translateY(12px);
           background: var(--text-primary); color: #fff; padding: 12px 28px;
           border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
           opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 999;
           box-shadow: var(--shadow-float); max-width: 90vw; text-align: center; }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast.toast-success { background: #16a34a; }
  .toast.toast-error { background: #dc2626; }
  .toast.toast-warning { background: #d97706; }

  /* ── 主导航 Tab 栏 ── */
  .nav-tab { padding: 14px 22px; font-size: 14px; font-weight: 600; color: var(--text-tertiary);
             cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
             user-select: none; transition: color var(--transition-normal), border-color var(--transition-normal),
             background var(--transition-normal); position: relative; }
  .nav-tab:hover { color: var(--text-primary); background: rgba(0,0,0,.02); }
  .nav-tab:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; border-radius: 4px; }
  .nav-tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
  #tab-inspiration.active { color: var(--accent-purple) !important; border-bottom-color: var(--accent-purple) !important; }
  #tab-competitor.active { color: var(--accent-orange) !important; border-bottom-color: var(--accent-orange) !important; }
  #tab-collect.active { color: #1A73E8 !important; border-bottom-color: #1A73E8 !important; }

  .filter-btn { padding: 7px 18px; border-radius: var(--radius-pill); font-size: 13px;
                border: 1.5px solid var(--warm-border); background: white; cursor: pointer;
                transition: all .15s; font-weight: 500; }
  .filter-btn:hover { background: var(--accent-purple-bg); border-color: var(--accent-purple); color: var(--accent-purple); }
  .filter-btn.active { background: var(--accent-purple); color: white; border-color: var(--accent-purple); }
  .filter-btn:active { transform: scale(0.96); }

  /* ── 标签 ── */
  .tag-shoppable { background: var(--accent-green-bg); color: #2E7D32; font-weight: 600; }
  .tag-no-product { background: #F5F0ED; color: var(--text-tertiary); }
  .tag-follower { background: #FFF8E1; color: #F57F17; font-weight: 500; }


  /* ── 竞品动态 ── */
  .comp-overview { background: linear-gradient(135deg, #FFF5EB, #FFF0E0); border-radius: var(--radius-md);
                   padding: 12px 18px; font-size: 13px; color: var(--text-secondary); margin-bottom: 14px;
                   border: 1px solid #FFE0B2; }
  .comp-stat { font-weight: 700; color: var(--accent-orange); font-size: 15px; }
  .comp-hot { color: var(--red); font-weight: 600; }
  .comp-group { background: var(--warm-card); border-radius: var(--radius-md); border: 1px solid var(--warm-border);
                margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
  .comp-group-header { padding: 14px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
  .comp-group-header:hover { background: var(--warm-bg); }
  .comp-avatar { width: 36px; height: 36px; border-radius: 50%; background: #FFE0B2;
                 display: flex; align-items: center; justify-content: center; flex-shrink: 0;
                 font-size: 18px; }
  .comp-group-info { flex: 1; min-width: 0; }
  .comp-nickname { font-size: 15px; font-weight: 700; color: var(--text-primary); }
  .comp-stats-line { font-size: 12px; color: var(--text-tertiary); display: flex; gap: 10px; margin-top: 2px; }
  .comp-new-badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 600;
                    padding: 2px 8px; border-radius: var(--radius-pill); flex-shrink: 0; }
  .comp-group-body { padding: 0 18px; }
  .comp-note { display: flex; align-items: center; gap: 12px; padding: 10px 0;
               border-bottom: 1px solid var(--warm-divider); }
  .comp-note:last-child { border-bottom: none; }
  .comp-note-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
  .comp-note-info { flex: 1; min-width: 0; }
  .comp-note-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden;
                     text-overflow: ellipsis; color: var(--text-primary); }
  .comp-note-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }
  .hot-tag { background: var(--red-bg); color: var(--red); font-size: 10px; padding: 1px 5px;
             border-radius: 3px; margin-left: 6px; font-weight: 600; }
  .comp-expand-btn { width: 100%; padding: 8px; border: none; border-top: 1px solid var(--warm-divider);
                     background: var(--warm-bg); font-size: 12px; color: var(--text-tertiary);
                     cursor: pointer; transition: background .2s; }
  .comp-expand-btn:hover { background: var(--warm-border); color: var(--text-secondary); }

  /* ── 采集中心统一样式 ── */
  .ctl-card { background: var(--warm-card); border-radius: var(--radius-md);
              padding: 20px; box-shadow: var(--shadow-card);
              border: 1px solid var(--warm-border);
              transition: box-shadow .2s, transform .2s; }
  .ctl-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

  .ctl-title { font-size: 15px; font-weight: 700; color: var(--text-primary);
               margin-bottom: 14px; padding-bottom: 10px;
               border-bottom: none; position: relative; }
  .ctl-title::after { content: ''; display: block; width: 40px; height: 3px; margin-top: 10px;
                      background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 100%);
                      border-radius: 2px; }

  .ctl-input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--warm-border);
               border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
               background: #FEFCFB; transition: border-color .2s, box-shadow .2s; }
  .ctl-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,36,66,.08); }

  .ctl-select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--warm-border);
                border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
                background: #FEFCFB; appearance: auto; transition: border-color .2s; }
  .ctl-select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,36,66,.08); }

  .ctl-btn-primary { padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px;
                     font-weight: 700; border: none; color: #fff; cursor: pointer;
                     background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
                     box-shadow: 0 2px 8px rgba(255,36,66,.2); transition: all var(--transition-normal); }
  .ctl-btn-primary:hover { box-shadow: 0 4px 14px rgba(255,36,66,.3); transform: translateY(-1px); }
  .ctl-btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }

  .ctl-btn-secondary { padding: 9px 14px; border-radius: var(--radius-sm); font-size: 13px;
                       font-weight: 500; border: 1.5px solid var(--warm-border);
                       background: var(--warm-card); color: var(--text-primary);
                       cursor: pointer; transition: all .2s; }
  .ctl-btn-secondary:hover { background: #F5F0ED; }
  .ctl-btn-secondary:disabled { opacity: .4; cursor: not-allowed; }

  .ctl-tpl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px;
                  border-radius: var(--radius-pill); font-size: 12px; font-weight: 500;
                  background: var(--accent-purple-bg); color: var(--accent-purple);
                  border: 1px solid rgba(124,58,237,.15); cursor: pointer; transition: all .2s; }
  .ctl-tpl-chip:hover { background: rgba(124,58,237,.15); border-color: var(--accent-purple); }
  .ctl-tpl-del { font-size: 14px; line-height: 1; opacity: .4; margin-left: 2px; }
  .ctl-tpl-del:hover { opacity: 1; color: var(--red); }


  .ctl-log { background: #2A1F1F; color: #E8D5D5; padding: 16px; border-radius: var(--radius-sm);
             font-size: 12.5px; font-family: 'SF Mono', 'Menlo', Consolas, monospace;
             max-height: 600px; overflow-y: auto; min-height: 300px;
             white-space: pre-wrap; word-break: break-all; line-height: 1.6;
             border: 1px solid #3D2E2E; }
  .ctl-log::selection { background: rgba(255,36,66,.3); }

  .ctl-status { font-size: 12px; color: var(--text-secondary); }

  .ctl-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; display: block; font-weight: 500; }


  .ctl-checkbox-label { font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer;
                        color: var(--text-primary); }

  .ctl-monitor-item { display: flex; align-items: center; gap: 8px; padding: 8px 0;
                      border-bottom: 1px solid var(--warm-divider); font-size: 13px; }
  .ctl-monitor-item .name { flex: 1; font-weight: 500; }
  .ctl-monitor-item .meta { font-size: 12px; color: var(--text-secondary); }
  .ctl-monitor-item .remove-btn { padding: 3px 10px; border-radius: var(--radius-sm);
                                   font-size: 11px; border: 1px solid #f87171;
                                   color: #f87171; background: white; cursor: pointer;
                                   transition: all .15s; }
  .ctl-monitor-item .remove-btn:hover { background: #FEF2F2; }

  /* ── 无图片占位 ── */
  .no-image-placeholder { display: flex; flex-direction: column; align-items: center;
                          justify-content: center; padding: 40px 20px; gap: 10px;
                          background: linear-gradient(135deg, #FAF5F2 0%, #F5EFEB 100%);
                          min-height: 200px; }
  .no-image-placeholder .placeholder-icon { opacity: .35; color: var(--text-tertiary); }
  .no-image-placeholder .placeholder-icon .icon-svg { width: 48px; height: 48px; }
  .no-image-placeholder .placeholder-text { font-size: 13px; color: var(--text-tertiary); }

  /* ── 灵感库工具栏 ── */
  .insp-search { position: relative; width: 240px; }
  .insp-search input { width: 100%; padding: 8px 12px 8px 36px; border: 1px solid var(--warm-border);
                        border-radius: var(--radius-pill); font-size: 13px; background: #fff; outline: none;
                        transition: border-color 0.2s; }
  .insp-search input:focus { border-color: var(--accent-purple); }
  .insp-search::before { content: "🔍"; position: absolute; left: 12px; top: 50%;
                          transform: translateY(-50%); font-size: 14px; pointer-events: none; }
  .insp-sort-select { padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--warm-border);
                      font-size: 13px; background: #fff; outline: none; cursor: pointer; }

  .insp-view-toggle { display: flex; gap: 4px; }
  .insp-view-toggle button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--warm-border);
                              background: #fff; cursor: pointer; display: flex; align-items: center;
                              justify-content: center; font-size: 14px; color: var(--text-secondary); transition: all 0.2s; }
  .insp-view-toggle button:hover { border-color: var(--accent-purple); color: var(--accent-purple); }
  .insp-view-toggle button.active { background: var(--accent-purple); color: #fff; border-color: var(--accent-purple); }

  /* ── 灵感库瀑布流卡片 ── */
  .insp-grid { columns: 3; column-gap: 14px; }
  .insp-card { break-inside: avoid; margin-bottom: 14px; background: var(--warm-card);
               border-radius: var(--radius-lg); border: 1px solid var(--warm-border);
               overflow: hidden; transition: box-shadow var(--transition-normal), border-color var(--transition-normal); }
  .insp-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(124,58,237,.2); }
  .insp-card.promoted { opacity: 0.5; filter: grayscale(0.2); }
  .insp-card.promoted:hover { opacity: 0.75; }
  .insp-card .insp-cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; border-radius: 0; }
  .insp-card .insp-cover-placeholder { width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg, var(--warm-bg) 0%, #F3EEFF 100%);
                                        display: flex; align-items: center; justify-content: center; font-size: 32px; }
  .insp-card .ai-suggestion { padding: 8px 12px; background: var(--accent-purple-bg);
               color: var(--accent-purple); font-size: 13px; font-weight: 500;
               border-left: 3px solid var(--accent-purple); line-height: 1.4; }
  .insp-card .insp-content { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
  .insp-card .insp-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
  .insp-card .insp-meta { font-size: 12px; color: var(--text-tertiary); display: flex; gap: 8px;
                           align-items: center; flex-wrap: wrap; }
  .insp-card .insp-tags { display: flex; gap: 4px; flex-wrap: wrap; }
  .insp-card .insp-tag { padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px;
                          background: #F5F0ED; color: var(--text-secondary); }
  .insp-card .insp-tag.tag-cart { background: #FFF3E0; color: #E67700; }
  .insp-card .insp-tag.tag-promoted { background: var(--accent-purple-bg); color: var(--accent-purple); }
  .insp-card .insp-full-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6;
               white-space: pre-wrap; word-break: break-word; border-top: 1px solid var(--warm-divider);
               padding-top: 8px; margin-top: 4px; max-height: 4.8em; overflow: hidden;
               -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
               mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
  .insp-card .insp-actions { display: flex; gap: 6px; align-items: center; padding-top: 6px;
               border-top: 1px solid var(--warm-divider); margin-top: 4px; }
  .insp-card .insp-batch-check { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px;
               border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: rgba(0,0,0,.3);
               cursor: pointer; display: flex; align-items: center; justify-content: center;
               color: #fff; font-size: 14px; transition: all 0.2s; z-index: 2; }
  .insp-card .insp-batch-check.checked { background: var(--accent-purple); border-color: var(--accent-purple); }
  .insp-card .insp-cover-wrap { position: relative; }

  /* ── 批量操作浮动栏 ── */
  .insp-batch-bar { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
               background: rgba(34,34,34,.95); color: #fff; padding: 10px 24px; border-radius: var(--radius-pill);
               display: flex; align-items: center; gap: 16px; z-index: 100; backdrop-filter: blur(8px);
               box-shadow: 0 8px 32px rgba(0,0,0,.2); font-size: 14px; }
  .insp-batch-bar button { padding: 6px 16px; border-radius: var(--radius-pill); border: none;
               cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
  .insp-batch-bar .promote-btn { background: var(--accent-purple); color: #fff; }
  .insp-batch-bar .promote-btn:hover { background: #6D28D9; }
  .insp-batch-bar .cancel-btn { background: rgba(255,255,255,.15); color: #fff; }
  .insp-batch-bar .cancel-btn:hover { background: rgba(255,255,255,.25); }

  /* ── 灵感库按钮 ── */
  .insp-star-btn { width: 28px; height: 28px; border-radius: 50%; border: none; background: none;
                   cursor: pointer; font-size: 16px; display: flex; align-items: center;
                   justify-content: center; transition: background 0.2s; }
  .insp-star-btn:hover { background: #FFF3E0; }
  .insp-star-btn.starred { color: #F59E0B; }
  .insp-btn { padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--warm-border);
              background: #fff; font-size: 11px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
  .insp-btn:hover { border-color: var(--accent-purple); color: var(--accent-purple); }
  .insp-link { font-size: 11px; color: var(--text-tertiary); text-decoration: none; transition: color 0.2s; }
  .insp-link:hover { color: var(--accent-purple); text-decoration: underline; }

  /* ── 灵感库列表视图 ── */
  .insp-list-view { display: flex; flex-direction: column; gap: 2px; }
  .insp-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
                    background: var(--warm-card); border-radius: 8px; border: 1px solid transparent;
                    font-size: 13px; transition: all 0.2s; }
  .insp-list-item:hover { border-color: var(--warm-border); background: #FEFAF8; }
  .insp-list-item .type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .insp-list-item .type-dot.video { background: var(--accent-purple); }
  .insp-list-item .type-dot.image { background: var(--accent-blue); }
  .insp-list-item .list-title { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .insp-list-item .list-stats { display: flex; gap: 12px; font-size: 12px; color: var(--text-tertiary); flex-shrink: 0; }
  .insp-list-item .list-author { width: 80px; font-size: 12px; color: var(--text-secondary);
                                  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
  .insp-list-item .list-date { min-width: 140px; font-size: 11px; color: var(--text-tertiary); flex-shrink: 0; }

  /* ── 筛选按钮状态 ── */
  .filter-btn.filter-starred.active { background: #FFF3E0; color: #F59E0B; border-color: #F59E0B; }
  .filter-btn.filter-referenced.active { background: var(--accent-purple-bg); color: var(--accent-purple); border-color: var(--accent-purple); }

  /* ── 智能体面板 ── */
  .agent-panel { padding: 10px 16px; border-top: 1px solid var(--warm-divider); }
  .agent-label { font-size: 11px; color: var(--text-tertiary); font-weight: 600; flex-shrink: 0; }
  .agent-refs-row { display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
  .agent-ref-group { display: flex; align-items: center; gap: 8px; }

  .agent-product-thumbs { display: flex; gap: 4px; }
  .agent-product-thumbs .product-thumb-wrap { position: relative; display: inline-block; }
  .agent-product-thumbs img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover;
    border: 2px solid var(--accent-purple); }
  .agent-product-thumbs .remove-product { position: absolute; top: -4px; right: -4px;
    width: 14px; height: 14px; border-radius: 50%; background: var(--red); color: #fff;
    font-size: 10px; border: none; cursor: pointer; line-height: 14px; text-align: center; }
  .agent-upload-btn { font-size: 11px; color: var(--accent-purple); cursor: pointer;
    padding: 4px 10px; border: 1px dashed rgba(124,58,237,.4); border-radius: 6px;
    background: var(--accent-purple-bg); font-weight: 500; transition: all .2s; }
  .agent-upload-btn:hover { background: #E8DCFF; border-color: var(--accent-purple); }
  .agent-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
  .agent-chip { padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--warm-border);
    background: #fff; font-size: 12px; cursor: pointer; transition: all .2s; font-weight: 500; }
  .agent-chip:hover { border-color: var(--accent-purple); color: var(--accent-purple); background: var(--accent-purple-bg); }
  .agent-chip-primary { background: linear-gradient(135deg, #F3EEFF, #E8DCFF);
    border-color: rgba(124,58,237,.3); color: var(--accent-purple); font-weight: 600; }
  .agent-chip-primary:hover { background: #E8DCFF; }
  .agent-input-row { display: flex; gap: 6px; margin-bottom: 8px; }
  .agent-instruction { flex: 1; padding: 7px 12px; border: 1px solid var(--warm-border);
    border-radius: var(--radius-sm); font-size: 13px; outline: none; transition: border-color .2s; }
  .agent-instruction:focus { border-color: var(--accent-purple); }
  .agent-instruction::placeholder { color: var(--text-tertiary); }
  .agent-exec-btn { padding: 7px 18px; border-radius: var(--radius-sm); border: none;
    background: var(--accent-purple); color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .2s; white-space: nowrap; }
  .agent-exec-btn:hover { background: #6D28D9; }
  .agent-exec-btn:disabled { opacity: .5; cursor: not-allowed; }

  .agent-progress { margin-top: 8px; }
  .agent-progress-bar { height: 4px; background: var(--warm-border); border-radius: 2px; overflow: hidden; }
  .agent-progress-fill { height: 100%; background: var(--accent-purple); border-radius: 2px;
    transition: width .3s ease; width: 0%; }
  .agent-progress-text { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; display: block; }

  /* ── 生图画廊 ── */
  .gallery-section { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--warm-border); }
  .gallery-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
  .gallery-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
  .gallery-count { font-size: 12px; color: var(--accent-purple); font-weight: 600; }
  .gallery-confirm-btn { margin-left: auto; padding: 5px 14px; border-radius: var(--radius-pill);
    border: none; background: var(--accent-purple); color: #fff; font-size: 12px;
    font-weight: 600; cursor: pointer; transition: all .2s; }
  .gallery-confirm-btn:hover { background: #6D28D9; }
  .gallery-hint { font-size: 11px; color: var(--text-tertiary); margin-bottom: 8px; }
  .gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .gallery-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
    cursor: pointer; border: 3px solid transparent; transition: all .2s; }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-hover); }
  .gallery-item.selected { border-color: var(--accent-purple); }
  .gallery-item.selected::after { content: '✓'; position: absolute; top: 4px; right: 4px;
    width: 20px; height: 20px; border-radius: 50%; background: var(--accent-purple); color: #fff;
    font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .gallery-item .gallery-round { position: absolute; bottom: 4px; left: 4px;
    font-size: 10px; background: rgba(0,0,0,.5); color: #fff; padding: 1px 6px;
    border-radius: 3px; }



  /* ── 采集中心增强 ── */
  .ctl-input::placeholder, .ctl-select::placeholder { color: var(--text-tertiary); }
  @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
  #ctl-log-indicator.running { background: var(--accent-green); animation: pulse-dot 1.5s ease-in-out infinite; }
  .ctl-card + .ctl-card { margin-top: 0; }

  /* ── 微交互动画 ── */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .panel-enter { animation: fadeIn 0.2s ease-out; }
  .insp-grid .insp-card { animation: fadeIn 0.3s ease both; }
  .insp-grid .insp-card:nth-child(2) { animation-delay: 0.05s; }
  .insp-grid .insp-card:nth-child(3) { animation-delay: 0.1s; }
  .insp-grid .insp-card:nth-child(4) { animation-delay: 0.15s; }
  .insp-list-view .insp-list-item { animation: fadeIn 0.2s ease both; }
  .comp-group { animation: fadeIn 0.3s ease both; }
  .comp-group:nth-child(2) { animation-delay: 0.1s; }
  .note-card { animation: slideUp 0.3s ease-out both; }
  .note-card:nth-child(1) { animation-delay: 0s; }
  .note-card:nth-child(2) { animation-delay: 0.05s; }
  .note-card:nth-child(3) { animation-delay: 0.05s; }
  .note-card:nth-child(4) { animation-delay: 0.1s; }
  .note-card:nth-child(5) { animation-delay: 0.15s; }
  .ctl-btn-primary:active, .ctl-btn-secondary:active { transform: scale(0.96); }

  /* ── 响应式：中屏 ── */
  @media (max-width: 1100px) {
    .container { padding: 16px; }
    .header-actions span { display: none; }
  }

  /* ── 响应式：窄屏回单栏 ── */
  @media (max-width: 900px) {
    .container { padding: 12px; }
    .note-card { grid-template-columns: 1fr; }
    .card-left { border-right: none; border-bottom: 1px solid var(--warm-divider); }
    .header { padding: 12px 16px; flex-wrap: wrap; }
    .header h1 { font-size: 17px; }
    .header-actions { width: 100%; justify-content: flex-end; margin-top: 4px; }
    .insp-grid { columns: 2; }

    .insp-search { width: 180px; }
    #collect-panel > div { grid-template-columns: 1fr !important; }
    .ctl-card div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .shortcut-bar-fixed { display: none !important; }
    .image-grid { grid-template-columns: repeat(3, 1fr); }
    .card-actions { flex-direction: column; gap: 10px; }
    .card-actions .btn { padding: 14px; font-size: 15px; }
    #main-tab-bar { padding: 0 12px; overflow-x: auto; white-space: nowrap; }
    .nav-tab { padding: 12px 14px; font-size: 13px; flex-shrink: 0; }
  }

  /* ── 响应式：手机端 ── */
  @media (max-width: 600px) {
    .header { padding: 12px 16px; }
    .header h1 { font-size: 16px; }

    .nav-tab { padding: 10px 12px; font-size: 13px; }
    .image-grid { grid-template-columns: repeat(3, 1fr); }
    .insp-grid { columns: 1; }
    .ctl-card { padding: 16px; }
    .ctl-title { font-size: 15px; }
    .container { padding: 12px 14px; }
  }

  /* ── 卡片顶部快捷按钮 ── */
  .btn-sm { padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11px;
            font-weight: 600; border: none; cursor: pointer; transition: all var(--transition-fast);
            display: inline-flex; align-items: center; gap: 3px; }
  .btn-sm-skip { background: #F5F0ED; color: var(--text-secondary); }
  .btn-sm-skip:hover { background: #EDE6E1; }
  .btn-sm-approve { background: var(--red); color: white; }
  .btn-sm-approve:hover { background: var(--red-hover); }

  /* ── 固定快捷键底栏 ── */
  .shortcut-bar-fixed { position: fixed; bottom: 0; left: 0; right: 0;
                        background: rgba(34,34,34,.9); color: #fff;
                        padding: 8px 24px; font-size: 12px; text-align: center;
                        backdrop-filter: blur(8px); z-index: 90;
                        display: none; }
  .shortcut-bar-fixed kbd { background: rgba(255,255,255,.15); padding: 2px 6px;
                            border-radius: 4px; font-family: inherit; margin: 0 2px; }

  /* ── 统一筛选栏骨架 ── */
  .filter-toolbar { display: flex; align-items: center; gap: 6px; padding: 0 0 16px; flex-wrap: wrap; }
  .filter-toolbar .filter-left { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex: 1; min-width: 0; }
  .filter-toolbar .filter-right { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
  .filter-toolbar .filter-divider { width: 1px; height: 20px; background: var(--warm-border); margin: 0 4px; flex-shrink: 0; }
  .filter-btn.cat-active { background: var(--accent-purple); color: #fff; border-color: var(--accent-purple); }
  .filter-panel-dropdown { position: absolute; top: 36px; right: 0; background: #fff;
    border: 1px solid var(--warm-border); border-radius: var(--radius-md); padding: 14px 16px;
    box-shadow: var(--shadow-float); z-index: 50; min-width: 220px; }
  .filter-panel-dropdown .panel-section-title { font-size: 11px; color: var(--text-tertiary); font-weight: 600; margin-bottom: 6px; }
  .filter-panel-dropdown .panel-section { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
  .filter-panel-dropdown .panel-section:last-child { margin-bottom: 0; }

  /* ── Tab栏发布进度 ── */
  .publish-status-inline { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); padding: 0 4px; }
  .publish-status-inline .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #52c41a; flex-shrink: 0; }
  .publish-mgr-btn { padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--warm-border);
    background: #fff; font-size: 12px; color: var(--text-secondary); cursor: pointer; font-weight: 600; transition: all 0.2s; }
  .publish-mgr-btn:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

  /* ── 发布管理抽屉 ── */
  .publish-drawer { position: fixed; top: 0; right: -420px; width: 420px; height: 100vh;
    background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.1); z-index: 200;
    transition: right 0.3s ease; overflow-y: auto; }
  .publish-drawer.open { right: 0; }
  .publish-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.3);
    z-index: 199; display: none; }
  .publish-drawer-overlay.open { display: block; }
  .publish-drawer .drawer-header { display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--warm-border); position: sticky; top: 0; background: #fff; z-index: 1; }
  .publish-drawer .drawer-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
  .publish-drawer .drawer-close { width: 32px; height: 32px; border-radius: 50%; border: none;
    background: var(--warm-bg); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
  .publish-drawer .drawer-section { padding: 16px 20px; border-bottom: 1px solid var(--warm-divider); }
  .publish-drawer .drawer-section h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 10px; }

  /* ── 发布设置面板 ── */
  .ps-row { margin-bottom: 14px; }
  .ps-label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; color: var(--text-primary); }
  .ps-hint { display: block; font-size: 11px; margin-top: 4px; color: var(--text-tertiary); }
  .ps-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--warm-border); border-radius: 8px; overflow: hidden; }
  .ps-step-btn { width: 32px; height: 32px; border: none; background: var(--warm-bg); cursor: pointer;
    font-size: 16px; font-weight: 600; color: var(--text-primary); transition: background .15s; }
  .ps-step-btn:hover { background: #EDE7E3; }
  .ps-step-input { width: 40px; height: 32px; border: none; text-align: center; font-size: 14px; font-weight: 600;
    background: #fff; -moz-appearance: textfield; }
  .ps-step-input::-webkit-inner-spin-button, .ps-step-input::-webkit-outer-spin-button { -webkit-appearance: none; }
  .ps-select { padding: 7px 10px; border: 1.5px solid var(--warm-border); border-radius: 8px; font-size: 13px;
    background: #FEFCFB; appearance: auto; }
  .ps-slots { display: flex; flex-direction: column; gap: 8px; }
  .ps-slot-card { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
    border: 1.5px solid var(--warm-border); border-radius: 10px; cursor: pointer; transition: all .2s;
    background: #FEFCFB; }
  .ps-slot-card:hover { border-color: #ccc; }
  .ps-slot-card.active { border-color: #52c41a; background: #f6ffed; }
  .ps-slot-label { font-size: 13px; font-weight: 500; }
  .ps-slot-check { font-size: 14px; color: #52c41a; font-weight: 700; width: 20px; text-align: center; }

  /* ── 队列行（拖拽排序） ── */
  .queue-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0; transition: background .15s; }
  .queue-row:hover { background: #FAFAFA; }
  .queue-row.dragging { opacity: .4; background: #f0f0f0; }
  .queue-handle { cursor: grab; color: #bbb; font-size: 16px; padding: 0 4px; user-select: none; }
  .queue-handle:active { cursor: grabbing; }
  .queue-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
  .queue-thumb-empty { width: 36px; height: 36px; border-radius: 6px; background: #f0f0f0; flex-shrink: 0; }
  .queue-title { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .queue-est-time { font-size: 11px; color: var(--accent-orange); font-weight: 500; white-space: nowrap; min-width: 44px; cursor: pointer; border-radius: 4px; padding: 2px 4px; }
  .queue-est-time:hover { background: rgba(255,140,0,0.1); }
  .queue-est-time.custom-time { color: var(--red); font-weight: 600; }
  .queue-est-time.custom-time::before { content: '⏰ '; font-size: 10px; }
  .queue-time-input { width: 140px; font-size: 11px; border: 1px solid var(--accent-orange); border-radius: 4px; padding: 2px 4px; outline: none; }
  .queue-time-save, .queue-time-clear { width: 20px; height: 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 11px; line-height: 20px; padding: 0; margin-left: 2px; }
  .queue-time-save { background: var(--accent-orange); color: white; }
  .queue-time-clear { background: #f0f0f0; color: #666; }
  .queue-actions { display: flex; gap: 2px; flex-shrink: 0; }
  .queue-move-btn { width: 22px; height: 22px; border: none; background: none; cursor: pointer;
    font-size: 10px; color: #999; border-radius: 4px; }
  .queue-move-btn:hover { background: #f0f0f0; color: var(--text-primary); }
  .queue-remove-btn { width: 22px; height: 22px; border: none; background: none; cursor: pointer;
    font-size: 12px; color: #ccc; border-radius: 4px; }
  .queue-remove-btn:hover { background: #fff1f0; color: var(--red); }

  /* ── 回到顶部按钮 ── */
  .scroll-top-btn { position: fixed; bottom: 48px; right: 24px; width: 40px; height: 40px;
                    border-radius: 50%; background: var(--red); color: white; border: none;
                    font-size: 18px; cursor: pointer; opacity: 0; transition: opacity .3s;
                    z-index: 80; box-shadow: 0 4px 12px rgba(255,36,66,.3); }
  .scroll-top-btn.show { opacity: 1; }

  /* ── 响应式：极窄屏 ── */
  @media (max-width: 480px) {
    .header-actions { gap: 6px; }

    .tool-btn { padding: 5px 8px; font-size: 11px; }
    .tool-btn kbd { display: none; }
    .content-textarea { min-height: 120px; font-size: 13px; }
    .image-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .img-item .cover-badge { font-size: 8px; padding: 1px 4px; }
    .insp-card .insp-content { padding: 10px; }
    .insp-search { width: 100%; }
    .note-card .card-left, .note-card .card-right { min-width: 0; }
    .publish-drawer { width: 100vw; right: -100vw; }
    .rewrite-drawer { width: 100vw; right: -100vw; }
  }

  /* ── 10版改写抽屉 ── */
  .rewrite-drawer { position: fixed; top: 0; right: -420px; width: 420px; height: 100vh;
    background: var(--warm-bg, #FBF7F5); box-shadow: -4px 0 24px rgba(0,0,0,.1); z-index: 200;
    transition: right 0.3s ease; overflow-y: auto; }
  .rewrite-drawer.open { right: 0; }
  .rewrite-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.3);
    z-index: 199; display: none; }
  .rewrite-drawer-overlay.open { display: block; }
  .rewrite-drawer .rw-header { display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--warm-border); position: sticky; top: 0;
    background: var(--warm-bg, #FBF7F5); z-index: 1; }
  .rewrite-drawer .rw-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
  .rewrite-drawer .rw-progress { font-size: 12px; color: var(--text-secondary); }
  .rewrite-drawer .rw-regenerate { width: 32px; height: 32px; border-radius: 50%; border: none;
    background: #fff; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
    margin-left: auto; }
  .rewrite-drawer .rw-regenerate:hover { background: #f0f0f0; }
  .rewrite-drawer .rw-close { width: 32px; height: 32px; border-radius: 50%; border: none;
    background: #fff; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
  .rewrite-drawer .rw-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }

  /* 版本卡片 */
  .version-card { background: #fff; border: 1px solid var(--warm-border, #F0E8E4); border-radius: 8px;
    padding: 12px 14px; cursor: pointer; transition: all .15s ease; position: relative; }
  .version-card:hover { border-color: var(--red-light, #FF8FA0); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
  .version-card.selected { border-color: var(--red, #FF2442); background: #FFF5F5;
    border-left: 3px solid var(--red, #FF2442); }
  .version-card.failed { opacity: .6; border-style: dashed; }

  .version-card .vc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .version-card .vc-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
  .version-card .vc-label .style-tag { font-size: 11px; padding: 2px 8px; border-radius: 100px; font-weight: 500; }
  .version-card .vc-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--warm-border);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
  .version-card.selected .vc-radio { border-color: var(--red, #FF2442); }
  .version-card.selected .vc-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%;
    background: var(--red, #FF2442); }

  .version-card .vc-preview { font-size: 13px; line-height: 1.6; color: var(--text-secondary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .version-card .vc-tags { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }

  /* 展开态 */
  .version-card .vc-full { display: none; font-size: 13px; line-height: 1.7; color: var(--text-primary);
    margin-top: 8px; white-space: pre-wrap; }
  .version-card.expanded .vc-full { display: block; }
  .version-card.expanded .vc-preview { display: none; }
  .version-card .vc-actions { display: none; margin-top: 10px; gap: 8px; }
  .version-card.expanded .vc-actions { display: flex; }
  .version-card .vc-actions button { font-size: 12px; padding: 6px 14px; border-radius: 100px; cursor: pointer; border: none; }
  .version-card .vc-select-btn { background: var(--red, #FF2442); color: #fff; font-weight: 600; }
  .version-card .vc-select-btn:hover { background: var(--red-hover, #E61E3A); }
  .version-card .vc-collapse-btn { background: var(--warm-bg, #FBF7F5); color: var(--text-secondary); border: 1px solid var(--warm-border); }

  /* 骨架屏 */
  .version-skeleton { background: #fff; border: 1px solid var(--warm-border, #F0E8E4); border-radius: 8px;
    padding: 14px; }
  .version-skeleton .sk-line { height: 12px; border-radius: 4px; background: linear-gradient(90deg, #f0ebe7 25%, #f7f2ef 50%, #f0ebe7 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite; margin-bottom: 8px; }
  .version-skeleton .sk-line:first-child { width: 40%; height: 14px; }
  .version-skeleton .sk-line:nth-child(2) { width: 90%; }
  .version-skeleton .sk-line:nth-child(3) { width: 75%; }
  .version-skeleton .sk-line:last-child { width: 60%; margin-bottom: 0; }

  /* 失败态重试按钮 */
  .version-card.failed .vc-retry { font-size: 11px; color: var(--red); cursor: pointer;
    background: none; border: 1px solid var(--red-light, #FF8FA0); border-radius: 100px;
    padding: 3px 10px; margin-top: 6px; }

  /* 风格标签配色 */
  .style-tag[data-style="enthusiastic"] { background: #FFF0F0; color: #D32F2F; }
  .style-tag[data-style="analytical"] { background: #F0F4FF; color: #1565C0; }
  .style-tag[data-style="casual"] { background: #FFF8E1; color: #F57F17; }
  .style-tag[data-style="painpoint"] { background: #F0FFF0; color: #2E7D32; }
  .style-tag[data-style="reversal"] { background: #FFF0E8; color: #E65100; }
  .style-tag[data-style="repurchase"] { background: #F8F0FF; color: #6A1B9A; }
  .style-tag[data-style="bestie"] { background: #FFE8F5; color: #C2185B; }
  .style-tag[data-style="newbie"] { background: #E8FFF0; color: #1B5E20; }
  .style-tag[data-style="scenario"] { background: #FFF5E8; color: #BF360C; }
  .style-tag[data-style="concise"] { background: #F0F0F0; color: #424242; }

  /* 10版按钮 */
  .batch-rewrite-btn { font-size: 11px; padding: 4px 12px; border-radius: 100px;
    background: var(--red, #FF2442); color: #fff; border: none; cursor: pointer;
    font-weight: 600; transition: all .15s; margin-left: 6px; }
  .batch-rewrite-btn:hover { background: var(--red-hover, #E61E3A); }
  .batch-rewrite-btn:disabled { opacity: .5; cursor: not-allowed; }

  /* 当前版本标记 */
  .current-version-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px;
    color: var(--text-secondary); padding: 2px 8px; background: var(--warm-bg); border-radius: 100px;
    margin-bottom: 4px; }
  .current-version-tag a { color: var(--red); cursor: pointer; text-decoration: none; font-size: 10px; }

/* ── 采集记录 ── */
/* 内联进度条 */
.inline-progress { margin-top: 12px; padding: 10px 12px; background: var(--bg-hover, #f9f9f9); border-radius: 8px; }
.inline-progress .ip-status { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.inline-progress .ip-bar { display: flex; gap: 2px; height: 5px; border-radius: 4px; overflow: hidden; margin-bottom: 3px; }
.inline-progress .ip-bar > div { border-radius: 2px; transition: background .3s; background: #e0e0e0; }
.inline-progress .ip-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-tertiary); margin-bottom: 4px; }
.inline-progress .ip-labels > span { text-align: center; }
.inline-progress .ip-substep { font-size: 11px; color: var(--text-secondary); }
.inline-progress .ip-summary { text-align: center; padding: 6px 0; }
.inline-progress .ip-summary .num { font-size: 18px; font-weight: 700; }
.inline-progress .ip-summary .lbl { font-size: 10px; color: var(--text-tertiary); }
.inline-progress .ip-error { font-size: 12px; color: #ff4d4f; background: #fff1f0; padding: 6px 10px; border-radius: 4px; }

.collect-history { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.collect-history:empty { display: none; }
.history-title { font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.history-empty { font-size: 12px; color: var(--text-tertiary); }
.history-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding: 4px 0; line-height: 1.5; }
.history-row:hover { background: var(--bg-hover, #f5f5f5); border-radius: 4px; padding: 4px 6px; margin: 0 -6px; }
.history-row b { font-weight: 600; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.pulse-dot { animation: pulse 1.5s infinite; }
