/* 产品页统一样式：总览、工具体验与证件照制作。 */

/* 产品总览 */
.product-experience-page__container,
.background-make__container,
.online-make-page__container {
    width: calc(100% - 40px);
    max-width: 1180px;
    margin: 0 auto;
}

.product-experience-page {
    overflow: hidden;
    background: #f7f9fc;
}

.product-experience-eyebrow {
    margin: 0 0 14px;
    color: var(--site-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 1.3px;
}

.product-experience-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 142px;
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.product-experience-button--primary {
    color: #fff;
    background: var(--site-primary);
    box-shadow: 0 8px 18px rgba(22, 119, 255, .20);
}

.product-experience-button--primary:hover,
.product-experience-button--primary:focus {
    color: #fff;
    background: var(--site-primary-hover);
    box-shadow: 0 10px 22px rgba(22, 119, 255, .28);
    transform: translateY(-1px);
}

.product-experience-button:focus,
.product-experience-card__action:focus {
    outline: 2px solid rgba(22, 119, 255, .48);
    outline-offset: 3px;
}

.product-experience-capabilities {
    padding: 32px 0 56px;
}

.product-experience-heading { margin-bottom: 24px; }

.product-experience-heading h1 { margin: 0; color: var(--site-text); font-size: 28px; font-weight: 600; line-height: 1.4; }

.product-experience-heading p { margin: 10px 0 0; color: var(--site-text-secondary); font-size: 14px; line-height: 1.8; }

.product-experience-doc-cta h2 {
    margin: 0;
    color: #1e293b;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.35;
}

.product-experience-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-experience-card {
    display: flex;
    min-height: 306px;
    flex-direction: column;
    padding: 18px;
    background: #fff;
    border: 1px solid #e6edf6;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(32, 58, 90, .035);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.product-experience-card:hover {
    border-color: #b7d8ff;
    box-shadow: 0 14px 28px rgba(32, 89, 155, .10);
    transform: translateY(-3px);
}

.product-experience-card__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 160px;
    margin: 0 0 18px;
    padding: 14px 16px;
    overflow: hidden;
    color: #1677ff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(135deg, #e8f3ff 0%, #f7fbff 100%);
    border-radius: 8px;
}

.product-experience-card__visual span {
    position: relative;
    z-index: 1;
}

.product-experience-card__visual:before,
.product-experience-card__visual:after {
    position: absolute;
    content: '';
    border-radius: 50%;
}

.product-experience-card__visual:before {
    top: 14px;
    right: 26px;
    width: 18px;
    height: 18px;
    background: currentColor;
    opacity: .18;
}

.product-experience-card__visual:after {
    right: -14px;
    bottom: -38px;
    width: 106px;
    height: 106px;
    background: rgba(22, 119, 255, .15);
}

.product-experience-card--receipt .product-experience-card__visual,
.product-experience-card--receipt .product-experience-card__visual:after {
    color: #267e72;
    background-color: #e6f7f3;
}

