:root {
    --promotion-primary: #3f86b7;
    --promotion-primary-dark: #256a9c;
    --promotion-soft: #e8f4fb;
    --promotion-border: #acd2e8;
    --promotion-background: #f5fbff;
    --promotion-shadow: rgba(35, 116, 164, .18);
}

.promotion-zone {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto;
    padding: 22px;
    border: 1px solid #dfe8f1;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 12px 30px rgba(15, 35, 60, 0.06);
}

.promotion-zone--post_bottom { width: 100%; margin: 22px 0; }
.promotion-zone--footer {
    position: fixed;
    bottom: 16px;
    left: 50%;
    z-index: 500;
    width: min(720px, calc(100% - 32px));
    margin: 0;
    padding: 8px 12px;
    transform: translateX(-50%);
    border: 1px solid var(--promotion-border);
    border-radius: 16px;
    background: rgba(247, 249, 250, .97);
    box-shadow: 0 14px 36px var(--promotion-shadow);
}
.promotion-zone--footer .promotion-zone__heading { display: none; }
.promotion-zone--footer .promotion-grid { display: block; }
.promotion-zone--footer .promotion-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; border: 0; border-radius: 10px; }
.promotion-zone--footer .promotion-card__visual { height: 62px; border-radius: 10px; }
.promotion-zone--footer .promotion-card__placeholder { font-size: 28px; }
.promotion-zone--footer .promotion-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 4px 8px; }
.promotion-zone--footer .promotion-card__type { grid-column: 1; width: fit-content; padding: 2px 6px; font-size: 10px; }
.promotion-zone--footer .promotion-card__body h3 { grid-column: 1; margin: 3px 0 0; font-size: 15px; }
.promotion-zone--footer .promotion-card__body p { display: block; grid-column: 1; margin: 2px 0 0; color: #687988; font-size: 11px; line-height: 1.45; }
.promotion-zone--footer .promotion-card__body a,
.promotion-zone--footer .promotion-card__body strong { grid-column: 2; grid-row: 1 / span 3; padding: 0; border-radius: 0; background: transparent; color: var(--promotion-primary-dark); }
.promotion-zone--side_left,
.promotion-zone--side_right {
    position: fixed;
    top: 50%;
    z-index: 100;
    width: 164px;
    margin: 0;
    padding: 10px;
    transform: translateY(-50%);
}
.promotion-zone--side_left { left: 12px; }
.promotion-zone--side_right { right: 12px; }
.promotion-zone--side_left .promotion-zone__heading,
.promotion-zone--side_right .promotion-zone__heading { margin-bottom: 8px; }
.promotion-zone--side_left .promotion-zone__heading small,
.promotion-zone--side_right .promotion-zone__heading small { display: none; }
.promotion-zone--side_left .promotion-zone__heading h2,
.promotion-zone--side_right .promotion-zone__heading h2 { font-size: 15px; }
.promotion-zone--side_left .promotion-grid,
.promotion-zone--side_right .promotion-grid { display: block; }
.promotion-zone--side_left .promotion-card__visual,
.promotion-zone--side_right .promotion-card__visual { height: 130px; }
.promotion-zone--side_left .promotion-card__body,
.promotion-zone--side_right .promotion-card__body { padding: 11px; }
.promotion-zone--side_left .promotion-card__body h3,
.promotion-zone--side_right .promotion-card__body h3 { margin: 7px 0 5px; font-size: 15px; }
.promotion-zone--side_left .promotion-card__body p,
.promotion-zone--side_right .promotion-card__body p { min-height: 0; margin-bottom: 8px; font-size: 12px; }
.promotion-product-rail { position: fixed; top: 50%; z-index: 100; width: 164px; margin: 0; padding: 10px; transform: translateY(-50%); border: 1px solid var(--promotion-border); border-radius: 16px; background: rgba(247, 249, 250, .97); box-shadow: 0 12px 30px var(--promotion-shadow); }
.promotion-product-rail--side_left { left: 12px; }
.promotion-product-rail--side_right { right: 12px; }
.promotion-product-rail__heading { margin-bottom: 8px; }
.promotion-product-rail__heading span,.promotion-product-rail__heading small { display: block; }
.promotion-product-rail__heading span { color: var(--promotion-primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.promotion-product-rail__heading small { margin-top: 3px; color: #173047; font-size: 14px; font-weight: 800; }
.promotion-product-rail__card { display: none; overflow: hidden; border: 1px solid var(--promotion-border); border-radius: 12px; background: #fff; }
.promotion-product-rail__card.is-active { display: block; animation: promotion-rail-in .3s ease; }
.promotion-product-rail__image { position: relative; display: grid; place-items: center; height: 130px; overflow: hidden; background: linear-gradient(135deg, var(--promotion-primary), var(--promotion-primary-dark)); color: #fff; text-decoration: none; }
.promotion-product-rail__image img { width: 100%; height: 100%; object-fit: cover; }
.promotion-product-rail__image > span { font-size: 48px; font-weight: 800; }
.promotion-product-rail__image em { position: absolute; top: 8px; left: 8px; padding: 3px 6px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--promotion-primary-dark); font-size: 10px; font-style: normal; font-weight: 800; }
.promotion-product-rail__body { padding: 10px; }
.promotion-product-rail__body h3 { margin: 0 0 6px; color: #173047; font-size: 14px; line-height: 1.4; }
.promotion-product-rail__body strong { display: block; margin-bottom: 6px; color: var(--promotion-primary-dark); font-size: 15px; }
.promotion-product-rail__body a { color: var(--promotion-primary-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
@keyframes promotion-rail-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.promotion-zone__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.promotion-zone__heading span { color: #0d806f; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.promotion-zone__heading h2 { margin: 4px 0 0; color: #173047; font-size: 21px; }
.promotion-zone__heading small { color: #718096; }
.promotion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.promotion-grid--1 { grid-template-columns: minmax(0, 1fr); }
.promotion-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promotion-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.promotion-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.promotion-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 35, 60, .08); }
.promotion-card__visual { position: relative; height: 150px; overflow: hidden; background: #edf5f7; }
.promotion-card__cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.promotion-card__placeholder { display: grid; place-items: center; height: 100%; color: #fff; font-size: 54px; font-weight: 800; background: linear-gradient(135deg, #0d806f, #2660a4); }
.promotion-card__qr-button { position: absolute; right: 10px; bottom: 10px; width: 64px; height: 64px; padding: 4px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(15, 23, 42, .22); cursor: zoom-in; }
.promotion-card__qr-button img { width: 100%; height: 100%; display: block; object-fit: contain; }
.promotion-card__body { padding: 15px; }
.promotion-card__type { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #0d6e62; background: #e9f7f3; font-size: 11px; font-weight: 800; }
.promotion-card__body h3 { margin: 10px 0 7px; color: #172b43; font-size: 17px; line-height: 1.4; }
.promotion-card__body p { min-height: 44px; margin: 0 0 13px; color: #667587; font-size: 13px; line-height: 1.7; }
.promotion-card__body a, .promotion-card__body strong { display: inline-flex; align-items: center; gap: 6px; color: #0d806f; font-size: 13px; font-weight: 800; text-decoration: none; }
.promotion-card--xianyu { border-color: var(--promotion-border); box-shadow: 0 8px 22px var(--promotion-shadow); }
.promotion-card--xianyu .promotion-card__visual,
.promotion-card--xianyu .promotion-card__placeholder { background: linear-gradient(135deg, var(--promotion-primary), var(--promotion-primary-dark)); }
.promotion-card--xianyu .promotion-card__type { color: var(--promotion-primary-dark); background: var(--promotion-soft); }
.promotion-card--xianyu .promotion-card__body a { color: var(--promotion-primary-dark); }
.promotion-zone--footer .promotion-card--xianyu .promotion-card__visual,
.promotion-zone--footer .promotion-card--xianyu .promotion-card__placeholder { background: linear-gradient(135deg, var(--promotion-primary), var(--promotion-primary-dark)); }
.promotion-zone--footer .promotion-card--xianyu .promotion-card__type { color: var(--promotion-primary-dark); background: var(--promotion-soft); }

.promotion-product-showcase { width: min(1400px, calc(100% - 32px)); margin: 28px auto; padding: 22px; overflow: hidden; border: 1px solid var(--promotion-border); border-radius: 22px; background: linear-gradient(135deg, var(--promotion-background), #fff 58%); box-shadow: 0 16px 36px var(--promotion-shadow); }
.promotion-product-showcase__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.promotion-product-showcase__heading span { color: var(--promotion-primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.promotion-product-showcase__heading h2 { margin: 4px 0 0; color: #173047; font-size: 22px; }
.promotion-product-showcase__controls { display: flex; align-items: center; gap: 8px; color: var(--promotion-primary); font-size: 12px; }
.promotion-product-showcase__controls button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--promotion-border); border-radius: 50%; background: #fff; color: var(--promotion-primary-dark); cursor: pointer; font-size: 16px; }
.promotion-product-showcase__controls button:hover { background: var(--promotion-soft); }
.promotion-product-showcase__viewport { overflow: hidden; }
.promotion-product-showcase__track { display: flex; gap: 14px; transition: transform .45s ease; will-change: transform; }
.promotion-product-card { flex: 0 0 calc((100% - 28px) / 3); min-width: 0; overflow: hidden; border: 1px solid var(--promotion-border); border-radius: 15px; background: #fff; box-shadow: 0 8px 18px rgba(55, 78, 93, .08); }
.promotion-product-card__surface { display: block; color: inherit; text-decoration: none; transition: background-color .2s ease; }
.promotion-product-card__surface:hover { background: var(--promotion-soft); }
.promotion-product-card__surface:focus-visible { outline: 3px solid var(--promotion-primary); outline-offset: -3px; }
.promotion-product-card__image { position: relative; display: grid; place-items: center; height: 170px; overflow: hidden; background: linear-gradient(135deg, var(--promotion-primary), var(--promotion-primary-dark)); color: #fff; text-decoration: none; }
.promotion-product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.promotion-product-card__image--default { background: #fff; }
.promotion-product-card__image--default img { position: absolute; inset: 0; box-sizing: border-box; padding: 10px; object-fit: contain; }
.promotion-product-card__image > span { font-size: 58px; font-weight: 800; }
.promotion-product-card__image em { position: absolute; top: 9px; left: 9px; padding: 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--promotion-primary-dark); font-size: 11px; font-style: normal; font-weight: 800; }
.promotion-product-card__body { padding: 13px; }
.promotion-product-card__body h3 { display: -webkit-box; min-height: 42px; margin: 0 0 10px; overflow: hidden; color: #173047; font-size: 15px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.promotion-product-card__info { display: -webkit-box; min-height: 38px; margin: -3px 0 10px; overflow: hidden; color: #667085; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.promotion-product-card__body > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.promotion-product-card__body strong { color: var(--promotion-primary-dark); font-size: 17px; }
.promotion-product-card__body a { color: var(--promotion-primary-dark); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.promotion-product-card__contact { color: var(--promotion-primary-dark); font-size: 13px; font-weight: 800; white-space: nowrap; }

.payment-contact-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; }
.payment-contact-modal[hidden] { display: none; }
.payment-contact-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(6, 20, 45, .76); cursor: default; }
.payment-contact-modal__dialog { position: relative; z-index: 1; box-sizing: border-box; width: min(760px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 36px; border: 1px solid rgba(130, 158, 191, .28); border-radius: 18px; background: #fff; color: #173047; box-shadow: 0 30px 90px rgba(0, 0, 0, .34); animation: payment-contact-modal-in .22s ease-out; }
.payment-contact-modal__dialog:focus { outline: none; }
.payment-contact-modal__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #667587; cursor: pointer; font-size: 25px; line-height: 1; transition: background-color .18s ease, color .18s ease; }
.payment-contact-modal__close:hover { background: var(--promotion-soft); color: var(--promotion-primary-dark); }
.payment-contact-modal__close:focus-visible, .payment-contact-modal__page-link:focus-visible { outline: 3px solid var(--promotion-primary); outline-offset: 3px; }
.payment-contact-modal__badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: #e9f8ef; color: #16734a; font-size: 12px; font-weight: 800; }
.payment-contact-modal__dialog h2 { margin: 12px 52px 18px 0; color: #172b43; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.payment-contact-modal__notice { padding: 16px 18px; border-radius: 12px; background: #edf8f3; color: #24664f; }
.payment-contact-modal__notice strong { display: block; margin-bottom: 4px; font-size: 16px; }
.payment-contact-modal__notice p { margin: 0; color: #3f765f; font-size: 14px; line-height: 1.7; }
.payment-contact-modal__qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.payment-contact-modal__qr-card { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--promotion-border); border-radius: 14px; background: #fbfdff; text-align: center; }
.payment-contact-modal__qr-card img { display: block; width: min(220px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; border-radius: 8px; object-fit: contain; background: #fff; }
.payment-contact-modal__qr-card figcaption { display: grid; gap: 4px; margin-top: 12px; }
.payment-contact-modal__qr-card figcaption strong { color: #173047; font-size: 15px; }
.payment-contact-modal__qr-card figcaption span { color: #667587; font-size: 12px; line-height: 1.55; }
.payment-contact-modal__empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--promotion-border); border-radius: 12px; background: #f8fbfd; color: #667587; text-align: center; }
.payment-contact-modal__guide { margin-top: 22px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.payment-contact-modal__guide h3 { margin: 0 0 14px; color: #172b43; font-size: 18px; }
.payment-contact-modal__guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.payment-contact-modal__guide li { display: flex; gap: 9px; min-width: 0; }
.payment-contact-modal__guide li > span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--promotion-soft); color: var(--promotion-primary-dark); font-size: 11px; font-weight: 800; }
.payment-contact-modal__guide li p { margin: 0; color: #667587; font-size: 12px; line-height: 1.55; }
.payment-contact-modal__guide li strong { display: block; margin-bottom: 2px; color: #173047; font-size: 13px; }
.payment-contact-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.payment-contact-modal__footer p { margin: 0; color: #667587; font-size: 13px; line-height: 1.55; }
.payment-contact-modal__footer p a { color: var(--promotion-primary-dark); font-weight: 700; }
.payment-contact-modal__page-link { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 9px; background: var(--promotion-primary-dark); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; transition: background-color .18s ease; }
.payment-contact-modal__page-link:hover { background: var(--promotion-primary); color: #fff; }

@keyframes payment-contact-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.promotion-qr-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; }
.promotion-qr-modal[hidden] { display: none; }
.promotion-qr-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(6, 16, 30, .72); }
.promotion-qr-modal__dialog { position: relative; z-index: 1; width: min(360px, 100%); padding: 26px; border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.promotion-qr-modal__dialog h2 { margin: 0 0 16px; color: #172b43; font-size: 20px; }
.promotion-qr-modal__dialog img { width: min(240px, 100%); aspect-ratio: 1; object-fit: contain; }
.promotion-qr-modal__dialog p { margin: 14px 0 0; color: #667587; }
.promotion-qr-modal__close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; color: #52606d; font-size: 26px; cursor: pointer; }

@media (max-width: 1180px) {
    .promotion-grid, .promotion-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .promotion-zone--side_left, .promotion-zone--side_right { display: none; }
    .promotion-product-rail { display: none; }
}

@media (max-width: 900px) {
    .promotion-product-card { flex-basis: calc((100% - 14px) / 2); }
}

@media (max-width: 600px) {
    .promotion-zone { width: min(100% - 24px, 1200px); margin: 20px auto; padding: 16px; border-radius: 16px; }
    .promotion-zone--post_bottom { width: 100%; }
    .promotion-zone--footer { bottom: 8px; width: calc(100% - 16px); }
    .promotion-zone__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .promotion-grid, .promotion-grid--2, .promotion-grid--3 { grid-template-columns: 1fr; }
    .promotion-product-showcase { width: calc(100% - 24px); margin: 20px auto; padding: 16px; border-radius: 16px; }
    .promotion-product-showcase__heading { align-items: flex-start; }
    .promotion-product-showcase__heading h2 { font-size: 19px; }
    .promotion-product-card { flex-basis: 100%; }
    .promotion-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
    .promotion-card__visual { height: 100%; min-height: 150px; }
    .promotion-card__qr-button { width: 54px; height: 54px; }
    .promotion-card__body p { min-height: 0; }
    .payment-contact-modal { align-items: end; padding: 12px; }
    .payment-contact-modal__dialog { max-height: calc(100dvh - 24px); padding: 26px 18px 20px; border-radius: 18px; }
    .payment-contact-modal__dialog h2 { margin-top: 10px; font-size: 24px; }
    .payment-contact-modal__qr-grid { grid-template-columns: 1fr; }
    .payment-contact-modal__qr-card img { width: min(240px, 100%); }
    .payment-contact-modal__guide ol { grid-template-columns: 1fr; }
    .payment-contact-modal__footer { align-items: stretch; flex-direction: column; }
    .payment-contact-modal__page-link { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .payment-contact-modal__dialog { animation: none; }
}
