/*
=========================================================
 图片拼接工具
 image-merge.css
=========================================================
*/

/* =========================================================
   基础
========================================================= */

.image-merge-page {
    background:
        linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px),
        #f5f7fa !important;

    background-size: 28px 28px !important;
}

.wp-image-merge-container {
    width: 100%;
    max-width: 1360px;
    margin: 42px auto 80px;
    padding: 0 24px;

    color: #172033;
    font-size: 16px;
    line-height: 1.65;
    box-sizing: border-box;
}

.wp-image-merge-container *,
.wp-image-merge-container *::before,
.wp-image-merge-container *::after {
    box-sizing: border-box;
}

.wp-image-merge-container button,
.wp-image-merge-container input,
.wp-image-merge-container select {
    font: inherit;
}


/* =========================================================
   主体白色工作区
========================================================= */

.image-merge-shell {
    background: #fff;

    border: 1px solid #e5e9ef;
    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 3px 14px rgba(15, 23, 42, .045);
}


/* =========================================================
   顶部
========================================================= */

.tool-header {
    min-height: 86px;

    padding: 22px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border-bottom: 1px solid #edf0f4;
}

.tool-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 0;
}

.tool-title-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;
    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: 9px;
}

.tool-title-icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.tool-title-wrap h1 {
    margin: 0 0 3px;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: -.02em;
    color: #172033;
}

.tool-title-wrap p {
    margin: 0;

    font-size: 15px;
    line-height: 1.5;

    color: #697386;
}

.tool-status {
    display: flex;
    align-items: center;
    gap: 9px;

    flex: 0 0 auto;

    color: #667085;
    font-size: 15px;
    white-space: nowrap;
}

.tool-status strong {
    color: #1f2937;
    font-weight: 650;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #22c55e;
}

.status-divider {
    width: 1px;
    height: 17px;

    margin: 0 4px;

    background: #e3e7ed;
}


/* =========================================================
   主工作区
========================================================= */

.workspace-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(370px, .85fr);

    min-height: 670px;
}


/* =========================================================
   左侧预览
========================================================= */

.preview-panel {
    min-width: 0;
    padding: 28px;

    border-right: 1px solid #edf0f4;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 17px;
}

.panel-heading h2 {
    margin: 0 0 3px;

    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;

    color: #182235;
}

.panel-heading p {
    margin: 0;

    font-size: 15px;
    color: #727c8c;
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-top: 3px;

    white-space: nowrap;

    font-size: 14px;
    color: #7a8494;
}

.preview-info strong {
    color: #253044;
    font-size: 15px;
    font-weight: 650;
}


/* =========================================================
   预览区域
========================================================= */

.preview-box {
    position: relative;

    width: 100%;
    height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(45deg, #f1f3f6 25%, transparent 25%),
        linear-gradient(-45deg, #f1f3f6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f1f3f6 75%),
        linear-gradient(-45deg, transparent 75%, #f1f3f6 75%),
        #fafbfc;

    background-position:
        0 0,
        0 8px,
        8px -8px,
        -8px 0;

    background-size: 16px 16px;

    border: 1px solid #e4e8ee;
    border-radius: 8px;
}

.preview-empty {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #7b8492;
}

.preview-empty-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #9aa4b2;
    background: rgba(255,255,255,.86);

    border: 1px solid #e2e6eb;
    border-radius: 9px;
}

.preview-empty-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.preview-empty strong {
    display: block;

    margin-bottom: 3px;

    font-size: 17px;
    font-weight: 650;

    color: #4c5667;
}

.preview-empty span {
    font-size: 15px;
    color: #858e9d;
}

#merged-preview {
    display: none;

    max-width: calc(100% - 28px);
    max-height: calc(100% - 28px);

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow:
        0 2px 8px rgba(15,23,42,.08);
}


/* =========================================================
   缩略图区域
========================================================= */

.thumb-area {
    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid #edf0f4;
}

.thumb-area-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 11px;
}

