/* ============================================================
   星援公益站 · Star Charity Hub
   深色渐变 + 玻璃拟态 · 响应式 · 微动效
   ============================================================ */

:root {
  --bg-0: #080b1a;
  --bg-1: #0e1430;
  --bg-2: #141b3e;
  --bg-3: #1b2352;
  --ink: #eef1ff;
  --ink-2: #a8aed4;
  --ink-3: #6f76a3;
  --pink: #ff6b9d;
  --amber: #ffb347;
  --violet: #8b7bff;
  --teal: #3ad6c4;
  --blue: #2d9cdb;
  --red: #ff5c5c;
  --grad: linear-gradient(135deg, #ff6b9d 0%, #ff9a62 55%, #ffb347 100%);
  --grad-violet: linear-gradient(135deg, #8b7bff, #3ad6c4);
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(20, 27, 62, 0.62);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 背景光晕 ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52% 42% at 12% 8%, rgba(255, 107, 157, 0.16), transparent 62%),
    radial-gradient(48% 40% at 88% 16%, rgba(139, 123, 255, 0.18), transparent 62%),
    radial-gradient(60% 50% at 80% 90%, rgba(255, 179, 71, 0.10), transparent 60%),
    radial-gradient(40% 36% at 20% 85%, rgba(58, 214, 196, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 55%, var(--bg-0));
}
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- 版心 ---------- */
.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 11, 26, 0.55);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: rgba(8, 11, 26, 0.85);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.45);
  animation: floatStar 3.5s ease-in-out infinite;
}
@keyframes floatStar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(8deg); }
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: 1px; }
.brand-name em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 3px; border-radius: 3px;
  background: var(--grad);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 700;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  position: relative;
  overflow: hidden;
}
.btn-grad { background: var(--grad); box-shadow: 0 12px 30px rgba(255, 107, 157, 0.4); }
.btn-grad:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(255, 107, 157, 0.55); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.1); }
.btn-violet { background: var(--grad-violet); box-shadow: 0 12px 30px rgba(139, 123, 255, 0.4); }
.btn-violet:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(139, 123, 255, 0.55); }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn:active { transform: scale(0.96); }

/* 波纹 */
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* 汉堡按钮 */
.burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 10px;
}
.burger span {
  width: 24px; height: 2.5px; border-radius: 3px;
  background: var(--ink); transition: 0.3s ease;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 26, 0.6);
  padding: 44px 0 30px;
  backdrop-filter: blur(12px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-grid h4 { font-size: 15px; margin-bottom: 14px; color: #fff; }
.footer-grid p, .footer-grid li, .footer-grid a { font-size: 14px; color: var(--ink-2); }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { text-decoration: none; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-bottom {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--ink-3); font-size: 13px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0 10px; }
.section-head { text-align: center; margin-bottom: 42px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--amber);
  text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.25);
}
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 16px 0 12px; letter-spacing: 0.5px; }
.section-title .t-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-sub { color: var(--ink-2); font-size: 16px; max-width: 620px; margin: 0 auto; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  text-align: center;
}
.hero .halo {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 40% at 50% 30%, rgba(255, 107, 157, 0.22), transparent 70%),
    radial-gradient(30% 30% at 20% 80%, rgba(139, 123, 255, 0.18), transparent 70%),
    radial-gradient(30% 30% at 85% 75%, rgba(58, 214, 196, 0.14), transparent 70%);
  filter: blur(10px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-size: 14px; color: var(--ink-2);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.18;
  margin-bottom: 20px;
}
.hero h1 .t-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-2);
  max-width: 640px; margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 统计条 */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.stat-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(255, 179, 71, 0.35); }
