/* ==========================================================================
   红点同城生活分类信息网 - 亮红极简板正风格样式表
   Bright Red Minimalist & Structured Classifieds CSS
   ========================================================================== */

:root {
  --primary-red: #d32020;
  --primary-dark: #b51515;
  --primary-light: #ff4747;
  --primary-bg: #fff4f4;
  --primary-border: #ffd1d1;
  --accent-orange: #ff7a00;
  --accent-green: #10b981;
  --accent-blue: #2563eb;
  
  --bg-page: #f6f7f9;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #fafafa;

  --text-main: #1e252b;
  --text-sub: #4b5563;
  --text-muted: #8c96a4;
  --text-light: #ffffff;

  --border-light: #e5e8ec;
  --border-medium: #cbcfd6;
  --border-dark: #9aa1ab;

  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-popup: 0 8px 24px rgba(0, 0, 0, 0.12);

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --max-width: 1200px;
}

.composition-nav-links {
  display: flex;
  align-items: center;
}

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

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-red);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

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

button {
  cursor: pointer;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.cat-tags-list{
  display: none!important;
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
   Top Utility Bar (顶部工具栏)
   ========================================================================== */
.top-bar {
  background-color: #22252a;
  color: #c2c7ce;
  font-size: 12px;
  height: 34px;
  line-height: 34px;
  border-bottom: 1px solid #16181b;
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.city-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0 6px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
}

.city-selector:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.city-current {
  color: #ffffff;
  font-weight: 600;
}

.city-change-btn {
  color: var(--primary-light);
  font-size: 11px;
}

.city-dropdown {
  display: none;
  position: absolute;
  top: 34px;
  left: 0;
  background: var(--bg-white);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-popup);
  width: 320px;
  padding: 12px;
  z-index: 1000;
  border-radius: var(--radius-xs);
}

.city-dropdown.active {
  display: block;
}

.city-dropdown-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: bold;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.city-list a {
  display: block;
  text-align: center;
  padding: 4px 0;
  background: var(--bg-page);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-main);
}

.city-list a:hover, .city-list a.active {
  background: var(--primary-red);
  color: #ffffff;
}

.top-user-status a {
  color: #c2c7ce;
}
.top-user-status a:hover {
  color: #ffffff;
}
.top-user-status .highlight {
  color: var(--primary-light);
  font-weight: 600;
}

.top-divider {
  color: #4b5563;
}

/* ==========================================================================
   Header Section (网站头部)
   ========================================================================== */
.site-header {
  background: var(--bg-white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

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

/* Brand Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  padding: 6px 12px;
  letter-spacing: 1px;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 0 var(--primary-dark);
}

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

.logo-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.logo-slogan {
  font-size: 11px;
  color: var(--primary-red);
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Header Search Form */
.header-search-wrap {
  flex: 1;
  max-width: 560px;
}

.search-box {
  display: flex;
  border: 2px solid var(--primary-red);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #ffffff;
}

.search-cat-select {
  border: none;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 0 12px;
  border-right: 1px solid var(--primary-border);
  cursor: pointer;
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-main);
}

.search-btn {
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.15s ease;
}

.search-btn:hover {
  background: var(--primary-dark);
}

.hot-keywords {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

.hot-keywords a {
  color: var(--text-sub);
}

.hot-keywords a:hover, .hot-keywords a.hot {
  color: var(--primary-red);
  font-weight: 500;
}

/* Header Action Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-publish-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-red);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 0 var(--primary-dark);
  transition: all 0.15s ease;
}

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

/* ==========================================================================
   Main Navigation Bar (亮红板正导航条)
   ========================================================================== */
.main-nav {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(211, 32, 32, 0.2);
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 22px;
  letter-spacing: 0.5px;
  transition: background 0.15s ease;
}

.nav-link:hover, .nav-item.active .nav-link {
  background: var(--primary-dark);
  color: #ffffff;
}

.nav-tag-hot {
  position: absolute;
  top: 4px;
  right: 6px;
  background: #ffeb3b;
  color: #b71c1c;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1;
}

/* ==========================================================================
   Breadcrumb Bar (面包屑导航)
   ========================================================================== */
.breadcrumb-bar {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-bar a {
  color: var(--text-sub);
}

.breadcrumb-bar a:hover {
  color: var(--primary-red);
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--border-medium);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   Home Page Components (首页特有组件)
   ========================================================================== */

/* 5 Core Category Grid */
.home-cat-section {
  margin: 20px auto;
}

.cat-boxes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.cat-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-red);
  padding: 16px 14px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cat-box:hover {
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(211, 32, 32, 0.08);
  transform: translateY(-2px);
}

.cat-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
}

.cat-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.cat-box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-bg);
  color: var(--primary-red);
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--radius-xs);
}

