:root {
    --ink: #14324a;
    --muted: #3d8f52;
    --accent: #1c6b34;
    --danger: #9a3412;
    --surface: rgba(255, 255, 255, 0.9);
    --line: rgba(20, 50, 74, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse 70% 42% at 50% 108%, rgba(134, 214, 168, 0.45), transparent 62%),
        radial-gradient(ellipse 48% 32% at 50% 18%, rgba(186, 214, 255, 0.45), transparent 70%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f3fbf6 100%);
}

.shell {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: rise 0.55s ease-out both;
}

.brand {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #1c6b34;
}

.lead {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.qr-stage {
    margin-top: 32px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(16, 42, 84, 0.12);
    animation: soft-in 0.7s ease-out 0.08s both;
}

#qrCanvas {
    display: block;
    width: 220px;
    height: 220px;
}

.expire {
    margin-top: 22px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #1c6b34;
    background: rgba(61, 143, 82, 0.12);
    border-radius: 8px;
}

.expire.expired {
    color: #9a3412;
    background: rgba(180, 83, 9, 0.1);
}

.url-box {
    margin-top: 22px;
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.url-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.url {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    word-break: break-all;
}

.actions {
    margin-top: 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    width: 100%;
    height: 48px;
    line-height: 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #16325a 0%, #0c2344 100%);
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 18px rgba(12, 35, 68, 0.16);
}

.btn-primary:active {
    opacity: 0.88;
}

.btn-ghost {
    color: #14324a;
    background: transparent;
    border: 1px solid rgba(20, 50, 74, 0.22);
}

.btn-ghost:active {
    background: rgba(20, 50, 74, 0.05);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes soft-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
