:root {
    color-scheme: light;
    --epay-ink: #242521;
    --epay-muted: #6d6a62;
    --epay-line: #ded9ce;
    --epay-paper: #fffef9;
    --epay-wash: #f5f3ec;
    --epay-red: #9b2f2a;
    --epay-red-dark: #70201e;
    --epay-green: #285d49;
    --epay-green-soft: #edf4ef;
    --epay-gold: #a47d3f;
}

[hidden] {
    display: none !important;
}

body.epay-modal-open {
    overflow: hidden;
}

#testFixedBtn,
#query-my-history,
.index_order_right_type {
    cursor: pointer;
}

.index_order_right {
    position: fixed !important;
    top: 50% !important;
    right: max(0px, env(safe-area-inset-right)) !important;
    z-index: 99 !important;
    width: 38px !important;
    display: grid !important;
    gap: 46px !important;
    justify-items: stretch !important;
    transform: translateY(-50%) !important;
}

.index_order_right .index_order_right_type {
    width: 38px !important;
    min-height: 92px !important;
    display: grid !important;
    grid-template-rows: 22px auto !important;
    justify-items: center !important;
    align-content: start !important;
    row-gap: 7px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 7px 4px 8px !important;
    border-radius: 8px 0 0 8px !important;
    background: rgba(20, 18, 16, 0.92) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
    color: #fff !important;
    line-height: 1 !important;
    -webkit-tap-highlight-color: transparent;
}

.index_order_right .index_order_right_type:nth-child(2) {
    margin-top: 0 !important;
}

.index_order_right .index_order_right_type > uni-image {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    justify-self: center !important;
    align-self: center !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    pointer-events: none !important;
    line-height: 0 !important;
}

.index_order_right .index_order_right_type > uni-image > div {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background-position: 50% 50% !important;
    background-size: 22px 22px !important;
    background-repeat: no-repeat !important;
}

.index_order_right .index_order_right_type > uni-image > img {
    display: none !important;
}

.index_order_right .index_order_right_type > uni-text {
    display: block !important;
    width: 1em !important;
    min-width: 1em !important;
    max-width: 1em !important;
    justify-self: center !important;
    align-self: start !important;
    margin: 0 auto !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-orientation: upright !important;
    -webkit-writing-mode: vertical-rl !important;
    writing-mode: vertical-rl !important;
}

.index_order_right .index_order_right_type > uni-text span {
    display: block !important;
    width: 1em !important;
    color: inherit !important;
    font: inherit !important;
    white-space: nowrap !important;
}

