/* ==========================================================================
   生活分类信息模板 - 亮橙色极简生活分类信息网样式表
   ========================================================================== */

:root {
  /* 品牌橙色调 */
  --primary: #ff5500;
  --primary-hover: #e64a00;
  --primary-active: #cc4200;
  --primary-light: #fff3eb;
  --primary-light-2: #ffe5d4;
  --primary-border: #ffd0b5;
  --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
  --primary-shadow: rgba(255, 85, 0, 0.22);
  
  /* 中性色调 */
  --text-main: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  
  /* 功能状态色 */
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --info: #3b82f6;
  --info-light: #eff6ff;

  /* 尺寸与圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-orange: 0 8px 20px -4px var(--primary-shadow);
  
  /* 布局宽度 */
  --container-max: 1200px;
}

/* 全局重置与基础样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 顶部通用导航栏 */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.top-bar {
  background-color: #fafbfc;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.top-links a:hover {
  color: var(--primary);
}

.header-main {
  padding: 16px 0;
}

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

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

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow-orange);
}

.brand-text h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-text span {
  color: var(--primary);
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 城市选择 */
.city-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.city-selector:hover {
  border-color: var(--primary-border);
  background-color: var(--primary-light);
  color: var(--primary);
}

/* 头部搜索区 */
.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-box-unified {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.2s;
}

.search-box-unified:focus-within {
  box-shadow: var(--shadow-orange);
}

.search-category-select {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  height: 42px;
}

.search-input-main {
  flex: 1;
  padding: 0 16px;
  font-size: 14px;
  height: 42px;
  color: var(--text-main);
}

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

.search-btn-main {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 0 24px;
  height: 42px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.search-btn-main:hover {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .top-bar .container,
  .header-inner {
    flex-wrap: wrap;
  }

  .top-bar .container {
    gap: 6px 12px;
  }

  .header-search {
    order: 3;
    flex: 0 0 100%;
    max-width: none;
  }

  .search-category-select {
    max-width: 112px;
    padding: 0 8px;
  }

  .search-input-main {
    min-width: 0;
    padding: 0 10px;
  }

  .search-btn-main {
    padding: 0 14px;
  }

  .nav-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }
}

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.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-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

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

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

.btn-outline-primary:hover {
  background: var(--primary-light);
}

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

.btn-subtle:hover {
  background: var(--border);
  color: var(--text-main);
}

.btn-white {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-white:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 主导航条 */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-item a {
  display: block;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
}

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

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

/* 首页 Banner & 热门区 */
.hero-section {
  background: linear-gradient(180deg, #fff7f2 0%, var(--bg-page) 100%);
  padding: 32px 0 40px;
}

.hero-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.hero-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid var(--primary-border);
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

/* 热门分类卡片网格 */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(var(--category-count, 5), minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .categories-grid {
    gap: 12px;
  }
}

@media (max-width: 540px) {
  .categories-grid {
    gap: 8px;
  }

  .category-card {
    padding: 16px 10px;
  }

  .category-card h3 {
    font-size: 15px;
  }
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.category-card h3,
.category-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.25s;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: 0 12px 24px -6px rgba(255, 85, 0, 0.12);
}

.category-card:hover::before {
  background: var(--primary-gradient);
}

.category-icon {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: transparent;
  font-size: 0;
  flex-shrink: 0;
}

.category-icon::before,
.category-icon::after {
  content: "";
  position: absolute;
  border-radius: 6px;
  background: var(--primary);
}

.category-icon::before {
  width: 18px;
  height: 18px;
  top: 12px;
  left: 12px;
}

.category-icon::after {
  width: 10px;
  height: 10px;
  right: 11px;
  bottom: 11px;
  opacity: 0.55;
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.cat-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

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

.cat-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.cat-sub-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.cat-sub-tag:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* 热门搜索标签 */
.hot-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
}

.hot-tag-item {
  color: var(--text-secondary);
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.hot-tag-item:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: #ffffff;
}

/* 首页主体：信息列表与推荐 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.section-title .title-bar {
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.section-tabs {
  display: flex;
  gap: 8px;
}

.tab-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-pill.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-shadow);
}

/* 信息卡片网格 */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.post-thumb {
  width: 100%;
  height: 180px;
  position: relative;
  background-color: var(--bg-subtle);
  overflow: hidden;
}

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

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.badge-urgent {
  background: #ef4444;
  color: #ffffff;
}

.badge-recommend {
  background: var(--primary);
  color: #ffffff;
}

.badge-verified {
  background: #10b981;
  color: #ffffff;
}

.post-district-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.post-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-cat-sub {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

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

.post-title:hover {
  color: var(--primary);
}

.post-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.post-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.post-price small {
  font-size: 12px;
  font-weight: 600;
  margin-right: 2px;
}

.post-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* 列表页筛选区域 (list.html) */
.filter-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

.filter-option {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-option:hover {
  color: var(--primary);
}

.filter-option.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.filter-price-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}

.price-input {
  width: 70px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
}

.price-input:focus {
  border-color: var(--primary);
}

/* 列表页排序与统计条 */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.sort-item {
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sort-item.active {
  color: var(--primary);
  font-weight: 700;
}

.view-mode-toggle {
  display: flex;
  gap: 6px;
}

.mode-btn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
}

.mode-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* 列表横向视图 (List Mode) */
.posts-list-mode {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.post-card-horizontal {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.post-card-horizontal:hover {
  border-color: var(--primary-border);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.06);
}

.post-card-horizontal .post-thumb {
  width: 240px;
  height: 160px;
  flex-shrink: 0;
}

.post-card-horizontal .post-content {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .post-card-horizontal {
    flex-direction: column;
  }
  .post-card-horizontal .post-thumb {
    width: 100%;
    height: 180px;
  }
}

/* 分页控件 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.page-link {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

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

/* 详情页 (detail.html) */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-main-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0;
}

.detail-header-info {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.detail-meta-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.gallery-main {
  width: 100%;
  max-width: 100%;
  height: 420px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

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

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

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

/* 参数规格表 */
.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  background: var(--bg-subtle);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  font-size: 14px;
}

.spec-item {
  display: flex;
}

.spec-label {
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
}

.spec-value {
  color: var(--text-main);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-desc-box {
  margin-bottom: 32px;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-desc-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* 详情页右侧侧边栏 */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.price-contact-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.sidebar-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sidebar-price small {
  font-size: 16px;
}

.contact-btn-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.phone-reveal-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  height: 50px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: opacity 0.2s;
  min-width: 0;
  overflow-wrap: anywhere;
}

.phone-reveal-btn:hover {
  opacity: 0.94;
}

.user-seller-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 0;
}

.seller-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.seller-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-border);
}

.seller-name-box h4 {
  font-size: 16px;
  font-weight: 700;
}

.seller-badge-list {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.badge-pill-sm {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.seller-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.seller-stat-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.seller-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.safety-tips-card {
  background: #fffbf5;
  border: 1px solid #fde6cf;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  color: #9a4900;
  line-height: 1.5;
}

/* 发布页 (publish.html) */
.publish-container {
  max-width: 860px;
  margin: 32px auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.publish-header {
  margin-bottom: 32px;
  text-align: center;
}

.publish-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.publish-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

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

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* 分类单选块 */
.category-radio-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .category-radio-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-radio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card);
}

.cat-radio-card:hover {
  border-color: var(--primary-border);
}

.cat-radio-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* 图片上传预览器 */
.image-upload-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .image-upload-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

.upload-dropzone {
  height: 110px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.2s;
  background: var(--bg-subtle);
}

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

.preview-thumb {
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

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

.preview-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

/* 标签复选框 */
.tags-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.tag-checkbox-label.checked {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* 会员中心 (user.html) */
.user-center-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin: 28px auto 40px;
}

@media (max-width: 860px) {
  .user-center-layout {
    grid-template-columns: 1fr;
  }
}

.user-sidebar-nav {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
}

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

.user-center-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-orange);
}

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

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

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

.user-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.user-main-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.user-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.custom-table th {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: #fdfdfd;
}

/* 登录/注册卡片 (login.html, register.html) */
.auth-page-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.demo-account-hint {
  background: var(--primary-light);
  border: 1px dashed var(--primary-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--primary-hover);
}

/* 页脚 */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 48px 0 24px;
  font-size: 13px;
  margin-top: 60px;
  border-top: 3px solid var(--primary);
}

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

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1f2937;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

/* Toast 提示框 */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideInRight 0.25s ease-out;
  max-width: 320px;
}

.toast-success {
  background: #0f766e;
  border-left: 4px solid #2dd4bf;
}

.toast-warning {
  background: #9a3412;
  border-left: 4px solid #fb923c;
}

.toast-error {
  background: #991b1b;
  border-left: 4px solid #f87171;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 模态弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}

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

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
