/* ==========================================================================
   本地便民同城生活信息网 - 传统正式大气风格样式表
   Design Concept: Formal, Dignified, Traditional Chinese Portal Style
   Primary Colors: Navy Blue (#1e3a8a), Slate Navy (#0f172a), Crimson (#b91c1c), Gold (#d97706)
   ========================================================================== */

:root {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --primary-dark: #0f172a;
  --primary-light: #eff6ff;
  --secondary: #2563eb;
  --danger: #b91c1c;
  --warning: #d97706;
  --success: #15803d;
  --neutral-dark: #1e293b;
  --neutral-gray: #475569;
  --neutral-light: #64748b;
  --border-color: #cbd5e1;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

a {
  color: var(--neutral-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--secondary);
}

ul, ol {
  list-style: none;
}

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

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

/* ==========================================
   布局与容器 Layout & Container
   ========================================== */
.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.main-wrapper {
  padding: 20px 0 40px;
  min-height: calc(100vh - 350px);
}

/* ==========================================
   顶部实用栏 Top Bar
   ========================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 12px;
  border-bottom: 1px solid #1e293b;
  height: 36px;
  line-height: 36px;
}

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

.top-bar-left span {
  margin-right: 20px;
}

.city-select {
  color: #f8fafc;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-left: 5px;
}

.city-select:hover {
  background: rgba(255,255,255,0.2);
}

.top-bar-right a {
  color: #cbd5e1;
  margin-left: 15px;
}

.top-bar-right a:hover {
  color: #ffffff;
}

.top-bar-right .btn-publish-top {
  background-color: var(--danger);
  color: #ffffff !important;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: bold;
}

.top-bar-right .btn-publish-top:hover {
  background-color: #dc2626;
}

/* ==========================================
   网站标头与搜索 Logo & Search Header
   ========================================== */
.site-header {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

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

.logo-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), #1e40af);
  color: #ffffff;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  border-radius: 4px;
  letter-spacing: -1px;
  box-shadow: 0 3px 6px rgba(30, 58, 138, 0.3);
}

.logo-text h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-text p {
  font-size: 12px;
  color: var(--neutral-light);
  margin-top: 3px;
  letter-spacing: 1px;
}

.header-search {
  width: 580px;
}

.search-form {
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.search-cat-select {
  width: 110px;
  border: none;
  border-right: 1px solid var(--border-color);
  padding: 0 10px;
  background: #f8fafc;
  color: var(--neutral-dark);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  outline: none;
  font-size: 14px;
}

.search-btn {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 25px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.hot-keywords {
  margin-top: 6px;
  font-size: 12px;
  color: var(--neutral-light);
}

.hot-keywords span {
  margin-right: 8px;
  font-weight: 600;
}

.hot-keywords a {
  color: var(--neutral-gray);
  margin-right: 10px;
}

.hot-keywords a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.header-service-guarantee {
  display: flex;
  gap: 15px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: var(--primary-light);
  border: 1px solid #dbeafe;
  border-radius: 4px;
}

.guarantee-icon {
  font-size: 20px;
  color: var(--primary);
}

.guarantee-text {
  font-size: 12px;
  line-height: 1.3;
}

.guarantee-text strong {
  display: block;
  color: var(--primary-dark);
}

/* ==========================================
   主导航栏 Main Navigation
   ========================================== */
.main-nav {
  background-color: var(--primary);
  border-bottom: 3px solid #1d4ed8;
}

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

.nav-item {
  position: relative;
}

.nav-item a {
  display: block;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.2s;
}

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

.nav-item.publish-btn-nav a {
  background-color: var(--warning);
  color: #ffffff;
  margin-left: auto;
}

.nav-item.publish-btn-nav a:hover {
  background-color: #b45309;
}

/* ==========================================
   同城公告 Marquee / Ticker
   ========================================== */
.announcement-bar {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 8px 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #92400e;
}

.announcement-title {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 15px;
  white-space: nowrap;
}

.announcement-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.announcement-content a {
  color: #78350f;
  margin-right: 25px;
}

.announcement-content a:hover {
  text-decoration: underline;
  color: var(--danger);
}

/* ==========================================
   传统框体组件 Structured Box
   ========================================== */
.portal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.box-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.box-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--primary);
  border-radius: 2px;
}

