/* ========================================================
   本地分类信息门户 - 高保真原型全局样式
   设计理念：现代、简约、商务、年轻、有质感
   ======================================================== */

:root {
  /* 主色板 */
  --color-primary: #1677FF;
  --color-primary-dark: #0958D9;
  --color-primary-light: #4096FF;
  --color-primary-bg: #E6F4FF;
  --color-secondary: #722ED1;
  --color-accent: #FF7A45;
  --color-danger: #FF4D4F;
  --color-success: #52C41A;
  --color-warning: #FAAD14;

  /* 中性色 - 9级灰阶 */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* 语义色 */
  --color-text: var(--gray-800);
  --color-text-secondary: var(--gray-600);
  --color-text-tertiary: var(--gray-400);
  --color-bg: #FFFFFF;
  --color-bg-soft: #F3F6FB;
  --color-bg-page: #E6EDF6;
  --color-border: var(--gray-200);
  --color-border-light: var(--gray-100);
  --color-panel-border: rgba(148,163,184,0.28);

  /* 尺寸 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* 阴影：偏立体，用于白卡片模块 */
  --shadow-sm: 0 2px 6px rgba(15,23,42,0.05), 0 8px 20px rgba(15,23,42,0.08);
  --shadow-md: 0 4px 10px rgba(15,23,42,0.06), 0 12px 28px rgba(15,23,42,0.1);
  --shadow-lg: 0 8px 16px rgba(15,23,42,0.08), 0 20px 40px rgba(15,23,42,0.12);
  --shadow-xl: 0 16px 48px rgba(15,23,42,0.16);
  --shadow-panel: 0 2px 6px rgba(15,23,42,0.05), 0 10px 24px rgba(15,23,42,0.08);

  /* 容器 */
  --container-max: 1280px;
  --header-height: 68px;

  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
}
html, body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg-page);
  background-image: linear-gradient(180deg, #DDE6F2 0%, #E6EDF6 45%, #EBF0F7 100%);
  background-attachment: fixed;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary); }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== 容器 ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 面包屑 / 当前位置 ===== */