.product-experience-card--receipt .product-experience-card__visual {
    background: linear-gradient(135deg, #e6f7f3 0%, #f7fcfb 100%);
}

.product-experience-card--receipt .product-experience-card__visual:after {
    background-color: rgba(38, 126, 114, .14);
}

.product-experience-card--background .product-experience-card__visual,
.product-experience-card--background .product-experience-card__visual:after {
    color: #5f63d6;
    background-color: #eef0ff;
}

.product-experience-card--background .product-experience-card__visual {
    background: linear-gradient(135deg, #eef0ff 0%, #fafaff 100%);
}

.product-experience-card--background .product-experience-card__visual:after {
    background-color: rgba(95, 99, 214, .15);
}

.product-experience-card--custom .product-experience-card__visual,
.product-experience-card--custom .product-experience-card__visual:after {
    color: #a56a1c;
    background-color: #fff5e8;
}

.product-experience-card--custom .product-experience-card__visual {
    background: linear-gradient(135deg, #fff5e8 0%, #fffbf5 100%);
}

.product-experience-card--custom .product-experience-card__visual:after {
    background-color: rgba(165, 106, 28, .14);
}

.product-experience-card--check .product-experience-card__visual,
.product-experience-card--check .product-experience-card__visual:after {
    color: #3f8c52;
    background-color: #edf9ed;
}

.product-experience-card--check .product-experience-card__visual {
    background: linear-gradient(135deg, #edf9ed 0%, #fbfffb 100%);
}

.product-experience-card--check .product-experience-card__visual:after {
    background-color: rgba(63, 140, 82, .14);
}

.product-experience-card--portrait .product-experience-card__visual,
.product-experience-card--portrait .product-experience-card__visual:after {
    color: #a65680;
    background-color: #fff0f5;
}

.product-experience-card--portrait .product-experience-card__visual {
    background: linear-gradient(135deg, #fff0f5 0%, #fff9fc 100%);
}

.product-experience-card--portrait .product-experience-card__visual:after {
    background-color: rgba(166, 86, 128, .14);
}

.product-experience-card .product-experience-card__visual--image {
    justify-content: center;
    align-items: center;
    padding: 0;
    background: #f7faff;
}

.product-experience-card__visual--image::before,
.product-experience-card__visual--image::after {
    display: none;
}

.product-experience-card__visual--image img {
    display: block;
    flex: none;
    width: 100%;
    height: 135%;
    max-height: none;
    object-fit: contain;
}

.product-experience-card--make .product-experience-card__visual--image img,
.product-experience-card--receipt .product-experience-card__visual--image img,
.product-experience-card--background .product-experience-card__visual--image img,
.product-experience-card--custom .product-experience-card__visual--image img,
.product-experience-card--check .product-experience-card__visual--image img,
.product-experience-card--colorize .product-experience-card__visual--image img,
.product-experience-card--edit .product-experience-card__visual--image img,
.product-experience-card--portrait .product-experience-card__visual--image img {
    height: 100%;
    object-fit: cover;
}

.product-experience-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.product-experience-card h2 {
    margin: 0;
    color: #263449;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.product-experience-card__description {
    margin: 9px 0 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.75;
}

.product-experience-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.product-experience-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: color .2s, background-color .2s, border-color .2s;
}

.product-experience-card__action--primary {
    color: #fff;
    background: var(--site-primary);
}

.product-experience-card__action--primary:hover,
.product-experience-card__action--primary:focus {
    color: #fff;
    background: var(--site-primary-hover);
}

.product-experience-card__action--secondary {
    color: var(--site-primary);
    background: #fff;
    border-color: #b8d7ff;
}

.product-experience-card__action--secondary:hover,
.product-experience-card__action--secondary:focus {
    color: var(--site-primary);
    background: var(--site-primary-soft);
    border-color: var(--site-primary);
}

.product-experience-doc-cta {
    padding: 0 0 80px;
}

.product-experience-doc-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 42px 48px;
    background: #edf6ff;
    border: 1px solid #d8eaff;
    border-radius: 10px;
}

.product-experience-doc-cta__inner > div > p:last-child {
    margin: 10px 0 0;
    color: #718096;
    font-size: 14px;
    line-height: 22px;
}

@media (max-width: 991px) {
    .product-experience-capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}
@media (max-width: 767px) {
    .product-experience-page__container {
        width: calc(100% - 32px);
    }

    .product-experience-eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .product-experience-button {
        flex: 1 1 138px;
        min-height: 46px;
        padding: 0 12px;
    }

    .product-experience-capabilities {
        padding: 24px 0 40px;
    }

    .product-experience-heading { margin-bottom: 20px; }

    .product-experience-heading h1 { font-size: 24px; }

    .product-experience-doc-cta h2 {
        font-size: 24px;
    }

    .product-experience-capability-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-experience-card {
        min-height: 286px;
        padding: 16px;
    }

    .product-experience-card__visual {
        flex-basis: auto;
        width: 100%;
        height: 160px;
        margin: 0 0 16px;
        padding: 12px 14px;
        font-size: 22px;
        line-height: 1;
    }

    .product-experience-card h2 {
        font-size: 17px;
    }

    .product-experience-card__description {
        font-size: 14px;
    }

    .product-experience-card__actions {
        min-height: 36px;
        padding-top: 11px;
    }

    .product-experience-card__action {
        min-height: 36px;
        padding: 0 11px;
        font-size: 12px;
    }

    .product-experience-doc-cta {
        padding-bottom: 48px;
    }

    .product-experience-doc-cta__inner {
        display: block;
        padding: 28px 22px;
    }

    .product-experience-doc-cta__inner .product-experience-button {
        width: 100%;
        margin-top: 22px;
    }

}

/* 产品工具体验页共用 */

.background-make-page [hidden],
.online-make-page [hidden] { display: none !important; }
.product-experience-page ~ .site-footer,
.background-make-page ~ .site-footer { margin-top: 0; }

.background-make__heading p { margin-top: 10px; color: var(--site-text-secondary); font-size: 14px; line-height: 1.65; }

.background-make__workspace { padding: 26px; background: #fff; border: 1px solid #e4eaf2; border-radius: 10px; box-shadow: 0 8px 22px rgba(28, 58, 96, .035); }
.product-api-key { margin: 24px 0 18px; padding: 0; border: 0; background: transparent; }
.product-api-key__row { display: grid; grid-template-columns: 110px minmax(0, 280px); align-items: center; gap: 16px; }
.product-api-key h2 { margin: 0; color: #263449; font-size: 16px; font-weight: 600; line-height: 44px; white-space: nowrap; }
.product-api-key select { width: 100%; height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--site-border); border-radius: 6px; background: #fff; color: var(--site-text); font: inherit; }
.product-api-key p { margin: 7px 0 0 126px; color: var(--site-text-secondary); font-size: 13px; line-height: 1.6; }
.product-api-key__empty a { margin-left: 4px; color: var(--site-primary); }
.product-api-action-row { display: grid; grid-template-columns: minmax(0, 406px) minmax(220px, 280px); align-items: start; justify-content: center; gap: 16px; margin-top: 24px; }
.product-api-action-row .product-api-key { min-width: 0; margin: 0; }
.product-api-action-row > .background-make__actions { grid-column: 2; min-width: 0; margin: 0; }
.product-api-action-row > .make_upd_btn { grid-column: 2; }
.product-api-action-row .background-make__action-buttons { width: 100%; }
.product-api-action-row .background-make__submit { width: 100%; min-width: 0; height: 44px; }
.image-edit__settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; }

.image-edit__field label { display: block; margin-bottom: 10px; color: var(--site-text); font-size: 14px; }

.image-edit__help { margin: 12px 0 24px; color: var(--site-text-secondary); font-size: 13px; line-height: 1.7; }
.image-edit__error { margin: -12px 0 24px; color: #cf1322; font-size: 13px; line-height: 1.7; }
.custom-photo__section-title { margin: 0; color: #263449; font-size: 20px; font-weight: 600; line-height: 32px; }
.custom-photo__settings { max-width: none; margin-top: 18px; }
.background-make__colors.custom-photo__colors { margin-top: 2px; padding-top: 24px; border-top: 1px solid #edf1f6; }
.background-make__colors { min-width: 0; margin: 0; padding: 0; border: 0; }
.background-make__colors legend { padding: 0; color: #263449; font-size: 20px; font-weight: 600; line-height: 32px; }
.background-make__color-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 26px; }
.face-make__size-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; }
.face-make__size-list .background-make__color-card { min-height: 44px; padding: 10px 16px; cursor: pointer; }
.background-make__color-option { position: relative; min-width: 0; cursor: pointer; }
.background-make__color-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.background-make__color-card { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 72px; padding: 12px; border: 1px solid #e2e9f2; border-radius: 6px; color: var(--site-text); font-size: 14px; }
.background-make__color-card > i { font-size: 26px; color: var(--site-primary); }
.background-make__color-option input:checked + .background-make__color-card { color: var(--site-primary); border-color: #8fc0ff; background: #f5f9ff; }
.background-make__color-option:hover .background-make__color-card { border-color: #8fc0ff; }
.background-make__swatch { display: inline-block; flex: none; width: 28px; height: 28px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 50%; }
.background-make__swatch--blue { background: #438edb; }
.background-make__swatch--white { background: #fff; }
.background-make__swatch--red { background: #d9001b; }
.background-make__custom { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: -10px 0 24px; color: var(--site-text-secondary); font-size: 14px; }
.background-make__custom input { width: 48px; height: 36px; padding: 3px; border: 1px solid var(--site-border); border-radius: 4px; background: #fff; cursor: pointer; }
.background-make__custom output { font: 13px Consolas, monospace; }
.background-make__panels { display: grid; grid-template-columns: 318px minmax(0, 1fr); align-items: stretch; gap: 16px; }
.background-make__panel { height: 414px; min-width: 0; overflow: hidden; border: 1px solid #e2e9f2; border-radius: 8px; }
.background-make__panel h2 { margin: 0; padding: 0 20px; color: #263449; font-size: 17px; font-weight: 600; line-height: 58px; }
.background-make__image-area { position: relative; height: 334px; margin: 0 20px 20px; background: #fbfdff; border: 1px dashed #c7d6e7; border-radius: 6px; }
.background-make__upload { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; border: 0; background: transparent; color: var(--site-text-secondary); font: inherit; font-size: 14px; cursor: pointer; }
.background-make__upload img { opacity: .7; }
.background-make__upload small { font-size: 12px; }
.background-make__original { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 12px; }
.background-make__original > img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.background-make__result { display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; text-align: center; }

.background-make__result small { color: var(--site-text-secondary); font-size: 13px; line-height: 1.8; }
.background-make__result-preview,
#background-result-preview { position: absolute; inset: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; }

.background-make__result-preview img,
#background-result-image { display: block; flex: 1 1 auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.photo-check__panel--result { height: auto; }
.photo-check__settings .image-edit__settings { grid-template-columns: minmax(0, 520px); max-width: 520px; }
.photo-check__panels { align-items: start; }

.photo-check__source .product-api-action-row { grid-template-columns: minmax(0, 1fr); }
.photo-check__source .product-api-action-row > .background-make__actions { grid-column: 1; margin: 0; }
.photo-check__source .product-api-key p { margin-left: 0; }
.photo-check__source .background-make__submit { width: 100%; }
.photo-check__result { display: block; height: auto; min-height: 334px; overflow: visible; padding: 18px; text-align: left; }
.photo-check__summary { padding: 0 2px 14px; border-bottom: 1px solid #e7edf5; }

.photo-check__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; margin-top: 16px; }
.photo-check__group { min-width: 0; overflow: hidden; border: 1px solid #e7edf5; border-radius: 6px; background: #fff; }
.photo-check__group h3 { margin: 0; padding: 11px 14px; border-bottom: 1px solid #e7edf5; background: #f6f9fd; color: #263449; font-size: 14px; font-weight: 600; line-height: 1.5; }
.photo-check__group ul { margin: 0; padding: 0 14px; list-style: none; }
.photo-check__group li { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-bottom: 1px solid #edf1f6; color: #39475b; font-size: 13px; line-height: 1.5; }

.photo-check__status { flex: 0 1 58%; color: #6b778c; font-size: 12px; font-style: normal; text-align: right; overflow-wrap: anywhere; }

.photo-check__status.is-missing { color: #8c8c8c; }
.receipt-make__settings { margin-bottom: 24px; }
.receipt-make__details { margin-top: 26px; padding-top: 24px; border-top: 1px solid #e7edf5; }
.receipt-make__settings h2 { margin: 0 0 16px; color: #263449; font-size: 20px; font-weight: 600; line-height: 32px; }
.receipt-make__settings-row { max-width: 520px; }

.receipt-make__field label { display: block; margin-bottom: 9px; color: var(--site-text); font-size: 14px; }
.receipt-make__field select { width: 100%; height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--site-border); border-radius: 6px; background: #fff; color: var(--site-text); font: inherit; font-size: 14px; }
.product-api-key select, .receipt-make__field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px; }

.receipt-make__extra-empty { margin: 16px 0 0; padding: 12px 14px; border-left: 2px solid #91caff; background: #f6f9fd; color: var(--site-text-secondary); font-size: 13px; line-height: 1.65; }
.receipt-make__extra-fields { margin-top: 20px; padding: 18px; border: 1px solid #e2e9f2; border-radius: 8px; background: #fbfdff; }
.receipt-make__extra-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }

.receipt-make__extra-heading p { margin: 0; color: var(--site-text-secondary); font-size: 12px; line-height: 1.6; }
.receipt-make__extra-heading p span { color: #cf1322; }
.receipt-make__extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.image-edit__field,
.photo-check__source,
.photo-check__group li > span,
.receipt-make__field,
.receipt-make__extra-field { min-width: 0; }
.receipt-make__extra-field--file { grid-column: 1 / -1; }
.receipt-make__extra-field label { display: block; margin-bottom: 8px; color: #39475b; font-size: 14px; line-height: 1.5; }
.receipt-make__extra-field label em { margin-left: 3px; color: #cf1322; font-size: 13px; font-style: normal; }
.receipt-make__extra-field label em.is-optional { color: var(--site-text-secondary); font-size: 12px; }
.image-edit__field input, .image-edit__field select,
.receipt-make__extra-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--site-border); border-radius: 6px; background: #fff; color: var(--site-text); font: inherit; font-size: 14px; }
.receipt-make__extra-field input[type="file"] { height: auto; min-height: 44px; padding: 8px 10px; }
.receipt-make__extra-field input:focus-visible { outline: 2px solid var(--site-primary); outline-offset: 2px; }
.image-edit__field [aria-invalid="true"],
.receipt-make__extra-field input[aria-invalid="true"] { border-color: #cf1322; }
.receipt-make__field-help { display: block; margin-top: 6px; color: var(--site-text-secondary); font-size: 12px; line-height: 1.5; }
.receipt-make__field-error { display: block; margin-top: 6px; color: #cf1322; font-size: 12px; line-height: 1.5; }
.receipt-make__progress { padding: 18px; text-align: left; }
.receipt-make__summary { padding-bottom: 14px; border-bottom: 1px solid #e7edf5; }
.photo-check__summary h3,
.receipt-make__extra-heading h3,
.receipt-make__summary h3 { margin: 0; color: #263449; font-size: 16px; font-weight: 600; line-height: 1.6; }
.photo-check__summary p,
.receipt-make__summary p { margin: 5px 0 0; color: var(--site-text-secondary); font-size: 13px; line-height: 1.65; }
.receipt-make__result-link { display: inline-block; margin-left: 8px; color: var(--site-primary); font-size: 13px; line-height: 1.6; }

.receipt-make__progress-list { margin: 14px 0 0; padding: 0; list-style: none; }
.receipt-make__progress-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 55px; padding: 0 2px; border-bottom: 1px solid #edf1f6; }
.photo-check__group li:last-child,
.receipt-make__progress-list li:last-child { border-bottom: 0; }
.receipt-make__progress-list strong { display: block; color: #39475b; font-size: 14px; font-weight: 500; line-height: 1.5; }
.receipt-make__progress-list span { display: block; margin-top: 3px; color: var(--site-text-secondary); font-size: 12px; line-height: 1.5; }
.receipt-make__progress-status { flex: none; color: #6b778c; font-size: 12px; font-style: normal; white-space: nowrap; }
.receipt-make__progress-status.is-active { color: #1677ff; }
.photo-check__status.is-pass,
.receipt-make__progress-status.is-done { color: #389e0d; }
.photo-check__status.is-fail,
.receipt-make__summary span.is-fail,
.receipt-make__progress-status.is-fail { color: #cf1322; }
.background-make__actions { margin-top: 26px; text-align: center; }
.background-make__action-buttons { display: flex; justify-content: center; gap: 12px; }
.background-make__submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 360px; max-width: 100%; height: 50px; border: 1px solid var(--site-primary); border-radius: 6px; background: var(--site-primary); color: #fff; font: inherit; font-size: 16px; text-decoration: none; box-shadow: 0 7px 16px rgba(22, 119, 255, .16); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.background-make__submit:hover, .background-make__submit:focus, .background-make__submit:active { border-color: #0958d9; background: #0958d9; color: #fff; text-decoration: none; }
.background-make__submit:disabled { border-color: #91caff; background: #91caff; cursor: wait; }
.background-make__result-preview[hidden],
.receipt-make__result-link[hidden],
.background-make__submit[hidden] { display: none; }
.background-make__submit--secondary { border-color: #d7e1ee; background: #fff; color: var(--site-primary); box-shadow: none; }
.background-make__submit--secondary:hover, .background-make__submit--secondary:focus, .background-make__submit--secondary:active { border-color: var(--site-primary); background: #f5f9ff; color: var(--site-primary); }

.background-make__actions p { margin: 12px 0 0; color: var(--site-text-secondary); font-size: 13px; line-height: 1.7; }
.background-make__feedback { min-height: 22px; }

@media (max-width: 900px) {

    .background-make__panels { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .product-api-action-row { grid-template-columns: 1fr; gap: 16px; }

    .product-api-action-row > .background-make__actions,
    .product-api-action-row > .make_upd_btn { grid-column: 1; }
}
@media (max-width: 640px) {
    .product-api-key__row { grid-template-columns: 1fr; gap: 4px; }
    .product-api-key h2 { line-height: 28px; }
    .product-api-key p { margin-left: 0; }

    .background-make__workspace { padding: 18px; }
    .background-make__color-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .background-make__color-card { gap: 6px; padding: 8px; }
    .background-make__color-card > span:last-child { white-space: nowrap; }
    .background-make__color-card > i { font-size: 20px; }
    .background-make__panel { height: 398px; }
    .background-make__image-area { height: 318px; margin-right: 14px; margin-left: 14px; }
    .background-make__panel.receipt-make__panel--progress { height: auto; }
    .background-make__image-area.receipt-make__progress { height: auto; min-height: 318px; }
    .background-make__action-buttons { flex-direction: column; gap: 10px; }
    .background-make__submit { width: 100%; }
    .background-make__custom input { min-height: 44px; }

    .image-edit__settings,
    .photo-check__groups,
    .receipt-make__extra-grid { grid-template-columns: 1fr; }
    .image-edit__field input, .image-edit__field select,
    .receipt-make__field select,
    .receipt-make__extra-field input { font-size: 16px; }
    .receipt-make__extra-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* 普通证件照制作页专属；旧通用类限定在 .online-make-page 内。 */

.online-make-page .com_flex_itm { display: flex; align-items: center; }

.online-make-page .com_flex_center { display: flex; justify-content: center; align-items: center; }

.online-make-page .cot_make { flex: 1; }

.online-make-page .com_flex_around { justify-content: space-around; }

.online-make-page .blue { background-color: #438edb; }

.online-make-page .dark_blue { background-color: #23557d; }

.online-make-page .white {
    background-color: #ffffff;
    border: 4px solid hsla(0, 0%, 73%, 0.3);
}

.online-make-page .red { background-color: #ff0000; }

.online-make-page .tint { background-color: #66b5f2; }

.online-make-page .grey {
    background-image: linear-gradient(#656a7d, #acaeb6);
    border: 4px solid #abadb7;
}

.online-make-page .gradient {
    background-image: linear-gradient(#3d8bdd, #d0e2f6);
    border: 4px solid #c8def5;
}

.online-make-page .dark_red { background-color: #95031a; }
.online-make-page .sky_blue { background-color: #28bef9; }

.online-make-page .blue,
.online-make-page .dark_blue,
.online-make-page .red,
.online-make-page .tint,
.online-make-page .dark_red,
.online-make-page .sky_blue { border: 4px solid hsla(0, 0%, 100%, 0.3); }

.online-make-page .agin_udp_btn {
    margin-bottom: 20px;
}

.online-make-page .color-select {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
}
.online-make-page .pic_main_pic,
.online-make-page .pic_main_print {
    position: relative;
}

.background-make-page,
.online-make-page {
    padding: 34px 0 72px;
    background: #f7f9fc;
    border-top: 1px solid #edf1f6;
}

.background-make-page, .background-make-page *,
.online-make-page, .online-make-page * {
    box-sizing: border-box;
}

.background-make__heading,
.online-make-page__heading {
    margin-bottom: 22px;
}

.background-make__heading h1,
.online-make-page__heading h1 {
    margin: 0;
    color: #1f2d3d;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.35;
}

.online-make-page__heading span {
    display: block;
    margin-top: 10px;
    color: #718096;
    font-size: 14px;
    line-height: 1.65;
}

.background-make__api a,
.online-make-page__heading a {
    display: inline-block;
    margin-left: 16px;
    color: var(--site-primary);
}

.online-make-page .spec_photo {
    padding: 26px !important;
    text-align: left;
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(28, 58, 96, .035);
}

.online-make-page #specPhoto {
    line-height: 32px !important;
    color: #263449 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.online-make-page .layui-row.layui-col-space14 {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 26px;
}

.online-make-page .layui-row.layui-col-space14::before,
.online-make-page .layui-row.layui-col-space14::after {
    display: none !important;
    content: none !important;
}

.online-make-page .layui-col-space14 > * {
    padding: 0 !important;
}

.online-make-page .layui-col-md2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto !important;
    min-height: 72px;
    margin: 0 !important;
    padding: 12px 10px !important;
    color: #4d5b6d;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e9f2;
    border-radius: 6px;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
    cursor: pointer;
}

.online-make-page .layui-col-md2:hover,
.online-make-page .layui-col-md2.active {
    color: #1677ff;
    background: #f5f9ff;
    border-color: #8fc0ff;
}

.online-make-page .s_item > div:first-child {
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-make-page .s_item > div:last-child {
    margin-top: 4px;
    color: #8491a3;
    font-size: 12px;
}

.online-make-page #more_item {
    align-items: center;
    gap: 5px;
    color: #fff;
    background: var(--site-primary);
    border-color: var(--site-primary);
    font-family: inherit;
}

.online-make-page #more_item:hover {
    color: #fff;
    background: #0958d9;
    border-color: #0958d9;
}

.background-make__api a:focus-visible,
.image-edit__field select:focus-visible,
.receipt-make__field select:focus-visible,
.background-make-page button:focus-visible, .background-make-page input:focus-visible, .background-make__color-option input:focus-visible + .background-make__color-card,
.online-make-page__heading a:focus-visible,
.online-make-page #more_item:focus-visible { outline: 2px solid var(--site-primary); outline-offset: 3px; }
.online-make-page #more_item .more-item__title { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.online-make-page #more_item .more-item__hint { color: #fff; font-size: 12px; }

.online-make-page .content {
    padding: 0 !important;
    width: 100%; margin: 0 auto;
}

.online-make-page #udp {
    display: grid !important;
    grid-template-columns: 318px minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
}

.online-make-page #udp > div:nth-child(2) {
    display: none !important;
}

.online-make-page .cot_udp,
.online-make-page .cot_make {
    width: auto !important;
    height: 414px !important;
    margin: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e9f2;
    border-radius: 8px;
}

.online-make-page .cot_udp > div:first-child,
.online-make-page .cot_make > div:first-child {
    padding: 0 20px;
    color: #263449;
    font-size: 17px !important;
    font-weight: 600;
    line-height: 58px !important;
}

.online-make-page .cot_pho_udp,
.online-make-page .cot_pho_make {
    width: auto !important;
    height: 334px !important;
    margin: 0 20px 20px !important;
    color: #8a97a8;
    line-height: normal !important;
    text-align: center;
    background: #fbfdff;
    border: 1px dashed #c7d6e7;
    border-radius: 6px;
}

.online-make-page .cot_pho_udp.pic_null,
.online-make-page .cot_pho_make.pic_main_null {
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-make-page .cot_pho_udp.pic_null > div {
    margin-top: 0 !important;
}

.online-make-page .cot_pho_udp.pic_null img {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    opacity: .7;
}

.online-make-page .cot_pho_udp.pic_null div div {
    color: #66758a !important;
    font-size: 13px !important;
}

.online-make-page .cot_pho_make.pic_main_null {
    min-height: 334px;
    padding: 0 20px;
}

.online-make-page .make_upd_btn {
    width: 360px;
    max-width: 100%;
    height: 50px;
    margin: 26px auto 0;
    color: #fff;
    background: #1677ff;
    border: 1px solid #1677ff;
    border-radius: 6px;
    font: inherit;
    font-size: 16px;
    box-shadow: 0 7px 16px rgba(22, 119, 255, .16);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.online-make-page .make_upd_btn:hover {
    background: #0958d9;
    border-color: #0958d9;
    box-shadow: 0 9px 20px rgba(22, 119, 255, .22);
}

.online-make-page .product-api-action-row .make_upd_btn {
    height: 44px;
    margin: 0;
}

.online-make-page .pic_color {
    margin: 26px 0 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #e2e9f2;
    border-radius: 8px;
}

.online-make-page .select_bg,
.online-make-page .bg {
    padding: 0 !important;
}

.online-make-page .select_text {
    margin-bottom: 16px;
    color: #263449;
    font-size: 16px;
    text-align: center;
}

.online-make-page .colorPo {
    width: 36px;
    height: 36px;
    margin: 0 8px;
    position: relative; border-radius: 50%;
}

.online-make-page .main_btn_com {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 178px;
    height: 44px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    border-radius: 6px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.online-make-page .down_btn {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
    text-decoration: none;
    border-style: none; border-width: 0;
}

.online-make-page .down_btn:hover,
.online-make-page .down_btn:focus,
.online-make-page .down_btn:active {
    background: #0958d9;
    border-color: #0958d9;
    color: #fff;
    text-decoration: none;
}

.online-make-page .agin_udp_btn:hover,
.online-make-page .agin_udp_btn:focus,
.online-make-page .agin_udp_btn:active {
    background: #f5f9ff !important;
    border-color: #1677ff !important;
    color: #1677ff !important;
}

@media (max-width: 900px) {
    .background-make-page,
    .online-make-page {
        padding: 26px 0 52px;
    }

    .online-make-page .layui-row.layui-col-space14 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .online-make-page #udp {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .background-make__container,
    .online-make-page__container {
        width: calc(100% - 28px);
    }

    .background-make__heading h1,
    .online-make-page__heading h1 {
        font-size: 25px;
    }

    .online-make-page .spec_photo {
        padding: 18px !important;
    }

    .online-make-page .layui-row.layui-col-space14 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .online-make-page #more_item {
        grid-column: span 2;
    }

    .online-make-page .cot_udp,
    .online-make-page .cot_make {
        height: 398px !important;
    }

    .online-make-page .cot_pho_udp,
    .online-make-page .cot_pho_make,
    .online-make-page .cot_pho_make.pic_main_null {
        height: 318px !important;
        min-height: 318px;
        margin-right: 14px !important;
        margin-left: 14px !important;
    }

    .online-make-page .make_upd_btn {
        width: 100%;
    }

    .online-make-page .main_btn {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    .online-make-page .main_btn > div,
    .online-make-page .main_btn_com {
        flex: 1;
        width: auto;
    }
}