.box-more {
  font-size: 13px;
  color: var(--neutral-light);
}

.box-more:hover {
  color: var(--primary);
}

.box-body {
  padding: 18px;
}

/* ==========================================
   首页四大分类卡片 Category Grid
   ========================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary);
  border-radius: 4px;
  padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.cat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-icon {
  width: 38px;
  height: 38px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.cat-title-wrap h3 {
  font-size: 18px;
  color: var(--primary-dark);
  font-weight: 700;
}

.subcat-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 15px;
}

.subcat-item {
  font-size: 13px;
  color: var(--neutral-dark);
  padding: 4px 6px;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}

.subcat-item:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: #bfdbfe;
}

.subcat-item .badge-hot {
  font-size: 10px;
  background-color: #fee2e2;
  color: var(--danger);
  padding: 1px 4px;
  border-radius: 2px;
  transform: scale(0.9);
}

/* ==========================================
   推荐精选列表 Selected Listings Table
   ========================================== */
.filter-tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  background: none;
  border: 1px solid transparent;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
  color: var(--neutral-gray);
}

.tab-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: bold;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th {
  background-color: #f8fafc;
  color: var(--neutral-gray);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-color);
  font-size: 13px;
}

.info-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.info-table tr:hover td {
  background-color: #f8fafc;
}

.info-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thumb-small {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}

.info-title-text {
  font-weight: 600;
  color: var(--neutral-dark);
  font-size: 14px;
}

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

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

.tag-badge.badge-verify {
  background-color: #dcfce7;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.tag-badge.badge-urgent {
  background-color: #fee2e2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.tag-badge.badge-merchant {
  background-color: #dbeafe;
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.price-text {
  color: var(--danger);
  font-weight: 800;
  font-size: 15px;
}

.time-text {
  color: var(--neutral-light);
  font-size: 12px;
}

/* ==========================================
   列表页 Filter Section
   ========================================== */
.filter-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}

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

.filter-label {
  width: 90px;
  font-weight: bold;
  color: var(--neutral-gray);
  padding-top: 4px;
}

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

.filter-opt {
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--neutral-dark);
  transition: all 0.15s;
}

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

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

.sort-bar {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sort-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sort-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--neutral-gray);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 2px;
}

.sort-btn.active {
  color: var(--primary);
  font-weight: bold;
  background-color: #e0f2fe;
}

/* 列表卡片模式 List Card Mode */
.list-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 15px;
  display: flex;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.list-item-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.item-thumb-box {
  width: 160px;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  position: relative;
}

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

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

.item-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

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

.item-desc {
  font-size: 13px;
  color: var(--neutral-gray);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--neutral-light);
}

