/* =========================================================
   Swk 赞助中心 - 前台样式
   设计基调：暖纸底色 / 墨色文字 / 朱砂点缀 / 细线分割
   ========================================================= */

/* ---------- 变量 ---------- */
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
        Georgia, "Times New Roman", serif;

    --paper: #f6f3ed;
    --paper-deep: #ece7dd;
    --surface: #fffefb;
    --surface-2: #faf7f1;
    --ink: #232019;
    --ink-2: #565046;
    --ink-3: #8c8477;
    --line: #e4ddcf;
    --line-strong: #cec4b0;
    --accent: #c2402a;
    --accent-deep: #a5331f;
    --accent-soft: rgba(194, 64, 42, 0.09);
    --gold: #b98a2f;
    --silver: #8f979f;
    --bronze: #a9714a;
    --green: #3d7a5c;

    --shadow-sm: 0 1px 2px rgba(66, 52, 32, 0.05), 0 2px 10px rgba(66, 52, 32, 0.05);
    --shadow-md: 0 2px 6px rgba(66, 52, 32, 0.06), 0 14px 32px rgba(66, 52, 32, 0.09);
    --shadow-lg: 0 10px 24px rgba(66, 52, 32, 0.12), 0 36px 80px rgba(66, 52, 32, 0.18);

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --header-h: 66px;
}

[data-theme="dark"] {
    --paper: #16140f;
    --paper-deep: #100e0a;
    --surface: #1f1c16;
    --surface-2: #262219;
    --ink: #ece5d6;
    --ink-2: #b5ac9a;
    --ink-3: #8b8272;
    --line: #352f24;
    --line-strong: #4a4233;
    --accent: #e0684e;
    --accent-deep: #c9543c;
    --accent-soft: rgba(224, 104, 78, 0.14);
    --gold: #d3a652;
    --silver: #a7adb4;
    --bronze: #c08659;
    --green: #67a987;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 14px 32px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.4), 0 36px 80px rgba(0, 0, 0, 0.5);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* 按要求移除所有页面元素的 outline */
*, *::before, *::after { outline: none !important; }
:focus, :focus-visible, a:focus, button:focus, input:focus,
textarea:focus, select:focus, [tabindex]:focus {
    outline: none !important;
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    transition: background-color 0.35s ease, color 0.35s ease;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

.container {
    width: min(1060px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hidden { display: none !important; }

/* ---------- 滚动进度条 ---------- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 120;
    background: transparent;
}
.progress-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transition: width 0.1s linear;
}

/* ---------- 顶栏 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(60, 46, 28, 0.06);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-since {
    font-size: 9.5px;
    letter-spacing: 0.22em;
    color: var(--ink-3);
    text-transform: uppercase;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    display: grid;
    place-items: center;
    transition: 0.25s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle { position: relative; overflow: hidden; }
.theme-ic { width: 18px; height: 18px; display: block; }
.theme-ic-sun { display: none; }
[data-theme="dark"] .theme-ic-sun { display: block; animation: themePop 0.4s var(--ease); }
[data-theme="dark"] .theme-ic-moon { display: none; }
[data-theme="light"] .theme-ic-moon { animation: themePop 0.4s var(--ease); }
@keyframes themePop {
    0% { transform: rotate(-40deg) scale(0.5); opacity: 0; }
    100% { transform: rotate(0) scale(1); opacity: 1; }
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 550;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: 0.25s var(--ease);
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn i { font-size: 13px; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(194, 64, 42, 0.24);
}
.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(194, 64, 42, 0.3);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-2);
}
.btn-ghost:hover { background: rgba(120, 104, 80, 0.09); color: var(--ink); }
.btn-ghost:disabled { opacity: 0.5; cursor: default; }

.btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; padding: 13px 20px; }

/* ---------- 表单（安装页 / 通用） ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ink-2);
}
.form-label em {
    font-style: normal;
    font-weight: 400;
    color: var(--ink-3);
    font-size: 11.5px;
    margin-left: 5px;
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 14px;
    transition: 0.25s var(--ease);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-3); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-textarea { resize: vertical; min-height: 88px; line-height: 1.7; }

/* ---------- Hero ---------- */
.hero { padding: 46px 0 26px; }
.hero-inner { text-align: center; }

.hero-visual { margin-bottom: 6px; }
.hero-ring {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto;
}
.hero-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow-md);
    animation: heroFloat 7s ease-in-out infinite;
}
.hero-ring::before {
    content: "";
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
}
.hero-ring::after {
    content: "";
    position: absolute;
    inset: -19px;
    border-radius: 50%;
    border: 1px dashed var(--line-strong);
    opacity: 0.7;
    animation: slowSpin 46s linear infinite;
}
.hero-badge {
    position: absolute;
    right: -22px;
    bottom: 2px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 4px 11px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.hero-eyebrow {
    margin: 26px 0 10px;
    font-size: 11px;
    letter-spacing: 0.34em;
    color: var(--ink-3);
    text-transform: uppercase;
}
.hero-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(30px, 6vw, 46px);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.25;
}
.hero-subtitle {
    margin: 12px 0 0;
    font-size: clamp(15px, 2.6vw, 17px);
    color: var(--ink-2);
}
.hero-desc {
    margin: 12px auto 0;
    max-width: 540px;
    color: var(--ink-3);
    font-size: 14px;
}
.hero-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-3);
    font-size: 12.5px;
    box-shadow: var(--shadow-sm);
}
.hero-meta i { margin-right: 5px; font-size: 11px; color: var(--accent); }
.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes slowSpin {
    to { transform: rotate(360deg); }
}