.cat-box-count {
  font-size: 11px;
  color: var(--primary-red);
  background: var(--primary-bg);
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 600;
}

.cat-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cat-tag {
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg-page);
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.cat-tag:hover {
  background: var(--primary-red);
  color: #ffffff;
}

.cat-box-footer {
  margin-top: auto;
  text-align: right;
}

.cat-box-more {
  font-size: 12px;
  color: var(--primary-red);
  font-weight: 600;
}

/* Fast Announcement & Publish Strip */
.home-notice-strip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-red);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-badge {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.notice-text {
  font-size: 13px;
  color: var(--text-sub);
}

.notice-text strong {
  color: var(--primary-red);
}

.notice-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-fast-post {
  background: #ffffff;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.btn-fast-post:hover {
  background: var(--primary-red);
  color: #ffffff !important;
}

/* Home Main Content 2-Column Board */
.home-layout-grid {
  display: grid;
  grid-template-columns: 880px 296px;
  gap: 24px;
  margin-bottom: 30px;
}

/* Board Panels */
.board-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.board-header {
  background: #ffffff;
  border-bottom: 2px solid var(--primary-red);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.board-title .icon-accent {
  width: 4px;
  height: 16px;
  background: var(--primary-red);
  display: inline-block;
}

.board-tabs {
  display: flex;
  gap: 4px;
}

.board-tab {
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--radius-xs);
}

.board-tab:hover {
  color: var(--primary-red);
}

.board-tab.active {
  background: var(--primary-red);
  color: #ffffff;
}

.board-more {
  font-size: 12px;
  color: var(--text-muted);
}
.board-more:hover {
  color: var(--primary-red);
}

/* Table Style Item List */
.table-posts {
  width: 100%;
  border-collapse: collapse;
}

.table-posts th {
  background: var(--bg-page);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}

.table-posts td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-sub);
}

.table-posts tr:hover td {
  background: #fffafa;
}

.post-title-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.post-title-link:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.tag-badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 600;
  margin-right: 6px;
  line-height: 1.3;
}

.tag-badge.top {
  background: var(--primary-red);
  color: #ffffff;
}

.tag-badge.verify {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.tag-badge.person {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #d2e3fc;
}

.tag-badge.urgent {
  background: #feefe3;
  color: #d93025;
  border: 1px solid #fad2cf;
}

.post-price-red {
  color: var(--primary-red);
  font-size: 15px;
  font-weight: 800;
}

.post-area {
  color: var(--text-sub);
  font-size: 12px;
}

.post-time {
  color: var(--text-muted);
  font-size: 12px;
  text-align: right;
}

/* Home Section Cards Grid */
.home-section-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

.home-card-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: all 0.15s ease;
}

.home-card-item:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.home-card-thumb {
  width: 100px;
  height: 80px;
  background: #eef1f5;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.home-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.home-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.home-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.widget-header {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  border-left: 3px solid var(--primary-red);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-body {
  padding: 14px;
}

/* Quick Post Banner Widget */
.widget-publish-box {
  background: linear-gradient(135deg, #d32020 0%, #b71c1c 100%);
  color: #ffffff;
  padding: 20px 16px;
  text-align: center;
  border-radius: var(--radius-xs);
  margin-bottom: 20px;
}

.widget-publish-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.widget-publish-subtitle {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.btn-widget-post {
  display: block;
  background: #ffffff;
  color: var(--primary-red) !important;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 0;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: all 0.15s ease;
}

.btn-widget-post:hover {
  background: #fff0f0;
  transform: scale(1.02);
}

/* Safety Tips List */
.safety-tips-list {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.8;
}

.safety-tips-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.safety-tips-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-size: 14px;
  font-weight: bold;
}

/* Service Phone List */
.service-phone-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-phone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-light);
}

.service-phone-item .phone-num {
  color: var(--primary-red);
  font-weight: 700;
}

/* ==========================================================================
   List Page Components (列表页特有组件)
   ========================================================================== */

/* Multi-Filter Board */
.filter-board {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--primary-red);
  padding: 16px;
  margin-bottom: 20px;
}

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

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

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

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

.filter-opt {
  padding: 3px 8px;
  color: var(--text-sub);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.filter-opt.active {
  background: var(--primary-red);
  color: #ffffff !important;
  font-weight: 600;
}

/* List Toolbar */
.list-toolbar {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.sort-btn {
  padding: 4px 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-sub);
  cursor: pointer;
  font-size: 12px;
  border-radius: var(--radius-xs);
}

.sort-btn:hover, .sort-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.list-count-info {
  font-size: 13px;
  color: var(--text-muted);
}
.list-count-info strong {
  color: var(--primary-red);
}

/* List Feed Items */
.list-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.list-feed-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  gap: 16px;
  transition: all 0.15s ease;
  position: relative;
}

