/* =========================================================
   投喂站样式 · 二次元蓝色主题
   天空蓝 / 深海军蓝 / 金币点缀 / 看板娘相框 / 排行榜徽章
   ========================================================= */

:root {
    --paper: #eef5ff;
    --paper-2: #ddecff;
    --cream: #ffffff;
    --ink: #14355e;
    --ink-2: #5f7aa6;
    --line: #c6dcf8;
    --brand: #2f7df6;
    --brand-2: #1f63d6;
    --brand-soft: #e2efff;
    --gold: #ffb410;
    --silver: #9fb2c8;
    --bronze: #d0946a;
    --green: #22a35f;
    --danger: #e05656;
    --shadow: 5px 5px 0 rgba(47, 125, 246, .16);
    --shadow-lg: 9px 9px 0 rgba(47, 125, 246, .20);
    --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-num: Georgia, "Times New Roman", "Songti SC", STSong, serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #0a1526;
        --paper-2: #0e1c33;
        --cream: #10203a;
        --ink: #e6efff;
        --ink-2: #93a9c9;
        --line: #1c3252;
        --brand: #4d94ff;
        --brand-2: #7ab5ff;
        --brand-soft: #12294d;
        --gold: #ffc94d;
        --silver: #8fa3bd;
        --bronze: #d8a077;
        --green: #4dbd7e;
        --danger: #e67979;
        --shadow: 5px 5px 0 rgba(0, 0, 0, .35);
        --shadow-lg: 9px 9px 0 rgba(0, 0, 0, .45);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(880px 420px at 85% -80px, rgba(173, 216, 255, .5), transparent 70%),
        radial-gradient(620px 320px at -60px 25%, rgba(198, 226, 255, .55), transparent 70%),
        var(--paper);
}

@media (prefers-color-scheme: dark) {
    body {
        background:
            radial-gradient(880px 420px at 85% -80px, rgba(77, 148, 255, .12), transparent 70%),
            radial-gradient(620px 320px at -60px 25%, rgba(77, 148, 255, .09), transparent 70%),
            var(--paper);
    }
}

a { color: var(--brand-2); }
em { font-style: normal; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.num { font-family: var(--font-num); font-style: italic; }

/* ================= 顶部导航 ================= */
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--ink);
}
@media (prefers-color-scheme: dark) {
    .topbar { background: rgba(16, 32, 58, .85); }
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 58px;
}
.brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 17px; letter-spacing: .02em;
    color: var(--ink); text-decoration: none;
}
.brand::after { content: "."; color: var(--brand); }
.brand-logo { height: 30px; max-width: 120px; object-fit: contain; border-radius: 6px; }
.topnav { display: flex; gap: 4px; }
.topnav a {
    color: var(--ink-2); text-decoration: none; font-size: 14px;
    padding: 6px 12px; border-radius: 10px;
}
.topnav a:hover { color: var(--ink); background: var(--brand-soft); }