/* ---------- 公告跑马灯 ---------- */
.ticker-wrap {
    margin: 8px 0 6px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
}
.ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.ticker-window { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerMove 42s linear infinite;
}
.ticker-item {
    color: var(--ink-2);
    font-size: 13.5px;
    transition: color 0.2s;
}
.ticker-item:hover { color: var(--accent); }
.ticker-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line-strong);
    margin: 0 18px;
    flex-shrink: 0;
}
.ticker-more {
    flex-shrink: 0;
    color: var(--ink-3);
    font-size: 12.5px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: 0.25s var(--ease);
}
.ticker-more:hover { color: var(--accent); border-color: var(--accent); }

@keyframes tickerMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- 区块标题 ---------- */
.section { margin: 52px 0 0; }
.section-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 22px;
}
.section-index {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.section-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.section-rule {
    flex: 1;
    height: 1px;
    min-width: 40px;
    background: var(--line);
}
.section-desc {
    flex-basis: 100%;
    margin: -2px 0 0;
    color: var(--ink-3);
    font-size: 13.5px;
}
.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--green);
    border: 1px solid color-mix(in srgb, var(--green) 36%, transparent);
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--green) 10%, transparent);
}
.live-dot i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

/* ---------- 统计卡片 ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.stat-card:hover::after { opacity: 1; }

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
}
.stat-tag {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 9px;
}
.stat-value {
    font-size: clamp(22px, 3.4vw, 27px);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    color: var(--ink);
}
.stat-label {
    margin-top: 4px;
    color: var(--ink-3);
    font-size: 12.5px;
    letter-spacing: 0.06em;
}

/* ---------- 等级 ---------- */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
}
.level-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 16px 15px;
    text-align: center;
    transition: 0.3s var(--ease);
}
.level-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--level-color) 45%, var(--line));
    box-shadow: var(--shadow-md);
}
.level-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--level-color);
    background: color-mix(in srgb, var(--level-color) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--level-color) 28%, transparent);
}
.level-name {
    font-weight: 650;
    font-size: 14.5px;
    color: var(--level-color);
    letter-spacing: 0.02em;
}
.level-min { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.level-bar {
    height: 3px;
    border-radius: 99px;
    background: var(--paper-deep);
    margin: 11px 0 7px;
    overflow: hidden;
}
.level-bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--level-color);
    transition: width 0.9s var(--ease);
}
.level-count { color: var(--ink-3); font-size: 11.5px; letter-spacing: 0.04em; }

/* ---------- 面板 / 排行 ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.panel-foot {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.tab {
    padding: 7px 18px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 550;
    color: var(--ink-3);
    transition: 0.25s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box i {
    position: absolute;
    left: 12px;
    font-size: 12px;
    color: var(--ink-3);
    pointer-events: none;
}
.search-box input {
    width: 176px;
    max-width: 46vw;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    font-size: 13px;
    transition: 0.25s var(--ease);
}
.search-box input::placeholder { color: var(--ink-3); }
.search-box input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.rank-list { display: flex; flex-direction: column; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.25s;
}
.rank-item:last-child { border-bottom: 0; }
.rank-item:hover { background: var(--surface-2); }

.rank-no {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--surface-2);
    color: var(--ink-3);
    border: 1px solid var(--line);
}
.rank-no.rank-gold {
    background: color-mix(in srgb, var(--gold) 15%, transparent);
    color: var(--gold);
    border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}
.rank-no.rank-silver {
    background: color-mix(in srgb, var(--silver) 16%, transparent);
    color: var(--silver);
    border-color: color-mix(in srgb, var(--silver) 42%, transparent);
}
.rank-no.rank-bronze {
    background: color-mix(in srgb, var(--bronze) 15%, transparent);
    color: var(--bronze);
    border-color: color-mix(in srgb, var(--bronze) 40%, transparent);
}

.rank-main { flex: 1; min-width: 0; }
.rank-name {
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 11.5px;
    letter-spacing: 0.05em;
}
.rank-amount {
    font-weight: 700;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    text-align: right;
    color: var(--accent);
    white-space: nowrap;
}
.rank-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-3);
    letter-spacing: 0.02em;
}

/* ---------- 头像 ---------- */
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--paper-deep);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-md { width: 42px; height: 42px; }
.avatar-fallback { color: rgba(255, 255, 255, 0.92); }

