.dragBoxWrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: -1;
  opacity: 0;
  transition: all .3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; }
  .dragBoxWrap.show {
    opacity: 1;
    z-index: 9999; }
  .dragBoxWrap > span {
    font-size: 32px;
    color: #FFF;
    font-weight: bold; }
  .dragBoxWrap img {
    width: 85px;
    height: 85px;
    position: absolute; }
  .dragBoxWrap .dragImgLT {
    top: 16px;
    left: 16px; }
  .dragBoxWrap .dragImgRT {
    top: 16px;
    right: 16px;
    transform: rotate(90deg); }
  .dragBoxWrap .dragImgLB {
    bottom: 16px;
    left: 16px;
    transform: rotate(-90deg); }
  .dragBoxWrap .dragImgRB {
    bottom: 16px;
    right: 16px;
    transform: rotate(180deg); }

@charset "UTF-8";
:root {
  --new-grey-1: #000000;
  --new-grey-2: #141414;
  --new-grey-3: #1F1F1F;
  --new-grey-4: #333333;
  --new-grey-5: #4D4D4D;
  --new-grey-6: #D8D8D8;
  --new-grey-7: #FFFFFF;
  --new-text-1: #FFFFFF;
  --new-text-2: #FAFAFA;
  --new-text-3: #999999;
  --new-text-4: #666666;
  --new-text-5: #4D4D4D;
  --new-text-6: #333333;
  --new-text-7: #1F1F1F;
  --new-text-8: #141414;
  --new-shadow-1: 0 3px 6px -4px rgba(255, 255, 255, 0.12), 0 6px 16px 0 rgba(255, 255, 255, 0.08), 0 9px 28px 8px rgba(255, 255, 255, 0.05);
  --new-shadow-2: 0 8px 12px 0 rgba(255, 255, 255, 0.3);
  --new-copyright-bg: transparent;
  --left-color-1: #141414;
  --left-color-2: #1F1F1F;
  --left-color-3: #333333;
  --left-color-4: #4D4D4D;
  --left-color-5: #666666;
  --left-color-6: #999999;
  --left-color-7: #FAFAFA;
  --left-color-8: #FFFFFF;
  --left-color-9: #e8e8e8;
  --left-color-10: #333333;
  --left-text-color-1: #FFFFFF;
  --left-text-color-2: #999999;
  --left-text-color-3: #d8d8d8;
  --tw-inset-shadow: 0 0 #0000;
  --tw-inset-ring-shadow: 0 0 #0000;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0px 4px 4px 0px var(--tw-shadow-color, var(--shadow-color-1, #00000012)), 0px 4px 80px 8px var(--tw-shadow-color, var(--shadow-color-1, #0000001f)), 0px 0px 1px 0px var(--tw-shadow-color, var(--shadow-color-2, #000000aa)); }

.qtd-ai-light-mode {
  --new-grey-1: #FFFFFF;
  --new-grey-2: #FAFAFA;
  --new-grey-3: #F5F5F5;
  --new-grey-4: #E8E8E8;
  --new-grey-5: #D8D8D8;
  --new-grey-6: #333333;
  --new-grey-7: #141414;
  --new-text-1: #333333;
  --new-text-2: #333333;
  --new-text-3: #4D4D4D;
  --new-text-4: #666666;
  --new-text-5: #999999;
  --new-text-6: #FAFAFA;
  --new-text-7: #FFFFFF;
  --new-text-8: #FFFFFF;
  --new-shadow-1: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  --new-shadow-2: 0 8px 12px 0 rgba(0, 0, 0, 0.3);
  --new-copyright-bg: #F5FBFF;
  --left-color-1: #FFFFFF;
  --left-color-3: #F5F5F5;
  --left-color-4: #E8E8E8;
  --left-color-9: #e8e8e8;
  --left-color-10: #E8E8E8;
  --left-text-color-1: #333333;
  --left-text-color-2: #666666;
  --left-text-color-3: #666666; }
  .qtd-ai-light-mode \--tw-inset-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000; }

.cropModalWrap {
  backdrop-filter: blur(24px); }
  .cropModalWrap .ant-modal-content {
    border-radius: 20px;
    overflow: hidden;
    background: var(--new-grey-1);
    box-shadow: var(--new-shadow-2); }
  .cropModalWrap .ant-modal-content .ant-modal-close {
    display: none; }
  .cropModalWrap .ant-modal-content .ant-modal-header {
    padding: 0; }
  .cropModalWrap .ant-modal-header {
    background: var(--new-grey-1);
    border-bottom: 1px solid var(--new-grey-4); }
  .cropModalWrap .ant-modal-title {
    color: var(--new-text-1);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px; }
  .cropModalWrap .ant-modal-close {
    color: var(--new-text-5); }
  .cropModalWrap .ant-modal-close:hover {
    color: var(--new-text-1); }
  .cropModalWrap .ant-modal-body {
    padding: 16px;
    padding-top: 0;
    background: var(--new-grey-1); }
  .cropModalWrap .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: none;
    flex-shrink: 0; }
  .cropModalWrap .headLeft {
    display: flex;
    flex-direction: column;
    gap: 2px; }
  .cropModalWrap .title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 800;
    color: var(--new-text-1); }
  .cropModalWrap .sub {
    font-size: 12px;
    color: var(--new-text-3);
    line-height: 20px; }
    .cropModalWrap .sub strong {
      color: var(--new-text-1);
      font-weight: 600; }
  .cropModalWrap .closeBtn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--new-grey-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--new-text-4);
    cursor: pointer;
    transition: background 0.13s; }
    .cropModalWrap .closeBtn:hover:not(:disabled) {
      background: var(--new-grey-4); }
    .cropModalWrap .closeBtn:disabled {
      opacity: 0.45;
      cursor: not-allowed; }

.hint {
  font-size: 13px;
  color: var(--new-text-4);
  margin-bottom: 16px;
  line-height: 1.5; }

.layout {
  display: flex;
  gap: 16px;
  height: 600px;
  max-height: calc(100vh - 200px); }
  .layout .list {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--new-grey-4);
    padding: 3px;
    padding-top: 16px;
    padding-right: 16px;
    overflow: auto;
    max-height: 730px;
    background: var(--new-grey-1); }
    .layout .list .ant-list-item {
      cursor: pointer;
      border: none !important;
      padding: 7px 10px !important;
      border-radius: 16px;
      margin-bottom: 2px;
      transition: background 0.13s; }
    .layout .list .ant-list-item:hover {
      background: var(--new-grey-3); }
  .layout .canvasCol {
    padding-top: 16px; }