/* ================= Hero ================= */
.hero {
    position: relative;
    padding: 72px 0 60px;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%;
    background: #fff; opacity: .55; filter: blur(2px);
    pointer-events: none;
}
.hero::before { width: 340px; height: 100px; top: 40px; right: -120px; }
.hero::after  { width: 260px; height: 80px; bottom: 30px; left: -140px; }
@media (prefers-color-scheme: dark) {
    .hero::before, .hero::after { background: #1c3a63; opacity: .5; }
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.25fr .75fr;
    gap: 48px; align-items: center;
}
.hero-eyebrow {
    margin: 0 0 14px; font-size: 13px; letter-spacing: .12em;
    color: var(--brand-2); font-weight: 700;
}
.hero-title {
    margin: 0 0 14px;
    font-size: clamp(42px, 6.5vw, 76px);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05;
    text-shadow: 3px 3px 0 var(--brand-soft);
}
.hero-bio {
    margin: 0 0 28px; max-width: 520px;
    font-size: 17px; color: var(--ink-2);
}
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-stat { font-size: 14px; color: var(--ink-2); }
.hero-stat .num { font-size: 20px; color: var(--brand); font-weight: 700; }

/* ---- 看板娘相框 ---- */
.hero-visual { display: flex; justify-content: center; }
.hero-frame {
    position: relative;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 18px;
    padding: 10px 10px 40px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2.5deg);
    max-width: 320px;
    width: 100%;
}
.hero-chara { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 10px; }
.hero-frame-caption {
    position: absolute; bottom: 9px; left: 0; right: 0;
    text-align: center; font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.hero-ava-pin {
    position: absolute; top: -26px; left: -26px;
    width: 64px; height: 64px; border-radius: 50%;
    object-fit: cover; background: #fff;
    border: 3px solid var(--ink); box-shadow: var(--shadow);
}
.sparkle {
    position: absolute; width: 14px; height: 14px;
    background: var(--gold);
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    animation: twinkle 2.2s ease-in-out infinite;
}
.sparkle.s1 { top: -12px; right: 34px; }
.sparkle.s2 { bottom: 34px; left: -18px; animation-delay: .7s; width: 10px; height: 10px; }
.sparkle.s3 { top: 30%; right: -16px; animation-delay: 1.3s; width: 8px; height: 8px; }
@keyframes twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(.55) rotate(24deg); opacity: .5; }
}

/* ---- 无看板娘图时的头像兜底 ---- */
.hero-avatar-wrap { position: relative; }
.hero-avatar {
    width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--ink);
    box-shadow: var(--shadow-lg);
    background: var(--cream);
    display: block;
}
.hero-avatar-text {
    display: flex; align-items: center; justify-content: center;
    font-size: 84px; font-weight: 900; color: var(--brand);
}
.hero-pin {
    position: absolute; right: -42px; bottom: 8px;
    background: var(--brand); color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 7px 16px; border: 2px solid var(--ink);
    transform: rotate(-6deg);
    box-shadow: var(--shadow);
    border-radius: 999px;
}

/* ================= Flash ================= */
.flash {
    max-width: 560px; margin: 20px auto; padding: 12px 18px;
    border-radius: 12px; text-align: center;
    border: 1.5px solid var(--line); background: var(--cream);
}
.flash-err { border-color: var(--danger); color: var(--danger); }
.flash-ok { border-color: var(--green); color: var(--green); }

/* ================= 章节 ================= */
.section { padding: 64px 0; }
.section-alt {
    background: var(--paper-2);
    border-top: 2px dashed var(--line);
    border-bottom: 2px dashed var(--line);
}
.section-title {
    margin: 0 0 6px; font-size: 30px; font-weight: 800;
    display: flex; align-items: baseline; gap: 12px;
}
.section-no {
    font-family: var(--font-num); font-style: italic;
    font-size: 18px; color: var(--brand);
    border-bottom: 3px solid var(--brand); padding-bottom: 4px;
}
.section-sub { margin: 0 0 36px; color: var(--ink-2); font-size: 15px; }

