:root {
  color-scheme: light;
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #2b2620;
  --ink-2: #6b6258;
  --line: #e8e0d5;
  --brand: #b45309;
  --brand-soft: #fdf3e3;
  --brand-dark: #92400e;
  --green: #15803d;
  --red: #b91c1c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(80, 60, 30, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 18px; }

/* 顶部导航 */
.nav {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 20px; font-weight: 700; color: var(--brand-dark); display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--brand-dark); text-decoration: none; }

/* 按钮 */
.btn {
  display: inline-block; border: none; cursor: pointer;
  background: var(--brand); color: #fff;
  padding: 11px 26px; border-radius: 10px; font-size: 16px; font-weight: 600;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }

/* 首页 hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: 38px; margin: 0 0 16px; letter-spacing: 1px; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 36px 0; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.section-title { font-size: 24px; margin: 48px 0 18px; text-align: center; }

/* 卡片/表单 */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); margin: 28px 0;
}
.card h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label .req { color: var(--red); }
input, select, textarea {
  width: 100%; padding: 10px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
textarea { min-height: 88px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.check-row input { width: auto; margin-top: 5px; }
.check-row label { font-weight: 400; font-size: 14px; }
.check-group { display: flex; flex-wrap: wrap; gap: 10px; }
.check-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  cursor: pointer; font-size: 14px; background: #fff; user-select: none;
}
.check-pill input { width: auto; margin: 0; }
.check-pill:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }

/* 提示条 */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14.5px; margin-bottom: 16px; }
.alert-error { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.alert-ok { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { color: var(--ink-2); font-weight: 600; background: #fdfaf5; position: sticky; top: 60px; }
td.wrap { white-space: normal; min-width: 160px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-in_progress { background: #dbeafe; color: #1e40af; }
.badge-done { background: #dcfce7; color: #166534; }
.badge-rejected { background: #f1f1f1; color: #57534e; }

/* 捐款 */
.donate-box { text-align: center; background: linear-gradient(180deg, #fffdf8, #fdf3e3); border: 1px solid #f0e2c8; border-radius: var(--radius); padding: 36px 24px; margin: 40px 0; }
.qr-frame { width: 220px; height: 220px; margin: 18px auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-placeholder { color: var(--ink-2); font-size: 13px; padding: 20px; text-align: center; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(40,30,15,.45); display: none; align-items: flex-start; justify-content: center; z-index: 50; padding: 40px 16px; overflow-y: auto; }
.modal-mask.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 640px; width: 100%; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { margin-top: 0; }
.detail-grid { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 14px; margin-bottom: 18px; }
.detail-grid dt { color: var(--ink-2); }
.detail-grid dd { margin: 0; }

.footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0; color: var(--ink-2); font-size: 13px; text-align: center; }
.footer a { margin: 0 8px; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.page-head { padding: 36px 0 8px; }
.page-head h1 { margin-bottom: 6px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters select, .filters input { width: auto; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; font-size: 14px; }
.stat-chip b { font-size: 18px; color: var(--brand-dark); margin-left: 4px; }