/* ---------- 最近支持 ---------- */
.support-list { display: flex; flex-direction: column; }
.support-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.25s;
}
.support-item:last-child { border-bottom: 0; }
.support-item:hover { background: var(--surface-2); }
.support-item.is-pending { opacity: 0.72; }

.support-main { flex: 1; min-width: 0; }
.support-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.support-name {
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pending-chip {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--gold);
    border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
    background: color-mix(in srgb, var(--gold) 12%, transparent);
    border-radius: 999px;
    padding: 1px 8px;
}
.support-note {
    margin: 2px 0 0;
    color: var(--ink-2);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.support-date {
    margin-top: 2px;
    color: var(--ink-3);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.support-amount {
    font-weight: 700;
    color: var(--accent);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pop-in { animation: popIn 1.1s var(--ease); }
@keyframes popIn {
    0% { opacity: 0; transform: translateY(12px) scale(0.97); background: var(--accent-soft); }
    55% { opacity: 1; transform: translateY(-2px) scale(1.008); background: var(--accent-soft); }
    100% { transform: none; background: transparent; }
}

/* ---------- 空状态 ---------- */
.empty-state {
    padding: 42px 20px;
    text-align: center;
    color: var(--ink-3);
}
.empty-state i {
    font-size: 26px;
    opacity: 0.5;
    margin-bottom: 12px;
    display: block;
}
.empty-state p { margin: 0; font-size: 13.5px; letter-spacing: 0.04em; }

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}
.footer-inner {
    padding: 38px 0 30px;
    text-align: center;
}
.footer-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.footer-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
.footer-links {
    margin: 18px 0 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.footer-links a {
    color: var(--ink-2);
    font-size: 13px;
    transition: color 0.25s;
}
.footer-links a i { margin-right: 5px; font-size: 11px; color: var(--ink-3); transition: color 0.25s; }
.footer-links a:hover, .footer-links a:hover i { color: var(--accent); }
.footer-copy { margin: 0; color: var(--ink-3); font-size: 12px; letter-spacing: 0.05em; }

/* ---------- 返回顶部 ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    box-shadow: var(--shadow-md);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s var(--ease);
    z-index: 80;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- 弹窗 ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: none;
}
.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(32, 25, 16, 0.44);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active .modal-mask { opacity: 1; }

.modal-box {
    position: relative;
    width: min(560px, calc(100% - 32px));
    max-height: 88vh;
    margin: 0 auto;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px 28px 26px;
    opacity: 0;
    transform: translateY(16px) scale(0.975);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
    overscroll-behavior: contain;
}
.modal.active .modal-box { opacity: 1; transform: none; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--ink-3);
    display: grid;
    place-items: center;
    transition: 0.25s var(--ease);
    background: var(--surface);
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.pay-head h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 22px;
    letter-spacing: 0.04em;
}
.pay-head p {
    margin: 6px 0 0;
    color: var(--ink-3);
    font-size: 13px;
}

/* ---------- 收款码 ---------- */
.pay-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 14px;
    flex-wrap: wrap;
}
.pay-tab {
    flex: 1;
    min-width: 96px;
    padding: 9px 12px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 550;
    transition: 0.25s var(--ease);
}
.pay-tab i { margin-right: 5px; }
.pay-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.pay-tab.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.pay-panel { display: none; text-align: center; }
.pay-panel.active { display: block; animation: fadeUp 0.35s var(--ease); }

.qr-frame {
    position: relative;
    width: fit-content;
    margin: 4px auto 10px;
    padding: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.qr-frame::before,
.qr-frame::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    pointer-events: none;
}
.qr-frame::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 17px 0 0 0;
}
.qr-frame::after {
    bottom: -1px;
    right: -1px;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 17px 0;
}
.qr-img {
    width: 188px;
    height: 188px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.qr-tip {
    color: var(--ink-3);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.qr-tip i { margin-right: 5px; color: var(--accent); }

.qr-placeholder {
    padding: 38px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink-3);
    margin-bottom: 10px;
}
.qr-placeholder i { font-size: 30px; margin-bottom: 10px; opacity: 0.6; }
.qr-placeholder p { margin: 0; font-size: 13px; }

/* ---------- 金额预设 ---------- */
.amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 14px 0 4px;
}
.amount-presets button {
    padding: 6px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    transition: 0.25s var(--ease);
}
.amount-presets button:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}
.amount-hint {
    min-height: 20px;
    margin: 2px 0 0;
    text-align: center;
    color: var(--ink-3);
    font-size: 12px;
}

