:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f4f5f4;
    color: #202522;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4f5f4;
}

.payment-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}

.payment-card {
    width: min(100%, 430px);
    padding: 30px 24px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #e3e6e4;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(20, 30, 25, .06);
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    font-weight: 700;
    background: #c47722;
}

.payment-header { margin-bottom: 20px; }
h1 { margin: 0; font-size: clamp(23px, 6vw, 28px); letter-spacing: -.02em; line-height: 1.3; }
p { margin: 8px 0 0; color: #707772; line-height: 1.55; font-size: 15px; }

.qr-frame {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #d9ddda;
    border-radius: 10px;
}

.qr-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    -webkit-touch-callout: default;
    -webkit-user-select: auto;
    user-select: auto;
    touch-action: manipulation;
}

.hint {
    margin-top: 16px;
    color: #858b87;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 420px) {
    body { background: #fff; }
    .payment-shell {
        display: block;
        min-height: 100dvh;
        padding: max(28px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    }
    .payment-card {
        width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .payment-header { margin: 4px 0 22px; text-align: left; }
    h1 { font-size: 24px; }
    p { font-size: 14px; }
    .qr-frame { padding: 9px; border-radius: 8px; }
    .hint { margin-top: 14px; }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 420px) {
    .payment-shell { padding-top: max(18px, env(safe-area-inset-top)); }
    .payment-header { margin-bottom: 16px; }
    .hint { margin-top: 10px; }
}