.epay-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    align-items: end;
    justify-items: center;
    padding: 16px 10px max(16px, env(safe-area-inset-bottom));
    background: rgba(18, 20, 18, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.epay-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.epay-dialog {
    width: min(100%, 460px);
    max-height: min(820px, calc(100dvh - 32px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top: 3px solid var(--epay-red);
    border-radius: 8px;
    background: var(--epay-paper);
    color: var(--epay-ink);
    box-shadow: 0 24px 70px rgba(9, 13, 10, 0.38);
    transform: translateY(18px);
    transition: transform 180ms ease;
}

.epay-dialog--reading {
    width: min(100%, 680px);
}

.epay-overlay.is-open .epay-dialog {
    transform: translateY(0);
}

.epay-dialog__header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 20px 14px;
    border-bottom: 1px solid var(--epay-line);
    background: rgba(255, 254, 249, 0.98);
    box-shadow: 0 4px 14px rgba(35, 36, 32, 0.04);
}

.epay-dialog__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.epay-dialog__seal {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    box-sizing: border-box;
    border: 1px solid #7e2522;
    background: var(--epay-red);
    color: #fffdf5;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 21px;
    line-height: 1;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.epay-dialog__title {
    margin: 2px 0 0;
    font-family: "STKaiti", "KaiTi", "Songti SC", serif;
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: 0;
}

.epay-eyebrow {
    display: block;
    color: var(--epay-green);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.epay-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--epay-wash);
    color: #625d56;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.epay-close:hover {
    border-color: var(--epay-line);
    background: #fff;
}

.epay-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.epay-close:focus-visible,
.epay-text-button:focus-visible,
.epay-primary:focus-visible,
.epay-secondary:focus-visible,
.epay-birth-trigger:focus-visible,
.epay-birth-tabs button:focus-visible,
.epay-wheel button:focus-visible,
.epay-segment label:has(input:focus-visible) {
    outline: 2px solid var(--epay-green);
    outline-offset: 2px;
}

.epay-dialog[data-step="preview"] .epay-dialog__seal,
.epay-dialog[data-step="full"] .epay-dialog__seal {
    border-color: #214e3d;
    background: var(--epay-green);
}

.epay-dialog[data-step="form"] .epay-dialog__header {
    padding: 9px 14px 8px;
}

.epay-dialog[data-step="form"] .epay-dialog__seal {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 17px;
}

.epay-dialog[data-step="form"] .epay-dialog__title {
    font-size: 18px;
}

.epay-dialog[data-step="form"] .epay-eyebrow {
    font-size: 10px;
}

.epay-dialog[data-step="form"] .epay-close {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 24px;
}

.epay-step,
.epay-query {
    padding: 20px 20px 22px;
}

.epay-dialog[data-step="form"] .epay-step {
    padding: 10px 12px 12px;
}

.epay-method-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #ccdbd0;
    border-left: 3px solid var(--epay-green);
    background: var(--epay-green-soft);
    color: var(--epay-muted);
    font-size: 12px;
    line-height: 1.55;
}

.epay-method-note strong {
    flex: 0 0 auto;
    color: var(--epay-green);
    font-size: 13px;
}

.epay-form-section {
    margin: 0;
    padding: 0 0 7px;
    border: 0;
}

.epay-form-section + .epay-form-section {
    padding-top: 2px;
    border-top: 1px solid var(--epay-line);
}

.epay-form-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: #494a44;
    font-size: 13px;
    font-weight: 700;
}

.epay-form-section__title i {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    flex: 0 0 25px;
    border: 1px solid #c8bfae;
    color: var(--epay-red);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.epay-field {
    display: block;
    margin: 0 0 8px;
}

.epay-field > span,
.epay-legend,
.epay-section-label {
    display: block;
    margin-bottom: 5px;
    color: #504b45;
    font-size: 12px;
    font-weight: 700;
}

.epay-field input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #c9c4b9;
    border-radius: 6px;
    padding: 0 13px;
    background: #fffefb;
    color: var(--epay-ink);
    font: inherit;
    letter-spacing: 0;
    outline: none;
}

.epay-field input:focus {
    border-color: var(--epay-red);
    box-shadow: 0 0 0 3px rgba(157, 41, 36, 0.1);
}

.epay-picker-control {
    position: relative;
    cursor: pointer;
}

.epay-picker-control input {
    padding-right: 68px;
    cursor: pointer;
}

.epay-picker-control b {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 50px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-left: 1px solid var(--epay-line);
    color: var(--epay-red);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
}

.epay-picker-placeholder {
    position: absolute;
    top: 1px;
    right: 68px;
    bottom: 1px;
    left: 13px;
    display: flex;
    align-items: center;
    background: #fffefb;
    color: #817b72;
    font-size: 14px;
    pointer-events: none;
}

.epay-picker-control input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.epay-picker-control:focus-within b {
    color: var(--epay-red-dark);
}

.epay-birth-trigger {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px 12px;
    align-items: center;
    box-sizing: border-box;
    border: 1px solid #c9c4b9;
    border-left: 3px solid var(--epay-red);
    border-radius: 6px;
    padding: 11px 10px 11px 13px;
    background: #fffefb;
    color: var(--epay-ink);
    text-align: left;
    cursor: pointer;
}

.epay-birth-trigger__label,
.epay-birth-trigger strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.epay-birth-trigger__label {
    color: var(--epay-muted);
    font-size: 12px;
    font-weight: 700;
}

.epay-birth-trigger strong {
    display: block;
    grid-column: 1;
    color: #332d27;
    font-size: 15px;
    line-height: 1.45;
}

