:root {
  --brand: #534AB7; --brand-dark: #3F3890; --brand-light: #EEEDFE;
  --coral: #D85A30; --teal: #1D9E75; --amber: #BA7517;
  --bg: #F7F7FB; --card: #fff; --border: #E7E8F0;
  --text: #1C2333; --muted: #6B7691;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }

.site-head { background: var(--card); border-bottom: 1px solid var(--border); padding: 14px 18px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10; }
.site-head .logo { font-size: 18px; font-weight: 700; color: var(--brand); }
.site-head .nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.site-head .nav a { color: var(--muted); }
.site-head .nav a.on { color: var(--brand); font-weight: 600; }

.hero { background: var(--brand); color: #fff; padding: 44px 22px 38px; }
.hero .hi { font-size: 13px; opacity: .85; margin-bottom: 8px; }
.hero h1 { font-size: 26px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.hero p { font-size: 14px; opacity: .85; }

.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 40px; }
.sec-title { font-size: 17px; font-weight: 700; margin: 20px 4px 12px; display: flex; align-items: baseline; gap: 8px; }
.sec-title .sub { font-size: 12px; color: var(--muted); font-weight: 400; }

.act-card { display: block; background: var(--card); border-radius: 16px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--border); color: var(--text); }
.act-card .cover { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--brand-light); }
.act-card .cover-ph { width: 100%; height: 110px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.act-card .body { padding: 14px 16px; }
.act-card .name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.act-card .meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.act-card .foot { display: flex; align-items: center; margin-top: 10px; gap: 8px; }
.badge { font-size: 12px; padding: 3px 10px; border-radius: 10px; font-weight: 600; }
.badge.fee { background: var(--brand-light); color: var(--brand-dark); }
.badge.left { background: #E1F5EE; color: #0F6E56; }
.badge.left.hot { background: #FAEEDA; color: #854F0B; }
.badge.full { background: #EEE; color: #999; }
.act-card .go { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand); }

.btn { display: block; width: 100%; background: var(--brand); color: #fff; border: none; padding: 14px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; }
.btn:disabled { background: #C9C9D4; cursor: not-allowed; }
.btn.ghost { background: var(--brand-light); color: var(--brand-dark); }

.detail-hero { background: var(--brand); color: #fff; padding: 30px 20px; }
.detail-hero .name { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.detail-hero .meta { font-size: 14px; opacity: .9; display: flex; flex-direction: column; gap: 3px; }
.info-card { background: var(--card); border-radius: 16px; border: 1px solid var(--border); padding: 16px; margin-bottom: 14px; }
.info-card h3 { font-size: 15px; margin-bottom: 8px; }
.info-card .desc { font-size: 14px; color: var(--text); white-space: pre-wrap; }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; }

label.fl { display: block; font-size: 14px; margin-bottom: 12px; }
label.fl input { width: 100%; margin-top: 5px; padding: 12px 14px; border: 1px solid #D5D9E4; border-radius: 10px; font-size: 15px; font-family: inherit; }
label.fl input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.cap-row { display: flex; gap: 10px; align-items: flex-end; }
.cap-row label.fl { flex: 1; }
.cap-q { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; padding: 12px 16px; border-radius: 10px; font-size: 15px; white-space: nowrap; cursor: pointer; user-select: none; }
.form-err { color: #D53F2C; font-size: 13px; margin: -4px 0 10px; display: none; }

.success-box { text-align: center; padding: 30px 20px; }
.success-box .tick { width: 64px; height: 64px; border-radius: 50%; background: #E1F5EE; color: var(--teal); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.success-box h2 { font-size: 19px; margin-bottom: 8px; }
.success-box p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.pay-qr { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--border); margin: 14px auto; display: block; }
.pay-note { background: #FAEEDA; color: #854F0B; font-size: 13px; border-radius: 10px; padding: 10px 14px; margin-top: 12px; text-align: left; }

.skel { border-radius: 12px; background: linear-gradient(90deg, #ECEDF5 25%, #F6F6FA 50%, #ECEDF5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; height: 150px; margin-bottom: 14px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
.retry { color: var(--brand); cursor: pointer; text-decoration: underline; }

.site-foot { text-align: center; padding: 24px 16px 34px; font-size: 12px; color: var(--muted); }
.site-foot a { color: var(--muted); }

/* 照片墙 */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-grid img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; cursor: pointer; display: block; background: var(--brand-light); }
