/* ==========================================================================
   寻亲网 MVP 前端样式 —— 移动端优先，最小宽度 360px 可用
   断点：≥ 640px（平板/桌面）
   ========================================================================== */

:root {
  --c-bg: #f4f5f7;
  --c-surface: #ffffff;
  --c-text: #1b1f24;
  --c-muted: #6b7280;
  --c-line: #e5e7eb;
  --c-line-strong: #d1d5db;
  --c-primary: #2563eb;
  --c-primary-d: #1d4ed8;
  --c-primary-soft: #eff4ff;
  --c-danger: #dc2626;
  --c-danger-soft: #fef2f2;
  --c-warn: #b45309;
  --c-warn-soft: #fffbeb;
  --c-ok: #047857;
  --c-ok-soft: #ecfdf5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --space: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 8px;
  line-height: 1.35;
}

p {
  margin: 0 0 8px;
}

/* ============================ 导航 ============================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}

.nav__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav__brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav__link {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--c-muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav__link.is-active {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  font-weight: 600;
}

/* ============================ 布局 ============================ */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space);
  padding-bottom: 40px;
}

.page__title {
  font-size: 20px;
  margin-bottom: 4px;
}

.page__desc {
  color: var(--c-muted);
  font-size: 13px;
  margin-bottom: var(--space);
}

.section {
  margin-bottom: var(--space);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--space);
  overflow: hidden;
}

.card__body {
  padding: var(--space);
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.row--between {
  justify-content: space-between;
}

.row--wrap {
  flex-wrap: wrap;
}

.grow {
  flex: 1 1 auto;
  min-width: 0;
}

.text-muted {
  color: var(--c-muted);
}

.text-small {
  font-size: 13px;
}

.text-right {
  text-align: right;
}

.divider {
  height: 1px;
  background: var(--c-line);
  margin: 12px 0;
}

/* ============================ 表单 ============================ */

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field--inline {
  margin-bottom: 0;
}

.field__label {
  font-size: 13px;
  color: var(--c-muted);
}

.field__label .req {
  color: var(--c-danger);
  margin-left: 2px;
}

.field__hint {
  font-size: 12px;
  color: var(--c-muted);
}

.field__error {
  font-size: 12px;
  color: var(--c-danger);
  display: none;
}

.field__error.is-visible {
  display: block;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  appearance: none;
}

.select {
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input[readonly] {
  background: #f3f4f6;
  color: var(--c-muted);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

/* ============================ 按钮 ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--c-primary);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--c-primary-d);
}

.btn--ghost {
  background: var(--c-surface);
  border-color: var(--c-line-strong);
  color: var(--c-text);
}

.btn--danger {
  background: var(--c-danger);
  color: #fff;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* ============================ 标签 ============================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
  white-space: nowrap;
}

.tag--ok {
  background: var(--c-ok-soft);
  color: var(--c-ok);
}

.tag--warn {
  background: var(--c-warn-soft);
  color: var(--c-warn);
}

.tag--danger {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}

.tag--muted {
  background: #f3f4f6;
  color: var(--c-muted);
}

.tag--primary {
  background: var(--c-primary-soft);
  color: var(--c-primary-d);
}

/* ============================ 寻亲信息卡片 ============================ */

.mp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--c-text);
}

.mp-card__photo {
  width: 84px;
  flex: 0 0 84px;
}

.mp-card__main {
  flex: 1 1 auto;
  min-width: 0;
}

.mp-card__name {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-card__meta {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 2px;
}

.mp-card__features {
  font-size: 13px;
  color: #374151;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-card__foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--c-muted);
}

.photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--empty span,
.photo--pending span {
  font-size: 12px;
  color: var(--c-muted);
  padding: 6px;
}

.photo--pending {
  flex-direction: column;
  gap: 2px;
}

.photo--pending small {
  font-size: 10px;
  color: #9ca3af;
  padding: 0 6px;
}

/* 详情页大图 */
.photo--lg {
  max-width: 260px;
  margin: 0 auto 12px;
  aspect-ratio: 1 / 1;
}

/* ============================ 详情页 ============================ */

.detail-list {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  font-size: 14px;
}

.detail-list dt {
  color: var(--c-muted);
}

.detail-list dd {
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
}

.notice {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--c-primary-soft);
  color: #1e3a8a;
  margin-bottom: 12px;
}

.notice--warn {
  background: var(--c-warn-soft);
  color: var(--c-warn);
}

.notice--danger {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}

.clue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clue-item {
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.clue-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.clue-item__content {
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.clue-item__actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================ 状态 ============================ */

.loading,
.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--c-muted);
  font-size: 14px;
  background: var(--c-surface);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--radius);
}