.epay-birth-trigger b {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 40px;
    display: grid;
    place-items: center;
    border-left: 1px solid var(--epay-line);
    color: var(--epay-red);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 14px;
    font-style: normal;
}

.epay-dialog--birth {
    width: min(100%, 520px);
}

.epay-birth-panel {
    padding: 18px 20px 20px;
}

.epay-birth-panel--inline {
    padding: 0;
}

.epay-birth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 7px;
}

.epay-birth-tabs button {
    min-height: 34px;
    border: 1px solid #d2cac0;
    border-radius: 6px;
    background: #fffefb;
    color: #554f49;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.epay-birth-tabs button[aria-selected="true"] {
    border-color: var(--epay-red);
    background: #f9ece9;
    color: var(--epay-red-dark);
}

.epay-wheel-group {
    display: grid;
    gap: 6px;
}

.epay-wheel-group--datetime {
    grid-template-columns: minmax(58px, 1.15fr) minmax(42px, .85fr) minmax(42px, .85fr) minmax(72px, 1.3fr) minmax(42px, .85fr);
}

.epay-wheel {
    min-width: 0;
}

.epay-wheel__title {
    display: none;
}

.epay-wheel__items {
    height: 104px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    border: 1px solid #c9c4b9;
    border-radius: 6px;
    padding: 34px 0;
    background: #fffefb;
    box-shadow:
        inset 0 38px 30px -30px rgba(255, 254, 249, 0.98),
        inset 0 -38px 30px -30px rgba(255, 254, 249, 0.98);
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.epay-wheel__items::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.epay-wheel button {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    padding: 0 7px;
    background: transparent;
    color: var(--epay-ink);
    font: inherit;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    scroll-snap-align: center;
}

.epay-wheel button:hover {
    background: #faf4ee;
}

.epay-wheel button.is-active {
    background: #f9ece9;
    color: var(--epay-red-dark);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--epay-red);
}

.epay-wheel--hour button {
    font-size: 12px;
    white-space: nowrap;
}

.epay-lunar-leap-row {
    display: none;
}

.epay-birth-panel.is-lunar.can-leap .epay-lunar-leap-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}

