/* ===== 星益应援 · 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #070a15;
  --panel: rgba(255, 255, 255, .045);
  --panel-strong: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef1fb;
  --muted: #98a2c0;
  --muted-2: #6b7390;
  --accent: #8b5cf6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --grad: linear-gradient(120deg, #a78bfa 0%, #ec4899 55%, #f59e0b 120%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 24px 60px rgba(2, 4, 14, .6);
  --shadow-glow: 0 8px 32px rgba(139, 92, 246, .35);
  --ease: cubic-bezier(.22, .68, .28, .99);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(800px 500px at 0% 20%, rgba(236, 72, 153, .10), transparent 55%),
    radial-gradient(700px 600px at 60% 110%, rgba(245, 158, 11, .08), transparent 55%),
    linear-gradient(180deg, #070a15, #0a0f1f 45%, #070a15);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: rgba(139, 92, 246, .4); }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ===== 文字工具 ===== */
.grad-text {
  background: linear-gradient(120deg, #c4b5fd, #f472b6 50%, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: 3px;
  color: #c4b5fd;
  font-weight: 700;
  margin-bottom: 8px;
}
.muted { color: var(--muted); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(236, 72, 153, .45); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  background: var(--panel-strong); border: 1px solid var(--border-strong); color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .13); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: #2a1038; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 0, 0, .28); }

/* ===== 标签 / 徽章 ===== */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(139, 92, 246, .15); border: 1px solid rgba(167, 139, 250, .3);
  color: #ddd6fe; font-weight: 500;
}
.tag.ghost { background: var(--panel-strong); border-color: var(--border-strong); color: var(--muted); }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(7, 10, 20, .62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav.scrolled { background: rgba(7, 10, 20, .88); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 800; letter-spacing: .5px;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; box-shadow: var(--shadow-glow);
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-size: .92rem; color: var(--muted);
  transition: color .25s, background .25s, border-color .25s;
}
.nav-links a:hover { color: #fff; background: var(--panel-strong); }
.nav-links a.active { color: #fff; background: rgba(139, 92, 246, .18); border: 1px solid rgba(167, 139, 250, .3); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--panel-strong); border: 1px solid var(--border);
}
.nav-burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 150px 0 90px; overflow: hidden;
}
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0;
  animation: float 14s ease-in-out infinite; pointer-events: none;
}
.blob-1 { width: 440px; height: 440px; background: radial-gradient(circle, #8b5cf6, transparent 70%); top: -80px; right: 4%; }
.blob-2 { width: 380px; height: 380px; background: radial-gradient(circle, #ec4899, transparent 70%); bottom: 0; left: -80px; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-26px) scale(1.05); } }
.hero-inner { position: relative; z-index: 1; max-width: 840px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid var(--border-strong); background: rgba(139, 92, 246, .12);
  color: #c4b5fd; border-radius: 999px; font-size: .85rem; letter-spacing: .5px;
  backdrop-filter: blur(8px);
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.18; font-weight: 800; letter-spacing: 1px; margin: 22px 0 18px; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.15rem); max-width: 620px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 58px; }
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 14px; text-align: center; backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .35); }
.stat b {
  display: block; font-size: 1.55rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: .8rem; }

/* ===== 区块 ===== */
.section { padding: 76px 0 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 800; letter-spacing: .5px; }
.link-more { color: #c4b5fd; font-size: .9rem; font-weight: 600; transition: .3s; white-space: nowrap; }
.link-more:hover { color: #f0abfc; transform: translateX(4px); display: inline-block; }

/* ===== 项目卡片 ===== */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.project-card {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, .4); box-shadow: var(--shadow-lg); }
.p-cover {
  position: relative; height: 156px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.p-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(7, 10, 20, .6)); }
.p-emoji { font-size: 54px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); position: relative; z-index: 1; transform: rotate(-6deg); transition: transform .4s var(--ease); }
.project-card:hover .p-emoji { transform: rotate(0deg) scale(1.12); }
.p-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(10, 14, 28, .55); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; font-size: .74rem; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.p-org {
  position: absolute; bottom: 10px; left: 12px; z-index: 2;
  font-size: .76rem; color: rgba(255, 255, 255, .92); letter-spacing: .5px;
}
.p-star {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: .74rem; color: #fff; background: rgba(10, 14, 28, .55);
  border: 1px solid rgba(255, 255, 255, .22); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.p-body { padding: 18px; }
.p-body h3 { font-size: 1.04rem; margin-bottom: 8px; line-height: 1.5; }
.p-summary { color: var(--muted); font-size: .87rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-progress { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; margin: 14px 0 10px; overflow: hidden; }
.p-progress.lg { height: 12px; margin: 4px 0 0; }
.p-bar {
  height: 100%; width: 0; border-radius: 99px; background: var(--grad);
  transition: width 1.1s var(--ease); position: relative; overflow: hidden;
}
.p-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-100%); animation: shimmer 2.4s infinite;
}
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.project-card.in .p-bar, .project-card.done .p-bar, .p-bar.static { width: var(--w); }
.p-meta { display: flex; justify-content: space-between; align-items: baseline; }
.p-raised b { font-size: 1.06rem; color: #fff; }
.p-raised { color: var(--muted); font-size: .78rem; }
.p-pct { color: #c4b5fd; font-weight: 700; font-size: .9rem; }
.p-sub {
  display: flex; justify-content: space-between; color: var(--muted-2); font-size: .76rem;
  margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border);
}

/* ===== 明星卡片 ===== */
.star-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.star-card {
  position: relative; border-radius: var(--radius); padding: 26px; overflow: hidden;
  border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s var(--ease); color: #fff; min-height: 156px;
}
.star-card::before { content: ""; position: absolute; inset: 0; background: rgba(7, 10, 20, .34); }
.star-card::after {
  content: "✦"; position: absolute; right: 12px; bottom: -20px; font-size: 90px;
  opacity: .16; transform: rotate(15deg);
}
.star-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.star-card > * { position: relative; z-index: 1; }
.star-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  margin-bottom: 12px; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25);
}
.star-name { font-size: 1.2rem; font-weight: 700; }
.star-fans { font-size: .82rem; opacity: .85; margin: 2px 0 14px; }
.star-total { font-size: .85rem; opacity: .95; }
.star-total b { font-size: 1.1rem; }