.empty p {
  margin-bottom: 12px;
}

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: var(--space);
}

.pagination__info {
  font-size: 12px;
  color: var(--c-muted);
}

/* ============================ 提示与弹窗 ============================ */

.xq-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 48px);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  background: rgba(17, 24, 39, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 60;
  text-align: center;
}

.xq-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.xq-toast--ok {
  background: rgba(4, 120, 87, 0.95);
}

.xq-toast--warn {
  background: rgba(180, 83, 9, 0.95);
}

.xq-toast--danger {
  background: rgba(220, 38, 38, 0.95);
}

.xq-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 80;
}

.xq-modal {
  width: 100%;
  max-width: 360px;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.2);
}

.xq-modal__title {
  font-size: 16px;
  margin-bottom: 8px;
}

.xq-modal__body {
  font-size: 14px;
  color: #374151;
  margin-bottom: 16px;
}

.xq-modal__actions {
  display: flex;
  gap: 10px;
}

.xq-modal__actions .btn {
  flex: 1 1 0;
}

/* ============================ 页脚 ============================ */

.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px var(--space) 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
}

/* ============================ 响应式（≥640px） ============================ */

@media (min-width: 640px) {
  body {
    font-size: 15px;
  }

  .filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters .field--wide {
    grid-column: span 3;
  }

  .form-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .form-actions .btn {
    min-width: 140px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   补充组件（登录 / 我的 / 复用卡片）
   ========================================================================== */

/* 窄容器（登录等单列表单页） */
.page--narrow {
  max-width: 480px;
}

/* 输入框 + 按钮同行（验证码） */
.input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-group .input {
  flex: 1 1 auto;
  min-width: 0;
}

.input-group .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 提示条：成功态 */
.notice--ok {
  background: var(--c-ok-soft);
  color: var(--c-ok);
}

/* 徽标（与 tag 同形，语义用于状态展示） */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
  background: #f3f4f6;
  color: var(--c-muted);
}

.badge--ok {
  background: var(--c-ok-soft);
  color: var(--c-ok);
}

.badge--warn {
  background: var(--c-warn-soft);
  color: var(--c-warn);
}

.badge--danger {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}

.badge--muted {
  background: #f3f4f6;
  color: var(--c-muted);
}

.badge--primary {
  background: var(--c-primary-soft);
  color: var(--c-primary-d);
}

/* 账号信息 */
.profile {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile__avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-d);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile__main {
  flex: 1 1 auto;
  min-width: 0;
}

.profile__name {
  font-size: 17px;
  font-weight: 700;
}

.profile__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0;
}

/* 统计 */
.stats {
  display: flex;
  margin-top: 14px;
  border-top: 1px solid var(--c-line);
  padding-top: 12px;
}

.stat {
  flex: 1 1 0;
  text-align: center;
}

.stat__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-primary-d);
}

.stat__label {
  font-size: 12px;
  color: var(--c-muted);
}

/* 通用列表项（我的发布等） */
.list-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fafafa;
  color: var(--c-text);
  margin-bottom: 10px;
}

.list-item:last-child {
  margin-bottom: 0;
}

.list-item__main {
  flex: 1 1 auto;
  min-width: 0;
}

.list-item__title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.list-item__meta {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 2px;
}

.list-item__side {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--c-muted);
}

/* ========================= Phase 2：订阅设置与通知中心 ========================= */

/* 导航「通知中心」未读角标 */
.nav__link--badge {
  position: relative;
  padding-right: 20px;
}

.nav__badge {
  position: absolute;
  top: 1px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--c-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.nav__badge[hidden] {
  display: none;
}

/* 通知项 */
.notice-item {
  display: flex;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--c-line);
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-item__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--c-line-strong);
}

.notice-item--unread .notice-item__dot {
  background: var(--c-danger);
}