.list-feed-item:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.list-feed-thumb {
  width: 140px;
  height: 105px;
  background: #eef1f5;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative;
}

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

.list-feed-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.list-feed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.list-feed-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.list-feed-title:hover {
  color: var(--primary-red);
}

.list-feed-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-red);
  white-space: nowrap;
}

.list-feed-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin: 6px 0;
  line-height: 1.5;
}

.list-feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
}

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

.list-meta-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-view-detail {
  background: var(--primary-bg);
  color: var(--primary-red);
  border: 1px solid var(--primary-border);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.btn-view-detail:hover {
  background: var(--primary-red);
  color: #ffffff;
}

/* Pagination (板正分页器) */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 30px 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

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

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

/* ==========================================================================
   Detail Page Components (详情页特有组件)
   ========================================================================== */
.detail-main-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-red);
  padding: 24px;
  margin-bottom: 24px;
}

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

.detail-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

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

.detail-meta-tags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.detail-body-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
}

/* Detail Gallery */
.gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-main-view {
  width: 100%;
  height: 310px;
  background: #eef1f5;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs-list {
  display: flex;
  gap: 8px;
}

.gallery-thumb-item {
  width: 68px;
  height: 52px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  background: #eef1f5;
}

.gallery-thumb-item.active {
  border-color: var(--primary-red);
}

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

/* Detail Info Box */
.detail-info-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-price-banner {
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  padding: 14px 18px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.detail-price-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-red);
}

.detail-price-label {
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Attributes Grid */
.detail-attr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

.attr-item {
  display: flex;
}

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

.attr-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Contact Box */
.detail-contact-card {
  background: #ffffff;
  border: 2px solid var(--primary-red);
  padding: 16px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
}

.contact-person-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-phone-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-number-large {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-red);
  letter-spacing: 1px;
}

.btn-show-phone {
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.btn-show-phone:hover {
  background: var(--primary-dark);
}

.btn-copy-phone {
  background: var(--bg-page);
  color: var(--text-sub);
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}

.btn-copy-phone:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Action Buttons */
.detail-actions-row {
  display: flex;
  gap: 12px;
}

.btn-action-outline {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  color: var(--text-sub);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-outline:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: #fffafa;
}

.btn-action-outline.favorited {
  background: var(--primary-bg);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Detail Content Section Tabs */
.detail-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--primary-red);
  background: #ffffff;
  margin-top: 24px;
}

.detail-tab-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-sub);
  border: none;
  background: transparent;
  cursor: pointer;
}

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

.detail-tab-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: none;
  padding: 24px;
  margin-bottom: 24px;
  min-height: 200px;
}

.content-paragraph {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 16px;
}

/* Service Guarantee Checklist */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-page);
  padding: 16px;
  border: 1px solid var(--border-light);
  margin: 20px 0;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.guarantee-icon {
  width: 20px;
  height: 20px;
  background: var(--primary-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 50%;
}

/* Inquiry & Comment Form */
.inquiry-form-wrap {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
}

.inquiry-textarea {
  width: 100%;
  height: 90px;
  border: 1px solid var(--border-medium);
  padding: 10px;
  font-size: 13px;
  border-radius: var(--radius-xs);
  resize: vertical;
  margin-bottom: 10px;
}

.inquiry-textarea:focus {
  border-color: var(--primary-red);
}

.inquiry-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inquiry-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inquiry-item {
  background: var(--bg-page);
  padding: 12px 16px;
  border-left: 3px solid var(--primary-red);
}

.inquiry-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.inquiry-text {
  font-size: 13px;
  color: var(--text-main);
}

/* ==========================================================================
   Publish Page Components (信息发布页特有组件)
   ========================================================================== */
.publish-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-red);
  padding: 30px 40px;
  margin: 20px auto 40px;
}

.publish-step-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  background: var(--bg-page);
  padding: 14px 24px;
  border: 1px solid var(--border-light);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.step-item.active {
  color: var(--primary-red);
}

.step-num {
  width: 24px;
  height: 24px;
  background: var(--border-medium);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step-item.active .step-num {
  background: var(--primary-red);
}

/* Form Groups */
.form-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.form-label {
  width: 120px;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
  margin-right: 18px;
  flex-shrink: 0;
}

.form-label .required {
  color: var(--primary-red);
  margin-right: 4px;
}

.form-control-wrap {
  flex: 1;
  max-width: 640px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--border-medium);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-main);
  border-radius: var(--radius-xs);
  background: #ffffff;
  transition: border 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

.form-input-inline {
  display: flex;
  gap: 12px;
}

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

/* Category Quick Select Radios */
.cat-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-radio-card {
  border: 1px solid var(--border-medium);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  border-radius: var(--radius-xs);
  cursor: pointer;
  background: var(--bg-page);
  transition: all 0.15s ease;
}

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

