:root {
    --page-bg: #f0f8ff;
    --primary: #4682b4;
    --secondary: #6699cc;
    --info-bg: #CDD1CD;
    --surface: #ffffff;
    --text: #202b36;
    --muted: #5c6874;
    --border: #dddddd;
    --green: #2b9d67;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background-color: var(--page-bg);
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    color: #ff0000;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(70, 130, 180, 0.3);
    outline-offset: 2px;
}

.payment-header {
    padding: 12px 20px;
    color: #ffffff;
    background-color: var(--primary);
    text-align: center;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1100px, 100%);
    min-height: 88px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.brand img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 5px;
}

.brand strong,
.brand span {
    display: block;
    text-align: left;
}

.brand strong {
    font-size: 25px;
    line-height: 1.3;
}

.brand span {
    margin-top: 3px;
    color: #eef6fc;
    font-size: 13px;
}

.floating-back {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    color: #ffffff;
    background-color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.floating-back:hover {
    color: #ffffff;
    background-color: #356b97;
}

.payment-main {
    width: min(1100px, 92%);
    margin: 20px auto 34px;
}

.hero {
    padding: 24px 20px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.eyebrow {
    display: inline-block;
    margin: 0 0 6px;
    padding: 4px 10px;
    color: #ffffff;
    background-color: var(--secondary);
    border-radius: 5px;
    font-size: 12px;
}

.hero h1 {
    margin: 0;
    color: var(--primary);
    font-size: 30px;
    line-height: 1.3;
}

.hero-intro {
    max-width: 680px;
    margin: 9px auto 0;
    color: var(--muted);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 760px;
    margin: 18px auto 0;
    padding: 0;
    list-style: none;
    counter-reset: payment-step;
}

.steps li {
    flex: 1;
    counter-increment: payment-step;
    padding: 9px 10px;
    background-color: var(--info-bg);
    border-radius: 5px;
    font-weight: bold;
}

.steps li::before {
    content: counter(payment-step) ".";
    margin-right: 4px;
    color: var(--primary);
}

.section-heading {
    margin: 20px 0 10px;
    padding: 10px 14px;
    color: #ffffff;
    background-color: var(--secondary);
    border-radius: 5px;
}

.section-heading h2 {
    margin: 0;
    font-size: 18px;
}

.section-heading p {
    margin: 2px 0 0;
    color: #ffffff;
    font-size: 12px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.payment-card {
    overflow: hidden;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-card-header {
    padding: 11px 13px;
    background-color: #f8fbfe;
    border-bottom: 1px solid #e3e8ec;
}

.payment-card-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 17px;
}

.payment-card-header p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.qr-link {
    display: block;
    margin: 10px;
    padding: 6px;
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    text-align: center;
}

.qr-link:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(70, 130, 180, 0.2);
}

.qr-link img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: 3px;
}

.wechat-qr-wrap {
    display: flex;
    justify-content: center;
}

.wechat-add {
    width: min(100%, 430px);
}

.wechat-add .payment-card-header {
    border-top: 4px solid var(--green);
}

.notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.notice,
.contact-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.notice {
    background-color: var(--info-bg);
}

.contact-card {
    background-color: var(--surface);
}

.notice h2,
.contact-card h2 {
    margin: 0 0 7px;
    color: var(--primary);
    font-size: 17px;
}

.notice p,
.contact-card p {
    margin: 5px 0;
}

.notice strong {
    color: #c00000;
}

.wechat-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 12px;
    background-color: #eef7f1;
    border: 1px solid #d4e7da;
    border-radius: 5px;
}

.wechat-id {
    color: #167447;
    font-size: 18px;
    font-weight: bold;
}

.copy-button {
    padding: 8px 14px;
    color: #ffffff;
    background-color: var(--primary);
    border: 0;
    border-radius: 5px;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

.copy-button:hover {
    background-color: #356b97;
}

.page-footer {
    padding: 16px 20px;
    color: #ffffff;
    background-color: var(--primary);
    text-align: center;
}

.page-footer p {
    margin: 0;
}

.page-footer a,
.page-footer a:visited {
    color: #ffffff;
}

.page-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payment-card:last-child {
        grid-column: 1 / -1;
        width: min(100%, 520px);
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .payment-header {
        padding: 10px 12px;
    }

    .header-inner {
        justify-content: flex-start;
        min-height: 66px;
    }

    .brand {
        gap: 10px;
    }

    .brand img {
        width: 56px;
        height: 56px;
    }

    .brand strong {
        font-size: 19px;
    }

    .brand span {
        display: none;
    }

    .floating-back {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .payment-main {
        width: calc(100% - 20px);
        margin-top: 10px;
    }

    .hero {
        padding: 18px 12px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .steps {
        flex-direction: column;
        gap: 6px;
        text-align: left;
    }

    .payment-grid,
    .notes {
        grid-template-columns: 1fr;
    }

    .payment-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .qr-link img {
        height: auto;
        max-height: none;
    }

    .wechat-contact {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-button {
        min-height: 40px;
    }
}
