/* ==========================================================================
   同城生活分类信息网 - 极简亮淡色纯净风格样式表
   Pure Minimalist & Light Neutral Design System
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f3f4f6;
  
  --border-light: #e2e8f0;
  --border-focus: #94a3b8;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  
  --accent-primary: #0f172a;
  --accent-hover: #1e293b;
  --accent-soft: #f1f5f9;
  
  --brand-color: #0284c7;
  --brand-soft: #e0f2fe;
  
  --price-color: #ea580c;
  --price-soft: #ffedd5;
  
  --success-color: #059669;
  --success-soft: #d1fae5;
  
  --warning-color: #d97706;
  --danger-color: #dc2626;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 12px 0 rgba(15, 23, 42, 0.03), 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.15s ease;
}

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

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   顶部导航 (Header & Navigation)
   ========================================================================== */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  width: 36px;
  height: 36px;
  background-color: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 1.2;
  max-width: unset;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-select-wrap {
  margin-left: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  list-style: none;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  white-space: nowrap;
  max-width: 100%;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

.composition-nav-wrap:empty {
  display: none;
}

.composition-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.composition-nav-links:empty {
  display: none;
}

.composition-nav-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 6px 12px !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-primary) !important;
  line-height: 1;
  white-space: nowrap;
}

.composition-nav-link::after {
  display: none !important;
}

.composition-nav-link:hover {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--text-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.btn-light {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

.btn-light:hover {
  background-color: #e2e8f0;
  color: var(--text-primary);
}

.btn-accent {
  background-color: var(--brand-color);
  color: #fff;
}

.btn-accent:hover {
  background-color: #0369a1;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-danger {
  background-color: #fee2e2;
  color: var(--danger-color);
}
.btn-danger:hover {
  background-color: #fecaca;
}

/* User status in nav */
.user-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
}

.user-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

/* ==========================================================================
   卡片与极简结构 (Card & Minimalist Containers)
   ========================================================================== */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card-hover:hover {
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-default {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

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

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

.badge-price {
  background-color: var(--price-soft);
  color: var(--price-color);
  font-weight: 600;
}

/* ==========================================================================
   首页专用样式 (Home Page Sections)
   ========================================================================== */
.hero-section {
  padding: 48px 0 36px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-subtle);
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
}

/* 搜索大框 */
.search-box-large {
  max-width: 720px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.search-select-category {
  border: none;
  background-color: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.search-input-field {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.search-input-field::placeholder {
  color: var(--text-muted);
}

.hot-search-tags {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.hot-tag {
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: #f1f5f9;
}
.hot-tag:hover {
  color: var(--text-primary);
  background-color: #e2e8f0;
}

/* 5大分类核心卡片栏 */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.category-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.category-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 68% 72%, rgba(148, 163, 184, 0.22) 0 7px, transparent 8px),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: all 0.2s ease;
}

.category-icon-box span {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(203, 213, 225, 0.9);
}

.category-card:hover .category-icon-box {
  background:
    radial-gradient(circle at 68% 72%, rgba(148, 163, 184, 0.32) 0 7px, transparent 8px),
    linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}

.category-card:hover .category-icon-box span {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.category-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* 信息流板块头部 */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.section-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.section-tab-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.section-tab-btn.active {
  background-color: var(--text-primary);
  color: #ffffff;
}

/* 分类信息网格流 */
.items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.item-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  position: relative;
}

.item-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.item-thumb-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-card:hover .item-thumb-img {
  transform: scale(1.03);
}

.item-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(15, 23, 42, 0.75);
  color: #fff;
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
}

.item-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
  z-index: 2;
}

.item-fav-btn:hover,
.item-fav-btn.active {
  color: #ef4444;
  background-color: #fff;
}

.item-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.item-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.item-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--price-color);
}

.item-price-unit {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-muted);
  margin-left: 2px;
}

