:root {
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #1c2430;
    --muted: #6b7480;
    --border: #e3e8ef;
    --primary: #0b6bcb;
    --primary-press: #095aa8;
    --danger: #c62828;
    --danger-bg: #fdecea;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
}

.brand {
    margin: 8px 4px 20px;
}

.brand h1 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: .01em;
}

.brand p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 16px;
}

.card + .card {
    margin-top: 14px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 107, 203, .14);
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.captcha-row input {
    flex: 1;
    min-width: 0;
}

.captcha-row img,
.captcha-question {
    width: 116px;
    height: 48px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f7f9fc;
}

.captcha-row img {
    object-fit: cover;
}

.captcha-question {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    background: var(--primary-press);
}

.btn.secondary {
    margin-top: 18px;
    background: #eef3fa;
    color: var(--primary);
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 14px;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 4px;
}

.refresh {
    margin: 10px 0 0;
    text-align: right;
    font-size: 13px;
}

.refresh a {
    color: var(--primary);
    text-decoration: none;
}

.notes {
    margin-top: 22px;
    padding: 0 4px;
}

.notes h2 {
    margin: 0 0 8px;
    font-size: 14px;
}

.notes ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.summary {
    margin-bottom: 14px;
}

.summary strong {
    font-size: 18px;
}

.summary .meta {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.refund-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.refund-item {
    padding: 16px;
}

.refund-item + .refund-item {
    margin-top: 12px;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
}

.row + .row {
    border-top: 1px dashed #eef1f5;
}

.row .k {
    flex: 0 0 auto;
    color: var(--muted);
    white-space: nowrap;
}

.row .v {
    text-align: right;
    word-break: break-all;
}

.row .amount {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef3fa;
    color: var(--primary);
    font-size: 12px;
}

@media (min-width: 720px) {
    .page {
        padding-top: 40px;
    }

    .brand h1 {
        font-size: 28px;
    }

    .card {
        padding: 24px;
    }
}