.notice-item__main {
  flex: 1 1 auto;
  min-width: 0;
}

.notice-item__title {
  font-weight: 600;
  font-size: 15px;
}

.notice-item__title a {
  color: var(--c-text);
}

.notice-item__body {
  margin-top: 2px;
  color: var(--c-muted);
  font-size: 13px;
  word-break: break-word;
}

.notice-item__meta {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* 订阅项 */
.sub-item {
  padding: 12px 2px;
  border-bottom: 1px solid var(--c-line);
}

.sub-item:last-child {
  border-bottom: 0;
}

.sub-item--off {
  opacity: 0.62;
}

.sub-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sub-item__title {
  font-weight: 600;
  font-size: 15px;
}

.sub-item__meta {
  margin-top: 4px;
  color: var(--c-muted);
  font-size: 13px;
}

.sub-item__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* 通知渠道偏好勾选组 */
.channel-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.channel-group .checkbox {
  margin: 0;
}

/* 渠道触达留痕标签 */
.channel-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 11px;
}

/* ==========================================================================
   官网集成补充样式（「轻松寻亲」板块）
   --------------------------------------------------------------------------
   并入 qingsong-sheji 后，页面顶部为「官网主站导航 + 寻亲子导航」双层结构，
   配色与排版对齐官网（金色主色 #C9A96E / 正文 #1D1D1F / 分隔线 #F0F0F0）。
   本段位于文件末尾，仅做覆盖式增量补充，不修改上方任何原有规则。
   ========================================================================== */

:root {
  --c-bg: #ffffff;
  --c-line: #f0f0f0;
  --c-text: #1d1d1f;
  --c-muted: #86868b;
  --c-primary: #a0834c;
  --c-primary-d: #8c723f;
  --c-primary-soft: #fbf7ef;
}