.item-contact-tip {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 首页特性/服务保障栏 */
.features-banner {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-col {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   列表页专用样式 (List Page Components)
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 0 16px;
}

.breadcrumbs a {
  color: var(--text-secondary);
}
.breadcrumbs a:hover {
  color: var(--text-primary);
}

.filter-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-subtle);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-row:first-child {
  padding-top: 0;
}

.filter-label {
  width: 80px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 4px;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-tag {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  background-color: transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.filter-tag:hover {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
}

.filter-tag.active {
  background-color: var(--text-primary);
  color: #ffffff;
  font-weight: 500;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.list-count-text {
  font-size: 14px;
  color: var(--text-muted);
}
.list-count-num {
  font-weight: 600;
  color: var(--text-primary);
}

.list-sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-btn {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
}

.sort-btn.active {
  background-color: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* 分页器 */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 36px 0 50px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.page-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.page-btn.active {
  background-color: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

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

/* ==========================================================================
   详情页专用样式 (Detail Page Components)
   ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  margin-bottom: 40px;
}

.detail-main-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.detail-title-head {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.detail-headline {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.detail-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.detail-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-gallery {
  margin-bottom: 28px;
  min-width: 0;
  max-width: 100%;
}

.gallery-main-view {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 440px;
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}

.gallery-main-view::after {
  content: "本站信息图片";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  min-width: 132px;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  pointer-events: none;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #0f172a;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  width: 100%;
  padding-bottom: 4px;
}

.thumb-item {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.15s ease;
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--text-primary);
  opacity: 1;
}

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

/* 属性参数网格 */
.params-table {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
  max-width: 100%;
  overflow: hidden;
}

.param-item {
  display: flex;
  font-size: 14px;
  min-width: 0;
}

.param-name {
  width: 80px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.param-value {
  color: var(--text-primary);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-content-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.detail-content-body h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--text-primary);
}

.detail-content-body p {
  margin-bottom: 14px;
}

/* 侧边联系信息卡 */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 88px;
}

.contact-price-box {
  background-color: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.contact-price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--price-color);
}

.poster-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.poster-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.poster-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.poster-badge {
  font-size: 11px;
  color: var(--success-color);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.phone-reveal-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--text-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-reveal-btn:hover {
  background-color: var(--accent-hover);
}

.wechat-copy-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.wechat-copy-btn:hover {
  background-color: #e2e8f0;
}

.safe-tips-box {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   信息发布页专用样式 (Publish Page Components)
   ========================================================================== */
.publish-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin: 30px auto 50px;
  max-width: 860px;
  box-shadow: var(--shadow-card);
}

.publish-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.publish-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.publish-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--danger-color);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  background-color: #fff;
  transition: all 0.15s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* 分类选择单选胶囊 */
.category-radio-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.category-radio-label {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.category-radio-label:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
}

.category-radio-label input {
  display: none;
}

.category-radio-label.checked {
  background-color: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.category-radio-label .cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid var(--border-light);
}

.category-radio-label.checked .cat-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* 图片上传预览区 */
.upload-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background-color: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.upload-dropzone:hover {
  border-color: var(--text-primary);
  background-color: #fff;
}

.upload-icon {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.upload-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.preview-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.photo-preview-item {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
}

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

.photo-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ==========================================================================
   会员中心与认证页专用样式 (User & Auth Components)
   ========================================================================== */
.user-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin: 30px 0 50px;
}

.user-sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  height: fit-content;
}

.user-profile-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.user-big-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--text-primary);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.user-name-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.user-phone-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-nav-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-nav-item:hover,
.user-nav-item.active {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.user-nav-item.active {
  font-weight: 600;
  background-color: var(--text-primary);
  color: #ffffff;
}

.user-main-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  min-height: 480px;
}

/* 认证登录注册卡片 */
.auth-container {
  max-width: 440px;
  margin: 60px auto 80px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.auth-tab.active {
  color: var(--text-primary);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background-color: var(--text-primary);
}

/* ==========================================================================
   通用弹窗与通知 (Modal & Toast System)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-dialog {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: var(--shadow-modal);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close-btn:hover {
  color: var(--text-primary);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background-color: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toastFade 0.25s ease-out;
}

@keyframes toastFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   页脚 (Footer)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 40px 0 24px;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
}

.detail-sidebar,
.contact-card {
  min-width: 0;
}

.user-list-row {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
  align-items: center;
  justify-content: space-between;
}

.user-list-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}

.user-list-title {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 520px;
}

.user-list-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   响应式调整 (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar .contact-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }
  .header-actions {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-banner {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .category-radio-group {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .user-layout {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .detail-main-card {
    padding: 20px;
  }
  .detail-meta-bar,
  .detail-meta-left,
  .list-toolbar,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .params-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .search-box-large {
    align-items: stretch;
    flex-direction: column;
  }
  .search-select-category,
  .search-input-field,
  .search-box-large .btn {
    width: 100%;
  }
  .items-grid {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .auth-container, .publish-card {
    padding: 24px 16px;
  }
}