.listItemInner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0; }

.listDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--new-grey-5);
  transition: background 0.13s ease, box-shadow 0.13s ease; }

.listDotActive {
  background: var(--qtd-brand-color-6); }

.listDotDone {
  background: var(--qtd-brand-color-6);
  box-shadow: 0 0 0 2px var(--qtd-brand-color-outline-2); }

.listItemActive {
  background: var(--new-grey-3) !important; }
  .listItemActive .listTitle {
    color: var(--new-text-1); }

.listTitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--new-text-1); }

.listSub {
  font-size: 12px;
  color: var(--new-text-3); }

.canvasCol {
  flex: 1;
  min-width: 0; }

/* 与下载弹窗 previewMain 一致 */
.cropCanvasWrap {
  background: var(--new-grey-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 12px; }

.cropCanvasGrid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--new-grey-4) 1px, transparent 1px), linear-gradient(90deg, var(--new-grey-4) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0; }

.cropFrame {
  position: relative;
  border: 2px solid var(--new-text-1);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 2;
  background: var(--new-grey-7); }

.cropFrameActive {
  overflow: visible;
  border: none;
  background: transparent;
  border-radius: 0; }

.cropWindow {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  border: 1px dashed var(--new-grey-6);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2; }

.cropFrameActive .cropWindow {
  border: 1px dashed var(--new-grey-6); }

.cropImgDim {
  position: absolute;
  border-radius: 2px;
  cursor: grab;
  user-select: none;
  will-change: left, top;
  z-index: 1;
  opacity: 0.42;
  filter: brightness(0.92); }
  .cropImgDim:active {
    cursor: grabbing; }

.cropImgFront {
  position: absolute;
  border-radius: 2px;
  cursor: grab;
  user-select: none;
  will-change: left, top;
  z-index: 1;
  pointer-events: auto; }
  .cropImgFront:active {
    cursor: grabbing; }

.cropImgLoading {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: default; }

.cropCorner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--new-text-7);
  filter: drop-shadow(0 0 2px var(--new-grey-4));
  border-style: solid;
  pointer-events: none;
  z-index: 5; }

.cropCorner[data-pos='tl'] {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px; }

.cropCorner[data-pos='tr'] {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0; }

.cropCorner[data-pos='bl'] {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px; }

.cropCorner[data-pos='br'] {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0; }

.infoBar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-bottom: 12px; }

.infoTag {
  font-size: 11px;
  color: var(--new-text-4);
  background: var(--new-grey-3);
  padding: 3px 10px;
  border-radius: 9999px; }
  .infoTag span {
    color: var(--new-text-1);
    font-family: monospace, monospace;
    font-weight: 600; }

.sliderRow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--new-text-4); }
  .sliderRow .ant-slider .ant-slider-track {
    background: var(--qtd-ai-light-color-6); }
  .sliderRow .ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) {
    border: 2px solid var(--qtd-ai-light-color-6); }
  .sliderRow .ant-slider .ant-slider-handle {
    border: 2px solid var(--qtd-ai-light-color-6); }
    .sliderRow .ant-slider .ant-slider-handle:focus {
      box-shadow: 0 0 0 5px #d9ff005c; }

.scaleVal {
  min-width: 48px;
  font-size: 12px;
  color: var(--new-text-1);
  font-variant-numeric: tabular-nums; }

.modalFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--new-grey-4); }

.footerNav {
  display: flex;
  align-items: center;
  gap: 10px; }

.footerActions {
  display: flex;
  align-items: center;
  gap: 12px; }

.navCount {
  min-width: 40px;
  font-size: 12px;
  font-weight: 500;
  color: var(--new-text-3);
  text-align: center; }

/* 与 ExtendSizeDrawer .lineBtn 一致（newTheme 中性色） */
.lineBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  border-radius: 88px;
  border: 1px solid var(--new-grey-4);
  background: transparent;
  color: var(--new-text-1);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s; }
  .lineBtn .icon {
    font-size: 14px;
    line-height: 1; }
  .lineBtn:hover:not(:disabled) {
    color: var(--new-text-1);
    border-color: var(--new-text-1); }
  .lineBtn:disabled {
    opacity: 0.45;
    cursor: not-allowed; }
  .lineBtn.lineBtnSm {
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
    line-height: 20px; }

/* 与 ExtendSizeDrawer .primaryBtn 一致（theme.scss 品牌主按钮） */
.primaryBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 160px;
  height: 40px;
  padding: 5px 20px;
  border-radius: 26px;
  border: none;
  background: var(--qtd-ai-light-color-6);
  color: var(--qtd-ai-text-color-0);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s; }
  .primaryBtn .icon {
    font-size: 16px;
    line-height: 1; }
  .primaryBtn .ant-spin {
    line-height: 1; }
  .primaryBtn .ant-spin-dot-item {
    background-color: var(--qtd-ai-text-color-0); }
  .primaryBtn:hover:not(:disabled) {
    background: var(--qtd-ai-light-color-6);
    opacity: 0.92; }
  .primaryBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed; }