/* ===== 新闻列表 ===== */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex; gap: 18px; align-items: center; padding: 18px 20px;
  border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border);
  transition: background .3s, transform .3s var(--ease), border-color .3s;
}
.news-item:hover { background: var(--panel-strong); transform: translateX(4px); border-color: var(--border-strong); }
.news-date {
  text-align: center; min-width: 58px; flex-shrink: 0;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(167, 139, 250, .25);
  padding: 8px 4px; border-radius: 10px;
}
.news-date b { font-size: 1.1rem; display: block; color: #e9d5ff; line-height: 1.2; }
.news-date span { font-size: .72rem; color: var(--muted); }
.news-main { flex: 1; min-width: 0; }
.news-main h4 { font-size: .98rem; }
.news-main p { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-arrow { color: var(--muted-2); transition: .3s; flex-shrink: 0; }
.news-item:hover .news-arrow { color: #c4b5fd; transform: translateX(4px); }

/* ===== CTA 横幅 ===== */
.cta-band { margin: 70px auto 20px; }
.cta-inner {
  background: var(--grad); border-radius: 26px; padding: 58px 30px; text-align: center;
  color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-glow);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 220px at 18% 0%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(500px 200px at 90% 100%, rgba(255, 255, 255, .14), transparent 55%);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 10px; letter-spacing: .5px; }
.cta-inner p { margin-bottom: 24px; opacity: .94; }
.cta-inner .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== 内页头部 ===== */
.page-hero { padding: 148px 0 26px; position: relative; }
.page-hero::after {
  content: "✦ ✧ ✦"; position: absolute; top: 92px; right: 6%; font-size: 26px;
  color: rgba(196, 181, 253, .25); letter-spacing: 18px; pointer-events: none;
}
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 10px 0 8px; letter-spacing: 1px; }
.page-hero p { color: var(--muted); }

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex; gap: 14px; justify-content: space-between; align-items: center;
  flex-wrap: wrap; margin-bottom: 26px; padding: 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  backdrop-filter: blur(10px);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; background: var(--panel-strong);
  border: 1px solid var(--border); font-size: .85rem; color: var(--muted); transition: .25s;
}
.chip:hover { color: #fff; border-color: var(--border-strong); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.filter-right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-right select, .search input {
  background: var(--panel-strong); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; outline: none; font-size: .85rem; transition: .25s;
}
.filter-right select:focus, .search input:focus { border-color: rgba(167, 139, 250, .6); }
.search input { width: 190px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: .95rem; }

