/* ========== 全局重置与基础变量 ========== */
:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #e6f4ff;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #ff4d4f;
  --info: #722ed1;
  --text-main: #1a1a1a;
  --text-secondary: #666;
  --text-light: #999;
  --bg-page: #f5f6fa;
  --bg-card: #ffffff;
  --border: #e8e8e8;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 14px;
}

a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ========== 通用容器 ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 24px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ========== 顶部导航栏 ========== */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.navbar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1677ff 0%, #722ed1 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(22, 119, 255, 0.28);
}

.navbar-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-logo .logo-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.navbar-logo .logo-sub {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-top: 2px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.navbar-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  transition: all 0.2s;
}

.navbar-menu a .nav-ico {
  display: none;
  font-style: normal;
  font-size: 15px;
}

.navbar-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.navbar-menu a.active {
  background: linear-gradient(135deg, var(--primary), #4096ff);
  color: #fff;
  box-shadow: 0 3px 8px rgba(22, 119, 255, 0.28);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-login {
  padding: 7px 22px;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
  background: #fff;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-login:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}

.btn-login.logged-in {
  background: var(--primary);
  color: #fff;
}

/* 移动端汉堡按钮 */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.navbar-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.navbar-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 抽屉内的登录区（桌面端默认隐藏）*/
.navbar-menu-login {
  display: none;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.navbar-menu-login .btn-login {
  width: 100%;
  padding: 12px 22px;
  font-size: 15px;
}

/* 移动端“全部栏目”按钮：默认隐藏，仅 ≤768px 显示（见媒体查询） */
.navbar-all {
  display: none;
  flex: 0 0 auto;
  position: sticky;
  right: 0;
  align-items: center;
  margin-left: 6px;
  padding: 7px 14px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: -12px 0 12px -4px #fff;
  z-index: 2;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #389e0d; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #d9363e; color: #fff; }

.btn-outline {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-main);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-block { width: 100%; }
.btn-lg { padding: 12px 32px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ========== 卡片 ========== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-body { padding: 16px; }

/* ========== 首页 Banner ========== */
.banner {
  background: linear-gradient(135deg, #1677ff 0%, #722ed1 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.banner h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  position: relative;
}

.banner-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.banner-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.banner-tag:hover,
.banner-tag:active {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

.banner-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.banner-actions .btn-outline {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.banner-actions .btn-outline:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ========== 功能导航宫格 ========== */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: -32px;
  position: relative;
  z-index: 10;
}

.quick-nav-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.quick-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.quick-nav-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 24px;
}

.quick-nav-item .label {
  font-size: 12px;
  color: var(--text-main);
  font-weight: 500;
}

/* ========== 列表网格 ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ========== 寻人/寻物卡片 ========== */
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.info-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.info-card .card-image {
  width: 100%;
  height: 180px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ccc;
  position: relative;
  overflow: hidden;
}

.info-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card .card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.tag-urgent { background: var(--danger); }
.tag-find-person { background: var(--warning); }
.tag-find-item { background: var(--primary); }
.tag-found-item { background: var(--success); }
.tag-anti-fraud { background: var(--info); }

.info-card .card-content {
  padding: 12px;
}

.info-card .card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-card .card-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ========== 表单 ========== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-main);
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s;
  background: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-input.error {
  border-color: var(--danger);
}

.form-input.error + .form-error {
  display: block;
}

/* ========== 标签筛选 ========== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ========== 匹配结果 ========== */
.match-result {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.match-result.match-high { border-left-color: var(--success); }
.match-result.match-medium { border-left-color: var(--warning); }
.match-result.match-low { border-left-color: var(--text-light); }

.match-badge {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.match-badge.high { background: #f6ffed; color: var(--success); border: 1px solid #b7eb8f; }
.match-badge.medium { background: #fffbe6; color: var(--warning); border: 1px solid #ffe58f; }
.match-badge.low { background: #f5f5f5; color: var(--text-light); border: 1px solid #d9d9d9; }

/* ========== 二维码展示 ========== */
.qrcode-display {
  text-align: center;
  padding: 24px;
}

.qrcode-display .qrcode-box {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.qrcode-display .qrcode-info {
  margin-top: 16px;
}

.qrcode-display .qrcode-code {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: monospace;
  margin-top: 8px;
}

/* ========== 反诈宣传 ========== */
.anti-fraud-banner {
  background: linear-gradient(135deg, #ff4d4f 0%, #fa8c16 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.anti-fraud-banner .banner-icon {
  font-size: 40px;
}

.anti-fraud-banner h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.anti-fraud-banner p {
  font-size: 13px;
  opacity: 0.9;
}

.fraud-type-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  border-top: 3px solid var(--danger);
}

.fraud-type-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.fraud-type-card .icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.fraud-type-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.fraud-type-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== 消息提示 ========== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; }

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-light);
  background: transparent;
}

.modal-close:hover { background: #f5f5f5; }

.modal-body { padding: 20px; }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ========== 页面切换 ========== */
.page { display: none; }
.page.active { display: block; }

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-light);
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

/* ========== 统计数据 ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========== 页脚 ========== */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.65);
  padding: 32px 0 16px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
  .navbar-toggle { display: flex; }

  .navbar-right .btn-login { display: none; }

  .navbar-menu-login { display: block; }

  .navbar-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow-hover);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    display: none;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .navbar-menu.open { display: flex; }

  .navbar-menu a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    justify-content: flex-start;
  }

  .navbar-menu a .nav-ico {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .quick-nav { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .banner h1 { font-size: 24px; }
  .section-title { font-size: 18px; }
  .navbar-logo .logo-sub { display: none; }

  /* 手机端：完整导航栏始终可见（横向滑动），不再折叠进汉堡 */
  .navbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px;
    gap: 6px 8px;
  }
  .navbar-right {
    order: 2;
    flex: 1;
    justify-content: flex-end;
  }
  .navbar-right .btn-login { display: inline-block; }
  .navbar-toggle { display: none; }
  .navbar-menu {
    order: 5;
    flex: none;
    flex-basis: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 4px 0 2px;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-height: none;
    display: flex;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .navbar-menu::-webkit-scrollbar { display: none; }
  .navbar-menu a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
  }
  .navbar-menu .nav-ico { display: none; }
  .navbar-menu-login { display: none; }
  .navbar-all { display: inline-flex; }
}

/* ========== 实用工具类 ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* ========== 照片上传 ========== */
.photo-upload-box {
  width: 120px;
  height: 120px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #f8f9fa;
  transition: border-color 0.2s;
}
.photo-upload-box:hover { border-color: var(--primary); }
.photo-upload-placeholder {
  text-align: center;
  color: #999;
  font-size: 14px;
  line-height: 1.5;
}
.photo-upload-placeholder .icon-photo { font-size: 28px; display: block; }
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.card-image .photo-img {
  width: 100%;
  height: 100%;
}
.photo-emoji {
  font-size: 48px;
  line-height: 1;
}

/* ========== 移动端“全部栏目”弹层 ========== */
.allnav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  padding: 64px 12px 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.allnav-overlay.open { display: block; }
.allnav-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.allnav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.allnav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}
.allnav-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
}
.allnav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.allnav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 4px;
  background: #f5f7fa;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}
.allnav-item:active { background: #e9edf2; }
.allnav-item.active {
  background: var(--primary);
  color: #fff;
}

/* ========== 悬赏酬金（展示型：平台不收/不存/不代付）========== */
.reward-chip {
  display: inline-block; margin-left: 8px;
  background: #FFF3E0; color: #E65100;
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; vertical-align: middle;
}
.reward-box {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3E0 100%);
  border: 1px solid #FFE0B2; border-radius: var(--radius-md, 12px);
  padding: 14px 16px;
}
.reward-box-head { display: flex; align-items: center; justify-content: space-between; }
.reward-box-amount { font-size: 22px; font-weight: 800; color: #E65100; }
.reward-box-status {
  font-size: 12px; color: #fff; background: #FF6B35;
  padding: 2px 10px; border-radius: 12px;
}
.reward-box-declare { font-size: 12px; color: #6D4C41; margin-top: 8px; line-height: 1.7; }
.safety-list { margin: 10px 0 0; padding-left: 18px; }
.safety-list li { font-size: 12px; color: #AD1457; line-height: 1.8; }
.safety-law { font-size: 12px; color: #8E24AA; margin-top: 8px; line-height: 1.7; }

/* 发布表单中的悬赏区块 */
.reward-form {
  background: #FFFBF5; border: 1px solid #FFE0B2;
  border-radius: var(--radius-md, 12px); padding: 14px 16px; margin-bottom: 16px;
}
.reward-form-title { font-size: 15px; font-weight: 700; color: #E65100; margin-bottom: 10px; }
.reward-suggest {
  display: flex; align-items: center; gap: 10px;
  background: #FFF3E0; border-radius: var(--radius-sm, 8px);
  padding: 8px 12px; margin-top: 4px; font-size: 13px; color: #5D4037;
}
.btn-sm { padding: 4px 12px; font-size: 13px; }
