body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; background: #f5f7fa; color: #1f2733; overflow-x: hidden; }
* { box-sizing: border-box; }
.fx-layout { display: grid; grid-template-columns: clamp(360px, 30vw, 560px) minmax(0, 1fr) 210px; gap: 14px; padding: 12px 24px 16px; height: calc(100dvh - 164px); min-height: 580px; }
.panel { min-width: 0; min-height: 0; border: 1px solid #e4e5ec; border-radius: 16px; background: #fff; }
.fx-left { display: flex; flex-direction: column; padding: 16px; overflow-y: auto; }
.fx-left h2 { font-size: 16px; margin: 0 0 4px; color: #1a1a2e; }
.fx-left .lead { font-size: 12px; line-height: 1.6; color: #929bad; margin: 0 0 12px; }
.fx-pair { display: flex; flex-shrink: 0; gap: 10px; }
.pair-col { flex: 1; min-width: 0; }
.pair-lb { font-size: 12px; color: #6b6b80; font-weight: 600; margin-bottom: 6px; }
.fx-up { width: 100%; height: auto; aspect-ratio: 9 / 16; border: 1px dashed #cfd6df; border-radius: 12px; background: #fafbfc; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center; padding: 12px; overflow: hidden; position: relative; }
.fx-up:hover { border-color: #8a5cff; background: #f7f4ff; }
.fx-up.filled { border-style: solid; border-color: #8a5cff; }
.fx-up .big { font-size: 26px; }
.fx-up .t { font-size: 12px; color: #5b6473; margin-top: 8px; }
.fx-up .sub { font-size: 10px; color: #a2acbd; margin-top: 5px; overflow-wrap: anywhere; }
.fx-up img, .fx-up video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; background: #f4f4f7; }
.fx-up .clr { position: absolute; top: 6px; right: 6px; z-index: 3; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 22px; display: none; }
.fx-up.filled .clr { display: block; }
.fx-workspace { display: flex; flex-direction: column; padding: 12px 16px 16px; background: #f8f8fb; overflow: hidden; }
.workspace-tabs { display: flex; align-items: center; gap: 24px; flex: none; margin-bottom: 12px; }
.workspace-tab { position: relative; border: 0; background: transparent; padding: 6px 0 12px; color: #777b89; font: inherit; font-size: 13px; cursor: pointer; }
.workspace-tab.on { font-weight: 600; color: #191a27; }
.workspace-tab.on::after { content: ''; position: absolute; height: 2px; width: 22px; background: #191a27; border-radius: 2px; left: 50%; bottom: 0; transform: translateX(-50%); }
.workspace-view { flex: 1; min-height: 0; min-width: 0; }
.workspace-view[hidden] { display: none !important; }
.examples-view { display: flex; flex-direction: column; }
.result-view { overflow: auto; scroll-margin-top: 80px; }
.result-content { min-height: 100%; display: flex; flex-direction: column; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: auto 0 12px; padding-top: 8px; }
.result-action { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dddfe7; border-radius: 9px; background: #fff; padding: 8px 14px; color: #3f4052; text-decoration: none; font: inherit; font-size: 12px; cursor: pointer; }
.result-action.primary { border-color: #8a5cff; background: #8a5cff; color: #fff; }
.result-action.on { border-color: #8a5cff; color: #7c43f4; background: #f4efff; }
.result-stage { display: flex; flex: 1; align-items: stretch; justify-content: center; min-height: 240px; max-height: calc(100dvh - 330px); background: #17171f; border-radius: 12px; overflow: hidden; }
.result-stage video { display: block; width: 100%; min-width: 0; max-height: calc(100dvh - 330px); object-fit: contain; }
.compare-video { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.compare-video + .compare-video { border-left: 1px solid #3b3b45; }
.compare-video span { color: #e4e4ed; font-size: 12px; text-align: center; padding: 8px; background: #22222d; }
.compare-video video { flex: 1; min-height: 0; }
.result-details { padding: 13px 4px; text-align: center; color: #8d94a5; font-size: 12px; line-height: 1.8; }
.result-state { flex: 1; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; color: #929bad; }
.result-state strong { display: block; margin: 10px 0 6px; color: #34364a; font-size: 16px; font-weight: 600; }
.result-state p { margin: 0; font-size: 13px; line-height: 1.8; max-width: 420px; overflow-wrap: anywhere; }
.result-state .spin { width: 32px; height: 32px; border: 3px solid #e6defa; border-top-color: #8a5cff; border-radius: 50%; animation: fxspin 1s linear infinite; }
@keyframes fxspin { to { transform: rotate(360deg); } }
.fx-right { display: flex; flex-direction: column; padding: 14px 12px; background: #f8f8fb; }
.fx-rhd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.fx-rhd .t { font-size: 14px; font-weight: 600; color: #252736; }
.queue-refresh { border: 0; background: transparent; padding: 3px; color: #8d94a5; font-size: 11px; cursor: pointer; }
.fx-records { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 1px 2px 12px; }
.queue-item { flex: none; display: flex; gap: 9px; align-items: center; width: 100%; min-width: 0; text-align: left; border: 1px solid #e0e2e9; border-radius: 12px; background: #f5f5f8; padding: 9px; cursor: pointer; font: inherit; }
.queue-item:hover { background: #fff; }
.queue-item.is-active { border-color: #b9a4ea; background: #fff; box-shadow: 0 0 0 1px rgba(138,92,255,.12); }
.queue-thumb { flex: none; width: 46px; height: 58px; border-radius: 7px; object-fit: cover; background: #e9e9ef; }
.queue-thumb.model { object-fit: contain; padding: 9px; }
.queue-photo-empty[hidden] { display: none; }
.queue-photo-empty { display: flex; align-items: center; justify-content: center; font-size: 10px; text-align: center; color: #929bad; }
.queue-actions { display: flex; gap: 10px; }
.queue-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.queue-copy strong { font-size: 12px; font-weight: 600; color: #2e3042; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.queue-copy span { font-size: 11px; color: #8c95a6; }
.queue-copy .is-running { color: #8a5cff; }
.queue-copy .is-failed { color: #c76565; }
.fx-empty2 { text-align: center; color: #929bad; font-size: 12px; line-height: 1.8; padding: 28px 5px; }
.queue-login { border: 0; background: transparent; padding: 0; color: #8a5cff; cursor: pointer; font: inherit; }
@media (min-width: 1800px) { .an-card { flex-basis: calc(20% - 8px); } .fx-layout { grid-template-columns: 560px minmax(0, 1fr) 230px; } }
@media (max-width: 1200px) { .fx-layout { grid-template-columns: 340px minmax(0, 1fr); height: auto; } .fx-left { grid-row: 1 / span 2; } .fx-workspace { min-height: 620px; height: calc(100dvh - 170px); } .fx-right { grid-column: 2; max-height: 240px; } .fx-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; } .an-card { flex-basis: calc(50% - 5px); } }
@media (max-width: 800px) { .fx-layout { display: flex; flex-direction: column; padding: 10px 12px 80px; min-height: 0; } .fx-left { overflow: visible; padding: 14px; } .fx-workspace { height: 70dvh; min-height: 430px; padding: 10px 12px 12px; } .fx-right { max-height: 280px; } .fx-foot { margin-top: 12px; } .result-stage, .result-stage video { max-height: 48dvh; } .result-state { min-height: 260px; } .workspace-tabs { gap: 24px; } .queue-item { padding: 8px; } .eng-txt { gap: 5px; } .eng-txt i { font-size: 10px; } .seo-crumb { padding-left: 14px !important; } .ai-topnav { padding-left: 12px; } }
@media (max-width: 380px) { .fx-records { grid-template-columns: minmax(0, 1fr); } .fx-up { padding: 8px; } .eng-txt { flex-direction: column; align-items: flex-start; gap: 2px; } }
.fx-left { width: auto; }
.fx-right { width: auto; min-height: 0; }
.fx-rhd { padding-right: 0; }
.an-hot, .fx-grid { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; padding: 1px 3px 3px 1px; }
.hot-card, .tpl-card { flex: 0 0 calc(25% - 7.5px); width: auto; height: auto; aspect-ratio: 3 / 4; }
.fx-tabs, .fx-search { flex-shrink: 0; }
.fx-empty, .fx-empty2 { width: 100%; }
.fx-mid { flex: none; display: flex; align-items: flex-start; gap: 10px; }
.fx-mid .fx-up { width: 100%; max-width: 260px; margin: 0 auto; }
.fx-mid.dual .fx-up { flex: 1; max-width: none; width: calc(50% - 5px); }
.queue-photo-empty[hidden] { display: none; }
@media (min-width: 1800px) { .hot-card, .tpl-card { flex-basis: calc(20% - 8px); } }
@media (max-width: 1200px) { .hot-card, .tpl-card { flex-basis: calc(50% - 5px); } }

.fx-left { overflow: hidden; }
.workspace-settings { flex: 1; min-height: 0; overflow-y: auto; padding-right: 3px; }
.fx-left .fx-foot { flex: none; }
.examples-view { container-type: inline-size; }
@container (max-width: 650px) { .hot-card, .tpl-card { flex-basis: calc(33.333% - 6.667px); } }
@container (max-width: 400px) { .hot-card, .tpl-card { flex-basis: calc(50% - 5px); } }
@media (max-width: 800px) { .fx-left { overflow: visible; } .workspace-settings { flex: none; overflow: visible; padding-right: 0; } }

.fx-left .fx-up { height: auto; aspect-ratio: 9 / 16; }
.fx-left .fx-up img, .fx-left .fx-up video { max-height: none; }