.thumb-area-header > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.thumb-area-header strong {
    font-size: 16px;
    font-weight: 650;
    color: #273246;
}

.thumb-area-header span {
    font-size: 14px;
    color: #858e9c;
}

.thumb-tip {
    white-space: nowrap;

    font-size: 13px !important;
    color: #929baa !important;
}

.thumb-strip {
    min-height: 100px;

    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;

    padding: 9px;

    background: #fafbfc;

    border: 1px solid #e6eaf0;
    border-radius: 8px;

    scrollbar-width: thin;
}

.thumb-strip::-webkit-scrollbar {
    height: 5px;
}

.thumb-strip::-webkit-scrollbar-track {
    background: transparent;
}

.thumb-strip::-webkit-scrollbar-thumb {
    background: #cbd2dc;
    border-radius: 4px;
}

.thumb-placeholder {
    width: 100%;

    text-align: center;

    font-size: 15px;
    color: #9aa3b1;
}


/* =========================================================
   缩略图
========================================================= */

.thumb-item {
    position: relative;

    flex: 0 0 92px;
    height: 82px;

    overflow: hidden;

    background: #fff;

    border: 1px solid #dfe4eb;
    border-radius: 7px;

    cursor: grab;

    transition:
        border-color .16s ease,
        transform .16s ease;
}

.thumb-item:hover {
    border-color: #b9c3d0;
}

.thumb-item.dragging {
    opacity: .45;
    cursor: grabbing;
}

.thumb-item.drag-over {
    border-color: #2563eb;

    transform: translateY(-2px);
}

.thumb-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.thumb-badge {
    position: absolute;

    left: 5px;
    top: 5px;

    padding: 2px 6px;

    font-size: 11px;
    line-height: 1.4;

    color: #fff;
    background: #2563eb;

    border-radius: 4px;
}

.thumb-remove {
    position: absolute;

    top: 5px;
    right: 5px;

    width: 22px;
    height: 22px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 5px;

    background: rgba(15,23,42,.68);
    color: #fff;

    font-size: 16px;
    line-height: 1;

    cursor: pointer;
}

.thumb-remove:hover {
    background: #dc2626;
}


/* =========================================================
   输出设置
   保持在缩略图下面
   不使用独立卡片背景
========================================================= */

.output-inline {
    margin-top: 14px;

    padding: 13px 2px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid #edf0f4;
}

.output-inline-title {
    display: flex;
    align-items: baseline;
    gap: 9px;

    white-space: nowrap;
}

.output-inline-title strong {
    font-size: 16px;
    font-weight: 650;
    color: #273246;
}

.output-inline-title span {
    font-size: 14px;
    color: #8992a0;
}

.output-inline-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}

.output-control,
.output-quality {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
}

.output-control > span,
.output-quality > span {
    font-size: 14px;
    color: #727c8c;
}

.output-control select {
    height: 34px;

    padding: 0 30px 0 10px;

    border: 1px solid #dce1e8;
    border-radius: 6px;

    background: #fff;
    color: #293448;

    font-size: 14px;

    outline: none;
}

.output-control select:focus {
    border-color: #9bb8ee;
}

.output-quality input[type="range"] {
    width: 100px;
    height: 4px;

    accent-color: #2563eb;
}

.output-quality strong {
    min-width: 38px;

    font-size: 14px;
    font-weight: 650;

    color: #293448;
}


/* =========================================================
   右侧控制区
========================================================= */

.control-panel {
    min-width: 0;

    padding: 28px;

    background: #fff;
}


/* =========================================================
   上传区域
========================================================= */

.upload-zone {
    position: relative;

    min-height: 155px;

    padding: 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px dashed #cbd3df;
    border-radius: 8px;

    background: #fafbfc;

    cursor: pointer;

    transition:
        border-color .16s ease,
        background .16s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #7ca4e8;
    background: #f7faff;
}