.cat-radio-card.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

/* Image Upload Preview Box */
.image-upload-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upload-btn-box {
  width: 100px;
  height: 100px;
  border: 2px dashed var(--border-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.upload-btn-box:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.upload-preview-item {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  background: #eef1f5;
}

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

.upload-delete-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(211, 32, 32, 0.85);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* Template fast insert buttons */
.tpl-buttons-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-tpl-tag {
  background: var(--primary-bg);
  color: var(--primary-red);
  border: 1px solid var(--primary-border);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.btn-tpl-tag:hover {
  background: var(--primary-red);
  color: #ffffff;
}

/* Submit Action Button */
.form-submit-wrap {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-submit-primary {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 48px;
  border: none;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 0 var(--primary-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.btn-cancel-secondary {
  background: var(--bg-page);
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  cursor: pointer;
}

/* ==========================================================================
   User Center / Member Page (会员中心特有组件)
   ========================================================================== */
.user-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin: 20px 0 40px;
}

.user-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-red);
}

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

.user-avatar-box {
  width: 70px;
  height: 70px;
  background: var(--primary-bg);
  color: var(--primary-red);
  border: 2px solid var(--primary-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 10px;
}

.user-name-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

.user-menu-list {
  padding: 10px 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.user-menu-item:hover, .user-menu-item.active {
  background: var(--primary-bg);
  color: var(--primary-red);
  border-left-color: var(--primary-red);
}

.user-menu-item .badge-count {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
}

/* User Center Stats Row */
.user-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--primary-red);
  padding: 16px;
  text-align: center;
}

.stat-val-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-red);
  margin-bottom: 4px;
}

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

/* User Post Table Operations */
.table-op-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  margin-right: 4px;
  border: 1px solid transparent;
}

.table-op-btn.refresh {
  background: #e6f4ea;
  color: #137333;
  border-color: #ceead6;
}

.table-op-btn.edit {
  background: #e8f0fe;
  color: #1a73e8;
  border-color: #d2e3fc;
}

.table-op-btn.delete {
  background: #fce8e6;
  color: #c5221f;
  border-color: #fad2cf;
}

/* ==========================================================================
   Login & Register Page (登录与注册特有组件)
   ========================================================================== */
.auth-wrapper {
  min-height: calc(100vh - 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary-red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 36px 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

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

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

.auth-tabs-row {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.auth-tab-btn.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

.auth-form-group {
  margin-bottom: 18px;
}

.auth-input-icon-wrap {
  position: relative;
}

.auth-input-field {
  width: 100%;
  border: 1px solid var(--border-medium);
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.auth-input-field:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

.btn-auth-submit {
  width: 100%;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 0;
  border: none;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 0 var(--primary-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 10px;
}

.btn-auth-submit:hover {
  background: var(--primary-dark);
}

.auth-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
}

.auth-footer-links a {
  color: var(--primary-red);
  font-weight: 600;
}

/* ==========================================================================
   Toast Notification & Modal (提示与弹窗)
   ========================================================================== */
.toast-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #22252a;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  border-left: 4px solid var(--primary-red);
  box-shadow: var(--shadow-popup);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 9999;
}

.toast-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-notice.success {
  border-left-color: var(--accent-green);
}

.toast-notice.error {
  border-left-color: var(--primary-red);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary-red);
  width: 100%;
  max-width: 480px;
  padding: 24px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-popup);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   Site Footer (网站底部)
   ========================================================================== */
.site-footer {
  background: #22252a;
  color: #a3abb7;
  font-size: 13px;
  padding: 40px 0 20px;
  border-top: 3px solid var(--primary-red);
  margin-top: 40px;
}

.footer-top-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #32373f;
  margin-bottom: 20px;
}

.footer-top-links a {
  color: #c2c7ce;
}

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

.footer-friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 16px;
  color: #7b8492;
}

.footer-friend-links span {
  color: #c2c7ce;
  font-weight: 700;
}

.footer-friend-links a {
  color: #8c96a4;
}

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

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #7b8492;
  line-height: 1.8;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .cat-boxes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-layout-grid {
    grid-template-columns: 1fr;
  }
  .detail-body-grid {
    grid-template-columns: 1fr;
  }
  .user-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cat-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-list {
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-link {
    padding: 10px 14px;
    font-size: 14px;
  }
  .table-posts th:nth-child(3), .table-posts td:nth-child(3) {
    display: none;
  }
  .publish-container {
    padding: 20px 16px;
  }
  .form-group {
    flex-direction: column;
  }
  .form-label {
    text-align: left;
    margin-bottom: 6px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav-list {
    max-width: 100%;
  }

  .detail-body-grid,
  .gallery-wrap,
  .detail-info-box,
  .gallery-main-view,
  .gallery-thumbs-list {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