/* ================= 按钮 ================= */
.btn {
    display: inline-block; cursor: pointer; text-decoration: none;
    font-family: inherit; font-size: 15px; font-weight: 700;
    padding: 12px 26px; border-radius: 12px;
    border: 2px solid var(--ink);
    background: linear-gradient(135deg, #4d94ff, var(--brand));
    color: #fff;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.btn-lg { font-size: 17px; padding: 15px 34px; border-radius: 14px; }
.btn-block { width: 100%; text-align: center; }
.btn-ghost {
    background: var(--cream); color: var(--ink);
    border: 1.5px solid var(--line); box-shadow: none;
    font-weight: 600; padding: 8px 14px; font-size: 13px;
}
.btn-ghost:hover { border-color: var(--ink); transform: none; box-shadow: none; }
.btn-danger {
    background: #fdecec; color: var(--danger);
    border: 1.5px solid var(--line); box-shadow: none;
    font-weight: 600; padding: 8px 14px; font-size: 13px;
}
.btn-danger:hover { border-color: var(--danger); transform: none; box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; border-width: 1.5px; box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled, .btn-disabled {
    background: var(--paper-2); color: var(--ink-2); border-color: var(--line);
    box-shadow: none; cursor: not-allowed;
}
.btn:disabled:hover, .btn-disabled:hover { transform: none; box-shadow: none; }

/* ================= 投喂档位 ================= */
.tiers {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.tier {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 26px 22px 22px;
    text-decoration: none; color: inherit;
    box-shadow: var(--shadow);
    transition: transform .14s ease, box-shadow .14s ease;
}
.tier:hover { transform: translate(-3px, -4px); box-shadow: var(--shadow-lg); }
.tier-amount {
    font-family: var(--font-num); font-style: italic;
    font-size: 44px; font-weight: 700; line-height: 1;
    margin-bottom: 10px;
}
.tier-amount .num:first-child { font-size: 24px; color: var(--brand); }
.tier-amount-custom { font-size: 34px; }
.tier-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.tier-desc { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; flex: 1; }
.tier-cta {
    font-size: 13px; font-weight: 700; color: var(--brand-2);
    border-top: 1.5px dashed var(--line); padding-top: 12px;
}
.tier:hover .tier-cta { text-decoration: underline; }

.tier-featured {
    background: linear-gradient(150deg, #1c3a63, #14355e);
    color: #e6efff;
    border-color: var(--ink);
}
.tier-featured .tier-amount { color: #fff; }
.tier-featured .tier-amount .num:first-child { color: var(--gold); }
.tier-featured .tier-desc { color: rgba(230, 239, 255, .72); }
.tier-featured .tier-cta { color: #8fc0ff; border-top-color: rgba(230, 239, 255, .3); }

.pay-closed-tip {
    margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--ink-2);
    max-width: 520px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px;
}

/* ================= 排行榜 ================= */
.rank-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rank-head .section-sub { margin-bottom: 30px; }
.section-chibi {
    width: 120px; height: 120px; object-fit: cover;
    border: 3px solid var(--ink); border-radius: 50%;
    box-shadow: var(--shadow);
    transform: rotate(6deg);
    flex: none;
}
.rank-list { display: flex; flex-direction: column; gap: 14px; }
.rank-item {
    display: flex; gap: 14px; align-items: center;
    background: var(--cream);
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 14px 18px;
}
.rank-no {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
    background: var(--paper-2); color: var(--ink-2);
}
.rank-avatar {
    flex: none; width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; background: var(--paper-2);
    border: 2px solid var(--ink);
}
.rank-avatar-text {
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 22px; color: var(--brand);
}
.rank-main { flex: 1; min-width: 0; }
.rank-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rank-name { font-weight: 800; font-size: 15px; }
.rank-count {
    font-size: 12px; color: var(--ink-2);
    background: var(--brand-soft); border-radius: 999px; padding: 1px 10px;
}
.rank-msg { margin: 2px 0; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-time { font-size: 12px; color: var(--ink-2); }
.rank-amount {
    flex: none; display: flex; flex-direction: column; align-items: center; gap: 0;
    cursor: pointer; font-family: inherit;
    background: none; border: none; padding: 4px 8px; border-radius: 12px;
}
.rank-amount .num { font-size: 26px; font-weight: 700; color: var(--brand-2); border-bottom: 2px dashed var(--brand); }
.rank-amount:hover { background: var(--brand-soft); }
.rank-amount:hover .num { color: var(--brand); }
.rank-amount-tip { font-size: 11px; color: var(--ink-2); margin-top: 2px; }

/* 前三名样式 */
.rank-item.top1 { border-color: var(--gold); background: linear-gradient(90deg, #fff7e4, var(--cream)); }
.rank-item.top1 .rank-no { background: var(--gold); color: #fff; }
.rank-item.top2 { border-color: var(--silver); }
.rank-item.top2 .rank-no { background: var(--silver); color: #fff; }
.rank-item.top3 { border-color: var(--bronze); }
.rank-item.top3 .rank-no { background: var(--bronze); color: #fff; }
@media (prefers-color-scheme: dark) {
    .rank-item.top1 { background: linear-gradient(90deg, #2d2612, var(--cream)); }
}

.rank-empty {
    text-align: center; padding: 30px 0;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    color: var(--ink-2);
}
.rank-empty img {
    width: 140px; height: 140px; object-fit: cover;
    border: 3px solid var(--ink); border-radius: 50%;
    box-shadow: var(--shadow);
}
.rank-empty p { margin: 0; }

/* ---- 明细弹窗 ---- */
.modal-mask {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10, 30, 60, .5);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-mask.open { display: flex; }
.modal-card {
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: 480px; max-height: 80vh; overflow: auto;
    padding: 24px 26px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close {
    cursor: pointer; background: var(--paper-2); color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 10px;
    width: 32px; height: 32px; font-size: 18px; line-height: 1;
}
.modal-close:hover { border-color: var(--ink); }
.modal-total {
    display: flex; align-items: baseline; gap: 6px;
    background: var(--brand-soft); border-radius: 12px;
    padding: 10px 16px; margin-bottom: 14px; font-size: 14px; color: var(--ink-2);
}
.modal-total strong { font-size: 24px; color: var(--brand-2); }
.modal-items { display: flex; flex-direction: column; }
.modal-item { padding: 12px 2px; border-bottom: 1.5px dashed var(--line); }
.modal-item:last-child { border-bottom: none; }
.modal-item-top { display: flex; align-items: baseline; gap: 10px; }
.modal-item-amount { font-size: 20px; font-weight: 700; color: var(--brand-2); }
.modal-item-tier {
    font-size: 12px; color: var(--brand-2);
    background: var(--brand-soft); border-radius: 999px; padding: 1px 10px;
}
.modal-item-time { margin-left: auto; font-size: 12px; color: var(--ink-2); }
.modal-item-msg { margin: 6px 0 0; font-size: 14px; }

/* ================= 作品 ================= */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
    display: block; background: var(--cream);
    border: 2px solid var(--line); border-radius: 16px;
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: var(--shadow);
    transition: transform .14s ease, box-shadow .14s ease;
}
a.work-card:hover { transform: translate(-3px, -4px); box-shadow: var(--shadow-lg); }
.work-thumb { height: 160px; overflow: hidden; background: var(--paper-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-thumb-text {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-num); font-style: italic;
    font-size: 56px; font-weight: 700; color: var(--brand);
}
.work-body { padding: 16px 18px 18px; }
.work-title { margin: 0 0 4px; font-size: 17px; }
.work-desc { margin: 0; color: var(--ink-2); font-size: 13px; }

/* ================= 留言板 ================= */
.msg-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto 36px; }
.msg-form input[type=text], .msg-form textarea {
    padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--cream); color: var(--ink);
    font-size: 14px; font-family: inherit; resize: vertical;
}
.msg-form input:focus, .msg-form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.msg-form .btn { align-self: flex-end; }

.msg-list { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin: 0 auto; }
.msg-item { background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.msg-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.msg-nick { font-weight: 700; }
.msg-time { color: var(--ink-2); font-size: 12px; }
.msg-content { margin: 0; font-size: 14px; }
.msg-reply {
    margin-top: 12px; background: var(--brand-soft); border-radius: 10px;
    padding: 10px 14px; font-size: 14px; border-left: 3px solid var(--brand);
}
.msg-reply-label { font-size: 12px; color: var(--brand-2); font-weight: 700; }
.msg-reply p { margin: 2px 0 0; }

/* ================= 空态 / 页脚 ================= */
.empty-tip { text-align: center; color: var(--ink-2); margin: 20px 0; }
.footer { border-top: 2px solid var(--ink); padding: 24px 0; margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ink-2); font-size: 13px; }

/* ================= 支付页 ================= */
.pay-body {
    background:
        radial-gradient(700px 380px at 50% -100px, rgba(173, 216, 255, .5), transparent 70%),
        var(--paper);
    min-height: 100vh;
}
@media (prefers-color-scheme: dark) {
    .pay-body {
        background:
            radial-gradient(700px 380px at 50% -100px, rgba(77, 148, 255, .12), transparent 70%),
            var(--paper);
    }
}
.pay-wrap { max-width: 560px; margin: 0 auto; padding: 40px 20px 80px; }
.pay-back { display: inline-block; color: var(--ink-2); text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.pay-back:hover { color: var(--brand-2); }
.pay-card {
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 34px 30px;
}
.pay-head { text-align: center; margin-bottom: 26px; }
.pay-chibi {
    width: 72px; height: 72px; object-fit: cover;
    border: 2.5px solid var(--ink); border-radius: 50%;
    box-shadow: var(--shadow);
    display: block; margin: 0 auto 12px;
}
.pay-creator { font-size: 13px; color: var(--ink-2); letter-spacing: .1em; }
.pay-title { margin: 4px 0 6px; font-size: 30px; font-weight: 900; }
.pay-sub { margin: 0; color: var(--ink-2); font-size: 14px; }

.pay-field { margin-bottom: 22px; }
.pay-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.pay-label em { color: var(--ink-2); font-weight: 400; font-size: 12px; font-style: normal; }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amount-chip {
    cursor: pointer; font-family: var(--font-sans);
    padding: 13px 4px; text-align: center;
    background: var(--paper); color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 12px;
    font-size: 15px; font-weight: 700;
}
.amount-chip:hover { border-color: var(--brand); }
.amount-chip.active {
    border: 2px solid var(--ink); color: var(--brand-2);
    background: var(--brand-soft); box-shadow: 2px 2px 0 var(--ink);
}
.amount-custom {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    cursor: pointer; padding: 8px 6px;
    background: var(--paper); border: 1.5px dashed var(--line); border-radius: 12px;
    font-size: 12px; color: var(--ink-2);
}
.amount-custom.active { border: 2px solid var(--ink); }
.amount-custom input {
    width: 100%; border: none; background: transparent; text-align: center;
    font-family: var(--font-num); font-style: italic;
    font-size: 18px; font-weight: 700; color: var(--ink);
}
.amount-custom input:focus { outline: none; }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method-card {
    cursor: pointer; position: relative;
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--paper);
}
.method-card input { position: absolute; opacity: 0; }
.method-name { font-weight: 800; font-size: 15px; }
.method-desc { font-size: 12px; color: var(--ink-2); }
.method-card:hover { border-color: var(--brand); }
.method-card.active {
    border: 2px solid var(--ink); background: var(--brand-soft);
    box-shadow: 2px 2px 0 var(--ink);
}
.method-card.active .method-name { color: var(--brand-2); }

.pay-input {
    width: 100%; padding: 13px 15px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--paper); color: var(--ink);
    font-size: 15px; font-family: inherit;
}
.pay-input:focus { outline: 2px solid var(--brand); border-color: transparent; }

.pay-total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1.5px dashed var(--line);
    margin: 26px 0 18px; padding-top: 18px;
    font-size: 15px; color: var(--ink-2);
}
.pay-total strong {
    font-family: var(--font-num); font-style: italic;
    font-size: 34px; color: var(--brand-2);
}
.pay-note { margin: 14px 0 0; font-size: 12px; color: var(--ink-2); text-align: center; }
.pay-closed { text-align: center; padding: 24px 0 8px; color: var(--ink-2); }
.pay-closed .btn { margin-top: 14px; }

.pay-jump { text-align: center; }
.pay-jump h1 { margin: 16px 0 6px; font-size: 24px; }
.pay-meta { color: var(--ink-2); font-size: 14px; margin: 0 0 20px; }
.pay-jump-spinner {
    width: 42px; height: 42px; margin: 0 auto;
    border: 4px solid var(--brand-soft);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 管理后台 ================= */
.admin-body { background: var(--paper-2); }
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 20px 20px 64px; }

.admin-top {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--cream); border: 2px solid var(--ink); border-radius: 16px;
    padding: 10px 16px; margin-bottom: 20px; box-shadow: var(--shadow);
    position: sticky; top: 12px; z-index: 10;
}
.admin-brand { font-weight: 800; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-tab {
    text-decoration: none; color: var(--ink-2); padding: 7px 13px;
    border-radius: 10px; font-size: 14px;
}
.nav-tab:hover { color: var(--ink); background: var(--paper-2); }
.nav-tab.active { background: var(--brand); color: #fff; font-weight: 700; }
.admin-actions { display: flex; gap: 8px; align-items: center; }

.card {
    background: var(--cream); border: 1.5px solid var(--line); border-radius: 16px;
    padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.card-narrow { max-width: 520px; }
.card-title { margin: 0 0 6px; font-size: 18px; }
.card-tip { margin: 0 0 16px; color: var(--ink-2); font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.form-grid input[type=text], .form-grid input[type=number], .form-grid input[type=password], .form-grid select {
    padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
    background: var(--paper); color: var(--ink); font-size: 14px; font-family: inherit;
}
.form-grid input:focus, .form-grid select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.form-grid .span2 { grid-column: span 2; }
.check-label { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--ink) !important; font-size: 14px !important; }
.form-actions { display: flex; gap: 10px; align-items: center; }

.tier-edit-row {
    display: grid; grid-template-columns: 1fr .7fr 1.6fr auto;
    gap: 8px; margin-bottom: 10px; align-items: center;
}
.tier-edit-row input {
    padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
    background: var(--paper); color: var(--ink); font-size: 14px; font-family: inherit;
}
.tier-edit-row input:focus { outline: 2px solid var(--brand); border-color: transparent; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td {
    text-align: left; padding: 10px 10px; border-bottom: 1.5px dashed var(--line);
    vertical-align: top;
}
.data-table th { color: var(--ink-2); font-weight: 700; font-size: 13px; }
.data-table tr:last-child td { border-bottom: none; }
.td-msg { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-time { white-space: nowrap; color: var(--ink-2); font-size: 13px; }
.th-ops, .td-ops { white-space: nowrap; width: 1%; }
.td-ops { display: flex; gap: 6px; flex-wrap: wrap; }

.tag { font-size: 12px; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); }
.tag-on { background: #e4f8ec; color: var(--green); border-color: #bfe8cd; }
.tag-off { background: #fdecec; color: var(--danger); border-color: #f5c8c8; }

.inline-form { display: inline; }

.auth-box {
    max-width: 400px; margin: 80px auto;
    background: var(--cream); border: 2px solid var(--ink); border-radius: 18px;
    padding: 34px 28px; box-shadow: var(--shadow-lg); text-align: center;
}
.auth-box h1 { margin: 0 0 8px; font-size: 22px; }
.auth-tip { color: var(--ink-2); font-size: 13px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.auth-form input {
    padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
    background: var(--paper); color: var(--ink); font-size: 14px; font-family: inherit;
}
.auth-form input:focus { outline: 2px solid var(--brand); border-color: transparent; }

.tab-section { display: none; }
.tab-section.active { display: block; }

/* ================= 入场动画 ================= */
.hero-inner { animation: rise .5s ease-out both; }
.tier { animation: rise .45s ease-out both; }
.tier:nth-child(2) { animation-delay: .06s; }
.tier:nth-child(3) { animation-delay: .12s; }
.tier:nth-child(4) { animation-delay: .18s; }
.rank-item { animation: rise .4s ease-out both; }
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* ================= 响应式 ================= */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .hero-bio { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .tiers { grid-template-columns: repeat(2, 1fr); }
    .works { grid-template-columns: repeat(2, 1fr); }
    .section-chibi { width: 90px; height: 90px; }
}
@media (max-width: 560px) {
    .tiers { grid-template-columns: 1fr; }
    .works { grid-template-columns: 1fr; }
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
    .method-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span2 { grid-column: span 1; }
    .tier-edit-row { grid-template-columns: 1fr 1fr; }
    .tier-edit-row input:nth-child(3) { grid-column: span 2; }
    .admin-top { position: static; }
    .hero { padding: 48px 0 40px; }
    .section { padding: 48px 0; }
    .hero-frame { max-width: 260px; }
    .hero-ava-pin { width: 52px; height: 52px; top: -20px; left: -16px; }
    .rank-amount .num { font-size: 20px; }
    .section-chibi { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}