.upload-zone input[type="file"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.upload-icon {
    width: 40px;
    height: 40px;

    margin-bottom: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;
    background: #edf4ff;

    border-radius: 8px;
}

.upload-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.upload-zone strong {
    margin-bottom: 2px;

    font-size: 16px;
    font-weight: 650;

    color: #273246;
}

.upload-zone span {
    font-size: 14px;
    color: #737e8e;
}

.upload-zone small {
    margin-top: 3px;

    font-size: 13px;
    color: #9aa3b0;
}


/* =========================================================
   参数区域
========================================================= */

.settings-card {
    margin-top: 18px;

    padding-top: 18px;

    border-top: 1px solid #edf0f4;
}

.settings-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 7px;
}

.settings-heading h3 {
    margin: 0;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;

    color: #263145;
}

.settings-heading p {
    margin: 2px 0 0;

    font-size: 14px;
    color: #858e9d;
}

.settings-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7c8797;
}

.settings-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}


/* =========================================================
   参数行
========================================================= */

.setting-row {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    border-bottom: 1px solid #f0f2f5;
}

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

.setting-label {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.setting-label strong {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 650;

    color: #303b4e;
}

.setting-label span {
    margin-top: 1px;

    font-size: 13px;
    line-height: 1.45;

    color: #8b94a2;
}

.setting-value {
    flex: 0 0 auto;
}


/* =========================================================
   排列按钮
========================================================= */

.direction-group {
    display: flex;
    gap: 6px;
}

.direction-group button {
    height: 34px;

    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid #dce2e9;
    border-radius: 6px;

    background: #fff;
    color: #626d7d;

    font-size: 13px;

    cursor: pointer;

    transition:
        color .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.direction-group button svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.direction-group button:hover {
    color: #2563eb;
    border-color: #aac2eb;
}

.direction-group button.active {
    color: #2563eb;
    border-color: #9bb9ea;
    background: #f3f7ff;
}


/* =========================================================
   数字输入
========================================================= */

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 7px;
}

.input-with-unit input {
    width: 70px;
    height: 34px;

    padding: 0 9px;

    border: 1px solid #dce2e9;
    border-radius: 6px;

    background: #fff;
    color: #293448;

    text-align: center;
    font-size: 15px;

    outline: none;
}

.input-with-unit input:focus {
    border-color: #9bb9ea;
}

.input-with-unit span {
    font-size: 14px;
    color: #8a94a2;
}


/* =========================================================
   颜色选择
========================================================= */

.color-picker {
    height: 34px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 3px 9px 3px 4px;

    border: 1px solid #dce2e9;
    border-radius: 6px;

    background: #fff;

    cursor: pointer;
}

.color-picker input[type="color"] {
    width: 26px;
    height: 26px;

    padding: 0;

    border: 0;
    border-radius: 4px;

    background: transparent;

    cursor: pointer;
}

.color-picker span {
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #596476;
}


/* =========================================================
   操作按钮
========================================================= */

.action-area {
    display: grid;

    grid-template-columns: 100px minmax(0, 1fr);

    gap: 9px;

    margin-top: 19px;
}

.btn {
    height: 42px;

    border-radius: 7px;

    font-size: 15px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .12s ease;
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-secondary {
    border: 1px solid #dce2e9;

    background: #fff;
    color: #596476;
}

.btn-secondary:hover {
    border-color: #c6ced9;
    background: #f8fafc;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 1px solid #2563eb;

    background: #2563eb;
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.btn-primary svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   隐私提示
========================================================= */

.privacy-tip {
    margin-top: 15px;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    padding: 11px 0 0;

    border-top: 1px solid #edf0f4;
}

.privacy-tip > svg {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    margin-top: 1px;

    fill: none;
    stroke: #5b8bdc;
    stroke-width: 1.5;
}

.privacy-tip div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.privacy-tip strong {
    font-size: 14px;
    line-height: 1.45;

    font-weight: 650;
    color: #465267;
}

.privacy-tip span {
    margin-top: 1px;

    font-size: 13px;
    line-height: 1.55;

    color: #8a94a2;
}


/* =========================================================
   Toast
========================================================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 28px;

    z-index: 99999;

    padding: 10px 16px;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, 12px);

    border: 1px solid #e0e5eb;
    border-radius: 7px;

    background: rgba(255,255,255,.97);
    color: #344054;

    box-shadow:
        0 5px 20px rgba(15,23,42,.10);

    font-size: 14px;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}

.toast.success {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.toast.error {
    color: #b42318;
    border-color: #fecaca;
    background: #fff5f5;
}


/* =========================================================
   下方信息区域
========================================================= */

.info-section {
    padding: 38px 34px;

    border-top: 1px solid #edf0f4;
}

.section-heading {
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.section-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #53647b;
    background: #f5f7fa;

    border: 1px solid #e5e9ee;
    border-radius: 8px;
}

.section-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.section-title h2 {
    margin: 0 0 3px;

    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;

    color: #202b3e;
}

.section-title p {
    margin: 0;

    font-size: 15px;
    color: #7b8594;
}


/* =========================================================
   功能特点
========================================================= */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0;

    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.feature-card {
    min-width: 0;

    padding: 23px 22px;

    border-right: 1px solid #edf0f4;
}

.feature-card:last-child {
    border-right: 0;
}

.feature-icon {
    width: 36px;
    height: 36px;

    margin-bottom: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;
}

.feature-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon.blue {
    color: #2563eb;
    background: #eff6ff;
}

.feature-icon.green {
    color: #16a34a;
    background: #f0fdf4;
}

.feature-icon.purple {
    color: #7c3aed;
    background: #f5f3ff;
}

.feature-icon.orange {
    color: #ea580c;
    background: #fff7ed;
}

.feature-card h3 {
    margin: 0 0 7px;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 650;

    color: #273246;
}

.feature-card p {
    margin: 0;

    font-size: 15px;
    line-height: 1.75;

    color: #697486;
}


/* =========================================================
   使用说明
========================================================= */

.guide-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 0;

    border-top: 1px solid #edf0f4;
}

.guide-step {
    min-width: 0;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 22px 20px;

    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.guide-step:nth-child(3n) {
    border-right: 0;
}

.step-number {
    flex: 0 0 auto;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;

    color: #2563eb;
}

.guide-step h3 {
    margin: 0 0 4px;

    font-size: 16px;
    line-height: 1.45;
    font-weight: 650;

    color: #303b4e;
}

.guide-step p {
    margin: 0;

    font-size: 14px;
    line-height: 1.7;

    color: #707b8b;
}


/* =========================================================
   参数表
========================================================= */

.parameter-table-wrap {
    overflow-x: auto;

    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.parameter-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 16px;
}

.parameter-table th,
.parameter-table td {
    padding: 15px 18px;

    text-align: left;
    vertical-align: middle;

    border-bottom: 1px solid #edf0f4;

    font-size: 16px;
    line-height: 1.65;
}

.parameter-table th {
    font-weight: 650;
    color: #344054;

    background: #fafbfc;
}

.parameter-table td {
    color: #667085;
}

.parameter-table tbody tr:last-child td {
    border-bottom: 0;
}

.parameter-table td strong {
    font-weight: 650;
    color: #303b4e;
}


/* =========================================================
   FAQ
========================================================= */

.faq-list {
    border-top: 1px solid #edf0f4;
}

.faq-item {
    border-bottom: 1px solid #edf0f4;
}

.faq-item summary {
    min-height: 58px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    list-style: none;

    cursor: pointer;

    font-size: 16px;
    font-weight: 600;

    color: #303b4e;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7d8795;
}

.faq-item summary i svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    transition: transform .18s ease;
}

.faq-item[open] summary i svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-width: 940px;

    padding: 0 42px 18px 4px;

    font-size: 15px;
    line-height: 1.8;

    color: #707b8b;
}


/* =========================================================
   底部提示
========================================================= */

.tool-bottom-note {
    min-height: 58px;

    padding: 15px 28px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-top: 1px solid #edf0f4;

    background: #fafbfc;

    font-size: 14px;
    color: #7b8594;
}

.bottom-note-icon {
    width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6f8fc7;
}

.bottom-note-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}