.stat-num {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 项目卡片 */
.project-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  animation: rise 0.6s both;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 107, 157, 0.4);
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.pc-cover {
  position: relative;
  height: 148px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
}
.pc-cover::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 11, 26, 0.85));
}
.pc-cover .dec {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.6;
}
.pc-cover .dec.d1 { width: 130px; height: 130px; top: -36px; right: -28px; }
.pc-cover .dec.d2 { width: 74px; height: 74px; top: 14px; right: 46px; }
.pc-cover .star-tag {
  position: relative;
  align-self: flex-start;
  font-size: 12.5px; font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 6px;
}
.pc-cover .cat {
  position: absolute; top: 16px; right: 16px;
  font-size: 12px; font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.pc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-title { font-size: 18px; font-weight: 800; line-height: 1.4; }
.pc-org { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.pc-org .ico { color: var(--teal); }

/* 进度条 */
.progress-track {
  height: 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(255, 107, 157, 0.55);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shine 2.4s infinite;
}
@keyframes shine { 0% { transform: translateX(-100%);} 60%,100% { transform: translateX(100%);} }
.pc-nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.pc-nums b { color: var(--amber); font-size: 15px; }
.pc-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* 排行榜卡片 */
.rank-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.rank-card:hover { transform: translateX(6px); border-color: rgba(139, 123, 255, 0.45); }
.rank-no {
  font-size: 26px; font-weight: 900; font-style: italic;
  color: var(--ink-3); width: 44px; text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}
.rank-no.top1 { background: linear-gradient(135deg, #ffd76a, #ffb347); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rank-no.top2 { color: #cfd6ff; }
.rank-no.top3 { color: #e8a87c; }
.rank-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 22px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.rank-info { flex: 1; min-width: 0; }
.rank-info .r-name { font-weight: 800; font-size: 17px; }
.rank-info .r-note { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-metrics { display: flex; gap: 20px; font-size: 13px; color: var(--ink-2); text-align: right; }
.rank-metrics b { display: block; font-size: 16px; color: var(--ink); font-weight: 800; }
.rank-metrics .hm { color: var(--amber); }

/* ---------- 首页预览块 ---------- */
.preview-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.preview-list { display: grid; gap: 12px; }
.see-all { text-align: center; margin-top: 34px; }

/* ---------- Hero CTA 横幅 ---------- */
.cta-banner {
  position: relative;
  border-radius: 26px;
  padding: 60px 44px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 20% 0%, rgba(255, 107, 157, 0.35), transparent 60%),
    radial-gradient(70% 120% at 85% 100%, rgba(139, 123, 255, 0.4), transparent 60%),
    linear-gradient(135deg, #1b2352, #141b3e);
  border: 1px solid var(--line);
}
.cta-banner h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; margin-bottom: 14px; }
.cta-banner p { color: var(--ink-2); max-width: 560px; margin: 0 auto 28px; }
.cta-banner .stars {
  position: absolute; pointer-events: none;
  animation: twinkle 3s infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.15; } 50% { opacity: 0.8; } }

/* ---------- 详情页 ---------- */
.detail-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 34px;
}
.detail-cover {
  position: relative;
  border-radius: 26px;
  min-height: 340px;
  padding: 40px 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.detail-cover .dtitle { font-size: clamp(26px, 4vw, 36px); font-weight: 900; line-height: 1.3; position: relative; }
.detail-cover .dsub { font-size: 15px; color: rgba(255,255,255,0.85); position: relative; max-width: 420px; }
.detail-cover .dorg { position: relative; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.detail-cover .dorg .chip {
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}
.detail-cover .dstar {
  position: absolute; top: 26px; right: 26px;
  font-size: 13px; font-weight: 700;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}

.donate-panel {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(16px);
  padding: 30px;
  box-shadow: var(--shadow);
}
.dp-progress { margin-bottom: 22px; }
.dp-progress .track { height: 14px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.dp-progress .fill { height: 100%; border-radius: 999px; background: var(--grad); box-shadow: 0 0 18px rgba(255,107,157,0.6); transition: width 1.2s cubic-bezier(0.22,1,0.36,1); }
.dp-nums { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.dp-nums .big { font-size: 18px; font-weight: 900; color: var(--amber); }

.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 14px; }
.amount-preset {
  padding: 12px 6px; text-align: center;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
  color: var(--ink-2); font-weight: 700; font-size: 14px;
  transition: 0.22s ease;
}
.amount-preset:hover { border-color: var(--pink); color: #fff; }
.amount-preset.active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.45);
  transform: translateY(-2px);
}
.donate-inputs { display: grid; gap: 12px; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit; font-size: 15px;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--pink);
  background: rgba(255, 255, 255, 0.09);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.donate-btn { width: 100%; }
.dp-tip { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 14px; }

/* 区块小标题 */
.block-title { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; margin: 46px 0 20px; }
.block-title::before { content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--grad); }

/* 影响卡片 */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.impact-card {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 16px; text-align: center;
  transition: transform 0.3s ease;
}
.impact-card:hover { transform: translateY(-5px); }
.impact-card .i-ico { font-size: 26px; margin-bottom: 8px; }
.impact-card .i-txt { font-size: 13.5px; color: var(--ink-2); }

/* 里程碑 */
.milestones { display: grid; gap: 10px; }
.milestone {
  display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
  font-size: 14.5px;
}
.milestone .m-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; flex-shrink: 0;
}
.milestone.done .m-dot { background: var(--grad); color: #fff; }
.milestone .m-dot { background: rgba(255,255,255,0.1); color: var(--ink-3); }
.milestone.done .m-txt { color: var(--ink); }
.milestone .m-txt { color: var(--ink-3); }

/* 机构卡 */
.org-card {
  display: flex; gap: 20px;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
  backdrop-filter: blur(12px);
}
.org-avatar {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 28px; color: #fff;
  background: var(--grad-violet);
  box-shadow: 0 10px 26px rgba(139, 123, 255, 0.45);
}
.org-card h4 { font-size: 18px; margin-bottom: 8px; }
.org-card p { color: var(--ink-2); font-size: 14.5px; }

/* 明细表格 */
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.table {
  width: 100%; border-collapse: collapse; min-width: 560px;
  font-size: 14px;
}
.table th {
  text-align: left; padding: 14px 18px;
  color: var(--ink-2); font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.table tr:last-child td { border-bottom: none; }
.table tr { transition: background 0.2s ease; }
.table tbody tr:hover { background: rgba(255,255,255,0.04); }
.table .mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; color: var(--ink); }
.table .pos { color: var(--teal); font-weight: 700; }

/* ---------- 排行榜页 ---------- */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 34px;
}
.podium-card {
  position: relative;
  border-radius: 24px;
  padding: 30px 22px 26px;
  text-align: center;
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: transform 0.32s ease;
  overflow: hidden;
}
.podium-card:hover { transform: translateY(-6px); }
.podium-card.rank-1 { background: linear-gradient(180deg, rgba(255, 179, 71, 0.22), rgba(255, 107, 157, 0.12)); border-color: rgba(255, 179, 71, 0.4); padding-top: 40px; }
.podium-card.rank-2 { background: linear-gradient(180deg, rgba(207, 214, 255, 0.14), rgba(255,255,255,0.03)); }
.podium-card.rank-3 { background: linear-gradient(180deg, rgba(232, 168, 124, 0.16), rgba(255,255,255,0.03)); }
.podium-card .crown { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 26px; }
.podium-card .p-avatar {
  width: 86px; height: 86px; border-radius: 50%;
  margin: 6px auto 16px;
  display: grid; place-items: center;
  color: #fff; font-size: 34px; font-weight: 800;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  position: relative;
}
.podium-card.rank-1 .p-avatar { box-shadow: 0 0 0 5px rgba(255, 179, 71, 0.35), 0 14px 34px rgba(0,0,0,0.45); }
.podium-card .p-name { font-size: 21px; font-weight: 900; }
.podium-card .p-metric { font-size: 26px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin: 6px 0 2px; }
.podium-card .p-note { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.podium-card .p-rank-label {
  display: inline-block; margin-top: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line);
}
.rank-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.rank-tab {
  padding: 10px 22px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 700; cursor: pointer; font-size: 14px;
  transition: 0.22s ease;
}
.rank-tab:hover { color: #fff; }
.rank-tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(255,107,157,0.4); }

/* ---------- 留言墙 ---------- */
.wall-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 34px; align-items: start; }
.wall-form {
  background: var(--glass-strong); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px;
  backdrop-filter: blur(16px);
  position: sticky; top: 90px;
}
.wall-form h3 { font-size: 19px; margin-bottom: 6px; }
.wall-form .wf-sub { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }
.wall-list { display: grid; gap: 16px; }
.wall-msg {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 22px;
  animation: rise 0.5s both;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.wall-msg:hover { transform: translateY(-4px); border-color: rgba(139,123,255,0.4); }
.wm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wm-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
  background: var(--grad-violet);
}
.wm-name { font-weight: 800; font-size: 15px; }
.wm-star { font-size: 12px; color: var(--amber); font-weight: 600; }
.wm-date { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.wm-text { font-size: 14.5px; color: var(--ink-2); }
.wm-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.wm-like {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px;
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
  transition: 0.22s ease;
}
.wm-like:hover { border-color: var(--pink); color: var(--pink); }
.wm-like.liked { background: rgba(255, 107, 157, 0.15); border-color: var(--pink); color: var(--pink); }

/* 标签选择 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-2);
  cursor: pointer; transition: 0.2s ease;
}
.chip:hover { color: #fff; border-color: var(--amber); }
.chip.active { background: rgba(255, 179, 71, 0.16); border-color: var(--amber); color: var(--amber); }

/* ---------- 透明公示页 ---------- */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 46px; }
.flow-step {
  position: relative; text-align: center;
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 16px;
}
.flow-step .fs-no {
  width: 40px; height: 40px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 900; font-size: 18px;
  box-shadow: 0 10px 24px rgba(255,107,157,0.4);
}
.flow-step h4 { font-size: 15px; margin-bottom: 6px; }
.flow-step p { font-size: 12.5px; color: var(--ink-2); }
.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 20px; z-index: 2;
}

.report-card {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.report-card:hover { transform: translateY(-5px); border-color: rgba(58,214,196,0.4); }
.report-card .rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.report-card h4 { font-size: 17px; }
.report-card .rp-org { font-size: 13px; color: var(--teal); font-weight: 600; }
.report-card .rp-date { font-size: 12.5px; color: var(--ink-3); }
.rp-nums { display: flex; gap: 26px; margin: 12px 0 16px; font-size: 13px; color: var(--ink-2); }
.rp-nums b { font-size: 17px; color: var(--ink); display: block; }
.rp-items { display: grid; gap: 8px; margin-top: 16px; }
.rp-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.rp-item .amt { color: var(--teal); font-weight: 700; white-space: nowrap; }

/* ---------- 证书弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 7, 16, 0.78);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  transform: translateY(26px) scale(0.96);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: min(520px, 100%);
  text-align: center;
}
.modal-mask.open .modal { transform: none; }
.modal canvas { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); display: block; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.modal-close {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid var(--line);
  color: #fff; font-size: 17px; cursor: pointer;
  display: grid; place-items: center;
  transition: 0.2s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

/* 成功提示 */
.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 300;
  transform: translateX(-50%) translateY(30px);
  background: rgba(10, 14, 32, 0.95);
  border: 1px solid rgba(58, 214, 196, 0.4);
  color: var(--ink);
  padding: 14px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: 0.4s cubic-bezier(0.22,1,0.36,1);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .t-ico { color: var(--teal); font-size: 18px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: var(--ink-3); padding: 50px 20px; font-size: 15px; }
.empty .e-ico { font-size: 44px; display: block; margin-bottom: 12px; opacity: 0.6; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .preview-wrap { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .wall-layout { grid-template-columns: 1fr; }
  .wall-form { position: static; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(8, 11, 26, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 14px 18px 22px;
    gap: 6px;
    transform: translateY(-140%);
    transition: transform 0.35s ease;
    z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 16px; text-align: center; }
  .nav-links a.active::after { bottom: 6px; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav .btn-ghost { display: none; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr; }
  .podium-card.rank-1 { order: -1; }
  .amount-presets { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 44px 24px; }
  .hero { padding: 64px 0 70px; }
  .flow-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding-top: 50px; }
}

@media (max-width: 420px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .rank-metrics { gap: 12px; }
}
