/* 全局样式重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  /* 安卓 WebView 终极横滑拦截: 全局禁止水平滚动 */
  overflow-x: hidden;
  overflow-x: clip; /* 强力: 不产生 scroll chain */
  max-width: 100vw;
  position: relative;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  /* 全局禁止水平滚动 + 屏蔽原生 swipe back (iOS 风格) */
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  contain: layout; /* 工单 #4: 规避小米/VIVO/荣耀魔改WebView裁剪无障碍文本节点 (iOS/PC 行为不变) */
}
button { font-family: inherit; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* CSS 变量 - 设计 token */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --recruit: #dc2626;
  --recruit-bg: #fef2f2;
  --job: #059669;
  --job-bg: #ecfdf5;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* 头部 - 标题区 */
.app-header {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  padding: 24px 16px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.app-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}
.app-header .subtitle {
  font-size: 14px;
  opacity: 0.92;
  margin-top: 6px;
}

/* 实时统计行 - 第一行 */
.stats-line {
  background: #ffffff;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 76px;
  z-index: 99;
}
.stats-line {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
  border-bottom: 1px solid #e8eef9;
  font-size: 14px;
  flex-wrap: wrap;
}
.stats-line .stat-focus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e8eef9;
}
.stats-line .stat-label {
  color: #888;
  font-size: 13px;
}
.stats-line .stat-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 17px;
}
.stats-line .stat-unit {
  color: #888;
  font-size: 13px;
}
/* 需求 2: 手动刷新按钮 */
.stats-line .stat-refresh {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 1px solid #e8eef9;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stats-line .stat-refresh:hover,
.stats-line .stat-refresh:focus-visible {
  background: var(--primary);
  color: #fff;
  outline: none;
}
.stats-line .stat-refresh.rotating {
  animation: statRotate 0.6s linear;
}
@keyframes statRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 主导航 6 大分类 - 横向滚动 */
.main-nav {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #ffffff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 122px;
  z-index: 98;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav .nav-item {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text);
  border: 2px solid transparent;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-nav .nav-item.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.main-nav .nav-item:not(.active):hover {
  background: #e2e8f0;
}
.main-nav .nav-item[data-tab="near"] {
  background: #fef3c7;
  color: #92400e;
}
.main-nav .nav-item[data-tab="near"].active {
  background: #f59e0b;
  color: #ffffff;
}

/* 主内容 */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

/* 标题 */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 12px;
  padding-left: 4px;
  border-left: 4px solid var(--primary);
}
.section-title.muted {
  font-size: 16px;
  color: var(--text-muted);
  border-color: var(--text-light);
}

/* 我的发布按钮 */
.my-posts-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  min-height: 52px;
}
.my-posts-btn:hover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

/* 模式切换 - 附近 / 全国 */
.mode-toggle {
  display: flex;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 4px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  gap: 4px;
}
.mode-toggle .mode-btn {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  min-height: 44px;
  cursor: pointer;
}
.mode-toggle .mode-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}
.mode-toggle .mode-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 细分筛选区 */
.filters-section {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.filters-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.filter-group { margin-bottom: 12px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group .filter-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.filter-group .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  padding: 6px 12px;
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  min-height: 32px;
  line-height: 18px;
  transition: all 0.15s;
}
.filter-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 登录/注册区 */
.auth-section {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.auth-section .auth-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.auth-tabs .auth-tab {
  flex: 1;
  padding: 10px;
  background: #f1f5f9;
  color: var(--text);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.auth-tabs .auth-tab.active {
  background: var(--primary);
  color: #ffffff;
}
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-form label {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.auth-form .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  min-height: 44px;
  font-family: inherit;
}
.auth-form .form-control:focus {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  border-color: var(--primary);
}
.auth-form .form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.auth-form .btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  margin-top: 4px;
}
.auth-form .btn:hover { background: var(--primary-hover); }
.auth-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid #fecaca;
}
/* 账号密码登录/注册 modal (showAuthModal 渲染) */
.auth-label {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-top: 4px;
}
.auth-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  min-height: 44px;
  font-family: inherit;
  box-sizing: border-box;
}
.auth-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  border-color: var(--primary);
}
.auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  margin-top: 8px;
}
.auth-submit:hover { background: var(--primary-hover); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 0 0;
}
.auth-switch a {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* 个人中心 */
.user-center {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.user-center .user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-center .user-actions {
  display: flex;
  gap: 8px;
}
.user-center .user-actions button {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: #f1f5f9;
  cursor: pointer;
  min-height: 44px;
}
.user-center .user-actions button.danger {
  background: #fef2f2;
  color: var(--recruit);
  border-color: #fecaca;
}
.user-center .user-actions button:hover { background: #e2e8f0; }

/* 列表区 */
.posts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card .card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
  cursor: pointer;
}
.card .card-title:hover { color: var(--primary); }
.card .card-title .type-prefix {
  font-weight: 700;
  margin-right: 4px;
}
.card .card-title .type-prefix.recruit { color: var(--recruit); }
.card .card-title .type-prefix.job { color: var(--job); }
.card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card .card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.card .card-snippet {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card .card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card .card-actions .btn {
  flex: 1;
  min-width: 80px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  min-height: 40px;
  text-align: center;
}
.card .card-actions .btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.card .card-actions .btn-primary:hover { background: var(--primary-hover); }
.card .card-actions .btn-ghost:hover { background: #e2e8f0; }

/* 详情页 */
/* 详情页打开时:主区/侧栏/tab 都隐藏,只显示详情 */
body.detail-open .app-header,
body.detail-open .hero,
body.detail-open .filter-bar,
body.detail-open .filter-bar-h,
body.detail-open .tabs,
body.detail-open .tab-bar,
body.detail-open .near-btn,
body.detail-open .stat-focus,
body.detail-open .list-tip,
body.detail-open .list-more,
body.detail-open .list-more-end,
body.detail-open .list-empty,
body.detail-open .post-list,
body.detail-open .footer-area,
body.detail-open .sidebar,
body.detail-open .float-btn,
body.detail-open .tabbar,
body.detail-open .bottom-nav,
body.detail-open .modal-mask,
body.detail-open .login-menu,
body.detail-open #popupView,
body.detail-open .my-posts-wrap,
body.detail-open .user-page {
  display: none !important;
}

.detail-page {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #ffffff;
  /* 终极横滑拦截 */
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  overscroll-behavior: contain;
  contain: layout; /* 工单 #4: 规避小米/VIVO/荣耀魔改WebView裁剪无障碍文本节点 */
  padding: 20px;
  padding-bottom: 100px; /* 留出底部FAB空间 */
  box-sizing: border-box;
  box-shadow: var(--shadow);
  max-width: 100vw;
  width: 100vw;
  left: 0;
  right: 0;
  /* 安卓 WebView: 阻止 swipe 切页手势 */
  -webkit-user-select: none;
  user-select: none;
}
/* 详情页内部所有可滚动子元素也禁止水平滚动 + pan-y 限定 */
.detail-page,
.detail-page *,
.detail-page *::before,
.detail-page *::after {
  touch-action: pan-y;
}
/* 详情页内部禁止水平滚动(滑动仅触发垂直滚动) */
.detail-page .detail-content,
.detail-page .detail-page-body,
.detail-page .detail-action {
  touch-action: pan-y;
  overscroll-behavior-x: none;
}
.detail-page .back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.detail-page h1.detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}
.detail-page .detail-time {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.detail-page .detail-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 20px;
}
/* 终极a11y修复: detailContent 内部不设 text 节点, 用 ::before attr 渲染 */
.detail-page #detailContent::before {
  content: attr(data-content);
  white-space: pre-wrap;
  word-wrap: break-word;
  display: block;
}
.detail-page #detailContent {
  font-size: 0;  /* 隐藏可能的默认内容 */
}
.detail-page #detailContent::before {
  font-size: 16px;
}
.detail-page .detail-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 12px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