/* =========================================================
   响应式
========================================================= */

@media (max-width: 1100px) {

    .workspace-grid {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(330px, .9fr);
    }

    .preview-panel,
    .control-panel {
        padding: 22px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card:nth-child(2) {
        border-right: 0;
    }

    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        border-top: 1px solid #edf0f4;
    }

    .feature-card:nth-child(3) {
        border-right: 1px solid #edf0f4;
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-step:nth-child(3n) {
        border-right: 1px solid #edf0f4;
    }

    .guide-step:nth-child(2n) {
        border-right: 0;
    }
}


@media (max-width: 850px) {

    .wp-image-merge-container {
        margin-top: 25px;
        padding: 0 14px;
    }

    .tool-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .tool-status {
        width: 100%;
    }

    .workspace-grid {
        display: block;
    }

    .preview-panel {
        border-right: 0;
        border-bottom: 1px solid #edf0f4;
    }

    .control-panel {
        padding-top: 24px;
    }

    .preview-box {
        height: 340px;
    }

    .output-inline {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .output-inline-controls {
        width: 100%;
        justify-content: space-between;
    }
}


@media (max-width: 600px) {

    .wp-image-merge-container {
        margin: 15px auto 50px;
        padding: 0 9px;
    }

    .image-merge-shell {
        border-radius: 9px;
    }

    .tool-header {
        padding: 19px;
    }

    .tool-title-wrap h1 {
        font-size: 21px;
    }

    .tool-title-wrap p {
        font-size: 14px;
    }

    .tool-status {
        font-size: 14px;
    }

    .preview-panel,
    .control-panel {
        padding: 18px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .preview-box {
        height: 280px;
    }

    .thumb-area-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .thumb-area-header > div {
        flex-direction: column;
        gap: 2px;
    }

    .thumb-tip {
        white-space: normal;
    }

    .output-inline-controls {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .output-quality {
        width: 100%;
    }

    .output-quality input[type="range"] {
        flex: 1;
        width: auto;
    }

    .setting-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;

        padding: 14px 0;
    }

    .setting-value {
        width: 100%;
    }

    .direction-group {
        width: 100%;
    }

    .direction-group button {
        flex: 1;
    }

    .action-area {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid #edf0f4;
    }

    .feature-card:last-child {
        border-bottom: 0;
    }

    .guide-step,
    .guide-step:nth-child(2n),
    .guide-step:nth-child(3n) {
        border-right: 0;
    }

    .info-section {
        padding: 30px 19px;
    }

    .section-title h2 {
        font-size: 19px;
    }

    .section-title p {
        font-size: 14px;
    }

    .parameter-table {
        min-width: 680px;
    }

    .tool-bottom-note {
        padding: 14px 18px;
        text-align: center;
    }
}

/* =========================================================
   图片拼接工具 · 精细化视觉覆盖
   只优化：
   ① 右侧参数区域
   ② 下方说明区域层次
   不改变左侧主体结构
========================================================= */


/* =========================================================
   ① 右侧参数区
   整体变轻、变窄、变精致
========================================================= */

.control-panel {
    padding: 26px 27px;
}


/* 上传区稍微收紧 */

.upload-zone {
    min-height: 138px;
    padding: 20px;
    border-radius: 7px;
}

.upload-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 7px;
    border-radius: 7px;
}

.upload-icon svg {
    width: 19px;
    height: 19px;
}

.upload-zone strong {
    margin-bottom: 1px;
    font-size: 15px;
    font-weight: 600;
}

.upload-zone span {
    font-size: 13px;
}

.upload-zone small {
    margin-top: 2px;
    font-size: 12px;
}


/* =========================================================
   参数区域
========================================================= */

.settings-card {
    margin-top: 22px;
    padding-top: 19px;

    border-top: 1px solid #edf0f4;
}


/* 参数标题不再显得像一个大模块 */

.settings-heading {
    margin-bottom: 4px;
    min-height: 34px;
}

.settings-heading h3 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 650;
    color: #344054;
}

.settings-heading p {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.4;
    color: #98a1af;
}

.settings-icon {
    width: 30px;
    height: 30px;

    color: #8b95a5;
}

.settings-icon svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   参数行
   核心：降低高度、字体、边框存在感
========================================================= */

.setting-row {
    min-height: 52px;

    gap: 14px;

    border-bottom: 1px solid #f2f4f7;
}

.setting-label strong {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    color: #475467;
}

.setting-label span {
    margin-top: 1px;

    font-size: 12px;
    line-height: 1.4;

    color: #98a1af;
}

.setting-value {
    flex: 0 0 auto;
}


/* =========================================================
   排列方式
   不再像几个厚重按钮
========================================================= */

.direction-group {
    gap: 4px;
}

.direction-group button {
    height: 30px;

    padding: 0 8px;

    gap: 4px;

    border: 1px solid #e1e5eb;
    border-radius: 5px;

    background: #fff;

    color: #667085;

    font-size: 12px;
    font-weight: 500;
}

.direction-group button svg {
    width: 13px;
    height: 13px;
}

.direction-group button:hover {
    color: #2563eb;
    border-color: #bfd0ee;
    background: #fafcff;
}

.direction-group button.active {
    color: #2563eb;
    border-color: #b8cbed;
    background: #f5f8ff;
}


/* =========================================================
   数字输入
========================================================= */

.input-with-unit {
    gap: 5px;
}

.input-with-unit input {
    width: 58px;
    height: 30px;

    padding: 0 7px;

    border: 1px solid #e1e5eb;
    border-radius: 5px;

    font-size: 13px;
}

.input-with-unit span {
    font-size: 12px;
    color: #98a1af;
}


/* =========================================================
   颜色选择
========================================================= */

.color-picker {
    height: 30px;

    gap: 6px;

    padding: 2px 7px 2px 3px;

    border: 1px solid #e1e5eb;
    border-radius: 5px;
}

.color-picker input[type="color"] {
    width: 23px;
    height: 23px;

    border-radius: 4px;
}

.color-picker span {
    font-size: 11px;
    color: #667085;
}


/* =========================================================
   操作按钮
   缩一点，不再有「大按钮」感觉
========================================================= */

.action-area {
    grid-template-columns: 88px minmax(0, 1fr);

    gap: 8px;

    margin-top: 17px;
}

.btn {
    height: 38px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;
}

.btn-primary {
    gap: 6px;
}

.btn-primary svg {
    width: 16px;
    height: 16px;
}


/* =========================================================
   隐私提示
   更像底部辅助信息，而不是一个新的卡片
========================================================= */

.privacy-tip {
    margin-top: 13px;

    gap: 7px;

    padding: 10px 0 0;

    border-top: 1px solid #f0f2f5;
}

.privacy-tip > svg {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;
}

.privacy-tip strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.privacy-tip span {
    margin-top: 1px;

    font-size: 11px;
    line-height: 1.5;

    color: #98a1af;
}


/* =========================================================
   ② 上方工作区与下方说明区
   不使用灰色块
   用「留白 + 分隔」建立层级
========================================================= */


/*
   信息区不要灰背景
   让整个页面仍然保持白色
*/

.info-section {
    position: relative;

    margin-top: 0;

    padding: 52px 34px 44px;

    background: #fff;

    border-top: 1px solid #e7ebf0;
}


/*
   顶部增加一点呼吸距离
   让它不像直接接在工具区下面
*/

.info-section::before {
    content: "";

    display: block;

    width: 34px;
    height: 3px;

    margin-bottom: 22px;

    background: #dbe7fb;

    border-radius: 2px;
}


/* =========================================================
   说明区标题
========================================================= */

.section-heading {
    margin-bottom: 28px;
}

.section-title {
    gap: 11px;
}

.section-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    color: #61718a;

    background: #fff;

    border: 1px solid #e1e6ed;

    border-radius: 7px;
}