/* ===== 标签页 ===== */
.tabs {
  display: inline-flex; gap: 6px; padding: 6px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px; margin-bottom: 30px;
}
.tab { padding: 9px 20px; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 600; transition: .25s; }
.tab:hover { color: #fff; }
.tab.active { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }

/* ===== 排行榜 ===== */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  display: grid; grid-template-columns: 52px 1fr auto; grid-template-areas: "no info amount" "bar bar bar";
  gap: 6px 16px; align-items: center; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; transition: .3s;
}
.rank-row:hover { background: var(--panel-strong); transform: translateX(4px); border-color: var(--border-strong); }
.rank-no {
  grid-area: no; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; color: var(--muted);
}
.rank-no.top1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3a2400; }
.rank-no.top2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #1e293b; }
.rank-no.top3 { background: linear-gradient(135deg, #fda4af, #f97316); color: #431407; }
.rank-info { grid-area: info; min-width: 0; }
.rank-name { font-weight: 700; font-size: 1.02rem; }
.rank-sub { color: var(--muted-2); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-amount { grid-area: amount; font-weight: 800; color: #e9d5ff; font-size: 1.05rem; white-space: nowrap; }
.rank-bar { grid-area: bar; height: 7px; background: rgba(255, 255, 255, .07); border-radius: 99px; overflow: hidden; }
.rank-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899); transition: width 1.1s var(--ease);
}
.rank-bar i.gold { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* ===== 应援日历 ===== */
.timeline { display: flex; flex-direction: column; gap: 36px; }
.tl-month { display: grid; grid-template-columns: 92px 1fr; gap: 24px; }
.tl-month-label { text-align: center; padding-top: 4px; }
.tl-month-label b {
  display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.3;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tl-month-label span { font-size: .8rem; color: var(--muted); }
.tl-events { position: relative; padding-left: 30px; }
.tl-events::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, #8b5cf6, #ec4899, transparent);
}
.tl-event { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 16px; margin-bottom: 18px; }
.tl-event::before {
  content: ""; position: absolute; left: -30px; top: 24px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); z-index: 1;
}
.tl-date {
  text-align: center; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 9px 0; align-self: start; backdrop-filter: blur(8px);
}
.tl-date b { display: block; font-size: 1.25rem; color: #e9d5ff; line-height: 1.2; }
.tl-date span { font-size: .72rem; color: var(--muted); }
.tl-event .tl-card { padding: 16px 18px; transition: .3s; }
.tl-event .tl-card:hover { border-color: rgba(167, 139, 250, .4); transform: translateY(-2px); }
.tl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.tl-tag { font-size: .74rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.tl-tag.offline { background: rgba(52, 211, 153, .14); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, .25); }
.tl-tag.online { background: rgba(96, 165, 250, .14); color: #93c5fd; border: 1px solid rgba(96, 165, 250, .25); }
.tl-org { font-size: .78rem; color: var(--muted); }
.tl-card h4 { font-size: 1rem; margin-bottom: 4px; }
.tl-card p { color: var(--muted); font-size: .85rem; }
.tl-meta { color: var(--muted-2); font-size: .8rem; margin-top: 8px; }

/* ===== 玻璃面板 ===== */
.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(14px);
}
.panel-title { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.panel-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 99px; background: var(--grad); flex-shrink: 0;
}

/* ===== 项目详情 ===== */
.detail-hero { padding-top: 90px; }
.detail-cover {
  height: 240px; border-radius: 22px; position: relative; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 10, 20, .05), rgba(7, 10, 20, .68)); }
.dc-emoji { font-size: 92px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .4)); position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 24px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.detail-side { position: sticky; top: 92px; }
.detail-head h1 { font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.4; margin: 12px 0 10px; }
.dh-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dh-sub { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.dh-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.dh-meta > div {
  background: var(--panel-strong); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center;
}
.dh-meta span { display: block; font-size: .74rem; color: var(--muted); }
.dh-meta b { font-size: 1.05rem; }
.dh-summary {
  color: var(--muted); font-size: .93rem; background: rgba(139, 92, 246, .08);
  border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 8px;
}
.para { color: #c6cdea; font-size: .93rem; margin-bottom: 12px; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.impact-item {
  background: var(--panel-strong); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: .87rem; display: flex; gap: 8px; align-items: center;
}
.impact-ico { color: #6ee7b7; font-weight: 800; }

/* 爱心榜 */
.donor-list { display: flex; flex-direction: column; gap: 10px; }
.donor-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--panel-strong); border: 1px solid var(--border); border-radius: 12px; transition: .3s;
}
.donor-row:hover { border-color: rgba(167, 139, 250, .35); }
.donor-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
}
.donor-info { flex: 1; min-width: 0; }
.donor-info b { display: block; font-size: .92rem; }
.donor-info span { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.donor-amt { font-weight: 700; color: #fbbf24; font-size: .9rem; white-space: nowrap; }

/* 捐款卡片 */
.donate-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.donate-tip { color: var(--muted); font-size: .83rem; margin-bottom: 14px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.amt {
  padding: 11px 0; border-radius: 10px; background: var(--panel-strong);
  border: 1px solid var(--border); font-weight: 700; color: var(--muted); transition: .25s;
}
.amt:hover { border-color: rgba(167, 139, 250, .5); color: #fff; }
.amt.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.amount-custom {
  display: flex; align-items: center; gap: 6px; background: var(--panel-strong);
  border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; margin-bottom: 10px; transition: .25s;
}
.amount-custom:focus-within { border-color: rgba(167, 139, 250, .6); }
.amount-custom span { color: var(--muted); }
.amount-custom input { flex: 1; background: none; border: none; outline: none; padding: 11px 0; min-width: 0; }
.donate-name {
  width: 100%; background: var(--panel-strong); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; outline: none; margin-bottom: 10px; transition: .25s;
}
.donate-name:focus { border-color: rgba(167, 139, 250, .6); background: rgba(139, 92, 246, .08); }
label.anon { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; cursor: pointer; }
.anon input { accent-color: #ec4899; width: 16px; height: 16px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.pay-method {
  padding: 10px 0; border-radius: 10px; background: var(--panel-strong);
  border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--muted); transition: .25s;
}
.pay-method.active { border-color: rgba(52, 211, 153, .5); color: #6ee7b7; background: rgba(52, 211, 153, .1); }
.donate-note { color: var(--muted-2); font-size: .75rem; text-align: center; margin-top: 12px; }

/* 留言墙 */
.msg-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.msg-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg-form input, .msg-form textarea {
  background: var(--panel-strong); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; outline: none; transition: .25s; resize: vertical;
}
.msg-form input:focus, .msg-form textarea:focus { border-color: rgba(167, 139, 250, .6); background: rgba(139, 92, 246, .08); }
.msg-form .btn { align-self: flex-end; }
.msg-list { display: flex; flex-direction: column; gap: 14px; max-height: 440px; overflow: auto; padding-right: 4px; }
.msg-item { display: flex; gap: 12px; }
.msg-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
}
.msg-body { flex: 1; background: var(--panel-strong); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.msg-head { display: flex; gap: 10px; align-items: center; font-size: .85rem; flex-wrap: wrap; }
.msg-head b { color: #fff; }
.msg-amt { color: #fbbf24; font-size: .78rem; font-weight: 600; }
.msg-time { color: var(--muted-2); font-size: .74rem; margin-left: auto; }
.msg-body p { font-size: .87rem; color: #c6cdea; margin-top: 4px; word-break: break-word; }
.msg-tag { display: inline-block; font-size: .72rem; color: var(--muted-2); margin-top: 6px; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(4, 6, 14, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  position: relative; width: min(460px, 100%); max-height: 88vh; overflow: auto;
  padding: 30px; background: rgba(15, 20, 40, .94); border: 1px solid var(--border-strong);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.97); transition: transform .35s var(--ease);
}
.modal-mask.show .modal { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel-strong); color: var(--muted); font-size: 16px; transition: .25s; z-index: 2;
}
.modal-close:hover { background: rgba(236, 72, 153, .3); color: #fff; transform: rotate(90deg); }
.modal h2 { font-size: 1.3rem; margin-bottom: 6px; }
.modal .muted { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
label.field { display: block; margin-bottom: 14px; color: var(--muted); font-size: .85rem; }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: 6px; background: var(--panel-strong);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; outline: none; transition: .25s; resize: vertical;
}
label.field input:focus, label.field select:focus, label.field textarea:focus {
  border-color: rgba(167, 139, 250, .6); background: rgba(139, 92, 246, .08); box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
}
.launch-ok { text-align: center; padding: 10px 0; }
.launch-ico { font-size: 46px; margin-bottom: 8px; animation: float 4s ease-in-out infinite; }
.launch-ok h3 { font-size: 1.2rem; margin-bottom: 6px; }
.launch-ok p { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

/* 支付弹窗 */
.pay-head { text-align: center; }
.pay-check { font-size: 40px; }
.pay-amount {
  text-align: center; font-size: 2rem; font-weight: 800; margin: 8px 0 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.qr-wrap {
  text-align: center; background: #fff; border-radius: 16px; padding: 18px; margin-bottom: 16px;
}
.qr-wrap canvas { border-radius: 8px; max-width: 100%; height: auto; }
.qr-wrap p { color: #64748b; font-size: .78rem; margin-top: 10px; }

/* ===== Toast ===== */
#toastBox {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none;
}
.toast {
  background: rgba(20, 26, 48, .96); border: 1px solid var(--border-strong); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(14px); transition: .35s var(--ease); white-space: nowrap;
}
.toast.show { opacity: 1; transform: none; }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--border); margin-top: 90px; padding: 56px 0 30px; background: rgba(7, 10, 20, .6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.footer h4 { font-size: .9rem; margin-bottom: 14px; color: #fff; letter-spacing: 1px; }
.footer-col a { display: block; color: var(--muted); font-size: .88rem; padding: 4px 0; transition: .25s; cursor: pointer; }
.footer-col a:hover { color: #e9d5ff; transform: translateX(3px); }
.footer-brand .logo { font-size: 1.2rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 10px; max-width: 260px; }
.footer-note {
  color: var(--muted-2); font-size: .78rem; border-top: 1px dashed var(--border);
  padding-top: 20px; text-align: center;
}

/* ===== 入场动画 ===== */
.reveal { opacity: 0; }
.reveal.in { animation: revealUp .8s var(--ease) both; animation-delay: var(--d, 0s); }
.reveal.done { opacity: 1; transform: none; }
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; flex-direction: column;
    background: rgba(10, 14, 26, .97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 16px; gap: 4px;
    transform: translateY(-140%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 16px; }
  .nav-burger { display: flex; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tl-month { grid-template-columns: 1fr; gap: 14px; }
  .tl-month-label { text-align: left; display: flex; align-items: baseline; gap: 8px; padding: 0 0 0 4px; }
  .tl-month-label b { font-size: 1.2rem; }
  .hero { min-height: auto; padding: 130px 0 70px; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .dh-meta { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .msg-inputs { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 44px 1fr; grid-template-areas: "no info" "no amount" "bar bar"; }
  .rank-amount { font-size: .95rem; }
  .detail-cover { height: 180px; }
  .hero-cta .btn { flex: 1; }
  .tabs { width: 100%; justify-content: center; }
  .tab { flex: 1; padding: 9px 8px; }
  .tl-event { grid-template-columns: 50px 1fr; gap: 12px; }
  .nav-actions .btn { display: none; }
}
