/* ============================================================
   投喂打赏系统 · 样式表
   包含：动态渐变背景、浮动爱心、按钮脉冲、二维码扫描线、
        成功勾选描边、彩带飘落等动画
   ============================================================ */

/* ---------- 全局变量 ---------- */
:root {
    --primary:      #ff7a59;
    --primary-deep: #ff4d6d;
    --pink:         #ff9ec4;
    --violet:       #a78bfa;
    --grad:         linear-gradient(135deg, #ff9f43 0%, #ff7a59 45%, #ff4d8d 100%);
    --grad-soft:    linear-gradient(135deg, #fff1e6 0%, #ffe0ef 100%);
    --text:         #3b2f3a;
    --text-sub:     #8b7d8a;
    --line:         rgba(255, 122, 89, .16);
    --card-bg:      rgba(255, 255, 255, .72);
    --shadow-sm:    0 6px 20px rgba(196, 110, 130, .14);
    --shadow-md:    0 18px 46px rgba(196, 110, 130, .20);
    --shadow-lg:    0 30px 80px rgba(180, 90, 120, .28);
    --radius:       28px;
    --radius-sm:    16px;
    --ease:         cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(-45deg, #ffe6d0, #ffd3e2, #e3d5ff, #cfe9fb, #ffe6d0);
    background-size: 400% 400%;
    animation: gradientShift 22s ease infinite;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   背景装饰
   ============================================================ */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    mix-blend-mode: screen;
    will-change: transform;
}
.blob-1 {
    width: 46vmax; height: 46vmax;
    left: -14vmax; top: -16vmax;
    background: radial-gradient(circle at 30% 30%, #ffb36b, transparent 70%);
    animation: blobDrift 26s ease-in-out infinite;
}
.blob-2 {
    width: 40vmax; height: 40vmax;
    right: -12vmax; top: 6vmax;
    background: radial-gradient(circle at 60% 40%, #ff7fa8, transparent 70%);
    animation: blobDrift 32s ease-in-out infinite reverse;
}
.blob-3 {
    width: 38vmax; height: 38vmax;
    left: 22vmax; bottom: -18vmax;
    background: radial-gradient(circle at 50% 50%, #a78bfa, transparent 70%);
    animation: blobDrift 38s ease-in-out infinite;
}

/* 浮动爱心层 */
.hearts {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.heart {
    position: absolute;
    bottom: -40px;
    font-size: 18px;
    line-height: 1;
    color: rgba(255, 255, 255, .85);
    text-shadow: 0 4px 14px rgba(255, 90, 130, .45);
    animation: floatUp 12s linear forwards;
    will-change: transform, opacity;
}
.heart.h-orange { color: rgba(255, 190, 130, .9); }
.heart.h-pink   { color: rgba(255, 150, 190, .9); }
.heart.h-violet { color: rgba(190, 165, 255, .9); }

/* ============================================================
   页面与卡片
   ============================================================ */
.page {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 18px 46px;
    min-height: 100dvh;
}

.card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 34px 28px 26px;
    border-radius: var(--radius);
    background: var(--card-bg);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: var(--shadow-lg);
    animation: cardIn .9s var(--ease) both;
}
/* 卡片顶部渐变描边 */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,159,67,.35), rgba(255,77,141,.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* ---------- 创作者信息 ---------- */
.creator { text-align: center; }

.avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    animation: floatY 5s ease-in-out infinite;
}
.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff9f43, #ff4d8d, #a78bfa, #ff9f43);
    animation: spin 8s linear infinite;
    filter: blur(.5px);
}
.avatar-ring-2 {
    inset: -9px;
    opacity: .35;
    filter: blur(9px);
    animation-duration: 11s;
    animation-direction: reverse;
}
.avatar {
    position: relative;
    z-index: 0;                  /* 建立层叠上下文，保证描边环压在头像之上 */
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 40px;
    background: linear-gradient(160deg, #fff8f2, #ffe8f2);
    box-shadow: 0 10px 24px rgba(255, 110, 140, .32);
    overflow: hidden;
    user-select: none;
}
/* 白色描边环：放在最上层，避免被头像图片盖住 */
.avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9);
    pointer-events: none;
}
.avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    animation: fadeIn .45s ease both;
}
.avatar-emoji { line-height: 1; }

.creator-name {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .5px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s ease-in-out infinite;
}
.slogan {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ---------- 统计 ---------- */
.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 22px 0 26px;
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    background: var(--grad-soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.stat { flex: 1; text-align: center; }
.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-num .currency { font-size: 13px; font-style: normal; margin-right: 1px; }
.stat-label {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--text-sub);
    letter-spacing: .5px;
}
.stat-divider {
    width: 1px;
    height: 34px;
    background: linear-gradient(transparent, var(--line), transparent);
}

/* ============================================================
   表单
   ============================================================ */
.field { margin-bottom: 20px; }

.field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .5px;
    position: relative;
    padding-left: 12px;
}
.field-label::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 14px;
    border-radius: 4px;
    background: var(--grad);
}
.field-hint { font-size: 11.5px; color: var(--text-sub); }

/* 金额选择 */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
    margin-bottom: 11px;
}
.amount-chip {
    position: relative;
    z-index: 0;            /* 建立层叠上下文，让 ::after 渐变落在按钮底色之上 */
    padding: 11px 0;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, .78);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s ease, color .25s ease, border-color .25s ease;
    animation: chipIn .5s var(--ease) both;
}
.amount-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: -1;
}
.amount-chip:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 22px rgba(255, 110, 140, .26);
    border-color: rgba(255, 122, 89, .5);
}
.amount-chip:active { transform: scale(.94); }
.amount-chip.is-active {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(255, 90, 130, .38);
    animation: chipPop .45s var(--ease);
}
.amount-chip.is-active::after { opacity: 1; }