@charset "UTF-8";
:root {
  --new-grey-1: #000000;
  --new-grey-2: #141414;
  --new-grey-3: #1F1F1F;
  --new-grey-4: #333333;
  --new-grey-5: #4D4D4D;
  --new-grey-6: #D8D8D8;
  --new-grey-7: #FFFFFF;
  --new-text-1: #FFFFFF;
  --new-text-2: #FAFAFA;
  --new-text-3: #999999;
  --new-text-4: #666666;
  --new-text-5: #4D4D4D;
  --new-text-6: #333333;
  --new-text-7: #1F1F1F;
  --new-text-8: #141414;
  --new-shadow-1: 0 3px 6px -4px rgba(255, 255, 255, 0.12), 0 6px 16px 0 rgba(255, 255, 255, 0.08), 0 9px 28px 8px rgba(255, 255, 255, 0.05);
  --new-shadow-2: 0 8px 12px 0 rgba(255, 255, 255, 0.3);
  --new-copyright-bg: transparent;
  --left-color-1: #141414;
  --left-color-2: #1F1F1F;
  --left-color-3: #333333;
  --left-color-4: #4D4D4D;
  --left-color-5: #666666;
  --left-color-6: #999999;
  --left-color-7: #FAFAFA;
  --left-color-8: #FFFFFF;
  --left-color-9: #e8e8e8;
  --left-color-10: #333333;
  --left-text-color-1: #FFFFFF;
  --left-text-color-2: #999999;
  --left-text-color-3: #d8d8d8;
  --tw-inset-shadow: 0 0 #0000;
  --tw-inset-ring-shadow: 0 0 #0000;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0px 4px 4px 0px var(--tw-shadow-color, var(--shadow-color-1, #00000012)), 0px 4px 80px 8px var(--tw-shadow-color, var(--shadow-color-1, #0000001f)), 0px 0px 1px 0px var(--tw-shadow-color, var(--shadow-color-2, #000000aa)); }

.qtd-ai-light-mode {
  --new-grey-1: #FFFFFF;
  --new-grey-2: #FAFAFA;
  --new-grey-3: #F5F5F5;
  --new-grey-4: #E8E8E8;
  --new-grey-5: #D8D8D8;
  --new-grey-6: #333333;
  --new-grey-7: #141414;
  --new-text-1: #333333;
  --new-text-2: #333333;
  --new-text-3: #4D4D4D;
  --new-text-4: #666666;
  --new-text-5: #999999;
  --new-text-6: #FAFAFA;
  --new-text-7: #FFFFFF;
  --new-text-8: #FFFFFF;
  --new-shadow-1: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  --new-shadow-2: 0 8px 12px 0 rgba(0, 0, 0, 0.3);
  --new-copyright-bg: #F5FBFF;
  --left-color-1: #FFFFFF;
  --left-color-3: #F5F5F5;
  --left-color-4: #E8E8E8;
  --left-color-9: #e8e8e8;
  --left-color-10: #E8E8E8;
  --left-text-color-1: #333333;
  --left-text-color-2: #666666;
  --left-text-color-3: #666666; }
  .qtd-ai-light-mode \--tw-inset-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000; }

.mask {
  position: fixed;
  inset: 0;
  z-index: 2105;
  /* 遮罩不随 newTheme 反色，避免深色模式下误用浅色遮罩 */
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.maskOpen {
  opacity: 1;
  pointer-events: all; }

.modal {
  width: 1200px;
  max-width: calc(100vw - 40px);
  height: max-content;
  max-height: calc(100vh - 80px);
  background: var(--new-grey-1);
  border-radius: 20px;
  box-shadow: var(--new-shadow-2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0; }
  .modal .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid var(--new-grey-4);
    flex-shrink: 0; }
  .modal .headLeft {
    display: flex;
    flex-direction: column;
    gap: 2px; }
  .modal .title {
    font-size: 16px;
    font-weight: 800;
    color: var(--new-text-1); }
  .modal .sub {
    font-size: 12px;
    color: var(--new-text-3); }
    .modal .sub strong {
      color: var(--new-text-1);
      font-weight: 600; }
  .modal .closeBtn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--new-grey-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--new-text-4);
    cursor: pointer;
    transition: background 0.13s; }
    .modal .closeBtn:hover:not(:disabled) {
      background: var(--new-grey-4); }
    .modal .closeBtn:disabled {
      opacity: 0.45;
      cursor: not-allowed; }
  .modal .list {
    border-right: 1px solid var(--new-grey-4);
    overflow-y: auto;
    padding-top: 16px;
    padding-left: 3px;
    margin-left: -3px;
    padding-right: 16px;
    padding-bottom: 16px;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px; }
  .modal .list::-webkit-scrollbar {
    width: 3px; }
  .modal .list::-webkit-scrollbar-thumb {
    background: var(--new-grey-5);
    border-radius: 2px; }
  .modal .listItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.13s; }
    .modal .listItem:hover {
      background: var(--new-grey-3); }

.listItemActive {
  background: var(--new-grey-3);
  box-shadow: 0 0 0 1.5px var(--new-grey-5) inset;
  outline: 3px solid var(--new-grey-4); }

.maskOpen .modal {
  transform: translateY(0) scale(1);
  opacity: 1; }

.body {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  padding: 16px;
  min-height: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  position: relative; }

.thumbWrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--new-grey-4);
  background: var(--new-grey-2); }

.thumbSpin {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--new-text-7) 72%, transparent); }

.thumbProgressLayer {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none; }

.thumbFail {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, #ff4d4f 12%, var(--new-grey-1));
  color: #ff4d4f;
  font-size: 16px;
  font-weight: 800; }

.listThumb {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: cover; }

.listInfo {
  flex: 1;
  min-width: 0; }

.listName {
  font-size: 12px;
  font-weight: 600;
  color: var(--new-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.listDim {
  font-size: 10px;
  color: var(--new-text-4);
  font-family: ui-monospace, monospace;
  margin-top: 1px; }

.previewMain1 {
  background: var(--new-grey-3);
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  height: 700px;
  max-height: calc(100vh - 244px);
  justify-content: center;
  gap: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden; }

.previewHint {
  font-size: 11px;
  color: var(--new-text-3);
  margin-top: -8px;
  text-align: center; }

.previewMainContent {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center; }

.mainImgWrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.mainImgSpin {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--new-text-7) 50%, transparent); }

.mainProgressLayer {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden; }

.mainErr {
  padding: 12px 16px;
  font-size: 12px;
  color: #ff4d4f;
  text-align: center;
  line-height: 1.5; }

.mainImg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; }

.mainInfo {
  text-align: center; }

.mainName {
  font-size: 13px;
  font-weight: 700;
  color: var(--new-text-1); }

.mainDim {
  font-size: 12px;
  color: var(--new-text-4);
  font-family: ui-monospace, monospace;
  margin-top: 2px; }

.dlModeRow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap; }
  .dlModeRow.dlModeRowSingle {
    justify-content: center; }
    .dlModeRow.dlModeRowSingle .dlModePill {
      max-width: 220px; }