/* ============== a11y 焦点路径布局 (用户最新需求) ============== */
/* 1. 分享按钮 - 右上角固定, 焦点 1 */
.detail-page .detail-action-share {
  position: fixed !important;
  top: 12px;
  right: 12px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--primary, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.detail-page .detail-action-share:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* 2. 招聘求职正文 - 正中间, 焦点 2 (含发布时间) */
.detail-page .detail-page-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 80px 20px 100px;
  box-sizing: border-box;
}
.detail-page .detail-content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius, 12px);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text, #1e293b);
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.detail-page .detail-content:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

/* 3. 底部固定栏 - 焦点 3 (查看原文) + 焦点 4 (智能判断微信/电话) */
.detail-page .detail-bottom-bar {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid #e2e8f0;
  z-index: 15;
}
.detail-page .detail-bottom-bar .detail-action {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius, 12px);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text, #1e293b);
}
.detail-page .detail-bottom-bar .detail-action-source {
  flex: 0 0 auto;
  background: #f1f5f9;
  color: var(--text-secondary, #475569);
}
.detail-page .detail-bottom-bar .detail-action-call {
  background: var(--primary, #2563eb);
  color: #fff;
  border-color: var(--primary, #2563eb);
}
.detail-page .detail-bottom-bar .detail-action-wechat {
  background: #07c160;
  color: #fff;
  border-color: #07c160;
}
.detail-page .detail-bottom-bar .detail-action:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}
.detail-page .focus-area {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.detail-page .focus-area p {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}
.detail-page .focus-area p:last-child { margin-bottom: 0; }
.detail-page .focus-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  border: 2px solid var(--primary);
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
  min-height: 52px;
  text-decoration: none;
}
.detail-page .focus-btn.primary {
  background: var(--primary);
  color: #ffffff;
}
.detail-page .focus-btn:hover {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}
.detail-page .focus-btn.primary:hover { background: var(--primary-hover); }
.detail-page .focus-btn.call {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}
.detail-page .focus-btn.call:hover { background: #b91c1c; border-color: #b91c1c; }

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.modal p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
}
.modal .modal-actions {
  display: flex;
  gap: 8px;
}
.modal .modal-actions .btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #f1f5f9;
  cursor: pointer;
  min-height: 48px;
}
.modal .modal-actions .btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: rgba(0,0,0,0.85);
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 2000;
  max-width: 80vw;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: auto;
}

/* 我发布的信息 - 按城市分组 */
.my-posts-group { margin-bottom: 16px; }
.my-posts-city {
  font-size: 14px;
  font-weight: 700;
  color: #0066cc;
  padding: 8px 0 6px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}
.my-post-row {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.my-post-main { cursor: pointer; }
.my-post-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  flex-wrap: wrap;
}
.perm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}
.perm-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
  cursor: pointer;
}
.perm-toggle span:first-of-type { font-weight: 600; }
.perm-expires {
  font-size: 11px;
  color: #999;
  font-weight: 400;
  margin-left: 4px;
}
.badge-top { background: #fef3c7; color: #b45309; font-weight: 700; }
.badge-popup { background: #fee2e2; color: #b91c1c; font-weight: 700; }
.toast.danger { background: rgba(220, 38, 38, 0.95); }
.toast.success { background: rgba(5, 150, 105, 0.95); }

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}
.pagination button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  min-height: 40px;
  min-width: 40px;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination button.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 加载/空状态 */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  font-size: 15px;
}
.loading {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 768px) {
  .app-header { padding: 16px 12px 14px; }
  .app-header h1 { font-size: 20px; }
  .stats-line { font-size: 13px; padding: 10px 12px; top: 64px; }
  .main-nav { top: 104px; padding: 10px 12px; }
  .main-nav .nav-item { padding: 8px 14px; font-size: 14px; }
  main { padding: 12px; }
  /* 详情页打开时:主区/侧栏/tab 都隐藏,只显示详情 */
body.detail-open .app-header,
body.detail-open .hero,
body.detail-open .filter-bar,
body.detail-open .filter-bar-h,
body.detail-open .tabs,
body.detail-open .tab-bar,
body.detail-open .near-btn,
body.detail-open .stat-focus,
body.detail-open .list-tip,
body.detail-open .list-more,
body.detail-open .list-more-end,
body.detail-open .list-empty,
body.detail-open .post-list,
body.detail-open .footer-area,
body.detail-open .sidebar,
body.detail-open .float-btn,
body.detail-open .tabbar,
body.detail-open .bottom-nav,
body.detail-open .modal-mask,
body.detail-open .login-menu,
body.detail-open #popupView,
body.detail-open .my-posts-wrap,
body.detail-open .user-page {
  display: none !important;
}

.detail-page { padding: 16px; }
  .detail-page h1.detail-title { font-size: 18px; }
}

/* ===== 统计行 ===== */
.stats-line {
  padding: 12px 20px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0ff 100%);
  border-bottom: 1px solid #d0e0f0;
  font-size: 14px;
  color: #1a1a1a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.stats-line strong { color: #0066cc; font-size: 18px; }
.stat-sep { color: #999; }

/* ===== 主按钮区 ===== */
.main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 2px solid #e8e8e8;
}
.action-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 14px 18px;
  border: 2px solid #0066cc;
  background: #fff;
  color: #0066cc;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.action-btn:hover { background: #e8f0ff; }