.section-icon svg {
    width: 18px;
    height: 18px;
}

.section-title h2 {
    margin: 0 0 2px;

    font-size: 19px;
    line-height: 1.4;
    font-weight: 650;

    color: #263246;
}

.section-title p {
    font-size: 13px;
    line-height: 1.5;

    color: #8993a2;
}


/* =========================================================
   功能特点
   不要灰色卡片
   改成非常轻的「分栏」
========================================================= */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;

    background: #fff;
}

.feature-card {
    padding: 22px 20px 24px;

    background: #fff;

    border-right: 1px solid #edf0f4;
}

.feature-card:last-child {
    border-right: 0;
}


/* 图标更轻 */

.feature-icon {
    width: 32px;
    height: 32px;

    margin-bottom: 11px;

    border-radius: 6px;
}

.feature-icon svg {
    width: 17px;
    height: 17px;
}


/* 标题 */

.feature-card h3 {
    margin: 0 0 5px;

    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;

    color: #344054;
}

.feature-card p {
    margin: 0;

    font-size: 13px;
    line-height: 1.7;

    color: #7b8594;
}


/* =========================================================
   使用说明
   继续白色，不制造灰色方块
========================================================= */

.guide-grid {
    background: #fff;

    border-top: 1px solid #edf0f4;
}