.dlModePill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--new-grey-4);
  background: var(--new-grey-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
  .dlModePill:hover {
    border-color: var(--new-text-5);
    background: var(--new-grey-3); }
  .dlModePill:focus-visible {
    outline: 2px solid var(--new-text-1);
    outline-offset: 2px; }

.dlModePillActive {
  border-color: var(--new-text-1);
  background: var(--new-grey-1);
  box-shadow: 0 0 0 1.5px var(--new-grey-5) inset; }

.dlModePillDim {
  font-size: 12px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--new-text-1);
  line-height: 20px; }

.dlModePillLabel {
  font-size: 11px;
  font-weight: 600;
  color: var(--new-text-4);
  line-height: 1.2; }

.dlModePillActive .dlModePillLabel {
  color: var(--new-text-2); }

.singleBtn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 14px;
  border-radius: 88px;
  border: 1px solid var(--new-grey-4);
  background: color-mix(in srgb, var(--new-text-7) 92%, transparent);
  backdrop-filter: blur(24px);
  box-shadow: var(--new-shadow-1);
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  color: var(--new-text-1);
  cursor: pointer;
  transition: border-color 0.13s, color 0.13s, box-shadow 0.13s; }
  .singleBtn .icon {
    font-size: 14px;
    line-height: 1; }
  .singleBtn:hover:not(:disabled) {
    background: var(--new-text-7);
    border-color: var(--new-text-1);
    color: var(--new-text-1);
    box-shadow: var(--new-shadow-2); }
  .singleBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed; }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--new-grey-4);
  flex-shrink: 0; }

.footHint {
  font-size: 12px;
  color: var(--new-text-3);
  line-height: 1.5;
  flex: 1;
  min-width: 0; }

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

/* 与延展抽屉线框按钮一致 */
.btnSecondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  border-radius: 88px;
  border: 1px solid var(--new-grey-4);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--new-text-1);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s; }
  .btnSecondary .icon {
    font-size: 14px;
    line-height: 1; }
  .btnSecondary:hover:not(:disabled) {
    color: var(--new-text-1);
    border-color: var(--new-text-1); }
  .btnSecondary:disabled {
    opacity: 0.45;
    cursor: not-allowed; }

/* 与 .qtd-ai-button 亮色一致 */
/* antd Spin 与按钮内图标对齐 */
.btnSpin {
  display: inline-flex !important;
  align-items: center;
  line-height: 1; }

.btnPrimary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 5px 22px;
  border-radius: 26px;
  border: none;
  background: var(--qtd-ai-light-color-6);
  color: var(--qtd-ai-text-color-0);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s; }
  .btnPrimary .icon {
    font-size: 16px;
    line-height: 1; }
  .btnPrimary:hover:not(:disabled) {
    background: var(--qtd-ai-light-color-6);
    opacity: 0.8; }
  .btnPrimary:disabled {
    opacity: 0.5;
    cursor: not-allowed; }

/* 复用 createProgress 结构，样式对齐历史记录 .img-loading（aiHistory） */
.extendDlProgress {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit; }
  .extendDlProgress .loading-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--new-grey-4);
    color: var(--new-text-3); }
    .extendDlProgress .loading-item::after {
      content: '';
      position: absolute;
      left: -150%;
      top: 0%;
      width: 200%;
      height: 100%;
      background: linear-gradient(90deg, transparent 0%, transparent 25%, var(--qtd-ai-text-color-7) 50%, transparent 75%, transparent 100%);
      animation: shine3 5s linear infinite;
      animation-fill-mode: forwards;
      z-index: 0;
      pointer-events: none; }

.extendDlProgressThumb .loading-item {
  font-size: 10px;
  gap: 2px;
  border-radius: 4px; }

.extendDlProgressThumb .progress {
  font-size: 11px;
  line-height: 1.1; }

@keyframes shine3 {
  0% {
    left: -150%; }
  100% {
    left: 100%; } }

@keyframes extendDlTurnCardBg {
  0% {
    transform: rotate(0deg); }
  25% {
    transform: rotate(90deg); }
  50% {
    transform: rotate(180deg); }
  75% {
    transform: rotate(270deg); }
  100% {
    transform: rotate(360deg); } }

@charset "UTF-8";
:root {
  --new-grey-1: #000000;
  --new-grey-2: #141414;
  --new-grey-3: #1F1F1F;
  --new-grey-4: #333333;
  --new-grey-5: #4D4D4D;
  --new-grey-6: #D8D8D8;
  --new-grey-7: #FFFFFF;
  --new-text-1: #FFFFFF;
  --new-text-2: #FAFAFA;
  --new-text-3: #999999;
  --new-text-4: #666666;
  --new-text-5: #4D4D4D;
  --new-text-6: #333333;
  --new-text-7: #1F1F1F;
  --new-text-8: #141414;
  --new-shadow-1: 0 3px 6px -4px rgba(255, 255, 255, 0.12), 0 6px 16px 0 rgba(255, 255, 255, 0.08), 0 9px 28px 8px rgba(255, 255, 255, 0.05);
  --new-shadow-2: 0 8px 12px 0 rgba(255, 255, 255, 0.3);
  --new-copyright-bg: transparent;
  --left-color-1: #141414;
  --left-color-2: #1F1F1F;
  --left-color-3: #333333;
  --left-color-4: #4D4D4D;
  --left-color-5: #666666;
  --left-color-6: #999999;
  --left-color-7: #FAFAFA;
  --left-color-8: #FFFFFF;
  --left-color-9: #e8e8e8;
  --left-color-10: #333333;
  --left-text-color-1: #FFFFFF;
  --left-text-color-2: #999999;
  --left-text-color-3: #d8d8d8;
  --tw-inset-shadow: 0 0 #0000;
  --tw-inset-ring-shadow: 0 0 #0000;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0px 4px 4px 0px var(--tw-shadow-color, var(--shadow-color-1, #00000012)), 0px 4px 80px 8px var(--tw-shadow-color, var(--shadow-color-1, #0000001f)), 0px 0px 1px 0px var(--tw-shadow-color, var(--shadow-color-2, #000000aa)); }

.qtd-ai-light-mode {
  --new-grey-1: #FFFFFF;
  --new-grey-2: #FAFAFA;
  --new-grey-3: #F5F5F5;
  --new-grey-4: #E8E8E8;
  --new-grey-5: #D8D8D8;
  --new-grey-6: #333333;
  --new-grey-7: #141414;
  --new-text-1: #333333;
  --new-text-2: #333333;
  --new-text-3: #4D4D4D;
  --new-text-4: #666666;
  --new-text-5: #999999;
  --new-text-6: #FAFAFA;
  --new-text-7: #FFFFFF;
  --new-text-8: #FFFFFF;
  --new-shadow-1: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  --new-shadow-2: 0 8px 12px 0 rgba(0, 0, 0, 0.3);
  --new-copyright-bg: #F5FBFF;
  --left-color-1: #FFFFFF;
  --left-color-3: #F5F5F5;
  --left-color-4: #E8E8E8;
  --left-color-9: #e8e8e8;
  --left-color-10: #E8E8E8;
  --left-text-color-1: #333333;
  --left-text-color-2: #666666;
  --left-text-color-3: #666666; }
  .qtd-ai-light-mode \--tw-inset-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000; }

/* 1:1 预览区最大边长 */
.extendDrawerWrap .ant-drawer-content {
  overflow: hidden;
  box-shadow: var(--new-shadow-2); }

.extendDrawerWrap .ant-drawer-wrapper-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; }

