:root {
    --bg: #f5efe2;
    --bg-deep: #1c2e2b;
    --paper: rgba(255, 250, 242, 0.88);
    --paper-strong: #fff9f0;
    --text: #182220;
    --muted: #61716d;
    --line: rgba(24, 34, 32, 0.12);
    --accent: #1f9b7a;
    --accent-deep: #0e6f56;
    --accent-soft: rgba(31, 155, 122, 0.14);
    --danger: #c4512d;
    --danger-soft: rgba(196, 81, 45, 0.14);
    --shadow: 0 32px 80px rgba(24, 34, 32, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.modal-open {
    overflow: hidden;
}

body {
    font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(31, 155, 122, 0.24), transparent 30%),
        radial-gradient(circle at right 20%, rgba(196, 81, 45, 0.16), transparent 28%),
        linear-gradient(135deg, #f7f0e6 0%, #efe4d3 50%, #e6dccf 100%);
}

.scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.85;
}

.scene::before,
.scene::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
}

.scene-home::before {
    width: 36vw;
    height: 36vw;
    right: -10vw;
    top: 5vh;
    background: rgba(28, 46, 43, 0.12);
}

.scene-home::after {
    width: 28vw;
    height: 28vw;
    left: -8vw;
    bottom: 4vh;
    background: rgba(31, 155, 122, 0.12);
}

.scene-result::before,
.scene-payment::before {
    width: 30vw;
    height: 30vw;
    left: -8vw;
    top: -8vw;
    background: rgba(31, 155, 122, 0.12);
}

.scene-result::after,
.scene-payment::after {
    width: 24vw;
    height: 24vw;
    right: -5vw;
    bottom: -4vw;
    background: rgba(28, 46, 43, 0.12);
}

.layout {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
    padding: 40px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
    min-height: calc(100vh - 96px);
}

.hero-copy,
.pay-card,
.status-card {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: var(--paper);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 40px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.brand-visual,
.status-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 34, 32, 0.08);
    box-shadow: 0 16px 30px rgba(24, 34, 32, 0.08);
}

.brand-visual {
    width: 118px;
    height: 118px;
    flex: 0 0 118px;
    padding: 10px;
}

.brand-logo,
.status-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-caption {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pay-card,
.status-card {
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.pay-card {
    padding: 28px;
}

.status-card {
    padding: 32px;
}

.status-brand {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
    padding: 8px;
}

.card-topline {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--accent) 0%, #73cfa7 55%, #f1d3a6 100%);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.display-title,
.status-card h1,
.pay-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.display-title {
    max-width: 11ch;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.98;
}

.lead,
.card-note,
.status-copy,
.tips p,
.mini-meta span {
    color: var(--muted);
    line-height: 1.7;
}

.lead {
    max-width: 46rem;
    margin: 24px 0 0;
    font-size: 17px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.fact,
.result-item {
    padding: 18px 18px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid var(--line);
}

.fact-label,
.result-item span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.fact strong,
.result-item strong {
    display: block;
    font-size: 18px;
    line-height: 1.45;
    word-break: break-all;
}

.card-head {
    padding-top: 8px;
}

.pay-card h2,
.status-card h1 {
    font-size: clamp(28px, 4vw, 44px);
}

.card-note {
    margin: 10px 0 0;
}

.banner {
    margin: 22px 0 0;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.banner-info {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.banner-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.banner-warning {
    background: rgba(222, 169, 53, 0.16);
    color: #7a5a08;
}

.pay-form {
    margin-top: 22px;
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.amount-field {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
}

.currency-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    color: var(--accent-deep);
}

.amount-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.amount-input::placeholder {
    color: rgba(24, 34, 32, 0.28);
}

.mini-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 24px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #f9fff7;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 30px rgba(14, 111, 86, 0.24);
}

.primary-button:hover {
    transform: translateY(-1px);
}

.inline-button {
    width: auto;
    min-width: 168px;
}

.tips {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.tips p {
    margin: 0;
    font-size: 13px;
}

.tips p + p {
    margin-top: 8px;
}

.result-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 96px);
}

.status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-success {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.status-pending,
.status-neutral {
    background: rgba(24, 34, 32, 0.08);
    color: var(--text);
}

.status-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-copy {
    margin: 16px 0 0;
    max-width: 44rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.action-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 28px;
}

.payment-shell {
    margin-top: 22px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px dashed rgba(24, 34, 32, 0.15);
    background: rgba(255, 255, 255, 0.5);
}

.payment-shell form {
    margin: 0;
}

.wechat-modal[hidden] {
    display: none;
}

.wechat-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
}

.wechat-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 25, 0.7);
    backdrop-filter: blur(6px);
}

.wechat-modal-panel {
    position: relative;
    width: min(calc(100% - 24px), 420px);
    margin: 24px 12px 0 auto;
    padding: 24px;
    border-radius: 28px;
    background: #fffaf2;
    border: 1px solid rgba(24, 34, 32, 0.08);
    box-shadow: 0 28px 80px rgba(17, 27, 25, 0.36);
}

.wechat-modal-arrow {
    position: absolute;
    top: -14px;
    right: 34px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #1f9b7a;
    color: #fff;
    box-shadow: 0 10px 30px rgba(31, 155, 122, 0.28);
}

.wechat-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.wechat-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 34, 32, 0.08);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wechat-modal-panel h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.wechat-modal-copy {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.wechat-steps {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.wechat-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
}

.wechat-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 700;
}

.wechat-confirm {
    margin-top: 18px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 96px);
}

.pay-card {
    width: min(100%, 760px);
}

.pay-brand {
    margin-bottom: 22px;
    padding: 12px 10px 18px;
}

.compact-brand {
    margin-bottom: 0;
    padding: 18px 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(247, 239, 226, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.compact-visual {
    width: 116px;
    height: 116px;
    flex: 0 0 116px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(24, 34, 32, 0.08);
}

.compact-brand .brand-name {
    font-size: clamp(26px, 3.4vw, 42px);
}

.compact-brand .brand-caption {
    font-size: 12px;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .facts,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .pay-card,
    .status-card {
        padding: 24px;
    }

    .layout {
        width: min(calc(100% - 20px), var(--content-width));
        padding: 18px 0 28px;
    }

    .status-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .hero {
        display: block;
    }
}

@media (max-width: 640px) {
    .display-title {
        max-width: none;
    }

    .mini-meta {
        flex-direction: column;
    }

    .amount-field {
        padding: 16px 16px 18px;
    }

    .currency-mark {
        font-size: 28px;
    }

    .brand-lockup {
        flex-direction: column;
    }

    .brand-visual {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .status-brand {
        width: 84px;
        height: 84px;
    }

    .compact-brand {
        padding: 16px;
    }

    .compact-visual {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .wechat-modal-panel {
        width: calc(100% - 20px);
        margin: 20px 10px 0 auto;
        padding: 22px 18px 18px;
    }

    .wechat-modal-panel h3 {
        font-size: 26px;
    }
}