/* 自定义金额 */
.custom-amount {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    border: 1.5px solid var(--line);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.custom-amount.is-focus {
    border-color: rgba(255, 122, 89, .7);
    box-shadow: 0 0 0 4px rgba(255, 122, 89, .13);
    transform: translateY(-2px);
}
.custom-currency {
    padding: 0 6px 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-deep);
}
.custom-amount input {
    flex: 1;
    padding: 13px 16px 13px 4px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: none;
}
.custom-amount input::-webkit-outer-spin-button,
.custom-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom-amount input[type=number] { -moz-appearance: textfield; }
.custom-amount input::placeholder { font-weight: 500; color: #c3b4c2; }

/* 文本输入 */
.input {
    width: 100%;
    padding: 13px 16px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, .8);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.input::placeholder { color: #c3b4c2; }
.input:focus {
    border-color: rgba(255, 122, 89, .7);
    box-shadow: 0 0 0 4px rgba(255, 122, 89, .13);
    transform: translateY(-2px);
}
.textarea { resize: none; line-height: 1.65; }

.counter {
    display: block;
    margin-top: 6px;
    text-align: right;
    font-size: 11.5px;
    color: var(--text-sub);
    font-variant-numeric: tabular-nums;
}
.counter.warn { color: var(--primary-deep); font-weight: 700; }

/* ---------- 提交按钮 ---------- */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 17px 20px;
    margin-top: 4px;
    font-size: 17px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 1px;
    color: #fff;
    background: var(--grad);
    background-size: 200% 200%;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 14px 30px rgba(255, 90, 120, .38);
    animation: gradMove 5s ease infinite, breathe 3.4s ease-in-out infinite;
    transition: transform .25s var(--ease), box-shadow .25s ease, filter .25s ease;
}
.submit-btn em { font-style: normal; }
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(255, 90, 120, .48); }
.submit-btn:active { transform: scale(.97); }
.submit-btn:disabled {
    cursor: not-allowed;
    filter: grayscale(.35) brightness(.95);
    animation: none;
    transform: none;
}
.btn-heart {
    font-size: 17px;
    animation: beat 1.3s ease-in-out infinite;
}
.submit-btn:disabled .btn-heart { animation: none; }