.extendDrawerWrap .ant-drawer-body {
  flex: 1;
  min-height: 0;
  overflow: hidden; }

.extendDrawer {
  z-index: 2000; }
  .extendDrawer.ant-drawer-right > .ant-drawer-content-wrapper {
    box-shadow: var(--new-shadow-2); }
  .extendDrawer .ant-drawer-mask {
    backdrop-filter: blur(24px); }
  .extendDrawer .ant-drawer-content-wrapper {
    max-width: 100vw; }

/* 页面 / 内嵌形态：无 Drawer，由父级提供高度（如 min-height: 100vh 或 flex: 1） */
.extendPageRoot {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  background: var(--new-grey-1);
  overflow: hidden; }

/* 工具详情页：底部操作栏贴视口底部，网格区预留空间避免被遮挡 */
.pageFooterFixed .gridWrap {
  padding-bottom: 96px; }

.pageFooterFixed .footer {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 120;
  margin: 0;
  background: var(--new-grey-1);
  border-top: 1px solid var(--new-grey-4);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12); }

.drawerInner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--new-grey-1); }

.header {
  flex-shrink: 0;
  padding: 16px;
  border-bottom: 1px solid var(--new-grey-4); }

.headerRow {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap; }

.titleBlock {
  min-width: 200px;
  padding-left: 12px; }
  .titleBlock .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--new-text-1);
    line-height: 22px; }
  .titleBlock .subtitle {
    font-size: 12px;
    color: var(--new-text-3);
    line-height: 20px; }

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

/* 与 aiHistory .text-box-2 .btn 一致：线框 */
.lineBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 16px;
  border-radius: 88px;
  border: 1px solid var(--new-grey-4);
  background: transparent;
  color: var(--new-text-1);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s; }
  .lineBtn .icon {
    font-size: 14px;
    line-height: 1; }
  .lineBtn:hover:not(:disabled) {
    color: var(--new-text-1);
    border-color: var(--new-text-1); }
  .lineBtn:disabled {
    opacity: 0.45;
    cursor: not-allowed; }

/* Figma search-box：整框圆角胶囊 + 右侧竖线分隔的图标区 */
.searchWrap {
  display: flex;
  align-items: stretch;
  width: 232px;
  max-width: 100%;
  border: 1px solid var(--new-grey-4);
  border-radius: 100px;
  background: var(--new-grey-1);
  overflow: hidden;
  transition: border-color 0.2s; }
  .searchWrap:focus-within:not(.searchWrapDisabled) {
    border-color: var(--new-text-1); }

.searchWrapDisabled {
  opacity: 0.45;
  pointer-events: none; }

.searchInput {
  flex: 1;
  min-width: 0;
  border: none !important; }

/* Ant Input / affix 去边框，由外层 searchWrap 描边 */
.searchInput.ant-input,
.searchInput.ant-input-affix-wrapper {
  border: 0 solid transparent !important;
  box-shadow: none !important;
  background: transparent !important; }

.searchInput.ant-input {
  padding: 8px 12px;
  height: 38px;
  font-size: 14px;
  line-height: 22px;
  color: var(--new-text-1);
  border: 0 solid transparent !important; }
  .searchInput.ant-input::placeholder {
    color: #b8b8b8; }

.searchInput.ant-input-affix-wrapper {
  padding: 0 4px 0 12px;
  min-height: 38px;
  height: 38px; }

.searchInput.ant-input-affix-wrapper .ant-input {
  padding: 8px 4px 8px 0;
  height: auto;
  border-radius: 0;
  min-height: 24px;
  font-size: 14px;
  line-height: 22px;
  background: transparent;
  color: var(--new-text-1);
  border: 0 solid transparent !important; }
  .searchInput.ant-input-affix-wrapper .ant-input::placeholder {
    color: #b8b8b8; }

.searchInput.ant-input-affix-wrapper .ant-input-suffix {
  margin-left: 4px; }

.searchIconAddon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-left: 1px solid var(--new-grey-4);
  flex-shrink: 0;
  color: var(--new-text-4);
  font-size: 14px;
  line-height: 1;
  user-select: none; }

.closeBtn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--new-text-3);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0; }
  .closeBtn:hover {
    background: var(--new-grey-3);
    color: var(--new-text-1); }

.body {
  flex: 1;
  display: flex;
  min-height: 0; }

/* Spin 包裹左侧分类 + 右侧网格，保持横向 flex 布局 */
.bodySpin {
  flex: 1;
  display: flex !important;
  min-height: 0;
  max-width: 100%; }
  .bodySpin .ant-spin-container {
    flex: 1;
    display: flex;
    min-height: 0;
    max-width: 100%; }

.sidebarUploadSpin {
  width: 100%;
  flex-shrink: 0; }
  .sidebarUploadSpin .ant-spin-container {
    width: 100%; }

/* 侧栏「已上传」态：窄宽约 200px，纵向堆叠避免左右挤 */
.sidebarUploaded {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--new-grey-4);
  background: var(--new-grey-1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset, 0 8px 20px rgba(0, 0, 0, 0.06); }