.breadcrumb-wrap {
  padding: 14px 0 10px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 2px;
  min-height: 28px;
  padding: 4px 10px 4px 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-panel-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.breadcrumb-label {
  color: var(--gray-500);
  margin-right: 2px;
  flex-shrink: 0;
  font-size: 12px;
}
.breadcrumb a {
  color: var(--color-text-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.breadcrumb a:hover {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  color: var(--gray-300);
  font-size: 12px;
  user-select: none;
  flex-shrink: 0;
}
.breadcrumb-current {
  color: var(--color-text);
  font-weight: 600;
  padding: 2px 6px;
}
/* 卡片内面包屑：与正文左缘对齐，弱化外框 */
.post-main > .breadcrumb,
.detail-main > .breadcrumb {
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* ===== 顶部公告栏 ===== */
.topbar {
  background: linear-gradient(90deg, #0B2447 0%, #163A6B 55%, #1E4A8C 100%);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  padding: 6px 0;
  position: relative;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar strong {
  color: #fff;
  font-weight: 600;
  margin-left: 2px;
}
.topbar a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 16px; align-items: center; }
.topbar-links .sep { color: rgba(255,255,255,0.25); }

.loc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.loc-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  margin: -2px -8px;
  border-radius: 6px;
  color: rgba(255,255,255,0.86);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  user-select: none;
}
.loc-switch-btn:hover,
.loc-switch.open .loc-switch-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.loc-switch-btn .loc-label {
  opacity: 0.78;
}
.loc-switch-btn strong {
  margin-left: 0;
  font-weight: 600;
}
.loc-switch-btn .caret {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.18s;
}
.loc-switch.open .loc-switch-btn .caret {
  transform: rotate(180deg);
}
.loc-switch-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  width: 280px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.16);
  color: var(--color-text);
}
.loc-switch.open .loc-switch-menu { display: block; }
.loc-switch-menu .loc-city {
  font-size: 12px;
  color: var(--color-text-tertiary);
  padding: 4px 8px 8px;
}
.loc-switch-menu .loc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.loc-switch-menu .loc-item {
  padding: 8px 6px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.loc-switch-menu .loc-item:hover {
  background: rgba(22,119,255,0.08);
  color: var(--color-primary);
}
.loc-switch-menu .loc-item.active {
  background: rgba(22,119,255,0.12);
  color: var(--color-primary);
  font-weight: 600;
}

/* ===== 主导航 ===== */
.header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.2) blur(10px);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(15,23,42,0.06);
  border-bottom: 1px solid rgba(226,232,240,0.9);
}
.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 20px;
  color: var(--color-text);
  letter-spacing: -0.3px;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1677FF 0%, #4096FF 40%, #722ED1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 3px 12px rgba(22,119,255,0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.logo:hover .logo-mark {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 5px 16px rgba(22,119,255,0.45);
}
.logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  margin-top: -1px;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: 12px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 100%;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.18s ease;
  position: relative;
  line-height: 1;
  white-space: nowrap;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transform: scaleX(0.6);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.nav-item:hover {
  color: var(--color-primary);
  background: transparent;
}
.nav-item:hover::after {
  opacity: 0.35;
  transform: scaleX(1);
  background: var(--color-primary);
}
.nav-item.active {
  background: transparent;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: none;
}
.nav-item.active:hover {
  background: transparent;
  color: var(--color-primary);
}
.nav-item.active::after {
  display: block;
  opacity: 1;
  transform: scaleX(1);
  background: linear-gradient(90deg, #1677FF, #722ED1);
  box-shadow: 0 0 10px rgba(22,119,255,0.35);
}
.nav-item .hot {
  position: absolute;
  top: 12px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FF4D4F, #FF7A45);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 5px rgba(255,77,79,0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5F7FB;
  border: 1px solid #E6EBF3;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  width: 200px;
  height: 36px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search-trigger:hover {
  border-color: rgba(22,119,255,0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,0.08);
}
.header-actions .btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
}
.header-actions .btn-ghost {
  color: var(--color-text-secondary);
  padding: 0 12px;
}
.header-actions .btn-ghost:hover {
  color: var(--color-primary);
  background: rgba(22,119,255,0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #1677FF 0%, #4096FF 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22,119,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22,119,255,0.4);
  color: #fff;
}
.btn-outline {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost { color: var(--color-text); }
.btn-ghost:hover { background: var(--color-bg-soft); }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ===== 用户头像 / 菜单 ===== */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--color-bg-soft);
  cursor: pointer;
  transition: all 0.2s;
}
.user-chip:hover { background: var(--color-primary-bg); }

/* ===== 角色切换器 ===== */
.role-switch {
  position: relative;
}
.role-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--color-bg-soft);
  border: 1px solid transparent;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.role-switch-btn:hover {
  background: var(--color-primary-bg);
}
.role-switch-btn .caret {
  font-size: 10px;
  color: var(--color-text-tertiary);
  transition: transform 0.2s;
}
.role-switch.open .role-switch-btn {
  background: var(--color-primary-bg);
}
.role-switch.open .caret {
  transform: rotate(180deg);
  color: var(--color-primary);
}
.role-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid var(--color-border-light);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.role-switch.open .role-switch-menu {
  display: block;
  animation: roleMenuIn 0.2s ease-out;
}
@keyframes roleMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.role-switch-menu .menu-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, #F5F9FF 0%, #F0F5FF 100%);
  border-bottom: 1px solid var(--color-border-light);
}
.role-switch-menu .menu-user .avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.role-switch-menu .menu-user .info {
  flex: 1;
  min-width: 0;
}
.role-switch-menu .menu-user .info .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.role-switch-menu .menu-user .info .phone {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 1px;
}
.role-switch-menu .menu-section {
  padding: 6px 8px 2px;
}
.role-switch-menu .menu-section .label {
  padding: 6px 8px 4px;
  font-size: 11px;
  color: var(--color-text-tertiary);
  font-weight: 600;
}
.role-switch-menu .menu-section a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-text);
  transition: all 0.15s;
}
.role-switch-menu .menu-section a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}
.role-switch-menu .menu-section a .ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.role-switch-menu .menu-section a .ic.seeker { background: #E6F4FF; color: #1677FF; }
.role-switch-menu .menu-section a .ic.recruiter { background: #F9F0FF; color: #722ED1; }
.role-switch-menu .menu-section a .ic.housing { background: #FFF1F0; color: #FF4D4F; }
.role-switch-menu .menu-section a .ic.service { background: #E6FFFB; color: #08979C; }
.role-switch-menu .menu-section a .arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--color-text-tertiary);
}
.role-switch-menu .menu-section a.current {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-weight: 600;
}
.role-switch-menu .menu-section a.current .arrow {
  color: var(--color-primary);
}
.role-switch-menu .menu-section a.current::after {
  content: "✓";
  margin-left: auto;
  font-size: 12px;
}
.role-switch-menu .menu-section a.current .arrow { display: none; }
.role-switch-menu .menu-foot {
  padding: 6px 8px 8px;
  border-top: 1px solid var(--color-border-light);
}
.role-switch-menu .menu-foot a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: all 0.15s;
}
.role-switch-menu .menu-foot a:hover {
  background: #FFF1F0;
  color: var(--color-danger);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1677FF, #722ED1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* ===== 通用区块 ===== */
.section { padding: 40px 0; }
.page-content {
  background: transparent;
  padding: 16px 0 48px;
}
.site-module {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  border: 1px solid var(--color-panel-border);
  padding: 16px 18px;
}
.site-module + .site-module { margin-top: 14px; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  padding-left: 14px;
}
.section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, #1677FF, #722ED1);
  border-radius: 2px;
}
.section-title .more {
  color: var(--color-text-secondary);
  font-size: 14px;
}
.section-title .more:hover { color: var(--color-primary); }

/* ===== 分类入口 ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}
.category-item:hover {
  background: var(--color-primary-bg);
  transform: translateY(-2px);
}
.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, #1677FF, #4096FF);
  box-shadow: 0 4px 12px rgba(22,119,255,0.25);
}
.category-icon.cyan   { background: linear-gradient(135deg,#13C2C2,#08979C); box-shadow: 0 4px 12px rgba(19,194,194,0.3);}
.category-icon.purple { background: linear-gradient(135deg,#722ED1,#9254DE); box-shadow: 0 4px 12px rgba(114,46,209,0.3);}
.category-icon.orange { background: linear-gradient(135deg,#FF7A45,#FFA940); box-shadow: 0 4px 12px rgba(255,122,69,0.3);}
.category-icon.green  { background: linear-gradient(135deg,#52C41A,#73D13D); box-shadow: 0 4px 12px rgba(82,196,26,0.3);}
.category-icon.pink   { background: linear-gradient(135deg,#EB2F96,#F759AB); box-shadow: 0 4px 12px rgba(235,47,150,0.3);}
.category-icon.gold   { background: linear-gradient(135deg,#FAAD14,#FFC53D); box-shadow: 0 4px 12px rgba(250,173,20,0.3);}
.category-icon.red    { background: linear-gradient(135deg,#FF4D4F,#FF7875); box-shadow: 0 4px 12px rgba(255,77,79,0.3);}
.category-icon.teal   { background: linear-gradient(135deg,#36CFC9,#5CDBD3); box-shadow: 0 4px 12px rgba(54,207,201,0.3);}
.category-icon.blue   { background: linear-gradient(135deg,#2F54EB,#85A5FF); box-shadow: 0 4px 12px rgba(47,84,235,0.3);}
.category-name {
  font-size: 13px;
  color: var(--color-text);
  font-weight: 500;
}

/* ===== 卡片 - 帖子 ===== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  transition: all 0.2s;
  border: 1px solid var(--color-panel-border);
}
.card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-panel);
  transition: all 0.2s;
  border: 1px solid var(--color-panel-border);
  position: relative;
  overflow: hidden;
}
.post-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}
.post-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.post-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title:hover { color: var(--color-primary); }
.post-card-title .pin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #FF7A45, #FF4D4F);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}
.post-card-title .new {
  display: inline-block;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.post-card-salary {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-danger);
  white-space: nowrap;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-bottom: 12px;
}
.post-card-meta .dot { color: var(--color-text-tertiary); }
.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-bg-soft);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.tag.primary { background: var(--color-primary-bg); color: var(--color-primary); }
.tag.warning { background: #FFF7E6; color: #D46B08; }

/* 认证角标（企业 / 个人已认证） */
.verify-badge,
.verified {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, #FFD666, #FFA940);
  color: #5C2D00;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
  vertical-align: middle;
}
.post-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.company {
  display: flex;
  align-items: center;
  gap: 8px;
}
.company-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1677FF, #722ED1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ===== 标签条 ===== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--color-bg-soft);
  padding: 4px;
  border-radius: var(--radius-md);
  width: fit-content;
}
.tab {
  padding: 6px 16px;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active {
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}
.form-label .required { color: var(--color-danger); margin-right: 4px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  transition: all 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22,119,255,0.12);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(180deg, #1E2A4A 0%, #0E1A38 100%);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  margin-top: auto !important; /* 覆盖页面内联 margin-top:0，短页贴底 */
  flex-shrink: 0;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-links a:hover { color: #fff; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin: 12px 0 16px; }
.footer-qr {
  display: flex;
  gap: 12px;
}
.footer-qr-item {
  text-align: center;
  font-size: 12px;
}
.footer-qr-item .qr {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  font-size: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ===== 工具类 ===== */
.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-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.text-primary { color: var(--color-primary); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }

/* ===== 侧栏红色数字角标 ===== */
.uc-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--color-danger); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1;
  border-radius: 9px; margin-left: auto;
}
.text-warning { color: var(--color-warning); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; }

/* ===== 侧边栏组件 ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  border: 1px solid var(--color-panel-border);
  transition: box-shadow 0.2s;
}
.side-card:hover {
  box-shadow: var(--shadow-md);
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-light);
  background: linear-gradient(180deg, #FAFBFC 0%, #fff 100%);
}
.side-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.side-body {
  padding: 8px 20px 16px;
}
.side-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.side-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-border-light);
  transition: all 0.2s;
  position: relative;
  padding-left: 24px;
}
.side-list li:last-child { border-bottom: none; }
.side-list li::before {
  content: counter(side-counter);
  counter-increment: side-counter;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--color-border);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.side-list {
  counter-reset: side-counter;
}
.side-list li:nth-child(1)::before { background: linear-gradient(135deg, #FF4D4F, #FF7875); }
.side-list li:nth-child(2)::before { background: linear-gradient(135deg, #FA8C16, #FFA940); }
.side-list li:nth-child(3)::before { background: linear-gradient(135deg, #FAAD14, #FFD666); }
.side-list li:nth-child(1)::before,
.side-list li:nth-child(2)::before,
.side-list li:nth-child(3)::before {
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.side-list li a {
  font-size: 13px;
  color: var(--color-text-secondary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}
.side-list li:hover a { color: var(--color-primary); }
.side-list li .price {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-danger);
  flex-shrink: 0;
}
.side-list li.is-empty::before { display: none; }
.side-helper {
  background: linear-gradient(135deg, #1677FF 0%, #722ED1 100%);
  color: #fff;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.side-helper::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.side-helper::after {
  content: "";
  position: absolute;
  bottom: -20px; left: -20px;
  width: 70px; height: 70px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.side-helper .big-emoji { font-size: 36px; margin-bottom: 6px; position: relative; z-index: 1; }
.side-helper h3 { font-size: 16px; margin-bottom: 6px; position: relative; z-index: 1; }
.side-helper p { font-size: 12px; opacity: 0.85; line-height: 1.6; margin-bottom: 14px; position: relative; z-index: 1; }
.side-helper .btn {
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  padding: 9px 24px;
  border-radius: var(--radius-full);
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}
.side-helper .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== 个人中心通用面板 ===== */
.uc-sidebar,
.uc-main,
.post-main,
.detail-main,
.section-card {
  box-shadow: var(--shadow-panel);
  border: 1px solid var(--color-panel-border);
}

/* ===== 用户中心头图（账号 / 概览共用） ===== */
.user-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 20px;
  margin-bottom: 18px;
  padding: 24px 28px 22px;
  background:
    radial-gradient(900px 280px at 100% -10%, rgba(125, 211, 252, 0.35), transparent 55%),
    radial-gradient(520px 220px at 0% 110%, rgba(37, 99, 235, 0.55), transparent 60%),
    linear-gradient(135deg, #0B4FA8 0%, #1677FF 48%, #3B9BFF 100%);
  box-shadow: 0 12px 32px rgba(22, 119, 255, 0.22);
}
.user-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(120deg, transparent 20%, #000 70%);
  pointer-events: none;
  opacity: 0.55;
}
.user-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -48px;
  top: -72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
.user-hero-content { position: relative; z-index: 2; }
.user-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.user-info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.user-info .big-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,0.32), rgba(255,255,255,0.12));
  border: 2px solid rgba(255,255,255,0.45);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12), 0 8px 20px rgba(0,40,120,0.25);
}
.user-info .name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.2px;
}
.user-info .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
}
.user-info .meta > span,
.user-info .meta .meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.user-hero .verify-badge {
  background: linear-gradient(135deg, #FFD666, #FFA940);
  color: #5C2D00;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.user-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.user-actions .btn,
.user-hero .user-actions .btn {
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.user-actions .btn:hover { transform: translateY(-1px); }
.user-actions .btn-hero-primary,
.user-actions .btn:first-child {
  background: #fff;
  color: #0B4FA8;
  border: 1px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 40, 120, 0.18);
}
.user-actions .btn-hero-primary:hover,
.user-actions .btn:first-child:hover {
  background: #F0F7FF;
  color: #0958D9;
}
.user-actions .btn-hero-ghost,
.user-actions .btn:not(:first-child) {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.38);
}
.user-actions .btn-hero-ghost:hover,
.user-actions .btn:not(:first-child):hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.balance-bar {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.balance-item {
  position: relative;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.balance-item:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.18);
}
.balance-item-primary {
  background: linear-gradient(145deg, rgba(255,214,102,0.22), rgba(255,255,255,0.12));
  border-color: rgba(255, 214, 102, 0.35);
}
.balance-item .label {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2px;
}
.balance-item .num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}
.balance-item .num small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}
.balance-item .balance-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #FFE58F;
  text-decoration: none;
}
.balance-item .balance-link:hover { color: #fff; }

@media (max-width: 900px) {
  .user-hero { padding: 20px 18px; border-radius: 16px; }
  .user-hero-top { align-items: flex-start; }
  .user-info .big-avatar { width: 56px; height: 56px; font-size: 22px; }
  .user-info .name { font-size: 18px; }
  .balance-bar { grid-template-columns: 1fr; }
  .user-actions { width: 100%; }
  .user-actions .btn { flex: 1; text-align: center; justify-content: center; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .post-list { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .list-layout { grid-template-columns: 1fr !important; }
}

/* ===== 滚动淡入动画 ===== */
.lh-fade {
  opacity: 0;
  transform: translateY(24px);
}
.lh-fade.lh-in {
  animation: lh-fade-up 0.5s ease-out forwards;
}
@keyframes lh-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 百度地图选点 / 详情 ===== */
.lh-map-picker { margin-top: 4px; }
.lh-map-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.lh-map-search .lh-map-search-input { flex: 1; min-width: 180px; }
.lh-map-canvas {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--color-border-light, #eee);
  overflow: hidden;
  background: #f5f7fa;
}
.lh-map-detail { height: 300px; }
.lh-map-result {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-tertiary, #999);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .lh-map-canvas, .lh-map-detail { height: 220px; }
}