/* 点击水波纹 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    transform: scale(0);
    animation: rippleOut .65s ease-out forwards;
    pointer-events: none;
}

.form-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-sub);
}
.form-note .lock { margin-right: 3px; }

/* ============================================================
   鸣谢榜
   ============================================================ */
.wall {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
}
.wall-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .5px;
}
.wall-icon { animation: swing 3.2s ease-in-out infinite; transform-origin: top center; }
.wall-refresh {
    margin-left: auto;
    width: 28px; height: 28px;
    display: grid; place-items: center;
    font-size: 15px;
    color: var(--primary-deep);
    background: rgba(255, 255, 255, .85);
    border: 1.5px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: transform .4s var(--ease), background .25s ease;
}
.wall-refresh:hover { background: #fff; transform: rotate(180deg) scale(1.1); }
.wall-refresh.is-loading { animation: spin 1s linear infinite; }

.wall-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 268px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 89, .35) transparent;
}
.wall-list::-webkit-scrollbar { width: 5px; }
.wall-list::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 89, .35);
    border-radius: 6px;
}

.wall-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 4px 14px rgba(196, 110, 130, .09);
    animation: itemIn .5s var(--ease) both;
    transition: transform .28s var(--ease), box-shadow .28s ease, background .28s ease;
}
.wall-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 22px rgba(196, 110, 130, .18);
}
.wall-item.is-new { animation: itemPop .7s var(--ease) both; }

.wall-face {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    font-size: 18px;
    border-radius: 50%;
    background: var(--grad-soft);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9);
}
.wall-body { flex: 1; min-width: 0; }
.wall-name {
    display: block;              /* 必须独占一行，否则会与留言挤在同一行 */
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wall-msg {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wall-amount {
    flex: 0 0 auto;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary-deep);
    background: rgba(255, 122, 89, .11);
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

.wall-empty {
    margin: 6px 0 0;
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    animation: fadeIn .5s ease both;
}

/* 骨架屏 */
.skeleton {
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(100deg, rgba(255,255,255,.5) 30%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.5) 70%);
    background-size: 220% 100%;
    animation: shimmer 1.4s linear infinite;
}

/* ============================================================
   弹窗（二维码）
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
}
.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(60, 35, 50, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn .3s ease both;
}
.modal-panel {
    position: relative;
    width: 100%;
    max-width: 340px;
    padding: 30px 26px 24px;
    text-align: center;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff, #fff7f9);
    box-shadow: 0 34px 70px rgba(80, 40, 60, .4);
    animation: panelIn .48s var(--ease) both;
}
.modal.is-closing .modal-panel { animation: panelOut .26s ease forwards; }
.modal.is-closing .modal-mask  { animation: fadeOut .26s ease forwards; }

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    font-size: 13px;
    color: var(--text-sub);
    background: rgba(0, 0, 0, .05);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .25s ease, transform .3s var(--ease), color .25s ease;
}
.modal-close:hover { background: rgba(255, 77, 141, .14); color: var(--primary-deep); transform: rotate(90deg); }

.modal-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
}
.modal-amount {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.modal-amount em { font-size: 17px; font-style: normal; margin-right: 2px; }

/* 二维码容器 */
.qr-box {
    position: relative;
    width: 218px;
    height: 218px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(196, 110, 130, .2), inset 0 0 0 1px rgba(255, 122, 89, .1);
    overflow: hidden;
    animation: qrIn .6s var(--ease) .1s both;
}
.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    animation: fadeIn .45s ease both;
}
.qr-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #fff;
    z-index: 3;
}
.spinner {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 122, 89, .2);
    border-top-color: var(--primary-deep);
    animation: spin .8s linear infinite;
}

