        /* ========== 📄 智能详情页专用样式 开始 ========== */
        .detail-layout {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            padding: 20px;
        }
        /* 子分类切换 */
        .detail-sub-tabs {
            display: flex;
            gap: 8px;
            padding: 12px 16px;
            border-bottom: 1px solid #e2e8f0;
            width: 100%;
            flex-shrink: 0;
            align-items: center;
            flex-wrap: nowrap;
            overflow-x: auto;
        }
        .sub-toolbar-actions,
        .panel-top-actions {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
            white-space: nowrap;
        }
        .compact-panel-header {
            flex-wrap: nowrap;
            gap: 8px;
            overflow-x: auto;
        }
        .toolbar-btn {
            padding: 4px 10px !important;
            font-size: 11px !important;
            line-height: 1.2;
            white-space: nowrap;
        }
        .detail-sub-tab {
            flex: 0 0 auto;
            padding: 6px 16px;
            border-radius: 20px;
            border: 1px solid #e2e8f0;
            background: white;
            font-size: 13px;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
        }
        .detail-sub-tab:hover {
            border-color: #3b82f6;
            color: #3b82f6;
        }
        .detail-sub-tab.active {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }
        .detail-sub-panel {
            flex: 1;
            min-height: 0;
            padding-bottom: 16px;
        }
        /* AI自主详情图 */
        .detail-ai-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            padding: 20px;
        }
        .detail-ai-pages {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px 0;
            border-top: 1px solid #e2e8f0;
            flex-wrap: nowrap;
            overflow-x: auto;
            white-space: nowrap;
        }
        .param-required-control,
        .param-optional-control {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex: 0 0 auto;
            min-width: 0;
        }
        .param-required-control span,
        .param-optional-control span {
            color: #64748b;
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
        }
        .detail-ai-pages span {
            font-size: 13px;
            color: #64748b;
        }
        .detail-ai-pages select {
            padding: 6px 12px;
            border-radius: 6px;
            border: 1px solid #cbd5e1;
            font-size: 13px;
        }
        .detail-ai-check {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #64748b;
            font-size: 12px;
            white-space: nowrap;
        }
        .detail-ai-check input {
            width: auto;
            margin: 0;
        }
        .template-detail-panel {
            padding: 0;
        }
        .template-detail-split {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
            padding: 10px;
        }
        .template-detail-upload-group {
            border: 1px solid #e2e8f0;
            border-radius: 18px;
            background: #fff;
            overflow: hidden;
            min-width: 0;
        }
        .template-detail-head {
            min-height: 44px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-bottom: 1px solid #e2e8f0;
            background: #fafafa;
        }
        .template-detail-head strong {
            color: #111827;
            font-size: 14px;
        }
        .template-detail-head small {
            color: #64748b;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
        }
        .template-detail-head span {
            margin-left: auto;
            min-height: 24px;
            padding: 0 10px;
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            background: #f3f4f6;
            color: #475569;
            font-size: 12px;
            font-weight: 700;
        }
        .template-detail-grid {
            min-height: 260px;
            max-height: 290px;
            overflow-y: auto;
            padding: 14px;
            grid-template-columns: repeat(auto-fill, 180px);
            align-content: start;
        }
        .template-detail-options {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            padding: 0 14px 14px;
        }
        .template-mode-card {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 12px 14px 12px 42px;
            border: 1px solid #d8d2c7;
            border-radius: 16px;
            background: #f8f7f4;
            color: #243143;
            cursor: pointer;
            transition: all .18s ease;
        }
        .template-mode-card input {
            position: absolute;
            left: 14px;
            top: 15px;
        }
        .template-mode-card span {
            font-size: 14px;
            font-weight: 800;
        }
        .template-mode-card em {
            color: #7b6f60;
            font-size: 12px;
            font-style: normal;
        }
        .template-mode-card.active {
            border-color: #243143;
            background: #eef0ec;
            box-shadow: 0 8px 22px rgba(36, 49, 67, .08);
        }
        @media (max-width: 980px) {
            .template-detail-split,
            .template-detail-options {
                grid-template-columns: 1fr;
            }
        }
        .template-empty-slot {
            background: #fafafa;
            border-style: dashed;
        }
        .template-empty-slot-body {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: #64748b;
            font-size: 13px;
            font-weight: 800;
        }
        .template-match-modal {
            position: fixed;
            inset: 0;
            z-index: 100000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 14px;
            background: rgba(17, 24, 39, .42);
        }
        .template-match-modal.show {
            display: flex;
        }
        .template-match-dialog {
            width: min(1220px, 98vw);
            max-height: 97vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #d8d2c7;
            border-radius: 18px;
            background: #f7f6f2;
            box-shadow: 0 28px 80px rgba(17, 24, 39, .28);
        }
        .template-match-head,
        .template-match-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 8px 16px;
            background: #fff;
            border-bottom: 1px solid #e2e8f0;
        }
        .template-match-footer {
            border-top: 1px solid #e2e8f0;
            border-bottom: 0;
        }
        .template-match-head strong {
            display: block;
            color: #111827;
            font-size: 16px;
            font-weight: 900;
        }
        .template-match-head span,
        .template-match-footer span,
        .template-match-hint {
            color: #64748b;
            font-size: 12px;
            font-weight: 700;
        }
        .template-match-close {
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 999px;
            background: #eef0ec;
            color: #243143;
            font-weight: 900;
            cursor: pointer;
        }
        .template-match-body {
            overflow: auto;
            padding: 8px 12px;
        }
        .template-match-section {
            margin-bottom: 8px;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            background: #fff;
            overflow: hidden;
        }
        .template-match-section-head {
            min-height: 34px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 10px;
            border-bottom: 1px solid #edf0f3;
        }
        .template-match-section-head strong {
            color: #111827;
            font-size: 14px;
            font-weight: 900;
        }
        .template-match-section-head span {
            margin-right: auto;
            padding: 3px 10px;
            border-radius: 999px;
            background: #f3f4f6;
            color: #475569;
            font-size: 12px;
            font-weight: 800;
        }
        .template-match-section-head button,
        .template-match-card-actions button,
        .template-match-empty-start {
            border: 1px solid #d8d2c7;
            border-radius: 999px;
            background: #f8f7f4;
            color: #243143;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
            padding: 6px 11px;
        }
        .template-match-hint {
            padding: 6px 12px 0;
        }
        .template-match-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
            gap: 7px;
            align-content: start;
            padding: 7px 10px 9px;
            overflow: visible;
        }
        .template-match-slot-card,
        .template-match-empty-start {
            position: relative;
            width: 100%;
            height: 138px;
            border: 1px solid #d8d2c7;
            border-radius: 12px;
            background: #fff;
            overflow: hidden;
            cursor: grab;
        }
        .template-match-slot-card.drag-over {
            outline: 2px dashed #3b82f6;
            outline-offset: 2px;
        }
        .template-match-slot-card.dragging {
            opacity: .58;
            cursor: grabbing;
        }
        .template-match-slot-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .template-match-slot-index {
            position: absolute;
            left: 6px;
            top: 6px;
            z-index: 2;
            min-width: 24px;
            height: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: rgba(36, 49, 67, .9);
            color: #fff;
            font-size: 12px;
            font-weight: 900;
        }
        .template-match-slot-card .delete-btn {
            z-index: 3;
        }
        .template-match-card-actions {
            position: absolute;
            left: 6px;
            right: 6px;
            bottom: 6px;
            z-index: 2;
            display: flex;
            gap: 6px;
            justify-content: center;
            opacity: 0;
            transform: translateY(6px);
            pointer-events: none;
            transition: opacity .16s ease, transform .16s ease;
        }
        .template-match-slot-card:hover .template-match-card-actions {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        .template-match-card-actions button {
            background: rgba(255, 255, 255, .92);
            padding: 5px 9px;
        }
        .template-match-empty-body {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            background: #fafafa;
            color: #64748b;
            text-align: center;
        }
        .template-match-empty-body strong {
            color: #243143;
            font-size: 13px;
        }
        .template-match-empty-body span {
            font-size: 11px;
        }
        .template-match-empty-start {
            display: flex;
            align-items: center;
            justify-content: center;
            border-style: dashed;
            color: #64748b;
            background: #fafafa;
        }
        @media (max-width: 1080px) {
            .template-match-grid {
                grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
            }
            .template-match-slot-card,
            .template-match-empty-start {
                height: 128px;
            }
        }
        .detail-preview-zoom-overlay {
            position: fixed !important;
            inset: 0 !important;
            z-index: 2147483647 !important;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 28px;
            background: rgba(17, 24, 39, .72);
            cursor: zoom-out;
        }
        .detail-preview-zoom-overlay img {
            max-width: min(92vw, 980px);
            max-height: 92vh;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
            background: #fff;
        }
        .template-match-zoom-overlay {
            position: fixed !important;
            inset: 0 !important;
            z-index: 2147483647 !important;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            background: rgba(17, 24, 39, .88);
            cursor: zoom-out;
            isolation: isolate;
        }
        .template-match-zoom-overlay img {
            max-width: 100vw;
            max-height: 100vh;
            object-fit: contain;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
        }
        .stylist-control-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            border-top: 1px solid #e2e8f0;
            background: #fff;
            overflow: visible;
        }
        .stylist-control-pill {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 10px;
            border: 1px solid #d8e0ec;
            border-radius: 12px;
            background: #f8fafc;
        }
        .stylist-control-pill span {
            flex: 0 0 auto;
            font-size: 13px;
            font-weight: 700;
            color: #475569;
            white-space: nowrap;
        }
        .stylist-control-pill select {
            width: 100%;
            min-width: 0;
            border: 0;
            background: transparent;
            color: #0f172a;
            font-size: 13px;
            font-weight: 700;
            outline: none;
        }
        .model-clone-panel .detail-ai-grid {
            padding-bottom: 14px;
        }
        .model-clone-options {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            padding: 0 16px 12px;
            border-top: 1px solid #e2e8f0;
            background: #fff;
        }
        .model-clone-mode {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 12px 14px 12px 40px;
            border: 1px solid #d8d2c7;
            border-radius: 16px;
            background: #f8f7f4;
            color: #243143;
            cursor: pointer;
            transition: all .18s ease;
        }
        .model-clone-mode input {
            position: absolute;
            left: 14px;
            top: 15px;
        }
        .model-clone-mode span {
            font-size: 14px;
            font-weight: 800;
        }
        .model-clone-mode em {
            color: #7b6f60;
            font-size: 12px;
            font-style: normal;
        }
        .model-clone-mode.active {
            border-color: #243143;
            background: #eef0ec;
            box-shadow: 0 8px 22px rgba(36, 49, 67, .08);
        }
        .model-clone-extract-panel {
            padding: 0 16px 12px;
            border-top: 1px solid #e2e8f0;
            background: #fff;
        }
        .model-clone-extract-title {
            padding: 12px 0 10px;
            color: #243143;
            font-size: 13px;
            font-weight: 800;
        }
        .model-clone-extract-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }
        .model-clone-extract-grid label {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-height: 34px;
            padding: 7px 10px;
            border: 1px solid #d8d2c7;
            border-radius: 8px;
            background: #f8f7f4;
            color: #243143;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }
        .model-clone-custom-item span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .model-clone-custom-pack {
            display: none;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
            padding: 8px 10px;
            border: 1px solid #d8d2c7;
            border-radius: 8px;
            background: #fff;
        }
        .model-clone-custom-pack.active {
            display: inline-flex;
        }
        .model-clone-custom-pack span {
            color: #64748b;
            font-size: 12px;
            font-weight: 800;
            white-space: nowrap;
        }
        .model-clone-custom-pack input {
            min-width: 220px;
            border: 0;
            outline: none;
            font-size: 13px;
            font-weight: 700;
            color: #243143;
        }
        .model-clone-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px 0;
            background: #fff;
        }
        @media (max-width: 980px) {
            .model-clone-options {
                grid-template-columns: 1fr;
            }
            .model-clone-controls {
                flex-wrap: wrap;
            }
            .model-clone-extract-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .model-clone-custom-pack {
                width: 100%;
            }
            .model-clone-custom-pack input {
                min-width: 0;
                width: 100%;
            }
            .model-clone-controls .stylist-control-pill {
                flex-basis: 100%;
            }
        }
        .stylist-reference-row {
            display: flex;
            align-items: stretch;
            gap: 10px;
            padding: 0 16px 12px;
            background: #fff;
        }
        .stylist-reference-drop {
            flex: 1 1 0;
            min-height: 66px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            border: 1px dashed #cbd5e1;
            border-radius: 14px;
            background: #f8fafc;
            color: #64748b;
            cursor: pointer;
            transition: all .18s ease;
            overflow: hidden;
        }
        .stylist-reference-drop span {
            font-size: 12px;
            font-weight: 700;
        }
        .stylist-reference-drop strong {
            font-size: 13px;
            color: #1e293b;
        }
        .stylist-reference-drop.has-file {
            border-style: solid;
            border-color: #94a3b8;
            background-size: cover;
            background-position: center;
            color: #fff;
            box-shadow: inset 0 0 0 999px rgba(15, 23, 42, .38);
        }
        .stylist-reference-drop.drag-over {
            border-color: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
        }
        .dress-replace-panel {
            padding: 0 16px 14px;
            border-top: 1px solid #e2e8f0;
            background: #fff;
        }
        .dress-replace-main {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-top: 10px;
        }
        .dress-replace-select {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 238px;
            padding: 7px 10px;
            border: 1px solid #d8e0ec;
            border-radius: 12px;
            background: #f8fafc;
        }
        .dress-replace-select span {
            font-size: 13px;
            font-weight: 700;
            color: #475569;
            white-space: nowrap;
        }
        .dress-replace-select select {
            min-width: 0;
            border: 0;
            background: transparent;
            color: #0f172a;
            font-size: 13px;
            font-weight: 700;
            outline: none;
        }
        .dress-replace-custom {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }
        .dress-replace-custom label {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            border: 1px solid #d8e0ec;
            border-radius: 999px;
            background: #f8fafc;
            color: #475569;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            user-select: none;
        }
        .dress-replace-reference-row {
            display: flex;
            align-items: stretch;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        .dress-replace-reference-drop {
            flex: 1 1 120px;
            min-width: 120px;
            max-width: 160px;
            min-height: 66px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            border: 1px dashed #cbd5e1;
            border-radius: 14px;
            background: #f8fafc;
            color: #64748b;
            cursor: pointer;
            transition: all .18s ease;
            overflow: hidden;
        }
        .dress-replace-reference-drop span {
            font-size: 12px;
            font-weight: 700;
        }
        .dress-replace-reference-drop strong {
            font-size: 13px;
            color: #1e293b;
        }
        .dress-replace-reference-drop.has-file {
            border-style: solid;
            border-color: #94a3b8;
            background-size: cover;
            background-position: center;
            color: #fff;
            box-shadow: inset 0 0 0 999px rgba(15, 23, 42, .38);
        }
        .dress-replace-reference-drop.drag-over {
            border-color: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
        }
        .dress-replace-hover-preview {
            position: fixed;
            z-index: 99999;
            width: min(240px, 42vw);
            max-height: 360px;
            padding: 6px;
            border-radius: 12px;
            background: #fff;
            border: 1px solid rgba(15, 23, 42, .16);
            box-shadow: 0 18px 45px rgba(15, 23, 42, .26);
            pointer-events: none;
        }
        .dress-replace-hover-preview img {
            display: block;
            width: 100%;
            max-height: 348px;
            object-fit: contain;
            border-radius: 8px;
            background: #f8fafc;
        }
        .flat-img-toolbar-row {
            gap: 10px;
            padding: 10px 16px;
        }
        .flat-img-bottom-params {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border-top: 1px solid #e2e8f0;
            flex-wrap: nowrap;
            overflow-x: hidden;
            white-space: nowrap;
        }
        .flat-img-bottom-params select {
            flex: 1 1 auto;
            min-width: 0;
            max-width: 150px;
            padding: 6px 12px;
            border-radius: 8px;
            border: 1px solid #cbd5e1;
            background: #fff;
            color: #0f172a;
            font-size: 13px;
            outline: none;
        }
        .flat-img-bottom-params select:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14);
        }
        .flat-progress-glass {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.28);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #0f172a;
            font-size: 13px;
            font-weight: 700;
            pointer-events: none;
        }
        .flat-progress-glass small {
            max-width: 86%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #475569;
            font-size: 11px;
            font-weight: 500;
        }
        .crop-template-side {
            flex: 1.2;
            display: flex;
            flex-direction: column;
            gap: 12px;
            min-width: 0;
        }
        .crop-template-side .preset-grid {
            flex: 1 1 auto;
            width: 100%;
        }
        .crop-background-control {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
            width: 100%;
            padding: 10px;
            border: 1px solid #d8e0ec;
            border-radius: 12px;
            background: #f8fafc;
        }
        .crop-background-control span {
            flex: 0 0 auto;
            font-size: 13px;
            font-weight: 700;
            color: #475569;
            white-space: nowrap;
        }
        .crop-background-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        .crop-background-option {
            min-height: 34px;
            border: 1px solid #d8e0ec;
            border-radius: 10px;
            background: #fff;
            color: #475569;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all .18s ease;
        }
        .crop-background-option:hover {
            border-color: #94a3b8;
            transform: translateY(-1px);
        }
        .crop-background-option.active {
            border-color: #2563eb;
            background: #2563eb;
            color: #fff;
            box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
        }
        .flat-result-actions {
            justify-content: space-between;
            gap: 8px;
            padding: 8px 10px;
        }
        .flat-result-actions .action-btn {
            flex: 1;
            padding-left: 8px;
            padding-right: 8px;
            white-space: nowrap;
        }
        /* AI套版详情图 */
        .detail-template-section {
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding: 16px;
        }
        .detail-template-block {
            flex: 1;
        }
        .detail-template-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }
        .detail-preview-section {
            flex: 1.5;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .detail-preview-box {
            aspect-ratio: 3 / 4;
            background: #f8fafc;
            border-radius: 16px;
            border: 2px dashed #e2e8f0;
            overflow: hidden;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .detail-preview-box.has-image {
            border-style: solid;
            border-color: #e9ecf0;
        }
        .detail-preview-box img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: white;
        }
        .detail-preview-placeholder {
            text-align: center;
            color: #94a3b8;
        }
        .detail-preview-placeholder .icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .detail-color-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .color-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            background: #f8fafc;
            border-radius: 12px;
        }
        .color-item label {
            font-size: 13px;
            color: #475569;
            min-width: 80px;
        }
        .color-item input[type="color"] {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            padding: 0;
        }
        .color-item input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 2px;
        }
        .color-item input[type="color"]::-webkit-color-swatch {
            border-radius: 6px;
            border: 1px solid #e2e8f0;
        }
        .color-item .color-value {
            font-size: 12px;
            color: #64748b;
            font-family: monospace;
        }
        .color-item.locked {
            opacity: 0.5;
        }
        .color-item.locked input {
            cursor: not-allowed;
        }
        .detail-ai-plan-btn {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }
        .detail-ai-plan-btn:hover { background: linear-gradient(135deg, #059669, #047857); }
        .detail-ai-plan-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* 按钮行：AI规划和我要修改平齐 */
        .detail-action-row {
            display: flex;
            gap: 10px;
            flex-basis: 100%;
            margin-top: 12px;
        }
        .detail-action-row .detail-ai-plan-btn {
            flex: 1;
        }
        .detail-action-row .detail-modify-btn {
            flex: 1;
        }

        /* 详情页修改按钮 */
        .detail-modify-btn {
            background: white;
            color: #ef4444;
            border: 1px solid #ef4444;
            border-radius: 30px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .detail-modify-btn:hover { background: #fef2f2; }
        .detail-confirm-btn {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .detail-confirm-btn:hover { opacity: 0.9; }
        .detail-cancel-btn {
            background: #f1f5f9;
            color: #64748b;
            border: none;
            border-radius: 30px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .detail-cancel-btn:hover { background: #e2e8f0; }

        /* 详情页预览区计时器 */
        .detail-preview-box .progress-timer {
            position: absolute;
            bottom: 12px;
            left: 12px;
            background: rgba(0,0,0,0.7);
            border-radius: 20px;
            padding: 6px 12px;
            font-size: 12px;
            font-family: monospace;
            color: #4ade80;
            z-index: 10;
        }

        /* 详情页文案编辑区 */
        .detail-copy-editor {
            margin-top: 16px;
            padding: 16px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e9ecf0;
        }
        .copy-editor-row {
            margin-bottom: 12px;
        }
        .copy-editor-row:last-child {
            margin-bottom: 0;
        }
        .copy-editor-row label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: #475569;
            margin-bottom: 6px;
        }
        .copy-editor-row input[type="text"],
        .copy-editor-row textarea,
        .copy-editor-row select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 13px;
            background: white;
            transition: border-color 0.2s;
        }
        .copy-editor-row input[type="text"]:focus,
        .copy-editor-row textarea:focus,
        .copy-editor-row select:focus {
            outline: none;
            border-color: #3b82f6;
        }
        .copy-editor-row textarea {
            resize: vertical;
            min-height: 60px;
            font-family: inherit;
        }
        .copy-editor-row select {
            cursor: pointer;
        }

        .detail-test-panel {
            padding: 14px;
        }
        .detail-test-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 14px;
        }
        .detail-test-card {
            border: 1px solid #e4e7ec;
            border-radius: 8px;
            background: #fff;
            padding: 14px;
        }
        .detail-test-head,
        .detail-test-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
        }
        .detail-test-head strong {
            color: #243044;
            font-size: 15px;
        }
        .detail-test-head span {
            color: #64748b;
            font-size: 12px;
        }
        .detail-test-upload {
            border: 1px dashed #c9c1b5;
            border-radius: 8px;
            min-height: 118px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: #39465a;
            cursor: pointer;
            background: #fbfaf8;
        }
        .detail-test-upload.drag-over {
            border-color: #3b82f6;
            background: #eff6ff;
        }
        .detail-test-upload small {
            color: #7a8798;
            font-size: 12px;
        }
        .detail-test-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
            gap: 10px;
            margin-top: 12px;
        }
        .detail-test-file {
            position: relative;
            height: 118px;
            border: 1px solid #e4e7ec;
            border-radius: 8px;
            overflow: hidden;
            background: #f8fafc;
            cursor: pointer;
            user-select: none;
        }
        .detail-test-file.selected {
            outline: 2px solid #1f2d40;
        }
        .detail-test-file.dragging {
            opacity: .45;
        }
        .detail-test-file.drop-before::before,
        .detail-test-file.drop-after::after {
            content: "";
            position: absolute;
            top: 6px;
            bottom: 6px;
            width: 3px;
            border-radius: 999px;
            background: #3b82f6;
            z-index: 6;
        }
        .detail-test-file.drop-before::before {
            left: 4px;
        }
        .detail-test-file.drop-after::after {
            right: 4px;
        }
        .detail-test-file img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .detail-test-remove-btn {
            position: absolute;
            right: 6px;
            top: 6px;
            width: 24px;
            height: 24px;
            border: 0;
            border-radius: 50%;
            background: rgba(31,45,64,.85);
            color: #fff;
            cursor: pointer;
        }
        .detail-test-move-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 32px;
            border: 0;
            border-radius: 999px;
            background: rgba(31,45,64,.78);
            color: #fff;
            font-size: 18px;
            line-height: 1;
            cursor: pointer;
            opacity: 0;
            transition: opacity .15s ease, background .15s ease;
            z-index: 5;
        }
        .detail-test-file:hover .detail-test-move-btn {
            opacity: 1;
        }
        .detail-test-move-btn:hover {
            background: rgba(31,45,64,.94);
        }
        .detail-test-move-btn:disabled {
            display: none;
        }
        .detail-test-move-btn.move-left {
            left: 6px;
        }
        .detail-test-move-btn.move-right {
            right: 6px;
            top: calc(50% + 28px);
        }
        .detail-test-file span {
            position: absolute;
            left: 6px;
            bottom: 6px;
            padding: 2px 6px;
            border-radius: 999px;
            background: rgba(255,255,255,.9);
            color: #334155;
            font-size: 11px;
        }
        .detail-test-controls {
            flex-wrap: wrap;
            justify-content: flex-start;
        }
        .detail-test-controls label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #475569;
            font-size: 13px;
        }
        .detail-test-controls .detail-test-toggle {
            margin-left: 10px;
            padding: 7px 12px;
            border: 1px solid #d8dde6;
            border-radius: 999px;
            background: #fff;
            color: #243044;
            cursor: pointer;
            user-select: none;
        }
        .detail-test-toggle input {
            width: 15px;
            height: 15px;
            accent-color: #243044;
            cursor: pointer;
        }
        .detail-test-toggle:has(input:checked) {
            border-color: #243044;
            background: #243044;
            color: #fff;
        }
        .detail-test-controls select,
        .detail-test-plan-row select,
        .detail-test-plan-row input {
            border: 1px solid #d8dde6;
            border-radius: 7px;
            padding: 7px 9px;
            background: #fff;
            color: #243044;
        }
        .detail-test-system {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px;
            border-radius: 8px;
            background: #f8fafc;
            color: #64748b;
            font-size: 12px;
            margin-bottom: 12px;
        }
        .detail-test-system span {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 1px solid #d8dde6;
            flex: 0 0 auto;
        }
        .detail-test-system em {
            font-style: normal;
            line-height: 1.4;
        }
        .detail-test-direct-note {
            padding: 12px;
            border: 1px solid #edf0f4;
            border-radius: 8px;
            background: #fff;
            color: #475569;
            font-size: 12px;
            line-height: 1.7;
        }
        .detail-test-style-board {
            position: relative;
            margin-top: 12px;
            border: 1px solid #e4e7ec;
            border-radius: 8px;
            overflow: hidden;
            background: #f8fafc;
            aspect-ratio: 4 / 3;
        }
        .detail-test-style-board img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }
        .detail-test-style-board span {
            position: absolute;
            left: 8px;
            bottom: 8px;
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(31,45,64,.86);
            color: #fff;
            font-size: 11px;
        }
        .detail-test-style-board.compact {
            aspect-ratio: 2 / 1;
        }
        .detail-test-style-options {
            margin-top: 12px;
            border: 1px solid #e4e7ec;
            border-radius: 8px;
            background: #fff;
            padding: 12px;
        }
        .detail-test-style-options-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
        }
        .detail-test-style-options-head strong {
            color: #243044;
            font-size: 13px;
        }
        .detail-test-style-options-head span {
            color: #64748b;
            font-size: 12px;
        }
        .detail-test-style-option-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }
        .detail-test-style-option {
            position: relative;
            min-width: 0;
            border: 1px solid #e4e7ec;
            border-radius: 8px;
            background: #f8fafc;
            padding: 0;
            overflow: hidden;
            cursor: pointer;
            aspect-ratio: 3 / 4;
            transition: border-color .18s ease, box-shadow .18s ease;
        }
        .detail-test-style-option:hover {
            border-color: #9aa6b6;
        }
        .detail-test-style-option.active {
            border-color: #243044;
            box-shadow: 0 0 0 2px rgba(36,48,68,.12);
        }
        .detail-test-style-option img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .detail-test-style-option span {
            position: absolute;
            left: 7px;
            right: 7px;
            bottom: 7px;
            min-height: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 3px 7px;
            border-radius: 999px;
            background: rgba(255,255,255,.92);
            color: #243044;
            font-size: 11px;
            font-weight: 800;
            white-space: nowrap;
        }
        .detail-test-style-option.active span {
            background: rgba(36,48,68,.92);
            color: #fff;
        }
        @media (max-width: 720px) {
            .detail-test-style-option-grid {
                grid-template-columns: repeat(3, minmax(96px, 1fr));
                overflow-x: auto;
            }
        }
        .detail-test-pages {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .detail-test-plan-row {
            display: grid;
            grid-template-columns: minmax(110px, 1fr) auto auto minmax(90px, 120px);
            gap: 8px;
            align-items: center;
            padding: 10px;
            border: 1px solid #edf0f4;
            border-radius: 8px;
            background: #fff;
        }
        .detail-test-plan-row strong {
            font-size: 13px;
            color: #243044;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .detail-test-plan-row label {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #64748b;
            font-size: 12px;
        }
        .detail-test-render {
            position: relative;
            width: 900px;
            height: 1200px;
            overflow: hidden;
            background: var(--test-bg);
            color: var(--test-text);
            display: grid;
            padding: 72px;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", Arial, sans-serif;
        }
        .detail-test-render.center {
            grid-template-rows: 1fr auto;
            align-items: center;
        }
        .detail-test-render.left,
        .detail-test-render.right {
            grid-template-columns: 34% 1fr;
            gap: 44px;
            align-items: center;
        }
        .detail-test-render.right {
            grid-template-columns: 1fr 34%;
        }
        .detail-test-render.top {
            grid-template-rows: 1fr auto;
            gap: 32px;
        }
        .detail-test-art {
            width: 100%;
            height: 100%;
            min-height: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,.34);
            border-radius: 8px;
        }
        .detail-test-art img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            filter: drop-shadow(0 22px 32px rgba(31,45,64,.16));
        }
        .detail-test-copy {
            align-self: center;
            border-left: 3px solid var(--test-accent);
            padding: 18px 0 18px 22px;
        }
        .detail-test-render.center .detail-test-copy,
        .detail-test-render.top .detail-test-copy {
            align-self: auto;
            justify-self: center;
            text-align: center;
            border-left: 0;
            border-top: 3px solid var(--test-accent);
            padding: 18px 30px 0;
        }
        .detail-test-copy h3 {
            margin: 0 0 10px;
            color: var(--test-text);
            font-size: 54px;
            line-height: 1.08;
            font-weight: 800;
            letter-spacing: 0;
        }
        .detail-test-copy h3::first-letter {
            color: var(--test-accent);
        }
        .detail-test-copy p {
            margin: 0;
            color: #697487;
            font-size: 22px;
            line-height: 1.5;
        }
        .detail-test-mark {
            position: absolute;
            left: 26px;
            bottom: 22px;
            color: rgba(47,52,58,.5);
            font-size: 18px;
        }
        .detail-test-capture {
            position: fixed;
            left: -99999px;
            top: 0;
            width: 900px;
            height: 1200px;
        }

        .summary-workspace {
            max-width: 1420px;
            margin: 0 auto 32px;
            padding: 0 24px 24px;
        }
        .summary-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            background: #fff;
            border: 1px solid #e4e7ec;
            border-radius: 8px;
            padding: 18px 20px;
            margin-bottom: 14px;
        }
        .summary-header h2 {
            margin: 0 0 4px;
            color: #243044;
            font-size: 22px;
            letter-spacing: 0;
        }
        .summary-header p {
            margin: 0;
            color: #64748b;
            font-size: 13px;
        }
        .summary-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .summary-actions span {
            padding: 6px 10px;
            border-radius: 999px;
            background: #f1f5f9;
            color: #334155;
            font-size: 12px;
        }
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 14px;
        }
        .summary-empty {
            grid-column: 1 / -1;
            min-height: 260px;
            border: 1px dashed #c9c1b5;
            border-radius: 8px;
            background: #fbfaf8;
            color: #7a8798;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 24px;
        }
        .summary-card {
            position: relative;
            border: 1px solid #e4e7ec;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
            min-height: 260px;
            display: flex;
            flex-direction: column;
            transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
        }
        .summary-card.selected,
        .summary-card:has(.checkbox-area input:checked) {
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22);
        }
        .summary-card:hover {
            transform: translateY(-2px);
            border-color: #cfd6df;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
        }
        .summary-image-wrap {
            position: relative;
            overflow: hidden;
            flex: 0 0 auto;
        }
        .summary-card img {
            width: 100%;
            aspect-ratio: 3 / 4;
            object-fit: cover;
            background: #f8fafc;
            display: block;
            cursor: zoom-in;
        }
        .summary-hover-actions {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 6;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            background: rgba(255, 255, 255, 0.94);
            border-top: 1px solid rgba(226, 232, 240, 0.92);
            transform: translateY(100%);
            opacity: 0;
            transition: transform .16s ease, opacity .16s ease;
        }
        .summary-card:hover .summary-hover-actions {
            transform: translateY(0);
            opacity: 1;
        }
        .summary-hover-actions button {
            min-height: 34px;
            border: 0;
            border-right: 1px solid #edf0f4;
            background: transparent;
            color: #243044;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }
        .summary-hover-actions button:last-child {
            border-right: 0;
        }
        .summary-hover-actions button:hover {
            background: #f8fafc;
        }
        .summary-card .checkbox-area {
            top: 10px;
            left: 10px;
            z-index: 5;
        }
        .summary-card .delete-btn {
            top: 10px;
            right: 10px;
            z-index: 5;
        }
        .summary-card-info {
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-height: 76px;
        }
        .summary-card-info strong {
            color: #243044;
            font-size: 13px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .summary-card-info span,
        .summary-card-info em {
            color: #64748b;
            font-size: 11px;
            font-style: normal;
        }

.detail-original-direct-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-original-template-area {
    min-height: 280px;
    border: 1px dashed #d2c7b8;
    border-radius: 12px;
    background: #fffdf9;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-original-template-empty {
    width: 100%;
    min-height: 240px;
    border: 0;
    background: transparent;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detail-original-template-empty:hover .icon {
    transform: scale(1.06);
    color: #1f2d40;
}

.detail-original-template-main-btn {
    width: 100%;
    height: 100%;
    min-height: 240px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detail-original-template-main-btn strong {
    color: #1f2d40;
    font-size: 17px;
}

.detail-original-template-main-btn span {
    color: #64748b;
    font-size: 13px;
}

.detail-original-template-main-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.detail-original-template-main-btn:not(:disabled):hover .icon {
    background: #1f2d40;
    color: #fff;
}

.detail-original-template-empty .icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #eee9df;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #8a96a8;
}

.detail-original-template-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.detail-original-template-card {
    border: 2px solid #ddd6cc;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
}

.detail-original-template-card.active {
    border-color: #1f2d40;
    box-shadow: 0 0 0 2px rgba(31, 45, 64, 0.14);
}

.detail-original-template-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-original-template-card span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(31, 45, 64, 0.88);
    color: #fff;
    font-size: 12px;
}

.detail-original-template-delete {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(31, 45, 64, 0.88);
    color: #fff;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 17px;
    line-height: 1;
    z-index: 2;
}

.detail-original-template-delete:hover {
    background: rgba(185, 28, 28, 0.95);
}

.detail-original-template-busy-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.detail-original-template-busy-card {
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f1eb;
    border: 2px solid #ddd6cc;
}

.detail-original-template-busy-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(10px);
    transform: scale(1.04);
    opacity: 0.78;
}

.detail-original-busy-glass {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1f2d40;
    text-align: center;
    padding: 20px;
}

.detail-original-busy-glass strong {
    font-size: 18px;
}

.detail-original-busy-glass span {
    font-size: 13px;
    color: #3c526c;
}

.detail-original-busy-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(31, 45, 64, 0.18);
    border-top-color: #1f2d40;
    animation: detailOriginalSpin 0.9s linear infinite;
}