.action-btn[aria-pressed="true"] { background: #0066cc; color: #fff; }
/* HTML5 hidden 属性应被尊重(.action-btn 用了 display:inline-flex 会覆盖默认 none) */
[hidden] { display: none !important; }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; border-color: #ccc; color: #999; }
.action-btn.primary { background: #0066cc; color: #fff; }
.action-btn.primary:hover { background: #0052a3; }
.action-btn .ico { font-size: 18px; }

/* 附近招聘按钮 - 准确度徽章 */
.action-btn.located { border-color: #28a745; background: #e8f5e9; color: #1b5e20; }
.action-btn .near-city { margin-left: 6px; font-weight: 700; }
.action-btn .near-acc {
  display: inline-block; margin-left: 4px;
  padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: 600;
  vertical-align: middle;
}
.near-acc.acc-hi { background: #28a745; color: #fff; }
.near-acc.acc-md { background: #ffc107; color: #333; }
.near-acc.acc-lo { background: #ff9800; color: #fff; }
.near-acc.acc-ip { background: #9e9e9e; color: #fff; }
.action-btn .near-refresh {
  margin-left: 6px; padding: 0 6px; border-radius: 50%;
  background: rgba(0,0,0,0.1); cursor: pointer; font-size: 14px;
  display: none;
}
.action-btn.located .near-refresh { display: inline-block; }
.action-btn .near-refresh:hover { background: rgba(0,0,0,0.2); }

/* ===== 细分筛选 ===== */
.filter-section {
  padding: 16px 20px;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
}
.filter-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.filter-group { margin-bottom: 12px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px;
  border: 1.5px solid #d0d0d0;
  background: #fff;
  color: #333;
  border-radius: 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: #0066cc; color: #0066cc; }
.chip.active { background: #0066cc; color: #fff; border-color: #0066cc; }

/* ===== 用户登录/个人中心 ===== */
.user-section {
  padding: 12px 20px;
  background: linear-gradient(90deg, #fffbe6 0%, #ffffff 50%);
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.login-entry { display: flex; align-items: center; gap: 12px; flex: 1; }
.login-entry-dropdown { position: relative; }
.login-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.1s, box-shadow 0.1s;
}
.login-entry-btn:active { transform: translateY(1px); }
.login-entry-btn:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.login-entry-primary { background: linear-gradient(90deg, #07c160, #12b7f5); }
.login-entry-primary .arrow { font-size: 9px; margin-left: 2px; transition: transform 0.2s; }
.login-entry-btn[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.login-entry-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  min-width: 180px;
  overflow: hidden;
  z-index: 60;
  animation: dropIn 0.15s ease-out;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  color: #111;
}
.login-menu-item:hover { background: #f3f4f6; }
.login-menu-wechat { color: #07c160; }
.login-menu-qq { color: #12b7f5; }
.le-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.login-menu-item .le-icon { color: #fff; }
.login-menu-wechat .le-icon { background: #07c160; }
.login-menu-qq .le-icon { background: #12b7f5; }
.login-entry-primary .le-icon { background: rgba(255,255,255,0.3); }
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0066cc;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.user-logout {
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.user-logout:hover { background: #f3f4f6; color: #111827; }
.user-btn {
  padding: 8px 18px;
  border: 1.5px solid #0066cc;
  background: #fff;
  color: #0066cc;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.user-btn:hover { background: #e8f0ff; }
.user-btn-primary {
  background: #0066cc;
  color: #fff;
}
.user-btn-primary:hover { background: #0052a3; }
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.user-info-name { font-weight: 700; color: #1a1a1a; }
.user-info-action { color: #0066cc; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.user-info-action:hover { background: #e8f0ff; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }

/* ===== 统一"登录/注册"主按钮(renderLoggedOut 注入) ===== */
.login-entry-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  border-radius: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary, #0066cc);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.1s, box-shadow 0.1s;
}
.login-entry-primary:hover { background: var(--primary-hover, #0052a3); }
.login-entry-primary:active { transform: translateY(1px); }

/* ===== OAuth 登录按钮 ===== */
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  margin-top: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}
.oauth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-weight: 900;
}
.oauth-wechat { background: #1aad19; }
.oauth-wechat:hover { background: #179b16; }
.oauth-qq { background: #12b7f5; }
.oauth-qq:hover { background: #0ea0da; }
.modal-sub { color: #666; font-size: 14px; margin: -8px 0 4px; }
.modal-tip { color: #999; font-size: 12px; margin-top: 12px; text-align: center; }

/* ===== 账号特权操作 ===== */
.detail-owner-ops {
  margin-top: 16px;
  padding: 14px;
  background: #fff8e1;
  border: 1.5px dashed #ffb300;
  border-radius: 8px;
}
.detail-owner-tip {
  font-size: 12px;
  color: #8d6e00;
  margin-bottom: 10px;
  font-weight: 600;
}
.owner-op-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.owner-op-btn {
  flex: 1;
  min-width: 130px;
  padding: 10px 12px;
  border: 1.5px solid #ffb300;
  background: #fff;
  color: #8d6e00;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.owner-op-btn:hover { background: #ffecb3; }
.owner-op-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 全站弹窗 ===== */
.popup-content {
  max-height: 200px;
  overflow: auto;
  padding: 10px 0;
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 14px;
  color: #333;
}
.popup-meta { color: #999; font-size: 12px; margin-top: 6px; }
.popup-actions { display: flex; gap: 10px; margin-top: 16px; }
.popup-actions .modal-submit { flex: 1; margin-top: 0; }

/* ===== 列表 ===== */
.list-main { padding: 12px 20px 40px; }
.list-loading { padding: 40px 20px; text-align: center; color: #999; }

/* 卡片 */
.post-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.post-card:hover { border-color: #0066cc; box-shadow: 0 2px 8px rgba(0,102,204,0.1); }
.post-card-top {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%);
  position: relative;
}
.post-card-top::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border-radius: 8px 0 0 8px;
}
.post-card-popup {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 60%);
  position: relative;
}
.post-card-popup::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border-radius: 8px 0 0 8px;
}
.post-card-top.post-card-popup::before {
  background: linear-gradient(180deg, #f59e0b 0%, #f59e0b 50%, #ef4444 50%, #ef4444 100%);
}
.post-perm-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 4px;
  letter-spacing: 0.5px;
}
.post-perm-top { background: #fef3c7; color: #b45309; border: 1px solid #f59e0b; }
.post-perm-popup { background: #fee2e2; color: #b91c1c; border: 1px solid #ef4444; }
.post-perm-top + .post-perm-popup { margin-left: -2px; }
.post-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.5;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #666;
}
.post-card-meta .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #555;
}
.post-card-meta .badge-recruit { background: #e8f5e8; color: #2c7; }
.post-card-meta .badge-job { background: #fff4e6; color: #c84; }
.post-card-meta .badge-time { background: #f0f7ff; color: #0066cc; }

/* 详情页 */
/* 详情页打开时:主区/侧栏/tab 都隐藏,只显示详情 */
body.detail-open .app-header,
body.detail-open .hero,
body.detail-open .filter-bar,
body.detail-open .filter-bar-h,
body.detail-open .tabs,
body.detail-open .tab-bar,
body.detail-open .near-btn,
body.detail-open .stat-focus,
body.detail-open .list-tip,
body.detail-open .list-more,
body.detail-open .list-more-end,
body.detail-open .list-empty,
body.detail-open .post-list,
body.detail-open .footer-area,
body.detail-open .sidebar,
body.detail-open .float-btn,
body.detail-open .tabbar,
body.detail-open .bottom-nav,
body.detail-open .modal-mask,
body.detail-open .login-menu,
body.detail-open #popupView,
body.detail-open .my-posts-wrap,
body.detail-open .user-page {
  display: none !important;
}

.detail-page {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 100;
  overflow-y: auto;
  padding: 20px;
}
.detail-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.detail-meta { color: #666; font-size: 13px; margin-bottom: 16px; }
.detail-content {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 24px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.detail-focus-btn {
  padding: 16px;
  border: 2px solid #0066cc;
  background: #fff;
  color: #0066cc;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-focus-btn:hover { background: #e8f0ff; }
.detail-focus-btn.primary { background: #0066cc; color: #fff; }
.detail-focus-btn.primary:hover { background: #0052a3; }
.detail-back { padding: 10px 16px; background: #f0f0f0; border: none; border-radius: 6px; cursor: pointer; margin-bottom: 12px; }

/* 详情页底部固定按钮条 - 左下"查看原文" + 右下"拨打电话" */
.detail-fab-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(to top, #fff 60%, rgba(255,255,255,0));
  z-index: 250; /* 高于 detail-page 自身的 150 */
  pointer-events: none; /* 让中间的空白可滚动 */
  gap: 10px;
}
.fab-left-group {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-fab {
  pointer-events: auto;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 110px;
  text-align: center;
}
.fab-left {
  background: #fff;
  color: #333;
  border: 1.5px solid #d0d0d0;
}
.fab-left:hover { background: #f5f5f5; }
.fab-left.fab-wechat {
  background: #1aad19;
  color: #fff;
  border-color: #1aad19;
}
.fab-left.fab-wechat:hover { background: #179b16; }
.fab-left.fab-top {
  background: #fef3c7;
  color: #b45309;
  border-color: #f59e0b;
}
.fab-left.fab-top:hover { background: #fde68a; }
.fab-left.fab-popup {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #ef4444;
}
.fab-left.fab-popup:hover { background: #fecaca; }
.fab-right.fab-primary {
  background: #0066cc;
  color: #fff;
}
.fab-right.fab-primary:hover { background: #0052a3; }

/* 详情页底部留出 FAB 空间 */
.detail-content, .detail-contact { padding-bottom: 80px; }

/* 发布时间:正文末尾一个焦点,小字右对齐 */
.detail-pubtime {
  text-align: right;
  color: #999;
  font-size: 13px;
  margin-top: 12px;
  padding: 8px 0;
  border-top: 1px dashed #eee;
}

/* 一致性标签 */
.match-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.match-ok { background: #e8f5e9; color: #2e7d32; }
.match-warn { background: #fff3e0; color: #e65100; }

/* 详情页 - 微信号行 */
.detail-wechat { font-weight: 600; color: #1aad19; }

/* 详情页 - 联系信息行 */
.detail-contact {
  background: #fafafa;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
}
.detail-contact-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}
.detail-contact-row:last-child { border-bottom: none; }
.detail-contact-label {
  width: 60px;
  color: #999;
  font-size: 13px;
}
.detail-phone { color: #0066cc; font-weight: 600; }

/* 列表卡片增强 - 让点击更明显 */
.post-card { display: flex; align-items: center; gap: 12px; }
.post-card-body { flex: 1; min-width: 0; }
.post-card-arrow { color: #0066cc; font-size: 13px; font-weight: 600; white-space: nowrap; }
.post-card:hover .post-card-arrow { color: #0052a3; }

/* 登录/注册模态 */
.modal-root { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-card { background: #fff; border-radius: 12px; padding: 24px; max-width: 400px; width: 90%; }
.modal-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.modal-input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.modal-input:focus { outline: 2px solid #0066cc; border-color: #0066cc; }
.modal-submit {
  width: 100%;
  padding: 14px;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.modal-cancel { width: 100%; padding: 12px; background: #f0f0f0; border: none; border-radius: 6px; margin-top: 8px; cursor: pointer; }

/* 响应式 */
@media (max-width: 768px) {
  .stats-line { font-size: 13px; padding: 10px 14px; }
  .stats-line strong { font-size: 16px; }
  .main-actions { padding: 12px 14px; gap: 8px; }
  .action-btn { min-width: 100px; padding: 12px; font-size: 14px; }
  .filter-section { padding: 12px 14px; }
  .user-section { padding: 10px 14px; }
  .list-main { padding: 10px 14px 30px; }
}

/* 列表提示条 */
.list-tip {
  background: #f0f7ff;
  border: 1px solid #b3d4ff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #333;
}
.list-tip-actions {
  display: flex;
  gap: 12px;
}
.list-tip-link {
  color: #0066cc;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #0066cc;
  border-radius: 6px;
  white-space: nowrap;
}
.list-tip-link:hover {
  background: #0066cc;
  color: #fff;
}

/* 分页器 */
.list-pager {
  text-align: center;
  margin: 24px 0 12px;
  padding: 8px 0;
}
.list-next-page {
  display: inline-block;
  min-width: 140px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,136,229,0.25);
  transition: all 0.2s;
}
.list-next-page:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,136,229,0.4); }
.list-next-page:active { transform: translateY(0); }
.list-next-page:disabled { background: #999; cursor: wait; box-shadow: none; }
.list-page-info {
  margin: 8px 0 0;
  color: #666;
  font-size: 13px;
}

/* 新加载的卡片高亮提示(分页加载新内容时短暂高亮) */
.post-card-new {
  animation: postCardHighlight 1.5s ease-out;
}
@keyframes postCardHighlight {
  0% {
    background: linear-gradient(90deg, #fffbe6 0%, #fff7d6 100%);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.4);
  }
  60% {
    background: linear-gradient(90deg, #fffbe6 0%, #fff 100%);
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.2);
  }
  100% {
    background: #fff;
    box-shadow: none;
  }
}

/* 2级 列表页双按钮(分层返回 + 快捷直达) */
.list-back-hier { left: 12px !important; top: 12px !important; }
.list-quick-home {
  position: sticky;
  top: 12px;
  left: 0;
  right: 0;
  margin: 8px 12px;
  padding: 10px 16px;
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.list-quick-home:hover { background: #bbdefb; }
.list-quick-home::before { content: "\2302 "; margin-right: 4px; }

/* tab 数量徽章 */
.tab-count {
  display: inline-block;
  background: #ddd;
  color: #666;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 400;
}
.action-btn[aria-pressed="true"] .tab-count {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* ============== 通用返回按钮(a11y) ============== */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  /* 不加 aria-hidden,读屏可识别 */
  position: relative;
  z-index: 5;
}
.back-button:hover,
.back-button:focus {
  background: #e8e8e8;
  border-color: #b0b0b0;
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}
.back-button:active {
  background: #d8d8d8;
}

/* 列表顶部返回按钮(2级板块) */
#listBackBtn {
  display: block;
  margin: 0 0 12px;
  width: fit-content;
}
/* 2级模式:主体子页内容突出 */
body.sub-mode #listMain {
  /* 视觉上略加内边距,与首页区分 */
  padding-top: 4px;
}
body.sub-mode .main-actions .action-btn[aria-hidden="true"] {
  /* 视觉上变灰,让用户知道当前在哪个板块 */
  opacity: 0.4;
}
body.sub-mode .user-section,
body.sub-mode .stats-strip,
body.sub-mode .hero {
  opacity: 0.5;
}

/* 详情页 main 焦点样式 */
.detail-main-content {
  outline: none;
}
.detail-main-content:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 弹窗内的返回按钮(左上角) */
.modal-back {
  position: absolute;
  top: 12px;
  left: 12px;
}
.modal-card {
  position: relative;
  padding-top: 52px; /* 给返回按钮留空间 */
}
.modal-body {
  /* 内容容器 */
}
/* 弹窗的 modal-cancel 已被返回按钮替代,保留样式兼容 */
.modal-cancel {
  margin-top: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}
.modal-cancel:hover { background: #f5f5f5; }

/* ============================================================
   v4 无障碍优化 (16 条清单)
   ============================================================ */

/* 通用变量加深 (深色模式对比度增强) */
:root {
  --focus-ring: 3px solid #1a1aff;
  --focus-ring-offset: 2px;
}

/* Skip Link (Tab 第一焦点) */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  background: #1a1aff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #1a1aff;
}

/* 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 12px;
  gap: 8px;
}
.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.15); }
.icon-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  background: rgba(255,255,255,0.2);
}


/* 工单 9-2: 三大板块 tab (招聘/求职/转让) */
.board-tabs {
  display: flex;
  margin: 12px 12px 0;
  background: linear-gradient(135deg, #f8f5ff 0%, #eef2ff 100%);
  border-radius: 12px 12px 0 0;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="dark"] .board-tabs {
  background: linear-gradient(135deg, #2d1f4d 0%, #1f2d4d 100%);
}
.board-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  min-height: 60px;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.board-tab:hover {
  background: rgba(124, 58, 237, 0.08);
}
.board-tab.active {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
[data-theme="dark"] .board-tab { color: #d1d5db; }
[data-theme="dark"] .board-tab.active { color: #fff; }
.board-tab:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 2px;
}
.board-tab-icon {
  font-size: 22px;
  line-height: 1;
}
.board-tab-label {
  font-size: 14px;
  font-weight: 600;
}
.board-tab-count {
  font-size: 11px;
  padding: 1px 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  color: inherit;
  opacity: 0.7;
  font-weight: 400;
}
.board-tab.active .board-tab-count {
  background: rgba(255,255,255,0.25);
  opacity: 1;
}
@media (max-width: 480px) {
  .board-tab { padding: 10px 4px; }
  .board-tab-icon { font-size: 18px; }
  .board-tab-label { font-size: 13px; }
}

/* 工单 #3.2: 底部 4 个工具图标 (找店/地图/发布/我的) - 固定在视口底部 */
.board-tabs-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  border-radius: 0;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, #f8f5ff 0%, #eef2ff 100%);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  z-index: 900;
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}
[data-theme="dark"] .board-tabs-bottom {
  background: linear-gradient(135deg, #2d1f4d 0%, #1f2d4d 100%);
  border-top-color: rgba(124, 58, 237, 0.3);
}
.board-tabs-bottom .board-tab {
  flex: 1;
  min-height: 56px;
  padding: 6px 4px;
}
/* 底部 tab 不显示 count, 节省空间 */
.board-tabs-bottom .board-tab-count { display: none; }
/* 给主内容底部留出底部 tab 高度 + 安全区 */
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* 工单 #2.2/2.3: 智能设备下载/安装入口 - hero 区下方 1 个按钮 */
.device-install-bar {
  margin: 12px 12px 0;
  padding: 0;
}
.device-install-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  background-clip: padding-box;
  position: relative;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #92400e;
  text-align: left;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.device-install-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.device-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.device-install-btn:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 2px;
}
.device-install-icon {
  font-size: 24px;
  line-height: 1;
}
.device-install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.device-install-text::after {
  content: attr(data-hint);
  font-size: 12px;
  font-weight: 400;
  color: #b45309;
  opacity: 0.8;
}
.device-install-hint { display: none; }
[data-theme="dark"] .device-install-btn {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  color: #fbbf24;
}
[data-theme="dark"] .device-install-btn::before {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
}

/* 工单 #2.2: 微信/QQ 弹窗"系统浏览器打开" */
.wx-tip-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wx-tip-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.wx-tip-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  animation: wxTipIn 0.2s ease-out;
}
@keyframes wxTipIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
[data-theme="dark"] .wx-tip-card { background: #1f1f24; color: #e5e7eb; }
.wx-tip-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}
[data-theme="dark"] .wx-tip-title { color: #f3f4f6; }
.wx-tip-desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  text-align: center;
}
[data-theme="dark"] .wx-tip-desc { color: #d1d5db; }
.wx-tip-steps {
  margin: 0 0 20px;
  padding: 14px 16px 14px 32px;
  background: #f3f4f6;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: #374151;
}
[data-theme="dark"] .wx-tip-steps { background: #2a2a32; color: #d1d5db; }
.wx-tip-steps li { margin-bottom: 4px; }
.wx-tip-emph { color: #7c3aed; font-weight: 700; }
.wx-tip-actions {
  display: flex;
  gap: 10px;
}
.wx-tip-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.wx-tip-btn:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 2px;
}
.wx-tip-btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #fff;
}
.wx-tip-btn-secondary {
  background: #e5e7eb;
  color: #4b5563;
}
[data-theme="dark"] .wx-tip-btn-secondary { background: #3a3a44; color: #d1d5db; }

/* 筛选栏 */
.filter-bar {
  margin: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
[data-theme="dark"] .filter-bar { background: #1e1e24; }
.filter-group { display: flex; align-items: center; gap: 4px; }
.filter-label {
  font-size: 13px;
  color: #4b5563;
  margin-right: 4px;
  font-weight: 500;
}
[data-theme="dark"] .filter-label { color: #d1d5db; }
.filter-select {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  min-height: 36px;
  min-width: 100px;
}
[data-theme="dark"] .filter-select { background: #2a2a32; color: #f3f4f6; border-color: #4b5563; }
.filter-input {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  min-height: 36px;
}
[data-theme="dark"] .filter-input { background: #2a2a32; color: #f3f4f6; border-color: #4b5563; }
.filter-select:focus-visible, .filter-input:focus-visible, .filter-btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-color: #1a1aff;
  box-shadow: 0 0 0 3px rgba(26,26,255,0.2);
}
.filter-btn {
  padding: 8px 18px;
  background: #1a1aff;
  color: #fff;
  border: 2px solid #1a1aff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  min-height: 36px;
}
.filter-btn:hover { background: #0000cc; border-color: #0000cc; }

/* 板块标题 */
.section-header {
  margin: 20px 12px 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
[data-theme="dark"] .section-title { color: #f3f4f6; }
.section-count {
  font-size: 13px;
  color: #6b7280;
}
[data-theme="dark"] .section-count { color: #9ca3af; }

/* 帖子卡片 - 合并焦点 */
.post-list {
  list-style: none;
  margin: 0 12px 80px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-card {
  position: relative;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  display: block;
}
[data-theme="dark"] .post-card { background: #1e1e24; border-color: #374151; color: #f3f4f6; }
.post-card:hover {
  border-color: #1a1aff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,26,255,0.12);
}
.post-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-color: #1a1aff;
  box-shadow: 0 0 0 4px rgba(26,26,255,0.18);
}
.post-card.top {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fb923c;
}
[data-theme="dark"] .post-card.top {
  background: linear-gradient(135deg, #422006 0%, #78350f 100%);
  border-color: #f59e0b;
}
.post-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #4b5563;
}
[data-theme="dark"] .post-card-head { color: #d1d5db; }
.type-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
}
.type-tag.recruit { background: #dbeafe; color: #1e40af; }
.type-tag.job { background: #fce7f3; color: #9d174d; }
[data-theme="dark"] .type-tag.recruit { background: #1e3a8a; color: #bfdbfe; }
[data-theme="dark"] .type-tag.job { background: #831843; color: #fbcfe8; }
.city-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: #4b5563;
}
[data-theme="dark"] .city-tag { color: #d1d5db; }
.top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 14px;
  color: #ea580c;
}
.post-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}
[data-theme="dark"] .post-card-title { color: #f3f4f6; }
.post-card-top-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  background: #ea580c;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* 详情页 */
.page-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 12px 80px;
}
.post-detail {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
[data-theme="dark"] .post-detail { background: #1e1e24; }
.post-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #4b5563;
}
[data-theme="dark"] .post-detail-head { color: #d1d5db; }
.post-detail-title {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 12px;
  color: #111827;
  line-height: 1.3;
}
[data-theme="dark"] .post-detail-title { color: #f3f4f6; }
.post-detail-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}
[data-theme="dark"] .post-detail-meta { color: #9ca3af; }
.post-detail-body {
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: #1f2937;
  margin-bottom: 24px;
  outline: none;
}
.post-detail-body:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: 6px;
  background: rgba(26,26,255,0.04);
  padding: 4px 8px;
  margin-left: -8px;
  margin-right: -8px;
}
[data-theme="dark"] .post-detail-body { color: #e5e7eb; }
.post-detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.action-left, .action-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-call, .btn-copy-wechat, .btn-share, .btn-raw, .btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  min-width: 88px;
  text-decoration: none;
}
.btn-call {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.btn-call:hover { background: #15803d; }
.btn-call:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.3);
}
.btn-copy-wechat {
  background: #07c160;
  border-color: #07c160;
  color: #fff;
}
.btn-copy-wechat:hover { background: #06a050; }
.btn-copy-wechat:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 4px rgba(7,193,96,0.3);
}
.btn-share {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}
.btn-share:hover { background: #4f46e5; }
.btn-share:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}
.btn-raw {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #1f2937;
}
[data-theme="dark"] .btn-raw { background: #2a2a32; color: #f3f4f6; border-color: #4b5563; }
.btn-raw:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.btn-top {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
}
.btn-top:hover { background: #ffedd5; }

/* 分享面板 */
.share-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  z-index: 1100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.25s;
}
.share-panel.open { transform: translateY(0); }
.share-panel h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  text-align: center;
}
.share-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.share-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.share-option:hover { background: #e5e7eb; }
.share-option:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  background: #e0e7ff;
}
.share-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.share-backdrop.open { opacity: 1; pointer-events: auto; }

/* 表单页 */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px;
  margin: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="dark"] .form-card { background: #1e1e24; color: #f3f4f6; }
.form-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #111827;
}
[data-theme="dark"] .form-title { color: #f3f4f6; }
.form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}
[data-theme="dark"] .form-label { color: #f3f4f6; }
.form-input, .form-textarea, .form-select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  min-height: 44px;
  background: #fff;
  color: #1f2937;
}
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select { background: #2a2a32; color: #f3f4f6; border-color: #4b5563; }
.form-input:focus-visible, .form-textarea:focus-visible, .form-select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-color: #1a1aff;
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.btn-primary {
  width: 100%;
  padding: 14px;
  background: #1a1aff;
  color: #fff;
  border: 2px solid #1a1aff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary:hover { background: #0000cc; border-color: #0000cc; }
.btn-primary:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.btn-primary:disabled { background: #9ca3af; border-color: #9ca3af; cursor: not-allowed; }
.btn-ghost {
  padding: 12px 18px;
  background: #f3f4f6;
  color: #1f2937;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
}
.btn-ghost:hover { background: #e5e7eb; }
.btn-ghost:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.btn-link {
  background: transparent;
  border: 2px solid transparent;
  color: #1a1aff;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
}
.btn-link:hover { background: rgba(26,26,255,0.08); }
.btn-link:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }

/* 我的帖子卡片 */
.mypost-list { display: flex; flex-direction: column; gap: 10px; margin: 12px; }
.mypost-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
}
[data-theme="dark"] .mypost-card { background: #1e1e24; border-color: #374151; }
.mypost-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.mypost-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: #111827; }
[data-theme="dark"] .mypost-title { color: #f3f4f6; }
.mypost-excerpt { font-size: 14px; color: #4b5563; margin: 0 0 10px; line-height: 1.5; }
[data-theme="dark"] .mypost-excerpt { color: #d1d5db; }
.mypost-foot { display: flex; justify-content: space-between; align-items: center; }
.time-tag { font-size: 12px; color: #6b7280; }
.status-tag { padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-tag.active { background: #dcfce7; color: #166534; }
.status-tag.removed { background: #f3f4f6; color: #4b5563; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 15px;
}

/* Toast */
.toast {
  display: block;
  margin: 0 auto 8px;
  max-width: 320px;
  padding: 12px 18px;
  background: rgba(17,24,39,0.92);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  pointer-events: auto;
  animation: toastIn 0.2s;
}
.toast.success { background: rgba(22,163,74,0.95); }
.toast.error { background: rgba(220,38,38,0.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 360px;
  width: 100%;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
[data-theme="dark"] .modal { background: #1e1e24; color: #f3f4f6; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-title { font-size: 16px; font-weight: 700; margin: 0; }
.modal-close { background: transparent; border: 0; font-size: 24px; cursor: pointer; min-width: 32px; min-height: 32px; }
.modal-body { margin-bottom: 16px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; }

/* 公告弹窗 v41 (复用详情页布局) */
.announce-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
  display: none;
  align-items: stretch;
  justify-content stretch: stretch;
  flex-direction: column;
  overflow: auto;
}
.announce-modal.open { display: flex; }
.announce-modal .topbar { background: #fff; border-bottom: 1px solid #e5e7eb; }
[data-theme="dark"] .announce-modal .topbar { background: #1e1e24; border-bottom-color: #2a2a32; }
.announce-modal .topbar-title { font-size: 15px; }
.announce-title { font-size: 18px; font-weight: 700; margin: 16px 0 12px; color: #1f2937; }
[data-theme="dark"] .announce-title { color: #f3f4f6; }
.announce-hint { color: #6b7280; font-size: 13px; margin-top: 12px; text-align: right; }
[data-theme="dark"] .announce-hint { color: #9ca3af; }
.announce-card { background: #fff; border-radius: 12px; max-width: 480px; width: 100%; padding: 20px; }
[data-theme="dark"] .announce-card { background: #1e1e24; color: #f3f4f6; }
.announce-body { white-space: pre-wrap; line-height: 1.7; font-size: 15px; margin: 12px 0; }
.announce-card .btn-primary { width: 100%; }

/* 弹窗 v42 复用详情页 5 控件布局 */
.announce-modal .action-bar-top {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; z-index: 10;
}
.announce-modal .action-bar-bottom {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #fff;
  border-top: 1px solid #e5e7eb; z-index: 10;
}
[data-theme="dark"] .announce-modal .action-bar-bottom { background: #1e1e24; border-top-color: #2a2a32; }
.announce-modal .btn-skip,
.announce-modal .btn-raw {
  background: #f3f4f6; color: #1f2937;
  border: 1px solid #d1d5db; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.12s;
}
.announce-modal .btn-skip:hover,
.announce-modal .btn-raw:hover { background: #e5e7eb; }
.announce-modal .btn-skip:focus-visible,
.announce-modal .btn-raw:focus-visible {
  outline: 3px solid #5b6cdb; outline-offset: 2px;
}
[data-theme="dark"] .announce-modal .btn-skip,
[data-theme="dark"] .announce-modal .btn-raw { background: #2a2a32; color: #f3f4f6; border-color: #4b5563; }
[data-theme="dark"] .announce-modal .btn-skip:hover,
[data-theme="dark"] .announce-modal .btn-raw:hover { background: #374151; }
.announce-modal .announce-content-wrap {
  padding: 70px 16px 90px; max-width: 720px; margin: 0 auto; width: 100%;
}
.announce-modal .contact-bar {
  position: fixed; right: 16px; bottom: 80px; z-index: 11;
  display: flex; gap: 8px; flex-direction: column; align-items: flex-end;
}
.announce-modal .contact-bar .btn-call,
.announce-modal .contact-bar .btn-copy-wechat {
  background: #fff; border: 1px solid #d1d5db; color: #1f2937;
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 500;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.announce-modal .contact-bar .btn-call { background: #16a34a; color: #fff; border-color: #16a34a; }
.announce-modal .contact-bar .btn-call:hover { background: #15803d; }
.announce-modal .contact-bar .btn-copy-wechat { background: #2563eb; color: #fff; border-color: #2563eb; }
.announce-modal .contact-bar .btn-copy-wechat:hover { background: #1d4ed8; }
.announce-modal .contact-bar .btn-call:focus-visible,
.announce-modal .contact-bar .btn-copy-wechat:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.announce-modal .raw-link {
  color: #6b7280; font-size: 12px; text-decoration: underline;
  margin-top: 12px; display: inline-block;
}
.announce-modal .raw-link:focus-visible { outline: 3px solid #5b6cdb; outline-offset: 2px; }

/* 分享面板 (弹窗内嵌) */
.share-mask-inner {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1700;
  display: none; align-items: flex-end; justify-content: center;
}
.share-mask-inner.open { display: flex; }
.share-panel-inner {
  background: #fff; border-radius: 16px 16px 0 0; padding: 16px;
  width: 100%; max-width: 480px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  transform: translateY(100%); transition: transform 0.25s;
}
.share-mask-inner.open .share-panel-inner { transform: translateY(0); }
[data-theme="dark"] .share-panel-inner { background: #1e1e24; color: #f3f4f6; }
.share-panel-inner h3 { font-size: 16px; font-weight: 600; margin: 0 0 12px; text-align: center; color: #1f2937; }
[data-theme="dark"] .share-panel-inner h3 { color: #f3f4f6; }
.share-options-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-options-inner .share-option {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 14px; background: #f3f4f6; color: #1f2937;
  border: 2px solid transparent; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 500;
}
.share-options-inner .share-option:hover { background: #e5e7eb; }
.share-options-inner .share-option:focus-visible { outline: 3px solid #5b6cdb; outline-offset: 2px; }
[data-theme="dark"] .share-options-inner .share-option { background: #2a2a32; color: #f3f4f6; }
[data-theme="dark"] .share-options-inner .share-option:hover { background: #374151; }

/* 列表卡片 v41 (合并焦点) */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card-li { padding: 0; margin: 0; }
.post-card {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 16px; margin: 0 0 8px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.post-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.post-card:focus-visible { outline: 3px solid #5b6cdb; outline-offset: 2px; }
[data-theme="dark"] .post-card { background: #1e1e24; border-color: #2a2a32; color: #f3f4f6; }
.post-card.top {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fdba74;
  box-shadow: 0 2px 8px rgba(251,146,60,0.18);
}
[data-theme="dark"] .post-card.top { background: linear-gradient(135deg, #3a2410, #2a1a0a); border-color: #b45309; }
.post-card .top-flag {
  background: linear-gradient(90deg, #f97316, #ef4444); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 999px; flex-shrink: 0;
}
.post-card .type-tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; flex-shrink: 0; font-weight: 600; }
.post-card .type-tag.recruit { background: #dbeafe; color: #1e40af; }
.post-card .type-tag.job { background: #fef3c7; color: #92400e; }
[data-theme="dark"] .post-card .type-tag.recruit { background: #1e3a8a; color: #bfdbfe; }
[data-theme="dark"] .post-card .type-tag.job { background: #78350f; color: #fde68a; }
.post-card .city-tag { font-size: 13px; color: #4b5563; flex-shrink: 0; }
[data-theme="dark"] .post-card .city-tag { color: #9ca3af; }
.post-card .card-title { font-size: 14px; color: #1f2937; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-theme="dark"] .post-card .card-title { color: #f3f4f6; }
.post-card-li .empty { padding: 24px; text-align: center; color: #6b7280; }
[data-theme="dark"] .post-card-li .empty { color: #9ca3af; }

.load-more-wrap { padding: 16px 0; text-align: center; }
.load-more-info { margin-top: 8px; font-size: 12px; color: #6b7280; }
[data-theme="dark"] .load-more-info { color: #9ca3af; }

/* 公告发布表单 (管理员) */
.announce-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
[data-theme="dark"] .announce-form { border-color: #374151; }

/* 深色模式对比度增强 */
[data-theme="dark"] {
  --bg: #0f0f14;
  --text: #f3f4f6;
}
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) {
    background: #0f0f14;
    color: #f3f4f6;
  }
  body:not([data-theme="light"]) .post-card { background: #1e1e24; border-color: #374151; }
  body:not([data-theme="light"]) .post-card-title { color: #f3f4f6; }
  body:not([data-theme="light"]) .topbar { background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%); }
  body:not([data-theme="light"]) .icon-btn:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
  }
  body:not([data-theme="light"]) .post-card:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(251,191,36,0.25);
  }
  body:not([data-theme="light"]) .filter-btn:focus-visible,
  body:not([data-theme="light"]) .filter-select:focus-visible,
  body:not([data-theme="light"]) .filter-input:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(251,191,36,0.25);
  }
  body:not([data-theme="light"]) .btn-primary:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(251,191,36,0.3);
  }
}

/* 全局焦点环统一增强 (深色更亮) */
@media (prefers-color-scheme: dark) {
  :focus-visible {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px !important;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== 工单 #3 分页控件 (仅上下页, 取消数字页码) ========== */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 0 40px;
  flex-wrap: wrap;
}
.pager-btn {
  min-width: 110px;
  padding: 10px 22px;
  border: 1px solid #c8c5e8;
  background: #fff;
  color: #4a3a8a;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.pager-btn:hover:not([hidden]) { background: #ede9ff; }
.pager-btn:active:not([hidden]) { transform: translateY(1px); }
.pager-btn[hidden] { display: none; }

.pager-info {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  color: var(--color-text-2, #6b7280);
  font-weight: 500;
  user-select: none;
}
.pager-info[hidden] { display: none; }
.pager-info {
  min-width: 120px;
  text-align: center;
  font-size: 14px;
  color: #6b6889;
}
.page-boundary-tip {
  width: 100%;
  text-align: center;
  color: #b9a36a;
  font-size: 13px;
  padding: 8px 0 0;
  outline: none;
}
.page-boundary-tip[hidden] { display: none; }

/* 工单 #1.2 移除冗余文字 (楼主过滤由后端做), 列表卡片内禁用长按菜单 */
.post-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.post-card-content { user-select: text; }  /* 正文可复制 */

/* ========== post.html 详情页样式 ========== */
/* 工单 8-2.1: 正文用 <article role="article"> 包裹, 文字正常展示, 不做隐藏/屏蔽 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.detail-card {
  max-width: 720px;
  margin: 24px auto 100px;
  padding: 24px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  line-height: 1.75;
  outline: none;
  /* 工单 8-2.5: 禁止 display:none/visibility:hidden 包裹正文 */
}
.detail-card:focus-visible {
  outline: 3px solid #5b6cdb;
  outline-offset: 4px;
}
.detail-content {
  font-size: 16px;
  color: #1f1f23;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
  /* 工单 8-2.5: 保障读屏完整识别所有文字, 无 display:none/visibility:hidden */
}

/* 详情页联系按钮 (右下角) - 工单 8-1.4 智能判断 */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid #eee;
  z-index: 100;
  padding: 12px 0;
  backdrop-filter: blur(10px);
}
.bottom-bar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bottom-left { display: flex; gap: 12px; align-items: center; }
.bottom-right { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }

/* 拨号按钮 - 蓝紫渐变, 4.5:1 对比度 (白字 #fff on 蓝 #2b5ddb) */
.action-btn.call {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4f7eff, #2b5ddb);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(43,93,219,0.25);
  min-height: 44px;
  min-width: 100px;
}
.action-btn.call:hover { transform: translateY(-1px); }
.action-btn.call:focus-visible {
  outline: 3px solid #ffd33b;
  outline-offset: 2px;
}

/* 微信按钮 - 深绿色, 4.5:1 对比度 (白字 #fff on 绿 #048a4d) */
.action-btn.wechat {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #06ad5b, #048a4d);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(4,138,77,0.3);
  min-height: 44px;
  min-width: 100px;
}
.action-btn.wechat:hover { transform: translateY(-1px); }
.action-btn.wechat:focus-visible {
  outline: 3px solid #ffd33b;
  outline-offset: 2px;
}

/* 查看原文按钮 (管理员) - 中性灰, 左下角 */
.action-btn.source {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #fff;
  color: #4a3a8a;
  border: 1px solid #c8c5e8;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}
.action-btn.source:hover { background: #ede9ff; }
.action-btn.source:focus-visible {
  outline: 3px solid #5b6cdb;
  outline-offset: 2px;
}

/* 管理员「更多」按钮 (左下角, 仅管理员可见) - 紫色高亮 + 角标 */
.action-btn.more {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  border: 1px solid #6d28d9;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
  position: relative;
}
.action-btn.more:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.4); }
.action-btn.more:focus-visible {
  outline: 3px solid #ffd33b;
  outline-offset: 2px;
}
.action-btn.more[data-admin-only="true"]::before {
  content: "★";
  margin-right: 4px;
  color: #ffd33b;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.empty-tip {
  color: #6b6889;
  font-size: 13px;
}

/* ===== 工单 9-1.3 Toast 单例: 新提示前销毁上一条 ===== */
.toast-host {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 2000;
}
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  padding: 12px 22px;
  background: rgba(20, 22, 32, 0.94);
  color: #ffffff;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.4;
  max-width: min(80vw, 360px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 2000;
  word-break: break-word;
  text-align: center;
}
.toast.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.toast-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
}
.toast.success { background: rgba(5, 150, 105, 0.95); }
.toast.error   { background: rgba(220, 38, 38, 0.95); }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* 置顶帖专属: 确认拨打弹窗 (test mode) - 全屏显示, 无提示语无描述 */
.call-confirm-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: stretch; justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  animation: callConfirmFade 0.16s ease-out;
}
.call-confirm-box {
  background: #fff;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 80px 24px 40px;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  animation: callConfirmSlide 0.18s ease-out;
}
.call-confirm-box .phone-num {
  display: block;
  margin: 0 0 60px;
  font-size: 44px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}
/* 微信弹窗微信号样式 (跟 .phone-num 同款, 字号略小因微信号较长) */
.call-confirm-box .wechat-num {
  display: block;
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  color: #07c160;  /* 微信绿 */
  letter-spacing: 1px;
  word-break: break-all;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}
.call-confirm-box .wechat-status {
  display: block;
  margin: 0 0 40px;
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}
/* ===== 方案 3: 全文全屏弹窗 (单 DOM 节点 + <strong> 大标题) =====
   物理层面只 1 个 <p> 块级节点, 内部 <strong> 是 inline 不进无障碍树
   DOM 物理层面只 1 个块级文本节点 → 100% 兼容 iOS VO / Android TB / 保益 / 点明 / 天坦 */
.call-confirm-box .full-text-body {
  display: block;
  width: 100%;
  max-width: 720px;
  max-height: 60vh;
  margin: 0 0 60px;
  padding: 24px 16px;
  font-size: 17px;
  line-height: 1.7;
  color: #111827;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}
.call-confirm-box .full-text-body:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.call-confirm-box .full-text-strong {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  color: #111827;
  letter-spacing: 0.5px;
}
.call-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  flex-direction: row-reverse; /* DOM: ok 在前 (focus), 视觉: ok 在右, 取消在左 */
}
.call-btn {
  flex: 1;
  padding: 22px 0;
  border: none;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  min-height: 72px; /* 触屏友好 + VoiceOver 焦点明显 */
  letter-spacing: 2px;
}
.call-btn-cancel {
  background: #f3f4f6;
  color: #374151;
}
.call-btn-ok {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}
.call-btn:active { transform: scale(0.98); }

@keyframes callConfirmFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes callConfirmSlide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .call-confirm-overlay, .call-confirm-box { animation: none; }
}
@media (prefers-color-scheme: dark) {
  .call-confirm-box { background: #1f2937; }
  .call-confirm-box .phone-num { color: #60a5fa; }
  .call-confirm-box .wechat-num { color: #4ade80; }  /* 微信绿 - 暗色 */
  .call-confirm-box .wechat-status { color: #9ca3af; }
  .call-confirm-box .full-text-body { background: #111827; color: #e5e7eb; border-color: #374151; }
  .call-confirm-box .full-text-body:focus { outline-color: #60a5fa; }
  .call-confirm-box .full-text-strong { color: #f9fafb; }
  .call-btn-cancel { background: #374151; color: #d1d5db; }
}

@media (prefers-color-scheme: dark) {
  .pwa-cta-btn { box-shadow: 0 4px 16px rgba(124, 77, 255, 0.42); }
  .pwa-cta-btn:hover { box-shadow: 0 8px 22px rgba(124, 77, 255, 0.52); }
}

/* [更多] 弹窗 (admin) - 修复 5 个按钮没样式的 bug */
.more-list { list-style: none; padding: 0; margin: 0; }
.more-list li { border-bottom: 1px solid #e2e8f0; }
.more-list li:last-child { border-bottom: 0; }
.more-list li button {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 14px 18px; border: 0; background: #fff;
    font-size: 15px; color: #1e293b; cursor: pointer; text-align: left;
    font-family: inherit;
}
.more-list li button:hover { background: #f8fafc; }
.more-list li button.muted { color: #64748b; }
.more-list li button.danger { color: #b91c1c; }
.more-list li button.danger:hover { background: #fef2f2; }
.more-list li button:active { background: #ede9fe; }

/* 置顶/弹窗 范围+时长弹窗 (共享 scopeModal) */
.scope-checkboxes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-top: 8px; max-height: 200px; overflow-y: auto;
}
.scope-checkboxes label {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; background: #f1f5f9; border-radius: 8px;
    cursor: pointer; font-size: 14px;
}
.scope-checkboxes label:has(input:checked) { background: #ede9fe; color: #6d28d9; }
.duration-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.duration-presets button {
    padding: 8px 14px; border: 1px solid #e2e8f0; background: #fff;
    border-radius: 8px; cursor: pointer; font-size: 14px;
    font-family: inherit;
}
.duration-presets button.active { background: #ede9fe; border-color: #8b5cf6; color: #6d28d9; }
.duration-custom { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.duration-custom input { width: 80px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }
.duration-custom select { padding: 8px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; }

/* 通用弹窗底部操作 */
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.modal-actions .btn-ghost {
    padding: 10px 18px; background: #f1f5f9; border: 0; border-radius: 8px;
    cursor: pointer; font-size: 14px; color: #64748b; font-family: inherit;
}
.modal-actions .btn-primary {
    padding: 10px 18px; background: #7c3aed; color: #fff; border: 0;
    border-radius: 8px; cursor: pointer; font-size: 14px; font-family: inherit;
}
.modal-actions .btn-primary.danger { background: #b91c1c; }
.modal-actions .btn-primary:hover { opacity: 0.9; }
.modal-actions .btn-ghost:hover { background: #e2e8f0; }

@media (max-width: 768px) {
    .scope-checkboxes { grid-template-columns: 1fr 1fr; }
    .duration-presets button { padding: 6px 10px; font-size: 13px; }
}

/* 触屏 focus 反馈 */
@media (max-width: 768px) {
    *:focus-visible {
        outline: 3px solid #7c3aed;
        outline-offset: 2px;
    }
}

/* 13 条管控细则 — 读屏适配基线 (细则 6) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 焦点高亮统一规范 (细则 6) */
:focus-visible {
  outline: 3px solid #7c3aed !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.2) !important;
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #7c3aed !important;
  outline-offset: 2px !important;
}

/* 置顶时长预设按钮 - active 状态 (细则 3) */
.duration-presets button.active {
  background: #ede9fe !important;
  border-color: #8b5cf6 !important;
  color: #6d28d9 !important;
  font-weight: 600;
}

/* 危险按钮 */
.btn-ok.danger, .btn-primary.danger {
  background: #b91c1c !important;
}
.btn-ok.danger:hover, .btn-primary.danger:hover {
  background: #991b1b !important;
}

/* 范围多选 - 选中状态 (细则 2) */
.scope-checkboxes label:has(input:checked) {
  background: #ede9fe !important;
  color: #6d28d9 !important;
  font-weight: 600;
}
.scope-checkboxes input:disabled + * {
  color: #cbd5e1 !important;
  cursor: not-allowed;
}



/* Hero 区安卓 APP 下载横幅 (醒目) */
.apk-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  margin: 16px 0 20px 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
}
.apk-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.42);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.apk-banner:focus-visible {
  outline: 3px solid #fbbf24 !important;
  outline-offset: 3px !important;
}
.apk-banner-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}
.apk-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.apk-banner-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.apk-banner-text small {
  font-size: 13px;
  opacity: 0.92;
  font-weight: 400;
}
.apk-banner-arrow {
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.apk-banner:hover .apk-banner-arrow {
  transform: translateX(4px);
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
  .apk-banner {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  }
}

/* 移动端: 横幅占满 */
@media (max-width: 640px) {
  .apk-banner {
    margin: 12px -4px 16px -4px;
    padding: 12px 16px;
  }
  .apk-banner-icon {
    font-size: 28px;
  }
  .apk-banner-text strong {
    font-size: 16px;
  }
  .apk-banner-text small {
    font-size: 12px;
  }
}
