:root {
  --bg: #f5ede0;
  --card: #fdfaf4;
  --ink: #3a332c;
  --muted: #8a7a68;
  --line: #e5d9c7;
  --accent: #a86b2e;
  --accent-soft: #f2e3cd;
  --green: #6f7a52;
  --green-soft: #e9ecd9;
  --amber-soft: #f7ead3;
  --red: #a35a4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 16px 48px;
}

.brand { margin-bottom: 22px; }

.brand-row { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; letter-spacing: -1px;
}

.brand h1 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.brand p { margin: 2px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 2px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 16px; font-weight: 600; margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--accent);
}
.section-desc { font-size: 13px; color: var(--muted); margin: 0 0 18px; }

label.field-label {
  display: block; font-size: 13px; color: var(--muted); margin: 0 0 7px;
}

input[type="text"], input[type="tel"], textarea, select {
  width: 100%; height: 46px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fdfcf9; color: var(--ink); font-size: 15px;
  outline: none; transition: border-color .15s;
  font-family: inherit;
}
textarea { height: 76px; padding: 11px 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: #fff; }
input::placeholder, textarea::placeholder { color: #b3ada2; }

.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-row img {
  width: 132px; height: 44px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); display: block;
}

.btn {
  width: 100%; height: 48px; border: none; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit; letter-spacing: 1px;
}
.btn:active { opacity: .82; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.small { height: 38px; font-size: 13px; width: auto; padding: 0 18px; }

.msg {
  display: none; margin-top: 12px; padding: 10px 12px;
  border-radius: 8px; font-size: 13px;
  background: #fdeeea; color: var(--red);
}
.msg.show { display: block; }

.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-item {
  display: block; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px;
}
.nav-item strong { display: block; font-size: 14px; font-weight: 600; }
.nav-item span { font-size: 12px; color: var(--muted); }

.notice {
  font-size: 12px; color: var(--muted); line-height: 1.7;
  padding: 0 4px; margin-top: 4px;
}

.member-card {
  display: flex; gap: 14px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.member-card:last-child { border-bottom: none; padding-bottom: 0; }
.member-card:first-child { padding-top: 0; }
.photo {
  width: 74px; height: 74px; border-radius: 12px; object-fit: cover;
  background: var(--accent-soft); flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 26px; overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-info { flex: 1; min-width: 0; }
.member-info .name { font-size: 16px; font-weight: 600; }
.member-no { font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; }
.meta-row { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 13px; color: var(--muted); }
.badge {
  display: inline-block; padding: 1px 9px; border-radius: 20px;
  font-size: 12px; background: var(--green-soft); color: var(--green);
}
.badge.paused { background: var(--amber-soft); color: var(--accent); }
.badge.left { background: #f0efec; color: var(--muted); }

.page-head { margin-bottom: 18px; }
.page-head h2 { margin: 0 0 4px; font-size: 21px; font-weight: 600; }
.page-head a { font-size: 13px; color: var(--accent); text-decoration: none; }

.activity-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-bottom: 14px;
}
.activity-cover {
  height: 132px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 13px; overflow: hidden;
}
.activity-cover img { width: 100%; height: 100%; object-fit: cover; }
.activity-body { padding: 14px 16px 16px; }
.activity-body h3 { margin: 0 0 5px; font-size: 16px; font-weight: 600; }
.activity-body p { margin: 0; font-size: 13px; color: var(--muted); }
.activity-meta { font-size: 12px; color: var(--muted); margin-top: 9px; }

.detail-cover { height: 180px; border-radius: 14px; overflow: hidden; background: var(--accent-soft); margin-bottom: 16px; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 21px; font-weight: 600; margin: 0 0 12px; }
.detail-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.detail-content { font-size: 14px; color: #3a3833; border-top: 1px solid var(--line); padding-top: 14px; }
.detail-content img { max-width: 100%; height: auto; }
.success-box { text-align: center; padding: 26px 10px; }
.success-box .tick {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green-soft);
  color: var(--green); font-size: 26px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}
.success-box h3 { margin: 0 0 6px; }
.success-box p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

.footer { text-align: center; font-size: 11px; color: #9b8b78; margin-top: 26px; }
.field-group { margin-bottom: 15px; }

/* ============================================================
   首页 · 米白画廊风
   参考：近黑画场 #0A0A0A / 琥珀展签 #C4956A / 全出血取景框 /
   hairline 细线 / 极轻字重与大字距 / 克制圆角（不使用渐变与彩色阴影）
   ============================================================ */

body.home { background: #f5ede0; }

.app-home { padding: 0 0 0; background: #f5ede0; }

.hero {
  position: relative;
  min-height: 306px;
  background: #f5ede0;
  color: #3a332c;
  overflow: hidden;
  padding: calc(34px + env(safe-area-inset-top)) 0 42px;
}

.hero-frame { position: absolute; inset: 18px 18px 18px; pointer-events: none; }
.hero-frame .corner { position: absolute; width: 17px; height: 17px; border-color: rgba(168, 107, 46, .45); border-style: solid; border-width: 0; }
.hero-frame .tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-frame .tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-frame .bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame .br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hero-vertical {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 9px; font-weight: 300;
  letter-spacing: .34em; color: rgba(168, 107, 46, .65);
}

.hero-inner { position: relative; z-index: 1; padding: 26px 40px 0; }

.hero-kicker {
  margin: 0 0 30px; font-size: 10px; font-weight: 300;
  letter-spacing: .3em; color: #a86b2e; text-transform: uppercase;
}

.hero-title {
  margin: 0; font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 43px; font-weight: 400; line-height: 1.16; letter-spacing: .06em;
}
.hero-title span {
  display: block; margin-top: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 14px; font-weight: 300; letter-spacing: .42em;
  color: #8a7a68;
}

.hero-sub { margin: 26px 0 0; font-size: 12px; font-weight: 300; letter-spacing: .14em; color: #8a7a68; }
.hero-rule { width: 38px; height: 1px; background: #a86b2e; margin: 22px 0 14px; }
.hero-caption { margin: 0; font-size: 11px; font-weight: 300; letter-spacing: .16em; color: #8a7a68; }

.query-panel {
  position: relative; z-index: 2;
  margin: -28px 12px 16px;
  padding: 24px 20px 20px;
  background: #fdfaf4; border: 1px solid #e5d9c7; border-radius: 16px;
}

.panel-head {
  display: flex; align-items: center; gap: 13px;
  padding-bottom: 17px; margin-bottom: 22px;
  border-bottom: 1px solid #ece0cf;
}
.panel-index { font-family: ui-monospace, monospace; font-size: 11px; color: #a86b2e; letter-spacing: .08em; }
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.panel-head p { margin: 2px 0 0; font-size: 9px; letter-spacing: .22em; color: #9b8b78; }

.home .field-label { font-size: 11px; letter-spacing: .12em; color: #8a7a68; margin-bottom: 7px; }

.home input[type="text"] {
  border: none; border-bottom: 1px solid #dcd7cd; border-radius: 0;
  background: transparent; height: 46px; padding: 0 2px; font-size: 15px;
}
.home input[type="text"]:focus { border-bottom-color: #a86b2e; background: transparent; }
.home input::placeholder { color: #bdb7ac; }

.home .captcha-row { gap: 12px; }
.home .captcha-row input { height: 44px; }
.home .captcha-row img {
  width: 116px; height: 42px; border-radius: 10px;
  border: 1px solid #e5d9c7; image-rendering: auto;
}
.field-hint { margin: 7px 0 0; font-size: 11px; color: #9b8b78; }

.query-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; margin-top: 4px;
  background: #3a2f26; color: #fff; border-radius: 10px;
  font-size: 14px; letter-spacing: .18em;
}
.query-btn span { font-size: 18px; font-weight: 300; color: #a86b2e; }

.privacy-note {
  margin: 20px 0 0; padding-left: 11px;
  border-left: 2px solid #a86b2e;
  font-size: 11px; line-height: 1.8; color: #989187;
}

.feature-card {
  position: relative; display: block; overflow: hidden;
  margin: 0 12px 20px; padding: 20px;
  background: #f5ede0; color: #3a332c;
  border: 1px solid #e5d9c7; border-radius: 16px;
  text-decoration: none;
}
.feature-card:active { background: #efebe2; }
.feature-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.feature-index { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .18em; color: #a86b2e; }
.feature-tag {
  font-size: 10px; font-weight: 300; color: #a86b2e;
  border: 1px solid rgba(168, 107, 46, .35); border-radius: 20px; padding: 2px 9px;
}
.feature-card h3 {
  margin: 0 0 7px; font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 23px; font-weight: 400; letter-spacing: .08em;
}
.feature-card p { margin: 0; font-size: 12px; font-weight: 300; letter-spacing: .1em; color: #8a7a68; }
.feature-arrow { position: absolute; right: 20px; bottom: 17px; font-size: 23px; font-weight: 300; color: #a86b2e; }

.home-footer {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 2px 0 calc(28px + env(safe-area-inset-bottom));
}
.home-footer span { font-size: 9px; letter-spacing: .16em; color: #9b8b78; }
.home-footer span:first-child { color: #c0b9ac; }

@media (max-width: 360px) {
  .hero-inner { padding: 26px 32px 0; }
  .hero-title { font-size: 37px; }
  .hero-vertical { right: 18px; }
}

/* ============================================================
   结果页 · 同一套米白画廊语言
   ============================================================ */

.hero-compact { min-height: 196px; padding-bottom: 34px; }
.hero-compact .hero-inner { padding-top: 8px; }
.hero-back {
  display: inline-block; margin-bottom: 18px;
  font-size: 11px; font-weight: 300; letter-spacing: .12em;
  color: #8a7a68; text-decoration: none;
}
.hero-back:hover { color: #a86b2e; }
.hero-compact .hero-kicker { margin-bottom: 16px; }
.hero-title-sm { font-size: 34px; }
.hero-title-sm span { margin-top: 10px; font-size: 11px; letter-spacing: .3em; }
.hero-compact .hero-rule { margin: 16px 0 0; }

.result-panel {
  position: relative; z-index: 2;
  margin: -22px 12px 16px; padding: 22px 18px 18px;
  background: #fdfaf4; border: 1px solid #e5d9c7; border-radius: 16px;
}

.record-item {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 0; border-bottom: 1px solid #ece0cf;
}
.record-item:first-of-type { padding-top: 2px; }
.record-item:last-of-type { border-bottom: none; padding-bottom: 2px; }

.record-photo {
  width: 84px; height: 84px; flex: none;
  border-radius: 10px; background: #e8dcc8; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #a86b2e;
}
.record-photo span {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 32px; font-weight: 400;
}
.record-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.record-info { flex: 1; min-width: 0; }
.record-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: .12em; color: #a86b2e;
}
.record-name {
  margin: 5px 0 9px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 22px; font-weight: 400; letter-spacing: .08em;
}
.record-details {
  display: flex; align-items: center; gap: 11px;
  font-size: 11px; letter-spacing: .06em; color: #8a7a68;
}
.record-status {
  padding: 1px 9px; border-radius: 20px;
  font-size: 11px; border: 1px solid;
}
.record-status.active { color: #2f7d5b; border-color: rgba(111, 122, 82, .35); background: #f2f8f4; }
.record-status.warn   { color: #a86b2e; border-color: rgba(168, 107, 46, .32); background: #fbf6ed; }
.record-status.left   { color: #989187; border-color: #ddd8ce; background: #f5f4f0; }

.panel-foot {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid #ece0cf;
  font-size: 11px; letter-spacing: .06em; color: #9b8b78;
}

.result-error {
  position: relative; z-index: 2;
  margin: -22px 12px 16px; padding: 24px 20px;
  background: #fdfaf4; color: #3a332c;
  border: 1px solid #e5d9c7; border-radius: 16px;
}
.error-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: .2em; color: #a86b2e;
}
.result-error h2 {
  margin: 16px 0 8px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 26px; font-weight: 400; letter-spacing: .1em;
}
.result-error p { margin: 0 0 24px; font-size: 12px; line-height: 1.8; color: #8a7a68; }
.error-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px;
  border: 1px solid rgba(168, 107, 46, .4); border-radius: 10px;
  color: #a86b2e; text-decoration: none;
  font-size: 12px; letter-spacing: .16em;
}
.error-btn span { font-size: 16px; }

/* ============================================================
   公告模块 · 首页 / 列表 / 详情
   ============================================================ */

.notice-panel {
  position: relative; z-index: 2;
  margin: 0 12px 16px; padding: 22px 18px 18px;
  background: #fdfaf4; border: 1px solid #e5d9c7; border-radius: 16px;
}

.panel-more {
  margin-left: auto; font-size: 11px;
  letter-spacing: .08em; color: #a86b2e; text-decoration: none;
}

.notice-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #ece0cf;
  text-decoration: none; color: inherit;
}
.notice-item:first-of-type { padding-top: 2px; }
.notice-item:last-of-type { border-bottom: none; padding-bottom: 2px; }

.notice-cat {
  flex: none; padding: 2px 9px; border-radius: 10px;
  font-size: 11px; color: #a86b2e;
  border: 1px solid rgba(168, 107, 46, .35);
}
.notice-body { flex: 1; min-width: 0; }
.notice-title {
  font-size: 14px; font-weight: 500; color: #3a332c;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-date { margin-top: 4px; font-size: 11px; letter-spacing: .08em; color: #9b8b78; }
.notice-arrow { font-size: 16px; color: #a86b2e; }
.notice-empty { margin: 12px 0 2px; font-size: 12px; color: #9b8b78; }

.notice-detail-panel {
  position: relative; z-index: 2;
  margin: -22px 12px 16px; padding: 24px 20px;
  background: #fdfaf4; border: 1px solid #e5d9c7; border-radius: 16px;
}
.notice-detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.notice-detail-title {
  margin: 0 0 12px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 24px; font-weight: 400; letter-spacing: .06em;
}
.notice-detail-summary {
  margin: 0 0 16px; padding-left: 10px;
  border-left: 2px solid #a86b2e;
  font-size: 12px; line-height: 1.8; color: #8a7a68;
}
.notice-detail-body {
  border-top: 1px solid #ece0cf; padding-top: 16px;
  font-size: 14px; line-height: 1.9; color: #3a3833; word-break: break-word;
}
.notice-detail-body img { max-width: 100%; height: auto; border-radius: 10px; }
.notice-back-link {
  display: inline-block; margin-top: 20px;
  font-size: 12px; color: #a86b2e; text-decoration: none;
}

/* ============================================================
   胶片暖调细节：日期戳 / 片孔边 / 暖色柔影
   ============================================================ */

.film-date {
  position: absolute; right: 0; bottom: -8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; letter-spacing: .16em; color: #d97a3e;
}

.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(168, 107, 46, .28) 0 6px, transparent 6px 12px);
}

.query-panel, .result-panel, .notice-panel,
.notice-detail-panel, .feature-card, .result-error {
  box-shadow: 0 3px 14px rgba(92, 74, 58, .07);
}

/* ============================================================
   活动报名 · 列表 / 详情（统一胶片暖调）
   ============================================================ */

.event-list-panel { margin-top: -22px; }

.event-card {
  display: block; text-decoration: none; color: inherit;
  padding: 16px 0; border-bottom: 1px solid #ece0cf;
}
.event-card:first-of-type { padding-top: 2px; }
.event-card:last-of-type { border-bottom: none; padding-bottom: 2px; }

.event-cover {
  height: 118px; margin-bottom: 12px; border-radius: 12px; overflow: hidden;
  background: #e8dcc8;
}
.event-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.event-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; letter-spacing: .18em; color: #a86b2e;
}
.event-flag { font-size: 10px; letter-spacing: .1em; color: #a35a4a; }

.event-title {
  margin: 7px 0 6px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 19px; font-weight: 400; letter-spacing: .06em;
}
.event-summary {
  margin: 0; font-size: 12px; line-height: 1.7; color: #8a7a68;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-meta { margin-top: 9px; font-size: 11px; letter-spacing: .06em; color: #9b8b78; }

.event-detail-cover {
  height: 180px; margin: 0 12px; border-radius: 14px; overflow: hidden;
  background: #e8dcc8; position: relative; z-index: 1;
}
.event-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.event-detail-title {
  margin: 0 0 14px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 24px; font-weight: 400; letter-spacing: .06em; line-height: 1.4;
}
.event-detail-meta {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
  padding: 14px 0; border-top: 1px solid #ece0cf; border-bottom: 1px solid #ece0cf;
}
.event-meta-row { display: flex; gap: 12px; font-size: 12px; color: #8a7a68; }
.event-meta-row b { width: 32px; flex: none; font-weight: 400; letter-spacing: .16em; color: #9b8b78; }
.event-detail-body { font-size: 14px; line-height: 1.9; color: #3a3833; word-break: break-word; }
.event-detail-body img { max-width: 100%; height: auto; border-radius: 10px; }

.event-signup-panel { margin-top: 0; }
.event-signup-panel .section-desc { margin-bottom: 18px; }
.event-form { margin-top: 2px; }
.activity-page .field-label { font-size: 11px; letter-spacing: .12em; color: #8a7a68; }
.activity-page input[type="text"], .activity-page input[type="tel"], .activity-page textarea {
  border: 1px solid #e5d9c7; border-radius: 10px;
  background: #fdfcf9; height: 46px; padding: 0 13px; font-size: 15px;
}
.activity-page textarea { height: 76px; padding: 11px 13px; }
.activity-page input:focus, .activity-page textarea:focus { border-color: #a86b2e; background: #fff; }
.activity-page .btn { background: #3a2f26; }

/* ============================================================
   摄影素材层：真实照片背景 / 影像卡片
   图片来源 Pexels（免费可商用，免署名）：
   hero-photographer.jpg  photo/17928403
   feature-desk.jpg       photo/3953358
   film-strips.jpg        photo/20541481
   camera-films.jpg       photo/3653770
   negatives.jpg          photo/38164076
   film-rolls.jpg         photo/5395856
   ============================================================ */

.hero-photo-bg {
  position: absolute; inset: 0; z-index: 0;
  background-repeat: no-repeat; background-size: cover;
  opacity: .96;
}
.hero-photo--portrait .hero-photo-bg { background-image: url("../img/hero-photographer.jpg"); background-position: 66% 30%; }
.hero-photo--film .hero-photo-bg     { background-image: url("../img/film-strips.jpg");      background-position: 78% 45%; }
.hero-photo--camera .hero-photo-bg   { background-image: url("../img/camera-films.jpg");     background-position: 78% 42%; }
.hero-photo--rolls .hero-photo-bg    { background-image: url("../img/film-rolls.jpg");       background-position: 76% 45%; }

.hero-photo-wash {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(245, 237, 224, 1) 0%,
    rgba(245, 237, 224, .98) 28%,
    rgba(245, 237, 224, .88) 50%,
    rgba(245, 237, 224, .52) 76%,
    rgba(245, 237, 224, .26) 100%);
}
.hero-compact .hero-photo-wash {
  background: linear-gradient(90deg,
    rgba(245, 237, 224, 1) 0%,
    rgba(245, 237, 224, .97) 46%,
    rgba(245, 237, 224, .82) 74%,
    rgba(245, 237, 224, .62) 100%);
}

.hero-photo .hero-inner, .hero-photo .hero-frame { z-index: 2; }
.hero-photo .hero-vertical { z-index: 2; color: #fff; text-shadow: 0 1px 4px rgba(58, 47, 38, .45); }
.hero-photo .hero-frame .corner { border-color: rgba(255, 255, 255, .72); }

.hero-photo-credit {
  position: absolute; right: 20px; bottom: 14px; z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px; letter-spacing: .1em;
  color: rgba(255, 255, 255, .9); text-shadow: 0 1px 4px rgba(58, 47, 38, .5);
}

/* 胶片齿孔虚线置于卡片之下，避免压进查询卡/结果卡 */
.hero-photo::after { z-index: 1; }

/* 活动入口：桌面上的相机与胶片 */
.feature-card.feature-photo {
  min-height: 172px;
  background-image:
    linear-gradient(180deg, rgba(253, 250, 244, .70), rgba(253, 250, 244, .88)),
    url("../img/feature-desk.jpg");
  background-size: cover; background-position: center 58%;
  border-color: #ddcdb6;
}
.feature-card.feature-photo:active { background-color: transparent; filter: brightness(.97); }
.feature-card.feature-photo .feature-tag { background: rgba(253, 250, 244, .82); }

/* 活动卡无后台封面时，按序使用本地影像 */
.event-cover--0 { background-image: url("../img/camera-films.jpg"); background-size: cover; background-position: center 45%; }
.event-cover--1 { background-image: url("../img/film-rolls.jpg");  background-size: cover; background-position: center 52%; }
.event-cover--2 { background-image: url("../img/negatives.jpg");   background-size: cover; background-position: center 50%; }
.event-cover--3 { background-image: url("../img/feature-desk.jpg"); background-size: cover; background-position: center 58%; }

/* 结果页无会员照片时的底纹 */
.record-photo-empty {
  background-image:
    linear-gradient(rgba(253, 250, 244, .86), rgba(253, 250, 244, .92)),
    url("../img/film-strips.jpg");
  background-size: cover; background-position: center;
}