.item-right-action {
  width: 150px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.btn-detail-view {
  background-color: var(--primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
}

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

/* ==========================================
   分页条 Pagination
   ========================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 30px 0;
}

.page-link {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--neutral-dark);
  border-radius: 3px;
  font-size: 13px;
}

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

.page-link.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  background-color: #f8fafc;
}

/* ==========================================
   详情页 Detail Page Layout
   ========================================== */
.breadcrumb {
  padding: 10px 0;
  font-size: 13px;
  color: var(--neutral-light);
  margin-bottom: 15px;
}

.breadcrumb a {
  color: var(--neutral-gray);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.detail-header-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.detail-title-row {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

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

.detail-meta-bar {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--neutral-light);
}

.detail-gallery-and-contact {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-box {
  width: 100%;
}

.gallery-main-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 10px;
}

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

.gallery-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

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

.key-summary-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-price-row {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.price-large {
  font-size: 28px;
  font-weight: 900;
  color: var(--danger);
}

.summary-prop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 15px;
}

.summary-prop-item {
  display: flex;
}

.prop-label {
  width: 90px;
  color: var(--neutral-light);
}

.prop-val {
  font-weight: 600;
  color: var(--neutral-dark);
}

.contact-card-highlight {
  background: #ffffff;
  border: 2px dashed var(--primary);
  border-radius: 4px;
  padding: 15px;
  text-align: center;
}

.phone-mask-box {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.btn-reveal-phone {
  background-color: var(--danger);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.btn-reveal-phone:hover {
  background-color: #dc2626;
}

.detail-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--primary);
  background: #f8fafc;
  border-radius: 4px 4px 0 0;
}

.detail-tab-item {
  padding: 12px 25px;
  font-weight: bold;
  font-size: 15px;
  color: var(--neutral-gray);
  cursor: pointer;
  border-right: 1px solid var(--border-color);
}

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

.detail-content-body {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  padding: 25px;
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  border-radius: 0 0 4px 4px;
  margin-bottom: 20px;
}

/* ==========================================
   侧边栏与卡片 Sidebar Cards
   ========================================== */
.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.seller-profile {
  text-align: center;
}

.seller-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid var(--primary-light);
}

.seller-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.seller-stats {
  display: flex;
  justify-content: space-around;
  background-color: #f8fafc;
  padding: 10px;
  border-radius: 4px;
  margin: 15px 0;
  border: 1px solid #f1f5f9;
}

.stat-item strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
}

.stat-item span {
  font-size: 11px;
  color: var(--neutral-light);
}

/* ==========================================
   表单与发布页面 Publish Form
   ========================================== */
.step-bar {
  display: flex;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 15px 30px;
  margin-bottom: 25px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--neutral-light);
  font-weight: 600;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--neutral-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

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

.step-item.active .step-num {
  background: var(--primary);
  color: #ffffff;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--neutral-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.required-asterisk {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

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

/* 上传框 Upload Preview Box */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  background-color: #f8fafc;
  padding: 25px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s;
}

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

.upload-preview-list {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.preview-thumb-item {
  width: 90px;
  height: 70px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.btn-remove-thumb {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(185, 28, 28, 0.85);
  color: #fff;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   会员中心 User Center Dashboard
   ========================================== */
.user-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}

.user-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.user-sidebar-head {
  background: var(--primary);
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

.user-sidebar-head img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid #ffffff;
}

.user-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--neutral-dark);
  font-weight: 600;
}

.user-menu-list a:hover,
.user-menu-list a.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.user-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 15px;
  text-align: center;
}

.user-stat-card strong {
  display: block;
  font-size: 24px;
  color: var(--primary-dark);
  font-weight: 800;
}

.user-stat-card span {
  font-size: 12px;
  color: var(--neutral-light);
}

/* ==========================================
   登录注册页 Login & Register Modal/Card
   ========================================== */
.auth-container {
  max-width: 480px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.auth-header {
  background: var(--primary);
  color: #ffffff;
  padding: 25px;
  text-align: center;
}

.auth-header h2 {
  font-size: 22px;
  font-weight: 800;
}

.auth-header p {
  font-size: 13px;
  color: #bfdbfe;
  margin-top: 5px;
}

.auth-body {
  padding: 30px;
}

.auth-tab-nav {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 25px;
}

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

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

.btn-primary-block {
  width: 100%;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary-block:hover {
  background-color: var(--primary-hover);
}

/* ==========================================
   页脚 Footer
   ========================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  font-size: 13px;
  border-top: 3px solid var(--primary);
  margin-top: 40px;
}

.footer-top {
  padding: 35px 0 25px;
  border-bottom: 1px solid #1e293b;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
  border-left: 3px solid var(--secondary);
  padding-left: 8px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Toast alert notification box */
.toast-notice {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-weight: bold;
  z-index: 99999;
  display: none;
  border-left: 4px solid var(--secondary);
}

.runtime-empty {
  padding: 38px 20px;
  color: var(--neutral-light);
  text-align: center;
  background: #fff;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
}

.runtime-rich {
  color: var(--neutral-dark);
  line-height: 1.9;
  word-break: break-word;
}

.runtime-rich img {
  margin: 14px 0;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  border: 1px dashed #93c5fd;
  font-size: 12px;
  font-weight: 700;
}

.top-link-button {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  margin-left: 15px;
  cursor: pointer;
}

.top-link-button:hover {
  color: #ffffff;
}

.user-avatar-fallback {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  border: 2px solid #bfdbfe;
  font-size: 28px;
  font-weight: 900;
}

/* Responsive Utilities */
@media (max-width: 992px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .detail-layout, .user-layout {
    grid-template-columns: 1fr;
  }
  .detail-gallery-and-contact {
    grid-template-columns: 1fr;
  }
}