/* 扫描线 */
.qr-scanline {
    position: absolute;
    left: 8%; right: 8%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #ff4d8d, transparent);
    box-shadow: 0 0 12px 2px rgba(255, 77, 141, .6);
    animation: scan 2.4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

/* 四角定位框 */
.qr-corner {
    position: absolute;
    width: 22px; height: 22px;
    border: 3px solid var(--primary);
    z-index: 2;
    pointer-events: none;
}
.qr-corner.tl { top: 5px;    left: 5px;    border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.qr-corner.tr { top: 5px;    right: 5px;   border-left: 0;  border-bottom: 0; border-radius: 0 10px 0 0; }
.qr-corner.bl { bottom: 5px; left: 5px;    border-right: 0; border-top: 0;    border-radius: 0 0 0 10px; }
.qr-corner.br { bottom: 5px; right: 5px;   border-left: 0;  border-top: 0;    border-radius: 0 0 10px 0; }

.qr-tip { margin: 0 0 6px; font-size: 13px; color: var(--text-sub); }
.qr-tip strong { color: var(--primary-deep); }

.qr-countdown {
    margin: 0 0 12px;
    font-size: 12.5px;
    color: var(--text-sub);
}
.qr-countdown span {
    font-weight: 800;
    color: var(--primary-deep);
    font-variant-numeric: tabular-nums;
}

.qr-link {
    display: inline-block;
    font-size: 12.5px;
    color: var(--violet);
    text-decoration: none;
    border-bottom: 1px dashed rgba(167, 139, 250, .6);
    transition: color .25s ease, border-color .25s ease;
}
.qr-link:hover { color: var(--primary-deep); border-color: var(--primary-deep); }

.qr-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 14px;
    font-size: 12.5px;
    color: var(--text-sub);
    border-top: 1px dashed var(--line);
}
.qr-status .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(255, 122, 89, .6);
    animation: pulseDot 1.5s ease-out infinite;
}
.qr-status.is-paid { color: #17a673; }
.qr-status.is-paid .dot { background: #17a673; box-shadow: none; animation: none; }

/* ============================================================
   成功弹层
   ============================================================ */
.success {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}
.success-mask {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255, 200, 160, .55), rgba(70, 35, 55, .55));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn .35s ease both;
}
.success-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 330px;
    padding: 34px 26px 26px;
    text-align: center;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #fff6f8);
    box-shadow: 0 34px 80px rgba(80, 40, 60, .42);
    animation: successIn .6s var(--ease) both;
}

.check-wrap {
    width: 92px; height: 92px;
    margin: 0 auto 18px;
    animation: popCheck .7s var(--ease) .15s both;
}
.check { width: 100%; height: 100%; }
.check-circle {
    stroke: #ff7a59;
    stroke-width: 2.5;
    stroke-dasharray: 155;
    stroke-dashoffset: 155;
    animation: drawCircle .8s ease .2s forwards;
}
.check-mark {
    stroke: #17a673;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawMark .45s ease .85s forwards;
}

.success-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeUp .55s var(--ease) .75s both;
}
.success-desc {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-sub);
    animation: fadeUp .55s var(--ease) .85s both;
}
.success-desc strong { color: var(--text); }
.success-amount { font-style: normal; font-weight: 800; color: var(--primary-deep); }
.success-msg {
    margin: 0 0 22px;
    padding: 9px 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-sub);
    background: rgba(255, 122, 89, .08);
    border-radius: 12px;
    animation: fadeUp .55s var(--ease) .95s both;
}
.success-msg:empty { display: none; }

.success-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: .5px;
    color: #fff;
    background: var(--grad);
    background-size: 200% 200%;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(255, 90, 120, .36);
    animation: gradMove 5s ease infinite, fadeUp .55s var(--ease) 1.05s both;
    transition: transform .25s var(--ease), box-shadow .25s ease;
}
.success-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(255, 90, 120, .46); }
.success-btn:active { transform: scale(.97); }

/* 彩带 */
.confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.confetti-piece {
    position: absolute;
    top: -14px;
    width: 9px; height: 15px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
    will-change: transform;
}