.sidebarUploadedPreview {
  position: relative;
  width: 100%;
  height: 108px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--new-grey-1);
  border: 1px solid var(--new-grey-4);
  display: flex;
  align-items: center;
  justify-content: center; }
  .sidebarUploadedPreview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px; }

.sidebarUploadedRemoveIcon {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.15s ease; }
  .sidebarUploadedRemoveIcon .icon {
    font-size: 12px;
    line-height: 1; }
  .sidebarUploadedRemoveIcon:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.62); }
  .sidebarUploadedRemoveIcon:active:not(:disabled) {
    transform: scale(0.96); }
  .sidebarUploadedRemoveIcon:disabled {
    opacity: 0.45;
    cursor: not-allowed; }
  .sidebarUploadedRemoveIcon:focus-visible {
    outline: 2px solid var(--new-text-1);
    outline-offset: 2px; }

.sidebarUploadedDims {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--new-text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  word-break: keep-all; }

/* 侧栏内与 .lineBtn 一致，全宽铺满 */
.sidebarUploadedLineBtn {
  width: 100%;
  box-sizing: border-box; }

.sidebar {
  width: 206px;
  flex-shrink: 0;
  border-right: 1px solid var(--new-grey-4);
  padding: 12px 8px;
  padding-top: 16px;
  padding-left: 0;
  display: flex;
  flex-direction: column; }
  .sidebar .catListWrap {
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow-y: auto; }

.catItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 5px 12px;
  border-radius: 24px;
  cursor: pointer;
  margin-bottom: 2px;
  font-size: 14px;
  color: var(--new-text-1);
  transition: all 0.3s var(--qtd-transition-cubic-1); }
  .catItem:hover {
    background: var(--new-grey-3); }
  .catItem.catItemActive {
    background: var(--new-grey-4);
    font-weight: 600; }

.catLeft {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0; }

.catIcon {
  font-size: 16px;
  flex-shrink: 0; }

.catName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.catCount {
  font-size: 14px;
  color: var(--new-text-3);
  flex-shrink: 0; }

.gridStepLabel {
  padding-left: 2px;
  font-size: 20px;
  font-weight: 700;
  color: var(--new-text-1);
  line-height: 28px;
  padding-bottom: 16px;
  padding-top: 16px;
  margin-left: -16px;
  padding-left: 16px;
  background: var(--new-grey-3);
  position: sticky;
  top: 0;
  z-index: 9; }
  .gridStepLabel em {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--new-text-1);
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    margin-right: 4px;
    text-align: center;
    border: 1px solid var(--new-grey-5); }

.gridWrap {
  flex: 1;
  padding: 16px;
  background: var(--new-grey-3);
  display: flex;
  flex-direction: column; }
  .gridWrap .gridStepContent {
    flex: 1;
    min-height: 0;
    overflow-y: auto; }
  .gridWrap.gridStepLabelWrap {
    padding-top: 0; }
  .gridWrap .sectionTitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--new-text-1);
    line-height: 20px;
    margin: 0 0 12px;
    padding-left: 2px; }

.sectionBlock {
  margin-bottom: 24px; }
  .sectionBlock:last-child {
    margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  width: 100%; }

.card {
  position: relative;
  border-radius: 17px;
  overflow: hidden;
  background: var(--new-grey-1);
  cursor: pointer;
  border: 1px solid var(--new-grey-4);
  transition: border-color 0.15s, box-shadow 0.15s; }
  .card:hover {
    box-shadow: var(--new-shadow-1); }

.cardSelected {
  border-color: var(--new-grey-5);
  outline: 3px solid var(--new-grey-4); }

/*
 * 外层 1:1 正方形 + 限制最大边长；内层为目标输出比例，在正方形内居中；
 * 原图 cover 居中，与裁切弹窗初始 cover 一致。
 */
.cardPreview {
  position: relative;
  width: 100%;
  max-width: 200px;
  max-height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  border-radius: 16px 16px 0 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--new-grey-3); }

.cardPreviewInner {
  position: relative;
  overflow: hidden;
  flex-shrink: 0; }

.cardPreviewInnerLandscape {
  width: 100%;
  height: auto;
  max-height: 100%; }

.cardPreviewInnerPortrait {
  width: auto;
  max-width: 100%;
  height: 100%; }

.cardPreviewImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block; }

.cardPreviewEmpty {
  position: absolute;
  inset: 0;
  background: var(--new-grey-3); }

.cardCheck {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--new-grey-4);
  background: color-mix(in srgb, var(--new-text-1) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: center; }

.cardCheckOn {
  background: var(--qtd-ai-light-color-6);
  border-color: var(--qtd-ai-light-color-6);
  font-size: 12px; }

.cardMeta {
  padding: 4px 4px;
  text-align: center; }

.cardName {
  font-size: 14px;
  font-weight: 600;
  color: var(--new-text-1);
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; }

.cardSize {
  font-size: 12px;
  color: var(--new-text-3);
  line-height: 20px; }

.customCard {
  cursor: default;
  /* 勾选在左上，避免与右上删除重叠 */ }
  .customCard .cardPreview {
    cursor: pointer;
    overflow: visible; }
  .customCard .cardCheck {
    left: 8px;
    right: auto; }

/* 与侧栏上传删除钮同形；卡片区用正值定位，避免 .cardPreview overflow 裁切 */
.customCardRemoveIcon {
  top: 6px;
  right: 6px; }

.customDims {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px; }

.customDimsReadonly {
  font-size: 12px;
  color: var(--new-text-5);
  line-height: 22px; }

.customDimSep {
  font-size: 12px;
  color: var(--new-text-4);
  user-select: none; }

.customDimInput {
  width: 64px !important;
  border-radius: 12px;
  border: 0;
  box-shadow: none !important; }
  .customDimInput .ant-input-number-input {
    text-align: center;
    font-size: 12px;
    padding: 0 4px;
    border-radius: 12px; }

.customLockBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--new-grey-3);
  color: var(--new-text-1);
  cursor: pointer;
  transition: background 0.15s; }
  .customLockBtn:hover {
    background: var(--new-grey-4); }
  .customLockBtn .icon {
    font-size: 14px; }