/* ---------- 官网主站导航（样式对齐 games.html / tools.html） ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #c9a96e; object-fit: cover; }
.nav-logo span { font-size: 16px; font-weight: 600; color: #1d1d1f; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: #555; font-size: 13px; padding: 6px 14px;
  border-radius: 20px; transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { background: #f5f5f7; color: #1d1d1f; }
.nav-links a.primary-link { background: #c9a96e; color: #fff; font-weight: 500; }
.nav-links a.primary-link:hover { background: #b8995e; }

/* ---------- 寻亲子导航 ---------- */
.xq-subnav { background: #fbf7ef; border-bottom: 1px solid #f0e7d6; }
.xq-subnav__inner {
  max-width: 1040px; margin: 0 auto; padding: 8px 24px;
  display: flex; align-items: center; gap: 14px;
}
.xq-subnav__brand {
  font-size: 13px; font-weight: 600; color: #8c723f; letter-spacing: 1px; white-space: nowrap;
}
.xq-subnav__links { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.xq-subnav__link {
  padding: 5px 12px; border-radius: 16px; color: #6b6b6f; font-size: 13px; white-space: nowrap;
}
.xq-subnav__link:hover { background: rgba(201, 169, 110, 0.12); color: #1d1d1f; }
.xq-subnav__link.is-active { background: #c9a96e; color: #fff; font-weight: 500; }
.xq-subnav__badge {
  display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 4px;
  border-radius: 8px; background: #c9a96e; color: #fff;
  font-size: 11px; line-height: 16px; text-align: center;
}
.xq-subnav__link.is-active .xq-subnav__badge { background: #fff; color: #b8995e; }

/* ---------- 内容与页脚对齐官网 ---------- */
.page { max-width: 1040px; }
.btn--primary { background: #c9a96e; border-color: #c9a96e; color: #fff; }
.btn--primary:hover { background: #b8995e; border-color: #b8995e; }
.footer { background: #fafafa; border-top: 1px solid #f0f0f0; color: #86868b; }
.footer__inner {
  max-width: 1040px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; font-size: 13px;
}
.footer__inner a { color: #555; }
.footer__inner a:hover { color: #c9a96e; }

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
  .xq-subnav__inner { padding: 8px 16px; }
  .footer__inner { padding: 16px; }
}

/* ==========================================================================
   寻亲使用指引（首页图文区块）
   --------------------------------------------------------------------------
   移动端优先：默认单列竖排四步；≥640px 起改为两列网格。
   配色沿用官网金色主色，仅增量补充，不影响其他页面。
   ========================================================================== */

.guide__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1d1d1f;
}

.guide__lead {
  font-size: 13px;
  color: #6b6b6f;
  margin: 0 0 16px;
}

.guide__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.guide-step__no {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: #fbf7ef;
  border: 1px solid #e8d9bd;
  color: #a0834c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step__main {
  flex: 1 1 auto;
  min-width: 0;
}

.guide-step__title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
}

.guide-step__desc {
  font-size: 13px;
  color: #6b6b6f;
  margin: 3px 0 0;
}

/* 一句话闭环 */
.guide__loop {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #f0e7d6;
  border-radius: var(--radius-sm);
  background: #fbf7ef;
}

.guide__loop-title {
  font-size: 12px;
  font-weight: 600;
  color: #8c723f;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.guide__loop-chain {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.guide__loop-node {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eadfc7;
  color: #5a4a2a;
  font-size: 12px;
  white-space: nowrap;
}

.guide__loop-arrow {
  color: #c9a96e;
  font-size: 12px;
}

/* 志愿者 / 举报说明 */
.guide__notes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.guide__note {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  color: #6b6b6f;
}

.guide__note::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9a96e;
}

.guide__note strong {
  color: #1d1d1f;
  font-weight: 600;
}

.guide__tip {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #f0e7d6;
  font-size: 12px;
  color: #86868b;
}

@media (min-width: 640px) {
  .guide__title { font-size: 18px; }
  .guide__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }
}

/* ==========================================================================
   首页折叠与紧凑化（使用指引默认收起 + 搜索板块瘦身）
   --------------------------------------------------------------------------
   1) 指引与筛选均用原生 details/summary，保留无障碍语义；
      收起只保留一行标题，展开箭头纯 CSS 绘制。
   2) 仅对 .card--compact（首页搜索卡）与 .guide 生效，不影响其他页面。
   ========================================================================== */

/* ---------- 折叠摘要行（通用） ---------- */
.fold__summary,
.guide__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fold__summary::-webkit-details-marker,
.guide__summary::-webkit-details-marker {
  display: none;
}

.fold__label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.fold__hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: #86868b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fold__chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: 0 3px 4px 2px;
  border-right: 1.5px solid #a0834c;
  border-bottom: 1.5px solid #a0834c;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] > .fold__summary .fold__chevron,
details[open] > .guide__summary .fold__chevron {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 4px;
}

.fold__hint-close {
  display: none;
}

details[open] > .fold__summary .fold__hint-open,
details[open] > .guide__summary .fold__hint-open {
  display: none;
}

details[open] > .fold__summary .fold__hint-close,
details[open] > .guide__summary .fold__hint-close {
  display: inline;
}

/* ---------- 使用指引：收起仅一行 ---------- */
.guide__summary {
  padding: 14px var(--space);
}

details[open] > .guide__summary {
  padding-bottom: 0;
}

.guide__summary .guide__title {
  flex: 0 0 auto;
  font-size: 16px;
  margin: 0;
}

@media (min-width: 640px) {
  .guide__summary .guide__title { font-size: 17px; }
}

/* ---------- 筛选条件折叠 ---------- */
.fold {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.fold__summary {
  min-height: 22px;
}

details[open] > .fold__summary {
  margin-bottom: 10px;
}

/* ---------- 搜索卡紧凑化（仅首页） ---------- */
.card--compact {
  margin-bottom: 12px;
}

.card--compact .card__body {
  padding: 12px;
}

.card--compact .input,
.card--compact .select {
  padding: 8px 10px;
  font-size: 14px;
}

.card--compact .select {
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  padding-right: 28px;
}

.card--compact .btn {
  padding: 9px 14px;
  font-size: 14px;
}

.card--compact .btn--sm {
  padding: 8px 12px;
  font-size: 13px;
}

.card--compact .filters {
  gap: 8px 10px;
}

.card--compact .field {
  gap: 4px;
  margin-bottom: 0;
}

.card--compact .field__label {
  font-size: 12px;
}

.card--compact .checkbox {
  font-size: 13px;
}

/* 发布页照片预览（照片显示修复增量） */
.photo--thumb {
  max-width: 132px;
  margin: 8px 0 0;
}
