:root {
    --ink: #17252f;
    --muted: #64747d;
    --primary: #00796b;
    --primary-dark: #005f57;
    --accent: #f2b84b;
    --paper: rgba(255, 255, 255, 0.92);
    --line: rgba(0, 77, 64, 0.15);
    --shadow: 0 24px 70px rgba(18, 48, 58, 0.22);
    --small-shadow: 0 10px 28px rgba(18, 48, 58, 0.12);
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(120deg, rgba(0, 71, 64, 0.72), rgba(13, 99, 111, 0.42)),
        url("/assets/background.jpg") center / cover fixed;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 0;
    display: grid;
    align-items: center;
}

.hero-panel {
    min-height: calc(100vh - 64px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(235, 250, 247, 0.82));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand-row,
.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-row {
    justify-content: flex-start;
    padding-bottom: 24px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 13px;
    color: #063e39;
    background: linear-gradient(135deg, #c7f0e9, #e9fff9);
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: var(--small-shadow);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.05;
}

h3 {
    font-size: 20px;
}

.brand-row p,
.muted,
.panel-head p,
.intro-block p,
.status-text {
    color: var(--muted);
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 30px;
    align-items: center;
    min-height: 560px;
}

.intro-block {
    display: grid;
    gap: 18px;
    max-width: 640px;
}

.intro-block p {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.8;
}

.eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.auth-panel,
.work-panel,
.summary-item,
.notice {
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--small-shadow);
}

.auth-panel,
.work-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.text-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 13px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
}

.text-input:focus {
    border-color: rgba(0, 121, 107, 0.62);
    box-shadow: 0 0 0 4px rgba(0, 121, 107, 0.12);
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 9px;
    padding: 0 16px;
    text-decoration: none;
    font-weight: 900;
}

.primary-btn {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 28px rgba(0, 95, 87, 0.24);
}

.primary-btn.subtle {
    background: linear-gradient(135deg, #2d7984, #16646e);
}

.ghost-btn {
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
}

.status-text {
    min-height: 22px;
    font-size: 13px;
}

.dashboard {
    display: grid;
    gap: 20px;
}

.dashboard-head h2 {
    margin-top: 4px;
    font-size: clamp(26px, 4vw, 42px);
}

.notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-color: rgba(242, 184, 75, 0.42);
    background: rgba(255, 247, 225, 0.94);
}

.notice strong {
    color: #9a5d00;
}

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

.summary-item {
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 18px;
}

.summary-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.summary-item strong {
    color: var(--primary-dark);
    font-size: clamp(24px, 4vw, 38px);
    overflow-wrap: anywhere;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 16px;
    align-items: start;
}

.panel-head {
    display: grid;
    gap: 6px;
}

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

.amount-grid button {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: rgba(243, 251, 250, 0.92);
    font-weight: 900;
}

.amount-grid button.active {
    border-color: rgba(0, 121, 107, 0.7);
    color: white;
    background: var(--primary);
}

.pay-panel {
    min-height: 360px;
}

.qr-box {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 16px;
    border: 1px dashed rgba(0, 77, 64, 0.24);
    border-radius: 12px;
    background: rgba(246, 252, 251, 0.88);
    color: var(--muted);
    word-break: break-all;
}

.qr-box img {
    width: min(230px, 100%);
    height: auto;
    border-radius: 8px;
    background: white;
}

.pay-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 880px) {
    body {
        background-attachment: scroll;
    }

    .page-shell {
        width: min(100% - 18px, 1180px);
        padding: 9px 0;
        align-items: start;
    }

    .hero-panel {
        min-height: calc(100vh - 18px);
        padding: 18px;
        border-radius: 14px;
    }

    .brand-row,
    .dashboard-head,
    .notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    .login-layout,
    .summary-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .login-layout {
        min-height: 0;
    }

    .intro-block {
        gap: 12px;
    }

    .intro-block p {
        font-size: 15px;
    }

    .auth-panel,
    .work-panel {
        padding: 16px;
    }

    .summary-item {
        min-height: 92px;
    }

    .amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pay-actions {
        grid-template-columns: 1fr;
    }
}