.footer {
  flex-shrink: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap; }

.footerInfo {
  font-size: 14px;
  color: var(--new-text-3); }
  .footerInfo strong {
    color: var(--new-text-1);
    font-weight: 600; }

.footerActions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap; }

.aiRow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--new-text-4);
  cursor: pointer;
  user-select: none; }

.aiRowInput:focus-visible + .aiRowCheck {
  outline: 2px solid var(--new-text-1);
  outline-offset: 2px; }

.aiRowDisabled {
  cursor: not-allowed;
  opacity: 0.5; }

.aiRowInput {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0; }

/* 与卡片右上角 .cardCheck 同形，footer 内为行内圆点（非 absolute） */
.aiRowCheck {
  position: static;
  top: auto;
  right: auto; }

.aiRowText {
  color: var(--new-text-1);
  font-weight: 500; }

/* Tooltip 包裹禁用主按钮时需可接收 hover */
.primaryBtnWrap {
  display: inline-flex;
  vertical-align: middle; }

/* 与 .qtd-ai-button 亮色一致（theme.scss 品牌色） */
.primaryBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 160px;
  height: 40px;
  padding: 5px 20px;
  border-radius: 26px;
  border: none;
  background: var(--qtd-ai-light-color-6);
  color: var(--qtd-ai-text-color-0);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s; }
  .primaryBtn .icon {
    font-size: 16px;
    line-height: 1; }
  .primaryBtn:hover:not(:disabled) {
    background: var(--qtd-ai-light-color-6);
    opacity: 0.92; }
  .primaryBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed; }

@charset "UTF-8";
:root {
  --new-grey-1: #000000;
  --new-grey-2: #141414;
  --new-grey-3: #1F1F1F;
  --new-grey-4: #333333;
  --new-grey-5: #4D4D4D;
  --new-grey-6: #D8D8D8;
  --new-grey-7: #FFFFFF;
  --new-text-1: #FFFFFF;
  --new-text-2: #FAFAFA;
  --new-text-3: #999999;
  --new-text-4: #666666;
  --new-text-5: #4D4D4D;
  --new-text-6: #333333;
  --new-text-7: #1F1F1F;
  --new-text-8: #141414;
  --new-shadow-1: 0 3px 6px -4px rgba(255, 255, 255, 0.12), 0 6px 16px 0 rgba(255, 255, 255, 0.08), 0 9px 28px 8px rgba(255, 255, 255, 0.05);
  --new-shadow-2: 0 8px 12px 0 rgba(255, 255, 255, 0.3);
  --new-copyright-bg: transparent;
  --left-color-1: #141414;
  --left-color-2: #1F1F1F;
  --left-color-3: #333333;
  --left-color-4: #4D4D4D;
  --left-color-5: #666666;
  --left-color-6: #999999;
  --left-color-7: #FAFAFA;
  --left-color-8: #FFFFFF;
  --left-color-9: #e8e8e8;
  --left-color-10: #333333;
  --left-text-color-1: #FFFFFF;
  --left-text-color-2: #999999;
  --left-text-color-3: #d8d8d8;
  --tw-inset-shadow: 0 0 #0000;
  --tw-inset-ring-shadow: 0 0 #0000;
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0px 4px 4px 0px var(--tw-shadow-color, var(--shadow-color-1, #00000012)), 0px 4px 80px 8px var(--tw-shadow-color, var(--shadow-color-1, #0000001f)), 0px 0px 1px 0px var(--tw-shadow-color, var(--shadow-color-2, #000000aa)); }

.qtd-ai-light-mode {
  --new-grey-1: #FFFFFF;
  --new-grey-2: #FAFAFA;
  --new-grey-3: #F5F5F5;
  --new-grey-4: #E8E8E8;
  --new-grey-5: #D8D8D8;
  --new-grey-6: #333333;
  --new-grey-7: #141414;
  --new-text-1: #333333;
  --new-text-2: #333333;
  --new-text-3: #4D4D4D;
  --new-text-4: #666666;
  --new-text-5: #999999;
  --new-text-6: #FAFAFA;
  --new-text-7: #FFFFFF;
  --new-text-8: #FFFFFF;
  --new-shadow-1: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  --new-shadow-2: 0 8px 12px 0 rgba(0, 0, 0, 0.3);
  --new-copyright-bg: #F5FBFF;
  --left-color-1: #FFFFFF;
  --left-color-3: #F5F5F5;
  --left-color-4: #E8E8E8;
  --left-color-9: #e8e8e8;
  --left-color-10: #E8E8E8;
  --left-text-color-1: #333333;
  --left-text-color-2: #666666;
  --left-text-color-3: #666666; }
  .qtd-ai-light-mode \--tw-inset-shadow {
    syntax: "*";
    inherits: false;
    initial-value: 0 0 #0000; }

/* 与 theme.scss --qtd-ai-light-color-6 一致，上传强调仅用此色及 rgba 变体 */
.pageWrap {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100vh - 140px);
  max-width: 100%;
  overflow: hidden; }

.pageSpinWrap {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 0 32px;
  flex-direction: column; }
  .pageSpinWrap .ant-spin-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column; }

.landingDecor {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 85%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 55% at 18% 12%, rgba(216, 255, 0, 0.12) 0%, transparent 55%), radial-gradient(ellipse 60% 45% at 88% 35%, rgba(216, 255, 0, 0.06) 0%, transparent 50%), linear-gradient(180deg, var(--new-grey-2) 0%, var(--new-grey-1) 42%, var(--new-grey-1) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); }

.landingDecor::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(var(--new-grey-4) 1px, transparent 1px), linear-gradient(90deg, var(--new-grey-4) 1px, transparent 1px);
  background-size: 48px 48px; }

/* 左：介绍 + 上传 · 右：分类 + 列表（与 ExtendSizeDrawer 内左右结构一致） */
.splitLayout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  padding: 8px 0 40px; }

.leftCol {
  flex: 0 0 clamp(260px, 28vw, 320px);
  min-width: 0; }

.rightCol {
  flex: 1;
  min-width: 0;
  min-height: 520px;
  display: flex;
  flex-direction: column; }

@media (max-width: 959px) {
  .splitLayout {
    flex-direction: column;
    align-items: stretch;
    gap: 20px; }
  .leftCol {
    flex: none;
    width: 100%; }
  .rightCol {
    min-height: 65vh; } }