@keyframes detailOriginalSpin {
    to { transform: rotate(360deg); }
}

.detail-original-controls-row,
.detail-original-template-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-original-controls-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #26364a;
}

.detail-original-controls-row select {
    height: 34px;
    border: 1px solid #d6cec2;
    border-radius: 7px;
    padding: 0 10px;
    background: #fff;
    color: #1f2d40;
}

.detail-original-toggle {
    border: 1px solid #d8dee8;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
}

.detail-original-template-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f8fa;
    color: #607087;
    font-size: 13px;
}

.detail-original-template-actions .toolbar-btn {
    min-width: 94px;
    flex: 0 0 auto;
}

.detail-original-template-actions span {
    min-width: 180px;
    flex: 1 1 220px;
}

.detail-original-selling-points {
    width: 100%;
    min-height: 82px;
    border: 1px solid #e0e5ee;
    border-radius: 8px;
    padding: 10px 12px;
    resize: vertical;
    color: #24364b;
    background: #fff;
}

.detail-original-note {
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    padding: 10px 12px;
    color: #38506c;
    background: #fbfcfe;
    font-size: 13px;
    line-height: 1.5;
}

.detail-original-template-primary-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #1f2d40;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.detail-original-template-primary-btn:disabled {
    background: #8d96a2;
    cursor: not-allowed;
    opacity: 0.75;
}

.detail-original-template-primary-btn:not(:disabled):hover {
    background: #172235;
}

.detail-original-compare-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(16, 24, 38, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
}

.detail-original-compare-body {
    width: min(1180px, calc(100vw - 72px));
    height: min(760px, calc(100vh - 88px));
    background: #f7f5ef;
    border-radius: 12px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.detail-original-compare-close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #1f2d40;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 1;
}

.detail-original-compare-col {
    min-width: 0;
    min-height: 0;
    background: #fff;
    border: 1px solid #ddd6cc;
    border-radius: 8px;
    padding: 34px 12px 12px;
    position: relative;
}

.detail-original-compare-col span {
    position: absolute;
    top: 10px;
    left: 14px;
    font-size: 13px;
    color: #26364a;
    font-weight: 700;
}

.detail-original-compare-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: calc(100vh - 170px);
}

@media (max-width: 760px) {
    .detail-original-template-grid,
    .detail-original-compare-body {
        grid-template-columns: 1fr;
    }

    .detail-original-compare-body {
        height: 92vh;
        overflow: auto;
    }
}