/* ---------- 分割线 ---------- */
.pay-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 14px;
    color: var(--ink-3);
    font-size: 11.5px;
    letter-spacing: 0.18em;
}
.pay-divider::before,
.pay-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------- 登记表单 ---------- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    width: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-2);
}
.field label em {
    font-style: normal;
    font-weight: 400;
    color: var(--ink-3);
    font-size: 11px;
    margin-left: 4px;
}
.field input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 14px;
    transition: 0.25s var(--ease);
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-preview {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 16px 0 10px;
    padding: 11px 13px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.preview-text { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.preview-text strong { font-size: 13.5px; }
.preview-text span {
    font-size: 11.5px;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.form-notice {
    margin: 10px 0 14px;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.6;
}
.form-notice i { color: var(--accent); margin-right: 4px; }

/* ---------- 公告弹窗 ---------- */
.announce-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.announce-item {
    padding: 16px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    transition: 0.35s var(--ease);
}
.announce-item.flash {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
}
.announce-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.announce-top time {
    margin-left: auto;
    color: var(--ink-3);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}
.type-chip {
    font-size: 10.5px;
    letter-spacing: 0.12em;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.type-info { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.type-important { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.type-event { color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, transparent); border-color: color-mix(in srgb, var(--gold) 32%, transparent); }
.pin-chip {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.announce-item h4 {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 650;
    letter-spacing: 0.02em;
}
.announce-item p {
    margin: 0;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.75;
}

/* ---------- Toast ---------- */
.toast-wrap {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 220;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 17px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow-md);
    font-size: 13.5px;
    opacity: 0;
    transform: translateY(14px);
    transition: 0.32s var(--ease);
    pointer-events: auto;
    max-width: min(340px, calc(100vw - 40px));
}
.toast.show { opacity: 1; transform: none; }
.toast.success i { color: var(--green); }
.toast.error i { color: var(--accent); }

/* ---------- 进场动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
    transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 900px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .container { width: calc(100% - 28px); }
    .hide-sm { display: none; }
    .hero { padding: 34px 0 18px; }
    .hero-ring, .hero-avatar { width: 92px; height: 92px; }
    .hero-badge { right: -14px; font-size: 10px; padding: 3px 9px; }
    .hero-actions .btn { flex: 1; min-width: 132px; }
    .section { margin-top: 42px; }
    .section-title { font-size: 21px; }
    .panel-toolbar { padding: 12px 13px; }
    .rank-item, .support-item { padding: 12px 13px; gap: 11px; }
    .rank-amount, .support-amount { font-size: 14px; }
    .search-box input { width: 132px; }
    .form-grid { grid-template-columns: 1fr; }
    .modal.active {
        align-items: flex-end;
        justify-content: center;
    }
    .modal-box {
        width: 100%;
        max-height: 92vh;
        margin: 0;
        border-radius: 20px 20px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 26px 18px 22px;
        transform: translateY(26px);
    }
    .modal.active .modal-box { transform: none; }
    .qr-img { width: 196px; height: 196px; }
    .to-top { right: 14px; bottom: 16px; width: 40px; height: 40px; }
    .toast-wrap { right: 12px; left: 12px; bottom: 14px; align-items: center; }
}

@media (max-width: 520px) {
    .header-actions .btn span { display: none; }
    .header-actions .btn { padding: 9px 13px; }
    .brand-name { font-size: 15.5px; }
    .hero-meta { font-size: 11.5px; padding: 8px 13px; gap: 6px 10px; }
    .stat-grid { gap: 10px; }
    .stat-card { padding: 14px 13px 13px; }
    .stat-value { font-size: 20px; }
    .levels-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pay-tabs { gap: 6px; }
    .pay-tab { min-width: 0; font-size: 12px; padding: 8px 6px; }
    .pay-tab i { display: none; }
    .rank-item { flex-wrap: wrap; }
    .rank-amount { margin-left: auto; }
    .tab { padding: 6px 13px; font-size: 12.5px; }
    .footer-links { gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- 昵称预设 ---------- */
.name-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}
.name-presets button {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px dashed var(--line-strong);
    background: transparent;
    color: var(--ink-3);
    font-size: 12px;
    transition: 0.22s var(--ease);
}
.name-presets button:hover { color: var(--accent); border-color: var(--accent); }
.name-presets button.active {
    color: var(--accent);
    border-style: solid;
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ===== 全站强制移除 outline（置于文件末尾，最高优先级）===== */
*, *::before, *::after,
:focus, :focus-visible, :focus-within,
a, a:focus, a:active, a:hover,
button, button:focus, button:active,
input, input:focus, input:active,
textarea, textarea:focus, textarea:active,
select, select:focus, select:active,
[tabindex], [tabindex]:focus {
    outline: none !important;
    outline: 0 !important;
}
::-moz-focus-inner { border: 0 !important; }