.epay-lunar-leap-row > span {
    color: var(--epay-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.epay-birth-current {
    margin: 6px 0 0;
    padding: 6px 8px;
    border-left: 3px solid var(--epay-green);
    background: var(--epay-green-soft);
    color: #315b49;
    font-size: 12px;
    line-height: 1.6;
}

.epay-birth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.epay-consent {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 7px;
    color: var(--epay-muted);
    font-size: 12px;
    line-height: 1.35;
}

.epay-consent input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
    accent-color: var(--epay-red);
}

.epay-consent a {
    color: var(--epay-red);
    text-decoration: none;
}

.epay-form-query {
    width: auto;
    margin: 4px auto 0;
}

.epay-mobile-form {
    padding: 20px;
}

.epay-mobile-note {
    margin: -4px 0 14px;
    color: #494a44;
    font-size: 13px;
    line-height: 1.6;
}

.epay-mobile-note small {
    display: block;
    margin-top: 2px;
    color: #9b948a;
    font-size: 11px;
}

.epay-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.epay-bazi-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.epay-bazi-inputs input {
    text-align: center;
}

.epay-field-help,
.epay-privacy,
.epay-disclaimer {
    margin: -5px 0 16px;
    color: var(--epay-muted);
    font-size: 11px;
    line-height: 1.65;
}

.epay-privacy {
    margin: 10px 0 0;
    text-align: center;
}

.epay-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.epay-segment label {
    position: relative;
    min-height: 40px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid #d2cac0;
    border-radius: 6px;
    background: #fffefb;
    color: #554f49;
    cursor: pointer;
}

.epay-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.epay-segment label:has(input:checked) {
    border-color: var(--epay-red);
    background: #f9ece9;
    color: var(--epay-red-dark);
    font-weight: 700;
}

.epay-primary,
.epay-secondary,
.epay-wechat__button {
    width: 100%;
    min-height: 42px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    background: var(--epay-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
}

.epay-primary:hover {
    background: var(--epay-red-dark);
}

.epay-primary:disabled {
    background: #aaa49c;
    cursor: not-allowed;
}

.epay-secondary {
    background: #3e4742;
}

.epay-text-button {
    flex: 0 0 auto;
    border: 0;
    padding: 6px 0;
    background: transparent;
    color: var(--epay-red);
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.epay-state,
.epay-query-result {
    min-height: 0;
    margin: 5px 0 0;
    color: var(--epay-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.epay-dialog[data-step="form"] .epay-state:not(.is-error) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.epay-state.is-error,
.epay-query-result.is-error {
    color: #a92520;
}

.epay-calculating {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.epay-calculating h3 {
    margin: 28px 0 8px;
    color: #30342f;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 23px;
}

.epay-calculating p {
    min-height: 24px;
    margin: 0;
    color: var(--epay-muted);
    font-size: 13px;
}

.epay-orbit {
    position: relative;
    width: 170px;
    height: 170px;
    border: 1px solid #a99167;
    border-radius: 50%;
    animation: epay-rotate 8s linear infinite;
}

.epay-orbit::before,
.epay-orbit::after {
    content: '';
    position: absolute;
    inset: 25px;
    border: 1px solid #cbd7cd;
    border-radius: 50%;
}

.epay-orbit::after {
    inset: 54px;
    border-color: var(--epay-red);
    background: var(--epay-red);
}

.epay-orbit span,
.epay-orbit strong {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
}

.epay-orbit span {
    width: 25px;
    height: 25px;
    color: #4c5049;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 14px;
    animation: epay-rotate-reverse 8s linear infinite;
}

.epay-orbit span:nth-child(1) { left: 73px; top: -13px; }
.epay-orbit span:nth-child(2) { right: 8px; top: 8px; }
.epay-orbit span:nth-child(3) { right: -13px; top: 73px; }
.epay-orbit span:nth-child(4) { right: 8px; bottom: 8px; }
.epay-orbit span:nth-child(5) { left: 73px; bottom: -13px; }
.epay-orbit span:nth-child(6) { left: 8px; bottom: 8px; }
.epay-orbit span:nth-child(7) { left: -13px; top: 73px; }
.epay-orbit span:nth-child(8) { left: 8px; top: 8px; }
.epay-orbit strong { inset: 54px; color: #fff; font-family: "STKaiti", "KaiTi", serif; font-size: 24px; animation: epay-rotate-reverse 8s linear infinite; }

.epay-progress {
    width: min(80%, 320px);
    height: 3px;
    margin-top: 30px;
    overflow: hidden;
    background: #e2ddd5;
}

.epay-progress span {
    display: block;
    width: 42%;
    height: 100%;
    background: var(--epay-red);
    animation: epay-progress 1.1s ease-in-out infinite;
}

@keyframes epay-rotate { to { transform: rotate(360deg); } }
@keyframes epay-rotate-reverse { to { transform: rotate(-360deg); } }
@keyframes epay-progress { from { transform: translateX(-110%); } to { transform: translateX(340%); } }

.epay-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 7px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--epay-line);
}

.epay-result-heading h3 {
    margin: 3px 0 0;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 22px;
    line-height: 1.4;
}

.epay-method {
    margin: 7px 0 0;
    color: var(--epay-muted);
    font-size: 12px;
    line-height: 1.35;
}

.epay-chart {
    padding: 14px;
    border: 1px solid #d2d8d1;
    border-top: 3px solid var(--epay-green);
    background: #f8faf7;
    box-shadow: 0 8px 22px rgba(40, 93, 73, 0.07);
}

.epay-chart--compact {
    margin-top: 10px;
    padding: 8px 10px;
    border-top-width: 2px;
    box-shadow: none;
}

.epay-chart--compact .epay-chart__meta,
.epay-chart--compact .epay-pillar small,
.epay-chart--compact .epay-pillar em {
    display: none;
}

.epay-chart--compact .epay-pillars {
    gap: 6px;
}

.epay-chart--compact .epay-pillar {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-right: 1px solid #e1e5df;
}

.epay-chart--compact .epay-pillar:last-child {
    border-right: 0;
}

.epay-chart--compact .epay-pillar > span {
    font-size: 10px;
    line-height: 1.1;
}

.epay-chart--compact .epay-pillar strong {
    margin: 2px 0 0;
    font-size: 20px;
}

.epay-chart__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--epay-muted);
    font-size: 11px;
}

.epay-pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.epay-pillar {
    min-width: 0;
    text-align: center;
}

.epay-pillar > span,
.epay-pillar small,
.epay-pillar em {
    display: block;
    overflow-wrap: anywhere;
}

.epay-pillar > span {
    color: var(--epay-muted);
    font-size: 11px;
}

.epay-pillar strong {
    display: block;
    margin: 5px 0;
    color: #28231d;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 25px;
    line-height: 1.15;
}

.epay-pillar small {
    min-height: 30px;
    color: #6b645b;
    font-size: 10px;
    line-height: 1.45;
}

.epay-pillar em {
    margin-top: 4px;
    color: var(--epay-red);
    font-size: 10px;
    font-style: normal;
}

.epay-elements {
    margin-top: 18px;
}

.epay-element-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.epay-element-bars > div {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.epay-element-bars i {
    height: 5px;
    overflow: hidden;
    background: #e2ddd5;
}

.epay-element-bars b {
    display: block;
    height: 100%;
    background: #48765a;
}

.epay-element-bars > div:nth-child(2) b { background: #b34336; }
.epay-element-bars > div:nth-child(3) b { background: #a57a39; }
.epay-element-bars > div:nth-child(4) b { background: #777b7a; }
.epay-element-bars > div:nth-child(5) b { background: #486c89; }

.epay-summary {
    margin: 18px 0 0;
    padding: 13px 15px;
    border-left: 3px solid var(--epay-gold);
    background: #f7f4ea;
    font-size: 14px;
    line-height: 1.8;
}

.epay-preview-section {
    padding: 0 0 8px;
    border-bottom: 1px solid var(--epay-line);
}

.epay-preview-section p,
.epay-report-section p,
.epay-cycle-section p {
    margin: 7px 0;
    color: #4f4943;
    font-size: 13px;
    line-height: 1.55;
}

.epay-preview-section small,
.epay-report-section small {
    color: #8a8278;
    font-size: 10px;
    line-height: 1.5;
}

.epay-locked {
    margin: 18px 0;
    border: 1px solid #d5d0c5;
}

.epay-locked__heading {
    display: flex;
    justify-content: space-between;
    padding: 11px 13px;
    border-left: 3px solid var(--epay-red);
    background: var(--epay-wash);
    font-size: 12px;
}

.epay-locked__heading span {
    color: var(--epay-red);
}

.epay-locked ul {
    margin: 0;
    padding: 0 13px;
    list-style: none;
}

.epay-locked li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee9e2;
    color: #4d4741;
    font-size: 12px;
}

.epay-locked li:last-child { border-bottom: 0; }
.epay-locked li small { flex: 0 0 auto; color: #989087; }

.epay-unlock {
    margin: 12px -20px 0;
    padding: 12px 20px 13px;
    border-top: 1px solid #dfd2c3;
    border-bottom: 1px solid #dfd2c3;
    background: #f7efeb;
}

.epay-product {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.epay-product__name { font-size: 14px; }
.epay-product__price { flex: 0 0 auto; color: var(--epay-red); font-size: 22px; }
.epay-disclaimer { margin: 15px 0 0; text-align: center; }

.epay-report-sections {
    margin-top: 16px;
    border-top: 1px solid var(--epay-line);
}

.epay-ten-gods {
    margin-top: 16px;
    padding: 14px 0 16px;
    border-bottom: 1px solid var(--epay-line);
}

.epay-ten-gods h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.epay-ten-gods__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.epay-ten-gods__grid div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #eee9e2;
    font-size: 11px;
}

.epay-ten-gods__grid span { color: var(--epay-muted); }
.epay-ten-gods__grid strong { overflow-wrap: anywhere; font-weight: 600; }
.epay-ten-gods__grid small { color: #8b8379; }

.epay-report-section {
    padding: 17px 0;
    border-bottom: 1px solid var(--epay-line);
}

.epay-report-section h4,
.epay-cycle-section h4,
.epay-wechat h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.epay-cycle-section {
    padding: 18px 0;
}

.epay-cycle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.epay-cycle-grid div {
    padding: 9px 7px;
    border: 1px solid var(--epay-line);
    text-align: center;
}

.epay-cycle-grid strong,
.epay-cycle-grid span,
.epay-cycle-grid small {
    display: block;
}

.epay-cycle-grid strong { font-size: 16px; }
.epay-cycle-grid span { margin: 3px 0; color: #5d5650; font-size: 11px; }
.epay-cycle-grid small { color: #8b8379; font-size: 9px; }

.epay-methodology {
    padding: 13px 0;
    border-top: 1px solid var(--epay-line);
    color: #5d5650;
    font-size: 12px;
}

.epay-methodology summary { cursor: pointer; font-weight: 700; }
.epay-methodology ol { margin: 10px 0 0; padding-left: 20px; line-height: 1.75; }

.epay-wechat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    align-items: center;
    margin: 18px -20px 0;
    padding: 18px 20px;
    border-top: 1px solid #cfe0d5;
    border-bottom: 1px solid #cfe0d5;
    background: #eef7f1;
}

.epay-wechat p {
    margin: 5px 0 0;
    color: #5c6c62;
    font-size: 11px;
    line-height: 1.6;
}

.epay-wechat__button { background: var(--epay-green); }

.epay-wechat__id {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 8px;
    padding: 8px 9px;
    border: 1px solid #bad1c1;
    background: #fff;
}

.epay-wechat__id span { grid-column: 1 / -1; color: #708077; font-size: 10px; }
.epay-wechat__id strong { min-width: 0; overflow-wrap: anywhere; color: #205e3f; font-size: 13px; }
.epay-wechat__id button { border: 0; background: transparent; color: var(--epay-green); font-size: 12px; cursor: pointer; }
.epay-wechat__empty { grid-column: 2; }

.epay-query .epay-field { margin-bottom: 12px; }
.epay-query-result { text-align: left; }
.epay-query-result dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--epay-line);
}
.epay-query-result dt { color: var(--epay-muted); }
.epay-query-result dd { margin: 0; overflow-wrap: anywhere; color: var(--epay-ink); }
.epay-query-report { margin-top: 14px; }

.epay-toast {
    position: fixed;
    left: 50%;
    bottom: max(28px, env(safe-area-inset-bottom));
    z-index: 10020;
    max-width: calc(100vw - 40px);
    padding: 11px 16px;
    border-radius: 6px;
    background: rgba(32, 29, 26, 0.95);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.epay-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 720px) {
    .epay-overlay { align-items: center; }
}

@media (max-width: 560px) {
    .epay-overlay {
        align-items: start;
        padding: max(8px, env(safe-area-inset-top)) 0 0;
    }
    .epay-dialog {
        width: 100%;
        max-height: calc(100dvh - 10px);
        border-right: 0;
        border-left: 0;
        border-radius: 0 0 8px 8px;
        transform: translateY(-12px);
    }
    .epay-dialog__header {
        min-height: 62px;
        box-sizing: border-box;
        padding: 11px 14px 10px;
    }
    .epay-dialog__identity { gap: 9px; }
    .epay-dialog__seal { width: 34px; height: 34px; flex-basis: 34px; font-size: 19px; }
    .epay-dialog__title { font-size: 19px; }
    .epay-eyebrow { font-size: 10px; }
    .epay-close { width: 38px; height: 38px; flex-basis: 38px; }
    .epay-step, .epay-query { padding: 12px 10px max(14px, env(safe-area-inset-bottom)); }
    .epay-dialog[data-step="form"] .epay-dialog__header {
        min-height: 46px;
        padding: 7px 10px 6px;
    }
    .epay-dialog[data-step="form"] .epay-dialog__identity { gap: 7px; }
    .epay-dialog[data-step="form"] .epay-dialog__seal {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 16px;
    }
    .epay-dialog[data-step="form"] .epay-dialog__title { font-size: 17px; }
    .epay-dialog[data-step="form"] .epay-close {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
    .epay-dialog[data-step="form"] .epay-step { padding: 8px 8px 10px; }
    .epay-method-note { display: none; }
    .epay-form-section { padding-bottom: 5px; }
    .epay-form-section + .epay-form-section { padding-top: 2px; }
    .epay-form-section__title { display: none; }
    .epay-field-row { grid-template-columns: minmax(0, 1.12fr) minmax(92px, .88fr); gap: 6px; }
    .epay-field { margin-bottom: 6px; }
    .epay-field input { height: 38px; padding: 0 10px; font-size: 16px; }
    .epay-segment { gap: 5px; margin-bottom: 6px; }
    .epay-segment label { min-height: 38px; }
    .epay-bazi-inputs { grid-template-columns: 1fr 1fr; }
    .epay-birth-trigger { min-height: 72px; }
    .epay-birth-panel { padding: 10px 8px max(12px, env(safe-area-inset-bottom)); }
    .epay-birth-panel--inline { padding: 0; }
    .epay-birth-tabs { gap: 5px; margin-bottom: 6px; }
    .epay-birth-tabs button { min-height: 32px; }
    .epay-wheel-group--datetime { grid-template-columns: minmax(54px, 1.15fr) minmax(38px, .82fr) minmax(38px, .82fr) minmax(66px, 1.28fr) minmax(38px, .82fr); }
    .epay-wheel-group { gap: 5px; }
    .epay-birth-panel.is-lunar.can-leap .epay-lunar-leap-row { gap: 5px; margin-top: 5px; }
    .epay-wheel__items { height: 96px; padding: 31px 0; }
    .epay-wheel button { min-height: 32px; padding: 0 4px; font-size: 12px; }
    .epay-wheel--hour button { font-size: 11px; }
    .epay-birth-current { display: none; }
    .epay-birth-actions .epay-primary,
    .epay-birth-actions .epay-secondary { min-height: 40px; }
    .epay-primary, .epay-secondary, .epay-wechat__button { min-height: 40px; }
    .epay-consent { margin-bottom: 6px; font-size: 11px; line-height: 1.3; }
    .epay-consent input { width: 14px; height: 14px; flex-basis: 14px; }
    .epay-form-query { margin-top: 2px; padding: 3px 0; font-size: 12px; }
    .epay-calculating { min-height: calc(100dvh - 142px); padding-top: 24px; padding-bottom: 40px; }
    .epay-orbit { width: 158px; height: 158px; }
    .epay-orbit::before { inset: 23px; }
    .epay-orbit::after { inset: 50px; }
    .epay-orbit span:nth-child(1) { left: 67px; }
    .epay-orbit span:nth-child(3) { top: 67px; }
    .epay-orbit span:nth-child(5) { left: 67px; }
    .epay-orbit span:nth-child(7) { top: 67px; }
    .epay-orbit strong { inset: 50px; }
    .epay-result-heading { gap: 12px; }
    .epay-reading-result .epay-result-heading {
        margin-bottom: 6px;
        padding-bottom: 7px;
    }
    .epay-reading-result .epay-result-heading h3 { font-size: 18px; line-height: 1.25; }
    .epay-reading-result .epay-eyebrow { display: none; }
    .epay-reading-result .epay-preview-section {
        padding-bottom: 6px;
    }
    .epay-reading-result .epay-preview-section p {
        margin: 4px 0 0;
        font-size: 13px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .epay-reading-result .epay-section-label {
        font-size: 11px;
    }
    .epay-method { line-height: 1.35; font-size: 11px; }
    .epay-chart__meta { flex-wrap: wrap; gap: 4px 10px; }
    .epay-pillars { gap: 4px; }
    .epay-chart { padding: 12px 8px; }
    .epay-pillar strong { font-size: 21px; }
    .epay-chart--compact {
        margin-top: 8px;
        padding: 6px 7px;
    }
    .epay-chart--compact .epay-pillar {
        min-height: 36px;
    }
    .epay-chart--compact .epay-pillar strong {
        font-size: 18px;
    }
    .epay-element-bars { grid-template-columns: 1fr; gap: 7px; }
    .epay-element-bars > div { grid-template-columns: 18px 1fr 12px; }
    .epay-cycle-grid { grid-template-columns: 1fr 1fr; }
    .epay-ten-gods__grid { grid-template-columns: 1fr; }
    .epay-unlock {
        margin: 9px -10px 0;
        padding: 10px 10px 11px;
    }
    .epay-product { margin-bottom: 7px; }
    .epay-product__name { font-size: 13px; }
    .epay-product__price { font-size: 20px; }
    .epay-unlock .epay-segment { margin-bottom: 7px; }
    .epay-wechat { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
    .epay-wechat { grid-template-columns: 1fr; }
    .epay-wechat__empty { grid-column: auto; }
}

@media (max-height: 620px) {
    .epay-overlay {
        align-items: start;
        padding: 5px 6px;
    }
    .epay-dialog {
        max-height: calc(100dvh - 10px);
    }
    .epay-dialog[data-step="form"] {
        border-top-width: 2px;
    }
    .epay-dialog[data-step="form"] .epay-dialog__header {
        min-height: 38px;
        padding: 5px 8px;
    }
    .epay-dialog[data-step="form"] .epay-dialog__seal,
    .epay-dialog[data-step="form"] .epay-eyebrow {
        display: none;
    }
    .epay-dialog[data-step="form"] .epay-dialog__identity {
        gap: 0;
    }
    .epay-dialog[data-step="form"] .epay-dialog__title {
        margin: 0;
        font-size: 16px;
        line-height: 1.15;
    }
    .epay-dialog[data-step="form"] .epay-close {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 22px;
    }
    .epay-dialog[data-step="form"] .epay-step {
        padding: 6px 7px 7px;
    }
    .epay-field-row {
        grid-template-columns: minmax(0, 1.12fr) minmax(88px, .88fr);
        gap: 5px;
    }
    .epay-field {
        margin-bottom: 4px;
    }
    .epay-field input {
        height: 34px;
        padding: 0 9px;
        border-radius: 5px;
    }
    .epay-segment {
        gap: 4px;
        margin-bottom: 4px;
    }
    .epay-segment label {
        min-height: 34px;
        border-radius: 5px;
    }
    .epay-form-section {
        padding-bottom: 4px;
    }
    .epay-form-section + .epay-form-section {
        padding-top: 1px;
    }
    .epay-birth-tabs {
        gap: 4px;
        margin-bottom: 4px;
    }
    .epay-birth-tabs button {
        min-height: 28px;
        border-radius: 5px;
    }
    .epay-wheel-group {
        gap: 4px;
    }
    .epay-wheel-group--datetime {
        grid-template-columns: minmax(50px, 1.15fr) minmax(34px, .82fr) minmax(34px, .82fr) minmax(60px, 1.28fr) minmax(34px, .82fr);
    }
    .epay-birth-panel.is-lunar.can-leap .epay-lunar-leap-row { gap: 4px; margin-top: 4px; }
    .epay-wheel__items {
        height: 78px;
        padding: 25px 0;
        border-radius: 5px;
    }
    .epay-wheel button {
        min-height: 26px;
        padding: 0 3px;
        font-size: 11px;
        line-height: 1.15;
    }
    .epay-wheel--hour button {
        font-size: 10px;
    }
    .epay-consent {
        margin-bottom: 4px;
        gap: 5px;
        font-size: 10px;
        line-height: 1.2;
    }
    .epay-consent input {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
        margin-top: 0;
    }
    .epay-primary,
    .epay-secondary,
    .epay-wechat__button {
        min-height: 34px;
        padding: 0 12px;
        border-radius: 5px;
        font-size: 13px;
    }
    .epay-form-query {
        margin-top: 1px;
        padding: 2px 0 0;
        font-size: 11px;
        line-height: 1.2;
    }
    .epay-state,
    .epay-query-result {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.25;
    }
}

@media (prefers-reduced-motion: reduce) {
    .epay-overlay,
    .epay-dialog,
    .epay-toast { transition: none; }
    .epay-orbit,
    .epay-orbit strong,
    .epay-progress span { animation: none; }
}
