    /* 顶部导航 */
    .header {
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      padding: 0 24px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      z-index: 100;
      gap: 12px;
      flex-wrap: nowrap;
    }

    .header .logo {
      flex-shrink: 0;
    }

    .header .steps-nav {
      flex: 1;
      justify-content: center;
      min-width: 0; /* 允许收缩 */
      overflow: hidden;
    }

    .header .theme-toggle-btn {
      flex-shrink: 0;
    }
    
    .header-actions {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
    }
    
    .header-actions .btn {
      padding: 8px 16px;
      font-size: 13px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      cursor: pointer;
      transition: opacity 0.2s ease;
    }

    .logo:hover {
      opacity: 0.8;
    }

    .logo-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      object-fit: contain;
    }

    .logo-text {
      font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
      font-size: 20px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .logo-subtitle {
      font-size: 12px;
      color: var(--text-muted);
      margin-left: 8px;
    }

    /* 步骤指示器 */
    .steps-nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .step-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.3s ease;
      background: transparent;
      border: 1px solid transparent;
    }

    .step-item:hover {
      background: var(--bg-tertiary);
    }

    .step-item.active {
      background: var(--bg-tertiary);
      border-color: var(--accent-primary);
    }

    .step-item.completed {
      color: var(--accent-primary);
    }

    .step-number {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--bg-elevated);
      border: 2px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .step-item.active .step-number {
      background: var(--accent-primary);
      border-color: var(--accent-primary);
      color: var(--bg-primary);
    }

    .step-item.completed .step-number {
      background: var(--accent-secondary);
      border-color: var(--accent-secondary);
      color: var(--bg-primary);
    }

    .step-label {
      font-size: 13px;
      color: var(--text-secondary);
    }

    .step-item.active .step-label,
    .step-item.completed .step-label {
      color: var(--text-primary);
    }

    .step-connector {
      width: 32px;
      height: 2px;
      background: var(--border-color);
    }

    .step-connector.completed {
      background: var(--accent-primary);
    }

    /* 主内容区域 */
    .main-content {
      flex: 1;
      display: flex;
      padding: 20px;
      gap: 20px;
      min-height: 0; /* 重要：允许 flex 子元素收缩 */
    }

    /* 左侧面板 - 上传区域 */
    .left-panel {
      width: 300px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
      overflow-y: auto;
      max-height: 100%;
    }

    .panel {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      overflow: visible;
      flex-shrink: 0;
    }

    .panel-header {
      padding: 14px 16px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .panel-title {
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .panel-content {
      padding: 16px;
    }

    /* 上传区域 */
    .upload-zone {
      border: 2px dashed var(--border-color);
      border-radius: 8px;
      padding: 32px 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
      background: var(--bg-tertiary);
    }

    .upload-zone:hover {
      border-color: var(--accent-primary);
      background: rgba(0, 212, 170, 0.05);
    }

    .upload-zone.dragging {
      border-color: var(--accent-primary);
      background: rgba(0, 212, 170, 0.1);
    }

    .upload-icon {
      font-size: 40px;
      margin-bottom: 12px;
      opacity: 0.6;
    }

    .upload-text {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }

    .upload-hint {
      font-size: 12px;
      color: var(--text-muted);
    }

    /* 原图预览 */
    .preview-image {
      width: 100%;
      border-radius: 8px;
      background: var(--bg-tertiary);
      position: relative;
      overflow: hidden;
    }

    .preview-image img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.3s ease;
    }

    .preview-info {
      padding: 12px;
      background: var(--bg-elevated);
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* 图片编辑工具栏 */
    .image-edit-toolbar {
      margin-top: 12px;
      padding: 12px;
      background: var(--bg-tertiary);
      border-radius: 8px;
      border: 1px solid var(--border-color);
    }

    .edit-toolbar-title {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    .edit-toolbar-buttons {
      display: flex;
      gap: 8px;
    }

    .edit-toolbar-buttons .el-button {
      flex: 1;
    }

    /* 设置面板 */
    .setting-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid var(--border-color);
      flex-wrap: wrap;
      gap: 8px;
    }

    .setting-row:last-child {
      border-bottom: none;
    }

    .setting-label {
      font-size: 13px;
      color: var(--text-secondary);
      flex-shrink: 0;
    }

    .setting-value {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    /* 中央画布区域 */
    .center-panel {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .canvas-toolbar-wrapper {
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }

    .canvas-toolbar-wrapper .canvas-toolbar {
      border-radius: 0;
    }

    .canvas-toolbar-wrapper .canvas-toolbar:first-child {
      border-radius: 12px 12px 0 0;
    }

    .canvas-toolbar-wrapper .canvas-toolbar:last-child {
      border-radius: 0;
    }

    .canvas-toolbar-wrapper .canvas-toolbar:only-child {
      border-radius: 12px 12px 0 0;
    }

    .canvas-toolbar-wrapper .canvas-toolbar + .canvas-toolbar {
      border-top: 1px solid var(--border-color);
    }

    .canvas-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 16px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 12px 12px 0 0;
      border-bottom: none;
      flex-shrink: 0;
    }

    .toolbar-divider {
      width: 1px;
      height: 20px;
      background: var(--border-color);
      margin: 0 4px;
    }

    .toolbar-group {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .toolbar-btn svg {
      flex-shrink: 0;
      vertical-align: middle;
      margin-right: 6px;
    }

    .toolbar-btn {
      padding: 8px 12px;
      border: 1px solid var(--border-color);
      background: var(--bg-tertiary);
      color: var(--text-secondary);
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }

    .toolbar-btn:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
    }

    .toolbar-btn.active {
      background: var(--accent-primary);
      border-color: var(--accent-primary);
      color: var(--bg-primary);
    }

    .toolbar-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      pointer-events: none;
    }

    .toolbar-btn:disabled:hover {
      border-color: var(--border-color);
      color: var(--text-secondary);
    }

    .zoom-control {
      display: flex;
      align-items: center;
      gap: 4px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      padding: 4px;
    }

    .zoom-btn svg {
      flex-shrink: 0;
      vertical-align: middle;
    }

    .zoom-btn {
      width: 28px;
      height: 28px;
      border: none;
      background: transparent;
      color: var(--text-secondary);
      cursor: pointer;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .zoom-btn:hover {
      background: var(--bg-elevated);
      color: var(--text-primary);
    }

    .zoom-value {
      width: 50px;
      text-align: center;
      font-size: 12px;
      font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
      color: var(--text-secondary);
    }

    /* 画布容器 */
    .canvas-container {
      flex: 1;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 0 0 12px 12px;
      overflow: hidden;
      position: relative;
      display: flex;
      flex-direction: column;
    }
    
    .canvas-container.full-radius {
      border-radius: 12px;
    }

    .canvas-wrapper {
      width: 100%;
      height: 100%;
      overflow: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .pixel-canvas {
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      image-rendering: pixelated;
      cursor: crosshair;
    }

    /* 空状态 */
    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
      color: var(--text-muted);
    }

    /* Step 1 画板未选择图片时的样式（与 upload-zone 一致） */
    .image-edit-container .empty-state {
      border: 2px dashed var(--border-color);
      border-radius: 8px;
      padding: 32px 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
      background: var(--bg-tertiary);
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 200px;
    }

    .image-edit-container .empty-state:hover {
      border-color: var(--accent-primary);
      background: rgba(0, 212, 170, 0.05);
    }

    .image-edit-container .empty-state.dragging {
      border-color: var(--accent-primary);
      background: rgba(0, 212, 170, 0.1);
    }

    .empty-icon {
      font-size: 64px;
      margin-bottom: 16px;
      opacity: 0.4;
    }

    .empty-text {
      font-size: 16px;
      margin-bottom: 8px;
    }

    .empty-hint {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* Step 1 图片编辑器 */
    .image-edit-container {
      width: 100%;
      height: 100%;
      min-height: 100%;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    /* Step 1 重新选择按钮栏 */
    .reselect-bar {
      padding: 12px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      margin-top: 8px;
    }

    .reselect-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px 16px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      color: var(--text-primary);
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .reselect-btn:hover {
      background: var(--bg-hover);
      border-color: var(--accent-primary);
      color: var(--accent-primary);
    }

    .reselect-btn:active {
      background: rgba(0, 212, 170, 0.1);
    }

    .image-editor {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .image-editor-toolbar {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 12px 16px;
      background: var(--bg-tertiary);
      border-bottom: 1px solid var(--border-color);
    }

    .image-preview-area {
      flex: 1;
      overflow: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: repeating-conic-gradient(var(--bg-tertiary) 0% 25%, var(--bg-secondary) 0% 50%) 
                  50% / 20px 20px;
    }

    .image-preview-wrapper {
      position: relative;
      display: inline-block;
    }

    .image-edit-canvas {
      display: block;
      width: 100%;
      height: 100%;
      border: 2px solid var(--border-color);
      box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }

    .crop-mask {
      position: absolute;
      top: 2px;
      left: 2px;
      width: calc(100% - 4px);
      height: calc(100% - 4px);
      background: rgba(0, 0, 0, 0.6);
      pointer-events: none;
    }

    .crop-overlay {
      position: absolute;
      top: 2px;
      left: 2px;
      width: calc(100% - 4px);
      height: calc(100% - 4px);
      pointer-events: none;
      overflow: hidden;
    }

    .crop-selection {
      position: absolute;
      border: 2px dashed var(--accent-primary);
      background: rgba(0, 212, 170, 0.1);
      box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
      pointer-events: auto;
      cursor: move;
    }

    .crop-selection.is-drawing {
      pointer-events: none;
    }

    .crop-handle {
      position: absolute;
      width: 12px;
      height: 12px;
      background: var(--accent-primary);
      border: 2px solid var(--bg-primary);
      border-radius: 2px;
    }

    .crop-handle.nw { top: -6px; left: -6px; cursor: nw-resize; }
    .crop-handle.ne { top: -6px; right: -6px; cursor: ne-resize; }
    .crop-handle.sw { bottom: -6px; left: -6px; cursor: sw-resize; }
    .crop-handle.se { bottom: -6px; right: -6px; cursor: se-resize; }

    .toolbar-btn.primary {
      background: var(--accent-primary);
      color: var(--bg-primary);
    }

    .toolbar-btn.primary:hover {
      background: var(--accent-secondary);
    }

    /* Step 4 导出配置 */
    .export-config-container {
      width: 100%;
      height: 100%;
      overflow: auto;
      padding: 24px;
    }

    .export-layout {
      display: flex;
      gap: 24px;
      height: 100%;
      max-width: 1400px;
      margin: 0 auto;
    }

    .export-options-panel {
      width: 360px;
      flex-shrink: 0;
      background: var(--bg-tertiary);
      border-radius: 12px;
      padding: 20px;
      overflow-y: auto;
    }

    .export-section-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0 0 16px 0;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border-color);
    }

    .export-section-title:not(:first-child) {
      margin-top: 24px;
    }

    .export-option-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .export-option-label {
      flex: 1;
      font-size: 13px;
      color: var(--text-secondary);
    }

    .export-option-unit {
      font-size: 12px;
      color: var(--text-muted);
      min-width: 30px;
    }

    .export-brand-chip {
      flex: 0 0 auto;
      max-width: 86px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding: 2px 8px;
      border-radius: 6px;
      border: 1px solid rgba(0, 212, 170, 0.24);
      background: rgba(0, 212, 170, 0.08);
      color: var(--accent-primary);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0;
      line-height: 18px;
    }

    .export-sub-options {
      margin-left: 20px;
      padding-left: 12px;
      border-left: 2px solid var(--border-color);
      margin-bottom: 16px;
    }

    .export-option-hint {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: -8px;
      margin-bottom: 12px;
      margin-left: 4px;
    }

    .export-info {
      margin-top: 24px;
      padding: 12px;
      background: var(--bg-elevated);
      border-radius: 8px;
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    .export-preview-panel {
      flex: 1;
      background: var(--bg-tertiary);
      border-radius: 12px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .export-preview-area {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      background: repeating-conic-gradient(var(--bg-elevated) 0% 25%, var(--bg-secondary) 0% 50%) 
                  50% / 20px 20px;
      border-radius: 8px;
      overflow: auto;
      padding: 20px;
    }

    .export-preview-area img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border: 1px solid var(--border-color);
      box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }

    .export-preview-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      color: var(--text-muted);
    }

    /* 右侧面板 - 颜色列表 */
    .right-panel {
      width: 300px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
      overflow: hidden;
    }

    .color-list {
      flex: 1;
      overflow-y: auto;
    }

    .color-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border-color);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .color-item:hover {
      background: var(--bg-tertiary);
    }

    .color-item.active {
      background: rgba(0, 212, 170, 0.1);
      border-left: 3px solid var(--accent-primary);
    }

    .color-item.highlighted {
      background: var(--bg-elevated);
    }

    .color-item.replace-from {
      background: rgba(231, 76, 60, 0.2);
      border-left: 3px solid var(--danger);
    }

    .color-item.replace-to {
      background: rgba(39, 174, 96, 0.2);
      border-left: 3px solid var(--success);
    }

    .color-swatch {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      border: 2px solid var(--border-color);
      flex-shrink: 0;
      position: relative;
    }
    
    .color-swatch.empty-bead-checker {
      background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
                        linear-gradient(-45deg, #ccc 25%, transparent 25%),
                        linear-gradient(45deg, transparent 75%, #ccc 75%),
                        linear-gradient(-45deg, transparent 75%, #ccc 75%);
      background-size: 10px 10px;
      background-position: 0 0, 0 5px, 5px -5px, -5px 0;
      background-color: #fff;
    }
    
    .color-swatch .color-id {
      display: none;
    }

    .color-info {
      flex: 1;
      min-width: 0;
    }

    .color-name {
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .color-code {
      font-size: 11px;
      font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
      color: var(--text-muted);
    }

    .color-count {
      font-size: 12px;
      font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
      color: var(--text-secondary);
      background: var(--bg-elevated);
      padding: 4px 8px;
      border-radius: 4px;
    }


    .tile-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      image-rendering: pixelated;
    }

    /* 底部导航栏 */
    .footer-bar {
      background: var(--bg-secondary);
      border-top: 1px solid var(--border-color);
      padding: 10px 16px;
      flex-shrink: 0;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .footer-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .info-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .info-item {
      font-size: 11px;
      color: var(--text-secondary);
      white-space: nowrap;
    }

    .footer-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .footer-actions .btn {
      padding: 8px 14px;
      font-size: 13px;
      white-space: nowrap;
    }
    /* 兼容旧样式 */
    .info-bar {
      background: var(--bg-secondary);
      border-top: 1px solid var(--border-color);
      padding: 10px 24px;
      flex-shrink: 0;
    }

    .info-content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .btn {
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      border: none;
    }

    .btn-default {
      background: var(--bg-tertiary);
      color: var(--text-secondary);
      border: 1px solid var(--border-color);
    }

    .btn-default:hover {
      border-color: var(--accent-primary);
      color: var(--text-primary);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
      color: var(--bg-primary);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 20px var(--accent-glow);
    }
    
    .btn-disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    
    .btn-disabled:hover {
      transform: none;
      box-shadow: none;
    }

    /* Toggle Switch 开关样式 */
    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
    }

    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .toggle-slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: var(--border-color);
      transition: 0.3s;
      border-radius: 24px;
    }

    .toggle-slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: 0.3s;
      border-radius: 50%;
    }

    .toggle-switch input:checked + .toggle-slider {
      background-color: var(--accent-primary);
    }

    .toggle-switch input:checked + .toggle-slider:before {
      transform: translateX(20px);
    }

    .toggle-switch input:disabled + .toggle-slider {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .custom-color-codes-panel {
      border-bottom: 1px solid var(--border-color);
      padding: 8px 0;
      margin-bottom: 2px;
    }

    .custom-color-codes-header {
      border-bottom: none;
      padding: 0;
    }

    .custom-color-codes-actions {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
    }

    .custom-color-codes-body {
      margin-top: 8px;
    }

    .custom-color-codes-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 6px;
      color: var(--text-tertiary);
      font-size: 11px;
      line-height: 1.35;
    }

    .custom-color-codes-invalid {
      color: var(--accent-primary);
    }

    .custom-color-codes-preview {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 6px;
      max-height: 72px;
      overflow: auto;
    }

    .custom-color-code-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      max-width: 92px;
      min-height: 22px;
      padding: 2px 6px;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      color: var(--text-secondary);
      background: var(--bg-secondary);
      font-size: 11px;
      line-height: 1;
    }

    .custom-color-code-chip i {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 1px solid rgba(0, 0, 0, 0.18);
      flex: 0 0 auto;
    }

    .custom-color-code-more {
      color: var(--text-tertiary);
      font-size: 11px;
      line-height: 22px;
    }

    .custom-color-code-picker-dialog {
      width: min(560px, calc(100vw - 24px));
    }

    .custom-color-code-picker-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
      color: var(--text-secondary);
      font-size: 12px;
    }

    .custom-color-code-picker-summary .brand-selector {
      margin: 0;
      flex: 1 1 auto;
      min-width: 0;
    }

    .custom-color-code-picker-toolbar {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin: 10px 0;
      color: var(--text-tertiary);
      font-size: 12px;
    }

    .custom-color-code-picker-grid {
      max-height: 360px;
      overflow: auto;
      padding-right: 2px;
    }

    .custom-color-code-picker-color {
      position: relative;
    }

    .custom-color-code-picker-color.custom-color-code-picker-selected::after {
      content: "✓";
      position: absolute;
      right: 3px;
      bottom: 2px;
      display: grid;
      place-items: center;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      color: #fff;
      background: rgba(0, 0, 0, 0.72);
      font-size: 10px;
      font-weight: 700;
      line-height: 1;
    }

    .custom-color-code-picker-empty {
      padding: 28px 12px;
      color: var(--text-muted);
      text-align: center;
      font-size: 13px;
    }

    .custom-color-code-picker-footer {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 16px;
    }

    /* 移动端：footer 固定在视口底部（与图片转图纸一致） */
    @media (max-width: 768px) {
      .footer-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
      }
    }

    /* 品牌选择器下拉框 - 显示所有品牌无需滚动 */
    .brand-select-dropdown .el-scrollbar__wrap {
      max-height: 500px !important;
    }
    
    .brand-select-dropdown .el-select-dropdown__list {
      padding: 4px 0;
    }