/* ============================================================
   轻提示 Toast
   ============================================================ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 42px;
    z-index: 200;
    max-width: 88vw;
    padding: 12px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(56, 34, 48, .93);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(60, 30, 45, .35);
    opacity: 0;
    transform: translate(-50%, 24px) scale(.94);
    pointer-events: none;
    transition: opacity .32s ease, transform .32s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.is-error { background: linear-gradient(135deg, #ff4d6d, #e0344f); }
.toast.is-success { background: linear-gradient(135deg, #17a673, #0e8c5f); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
    margin-top: 26px;
    padding-top: 18px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-sub);
    letter-spacing: .5px;
    border-top: 1px dashed var(--line);
}

/* ============================================================
   动画关键帧
   ============================================================ */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(6vmax, -4vmax) scale(1.12); }
    66%      { transform: translate(-5vmax, 5vmax) scale(.92); }
}
@keyframes floatUp {
    0%   { transform: translateY(0) translateX(0) rotate(0deg) scale(.6); opacity: 0; }
    12%  { opacity: .95; }
    50%  { transform: translateY(-45vh) translateX(26px) rotate(22deg) scale(1); }
    88%  { opacity: .7; }
    100% { transform: translateY(-96vh) translateX(-18px) rotate(-16deg) scale(.85); opacity: 0; }
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(34px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.25) saturate(1.15); }
}
@keyframes chipIn {
    from { opacity: 0; transform: translateY(10px) scale(.9); }
    to   { opacity: 1; transform: none; }
}
@keyframes chipPop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes gradMove {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
@keyframes breathe {
    0%, 100% { box-shadow: 0 14px 30px rgba(255, 90, 120, .38), 0 0 0 0 rgba(255, 122, 89, .5); }
    50%      { box-shadow: 0 14px 30px rgba(255, 90, 120, .38), 0 0 0 14px rgba(255, 122, 89, 0); }
}
@keyframes beat {
    0%, 100% { transform: scale(1); }
    18%      { transform: scale(1.32); }
    36%      { transform: scale(1); }
    54%      { transform: scale(1.2); }
}
@keyframes rippleOut {
    to { transform: scale(3.2); opacity: 0; }
}
@keyframes swing {
    0%, 100% { transform: rotate(-12deg); }
    50%      { transform: rotate(12deg); }
}
@keyframes itemIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
@keyframes itemPop {
    0%   { opacity: 0; transform: scale(.86) translateY(-10px); box-shadow: 0 0 0 0 rgba(255, 122, 89, .5); }
    55%  { opacity: 1; transform: scale(1.03); box-shadow: 0 0 0 12px rgba(255, 122, 89, 0); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    from { background-position: 130% 0; }
    to   { background-position: -30% 0; }
}
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(26px) scale(.9); }
    to   { opacity: 1; transform: none; }
}
@keyframes panelOut {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(14px) scale(.94); }
}
@keyframes qrIn {
    from { opacity: 0; transform: scale(.88) rotate(-3deg); }
    to   { opacity: 1; transform: none; }
}
@keyframes scan {
    0%   { top: 10%; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 88%; opacity: 0; }
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(255, 122, 89, .65); }
    100% { box-shadow: 0 0 0 10px rgba(255, 122, 89, 0); }
}
@keyframes successIn {
    from { opacity: 0; transform: translateY(30px) scale(.9); }
    to   { opacity: 1; transform: none; }
}
@keyframes popCheck {
    0%   { transform: scale(.4); opacity: 0; }
    60%  { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}
@keyframes drawMark {
    to { stroke-dashoffset: 0; }
}
@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: .9; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 420px) {
    .page { padding: 22px 14px 36px; }
    .card { padding: 26px 20px 22px; border-radius: 24px; }
    .creator-name { font-size: 23px; }
    .avatar-wrap { width: 86px; height: 86px; }
    .avatar { width: 74px; height: 74px; font-size: 36px; }
    .amount-grid { gap: 7px; }
    .amount-chip { padding: 10px 0; font-size: 14px; }
    .stat-num { font-size: 20px; }
    .qr-box { width: 196px; height: 196px; }
}

/* 无障碍：跟随系统降低动效 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