.leftInner {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px; }

.landingStepLabel {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--new-text-1);
  line-height: 28px; }
  .landingStepLabel em {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--new-text-1);
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    margin-right: 4px;
    border: 1px solid var(--new-grey-5); }

@media (max-width: 959px) {
  .leftInner {
    position: relative;
    top: auto; } }

.extendPanel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px; }
  .extendPanel .extendPageRoot {
    background: transparent;
    overflow: unset; }
    .extendPanel .extendPageRoot .drawerInner {
      background: transparent;
      overflow: unset; }
      .extendPanel .extendPageRoot .drawerInner .body {
        overflow: unset; }
        .extendPanel .extendPageRoot .drawerInner .body .sidebar {
          padding-right: 16px;
          padding-top: 16px; }
      .extendPanel .extendPageRoot .drawerInner .ant-spin-container {
        flex-direction: row; }

.hero {
  margin-bottom: 0; }

.heroEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qtd-brand-color-5, #25c288); }

.heroEyebrowDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qtd-brand-color-6, #00b277);
  box-shadow: 0 0 12px var(--qtd-brand-color-outline-2, rgba(0, 178, 119, 0.35));
  animation: extendPulse 2.4s ease-in-out infinite; }

@keyframes extendPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1); }
  50% {
    opacity: 0.65;
    transform: scale(0.92); } }

.heroTitle {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--new-text-1); }

.heroTitleAccent {
  background: linear-gradient(120deg, var(--new-text-1) 0%, var(--qtd-brand-color-4, #4fd19d) 48%, var(--qtd-brand-color-6, #00b277) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; }

.heroLead {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--new-text-4); }

/* 侧栏内上传：不改布局，用体积、光晕与动效拉满注意力 */
.uploadZone {
  position: relative;
  z-index: 0;
  width: 100%;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(216, 255, 0, 0.65) 0%, rgba(216, 255, 0, 0.35) 38%, var(--new-grey-4) 72%, var(--new-grey-4) 100%);
  background-size: 200% 200%;
  animation: uploadBorderShift 5s ease-in-out infinite, uploadGlowPulse 2.8s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(216, 255, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 12px 32px rgba(216, 255, 0, 0.2);
  transition: box-shadow 0.35s ease, transform 0.35s ease; }

@keyframes uploadBorderShift {
  0%,
  100% {
    background-position: 0% 50%; }
  50% {
    background-position: 100% 50%; } }

@keyframes uploadGlowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(216, 255, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 12px 32px rgba(216, 255, 0, 0.2); }
  50% {
    box-shadow: 0 0 0 1px rgba(216, 255, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.2) inset, 0 12px 40px rgba(216, 255, 0, 0.38), 0 0 28px rgba(216, 255, 0, 0.28); } }

.uploadZone:hover {
  /* 悬停时暂停脉冲，避免与 hover 冲突 */
  animation: none;
  box-shadow: 0 0 0 1px rgba(216, 255, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.25) inset, 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 36px rgba(216, 255, 0, 0.35);
  transform: translateY(-2px); }

.uploadZoneInner {
  border-radius: 14px;
  background: linear-gradient(165deg, var(--new-grey-2) 0%, var(--new-grey-3) 100%);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease; }

.uploadZone:hover .uploadZoneInner {
  background: linear-gradient(165deg, var(--new-grey-3) 0%, var(--new-grey-2) 100%); }

.uploadIconWrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid #B2FF00;
  color: #B2FF00;
  box-shadow: 0 4px 14px rgba(178, 255, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: uploadIconPulse 2.4s ease-in-out infinite; }

@keyframes uploadIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(204, 255, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(204, 255, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18); } }

.uploadZone:hover .uploadIconWrap {
  animation: none;
  transform: scale(1.06); }

.uploadIconWrap .icon {
  font-size: 30px;
  line-height: 1; }

.uploadTitle {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--new-text-1); }

.uploadHint {
  margin: 0 0 18px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--new-text-5); }

.uploadCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #141414;
  background: linear-gradient(135deg, #EFFF7A 0%, #D8FF00 42%, #B2FF00 100%);
  box-shadow: 0 2px 12px rgba(216, 255, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease; }

.uploadCta:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px); }

.uploadCta:disabled {
  opacity: 0.55;
  cursor: not-allowed; }

.uploadCta .icon {
  font-size: 16px; }

.uploadedPanel {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(216, 255, 0, 0.4);
  background: var(--new-grey-2);
  box-shadow: 0 0 0 1px rgba(216, 255, 0, 0.14), 0 8px 24px rgba(0, 0, 0, 0.12); }

.uploadedThumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--new-grey-4);
  background: var(--new-grey-3); }
  .uploadedThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; }

.uploadedMeta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px; }

.uploadedDims {
  font-size: 13px;
  font-weight: 600;
  color: var(--new-text-1); }

.uploadedActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; }

.replaceBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--new-grey-4);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--new-text-1);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }

.replaceBtn:hover:not(:disabled) {
  border-color: rgba(216, 255, 0, 0.55);
  color: #D8FF00;
  background: rgba(216, 255, 0, 0.1); }

.replaceBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed; }

.replaceBtn .icon {
  font-size: 14px; }

.clearLink {
  padding: 4px 2px;
  border: none;
  background: none;
  font-size: 12px;
  color: var(--new-text-5);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px; }

.clearLink:hover:not(:disabled) {
  color: #C8E830; }

.clearLink:disabled {
  opacity: 0.45;
  cursor: not-allowed; }

.quickTips {
  margin: 0;
  padding: 0 0 0 2px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px; }

.quickTips li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--new-text-5); }

.quickTips .icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 14px;
  color: #D8FF00;
  opacity: 0.9; }

.qtd-ai-light-mode .uploadZoneInner {
  background: var(--new-grey-2); }

.qtd-ai-light-mode .uploadCta {
  color: #141414; }

.qtd-ai-light-mode .uploadedPanel {
  background: var(--new-grey-2); }

@media (prefers-reduced-motion: reduce) {
  .uploadZone,
  .uploadIconWrap {
    animation: none !important; }
  .uploadZone:hover {
    transform: none; } }