.guide-step {
    padding: 20px 19px;

    background: #fff;

    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.step-number {
    font-size: 12px;
    font-weight: 700;
}

.guide-step h3 {
    margin: 0 0 3px;

    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;

    color: #344054;
}

.guide-step p {
    font-size: 13px;
    line-height: 1.7;

    color: #7b8594;
}


/* =========================================================
   参数表
========================================================= */

.parameter-table-wrap {
    background: #fff;

    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.parameter-table {
    font-size: 14px;
}

.parameter-table th,
.parameter-table td {
    padding: 13px 17px;

    font-size: 14px;
    line-height: 1.6;
}

.parameter-table th {
    background: #fafbfc;
    font-weight: 600;
}

.parameter-table td {
    color: #707b8b;
}


/* =========================================================
   FAQ
========================================================= */

.faq-list {
    background: #fff;

    border-top: 1px solid #edf0f4;
}

.faq-item {
    border-bottom: 1px solid #edf0f4;
}

.faq-item summary {
    min-height: 52px;

    font-size: 14px;
    font-weight: 600;

    color: #344054;
}

.faq-answer {
    max-width: 900px;

    padding: 0 42px 17px 4px;

    font-size: 13px;
    line-height: 1.75;

    color: #7b8594;
}


/* =========================================================
   底部提示
========================================================= */

.tool-bottom-note {
    min-height: 54px;

    padding: 14px 28px;

    background: #fafbfc;

    border-top: 1px solid #edf0f4;

    font-size: 13px;
}


/* =========================================================
   右侧区域响应式
========================================================= */

@media (max-width: 1100px) {

    .control-panel {
        padding: 23px;
    }

    .setting-row {
        gap: 12px;
    }

    .direction-group button {
        padding: 0 7px;
    }

    .info-section {
        padding-left: 28px;
        padding-right: 28px;
    }
}


@media (max-width: 850px) {

    .control-panel {
        padding: 24px;
    }

    .settings-card {
        margin-top: 20px;
    }

    .setting-row {
        min-height: 50px;
    }

    .info-section {
        padding: 42px 24px 36px;
    }
}


@media (max-width: 600px) {

    .control-panel {
        padding: 18px;
    }

    .upload-zone {
        min-height: 130px;
    }

    .setting-row {
        padding: 12px 0;
    }

    .setting-label strong {
        font-size: 14px;
    }

    .setting-label span {
        font-size: 12px;
    }

    .info-section {
        padding: 38px 19px 32px;
    }

    .feature-card {
        padding: 19px 17px 21px;
    }

    .guide-step {
        padding: 18px 17px;
    }
}