
/* ============================================
   同城信息网 - 本地同城信息风格
   ============================================ */

:root {
  --primary: #ff4400;
  --primary-dark: #cc3300;
  --primary-light: #ff6600;
  --primary-gradient: linear-gradient(135deg, #ff4400 0%, #ff6600 100%);
  --secondary: #ff9900;
  --accent: #ff4400;
  --accent-gradient: linear-gradient(135deg, #ff4400 0%, #ff6600 100%);
  --success: #ff4400;
  --warning: #ff9c00;
  --danger: #f56c6c;
  --bg-main: #f4f5f7;
  --bg-white: #ffffff;
  --bg-gray: #f8f9fa;
  --bg-hover: #f0f7f5;
  --bg-section: #fafbfc;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-light: #cccccc;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --radius-sm: 3px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
}

a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space); }

/* ===== Header ===== */
.header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon { font-size: 26px; }
.logo-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}
.nav a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
  background: rgba(255,68,0,0.06);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.user-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}
.btn-outline {
  padding: var(--space-sm) var(--space);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  background: white;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,68,0,0.04);
}
.btn-primary {
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,68,0,0.3);
  color: white;
}

/* ===== 主搜索区域 - 淘宝黄Banner ===== */
.main-search-section {
  background: linear-gradient(135deg, #ff4400 0%, #ff6600 40%, #ff8800 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.main-search-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.main-search-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.search-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space);
  background: var(--bg-white);
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}
.city-select {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space);
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
}
.city-icon { font-size: 18px; }
.city-name { font-weight: 600; color: var(--text-primary); }
.city-arrow { color: var(--text-muted); font-size: 12px; }
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.search-category-selector {
  padding: var(--space-sm) var(--space);
  border-right: 1px solid var(--border);
  background: white;
}
.search-category-selector select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}
.search-input {
  flex: 1;
  padding: var(--space-sm) var(--space);
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
}
.search-box .btn-search {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all 0.2s;
  border-radius: var(--radius-md);
}
.search-box .btn-search:hover {
  background: linear-gradient(135deg, #cc3300 0%, #ff4400 100%);
}
.btn-publish {
  background: var(--accent-gradient);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-publish:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,68,0,0.4);
  color: white;
}
.hot-words {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}
.hot-label { color: rgba(255,255,255,0.7); font-size: 13px; }
.hot-word {
  color: rgba(255,255,255,0.9);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.12);
}
.hot-word:hover {
  color: white;
  background: rgba(255,255,255,0.25);
}

/* ===== 分类快捷入口 ===== */
.category-shortcuts { padding: var(--space-lg) 0 var(--space); }
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space);
}
.shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.shortcut-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}
.shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.25s;
}
.shortcut-item:hover .shortcut-icon { transform: scale(1.1); }
.shortcut-icon.life { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.shortcut-icon.idle { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.shortcut-icon.job { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.shortcut-icon.rental { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.shortcut-icon.info { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.shortcut-icon.other { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.shortcut-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.shortcut-item:hover .shortcut-name { color: var(--primary); }

/* ===== 主内容区域 ===== */
.main-content { padding: var(--space) 0 var(--space-lg); }
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space);
}

/* ===== 左侧分类导航（兼容旧代码） ===== */
.left-sidebar { display: flex; flex-direction: column; gap: var(--space); }
.left-content { display: flex; flex-direction: column; gap: var(--space); }
.center-content { display: flex; flex-direction: column; gap: var(--space); }
.category-nav {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.nav-title {
  padding: var(--space);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.category-list { list-style: none; }
.category-item { border-bottom: 1px solid var(--border-light); }
.category-item:last-child { border-bottom: none; }
.category-link {
  display: flex;
  align-items: center;
  padding: var(--space);
  transition: all 0.2s;
}
.category-link:hover { background: var(--bg-hover); }
.cat-icon { font-size: 20px; margin-right: var(--space-sm); }
.cat-name { flex: 1; font-size: 14px; color: var(--text-primary); }
.cat-arrow { color: var(--text-muted); font-size: 16px; }

/* ===== 轮播图 ===== */
.banner-section { padding: var(--space-lg) 0; background: var(--bg-white); }
.banner-slider { 
  position: relative;
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  box-shadow: var(--shadow);
  height: 220px;
}
.banner-item { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-item.active { 
  opacity: 1; 
  transform: translateX(0);
}
.banner-item.active ~ .banner-item {
  transform: translateX(100%);
}
.banner-decoration {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(10deg); }
}
.banner-content { 
  text-align: center; 
  color: white;
  z-index: 2;
  transform: translateY(-20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.banner-item.active .banner-content {
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.banner-content h2 { 
  font-size: 36px; 
  font-weight: 700; 
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}
.banner-content p { 
  font-size: 16px; 
  opacity: 0.95; 
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.banner-link {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-indicators {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding: 0 var(--space-sm);
}

.banner-progress {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-right: var(--space-md);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff8800);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.banner-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-right: var(--space-md);
}

.banner-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.banner-counter {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: 10px;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.banner-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.banner-dots .dot:hover {
  transform: scale(1.2);
  background: var(--primary);
}

.banner-dots .dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 68, 0, 0.4);
}

/* ===== 信息轮播版块 ===== */
.info-ticker-section {
  padding: var(--space-md) 0;
  background: var(--bg-white);
}

.info-ticker {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(255, 68, 0, 0.1);
  box-shadow: 0 2px 8px rgba(255, 68, 0, 0.05);
}

.ticker-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-right: var(--space-md);
  border-right: 2px solid var(--primary);
  margin-right: var(--space-md);
  margin-top: var(--space-sm);
}

.ticker-icon {
  font-size: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ticker-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 180px;
  min-height: 180px;
}

.ticker-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
  height: auto;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 8px 0;
  min-height: 50px;
  border-bottom: 1px dashed rgba(255, 68, 0, 0.1);
}

.ticker-item:last-child {
  border-bottom: none;
}

.ticker-item a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  flex: 1;
}

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

.ticker-category {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: var(--primary);
  color: white;
}

.ticker-item-title {
  font-size: 14px;
  font-weight: 500;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-item-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.ticker-controls {
  display: flex;
  gap: var(--space-xs);
  margin-left: var(--space-md);
}

.ticker-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.3s ease;
}

.ticker-btn:hover {
  background: #ff6600;
  transform: scale(1.1);
}

.ticker-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}

/* ===== 最新信息列表 - 同城列表风格 ===== */
.latest-info {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}
.more-link { color: var(--text-secondary); font-size: 14px; }
.more-link:hover { color: var(--primary); }
.info-list { padding: 0; }
.info-item {
  display: flex;
  gap: var(--space);
  padding: var(--space);
  transition: all 0.2s;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.info-item:last-child { border-bottom: none; }
.info-item:hover { background: var(--bg-hover); }
.info-image {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-gray);
  flex-shrink: 0;
}
.info-image img { width: 100%; height: 100%; object-fit: cover; }
.info-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--bg-gray);
}
.info-detail {
  flex: 1;
  min-width: 0;
}
.info-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-title:hover { color: var(--primary); }
.info-meta {
  display: flex;
  align-items: center;
  gap: var(--space);
  margin-bottom: 6px;
}
.info-cat {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
}
.info-time { font-size: 12px; color: var(--text-muted); }
.info-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.info-views { font-size: 12px; color: var(--text-muted); }

/* ===== 右侧边栏 ===== */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space);
}
.quick-publish {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space);
}
.publish-card {
  text-align: center;
  padding: var(--space-md) var(--space);
  background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
  border-radius: var(--radius-md);
  border: 1px dashed var(--accent);
}
.publish-card .publish-icon { font-size: 48px; margin-bottom: var(--space-sm); }
.publish-card h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-xs); }
.publish-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space); }
.publish-btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.publish-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
  color: white;
}
.hot-info, .site-stats {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space);
}
.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.hot-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.hot-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 0;
}
.hot-index {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--bg-gray);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hot-index.top { background: var(--primary); color: white; }
.hot-title {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-item:hover .hot-title { color: var(--primary); }
.stats-list { display: flex; flex-direction: column; gap: var(--space); }
.stat-item {
  text-align: center;
  padding: var(--space);
  background: var(--bg-gray);
  border-radius: var(--radius-md);
}
.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: var(--space-xs); }

/* ===== Footer - 深色底 ===== */
.footer {
  background: #2c3e50;
  border-top: none;
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
.footer-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space);
}
.footer-section p, .footer-section a {
  font-size: 13px;
  color: #b0bec5;
  line-height: 2;
}
.footer-section a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-lg);
  padding-top: var(--space);
  text-align: center;
  font-size: 13px;
  color: #78909c;
}
.footer-bottom a { color: #b0bec5; }
.footer-bottom a:hover { color: var(--primary-light); }

/* ===== 通用组件 ===== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-white {
  background: var(--primary-gradient);
  color: white;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,68,0,0.3);
}
.btn-outline-white {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline-white:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,68,0,0.04);
}

/* Toast */
.toast {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space);
  text-align: center;
}
.empty-state svg { width: 80px; height: 80px; color: var(--text-muted); margin-bottom: var(--space-lg); }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-sm); }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-md); }

/* ===== 分类页样式 ===== */
.page-header {
  background: linear-gradient(135deg, #00b38a 0%, #009e7a 100%);
  padding: var(--space-lg) 0;
  text-align: center;
  color: white;
}
.page-header h1 { font-size: 28px; font-weight: 700; color: white; margin-bottom: var(--space-sm); }
.page-header p { font-size: 15px; color: rgba(255,255,255,0.85); }
.search-bar {
  display: flex;
  gap: var(--space);
  margin: var(--space-lg) 0;
  align-items: center;
  background: var(--bg-white);
  padding: var(--space);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.search-bar input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s;
  min-width: 0;
  background: var(--bg-gray);
}
.search-bar input:focus { outline: none; border-color: var(--primary); }
.search-bar select {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  min-width: 140px;
  background: var(--bg-white);
  cursor: pointer;
}
.search-bar select:focus { outline: none; border-color: var(--primary); }
.search-bar .btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.search-bar .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,68,0,0.3);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.product-image {
  width: 100%;
  height: 180px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info {
  padding: var(--space);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 表单页面通用 ===== */
.form-page { padding: var(--space-lg) 0; min-height: 60vh; }
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.form-container h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  text-align: center;
}
.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--bg-white);
  transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,68,0,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; gap: var(--space); margin-top: var(--space-lg); }
.form-actions .btn { flex: 1; padding: var(--space-sm) var(--space-md); }
.btn-primary-full {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  padding: 12px;
}
.btn-primary-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,68,0,0.3);
}
.btn-secondary-full {
  background: var(--bg-gray);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary-full:hover { border-color: var(--text-muted); }
.image-preview {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}
.image-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

/* ===== 用户中心 ===== */
.user-page { padding: var(--space-lg) 0; }
.user-header {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.user-info { display: flex; align-items: center; gap: var(--space-md); }
.user-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
}
.user-details h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-xs); }
.user-details p { font-size: 14px; color: var(--text-secondary); }
.user-products {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.user-products h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

/* ===== 详情页 ===== */
.product-detail-page { padding: var(--space-lg) 0; }
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-lg);
}
.product-detail-main {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.product-detail-images { margin-bottom: var(--space-lg); }
.product-detail-images .main-image {
  width: 100%;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  min-height: 200px;
}
.product-detail-images .main-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}
.product-detail-images .image-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.product-detail-images .image-list img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}
.product-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.product-detail-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}
.product-detail-meta span { display: flex; align-items: center; gap: var(--space-xs); }
.product-detail-description { margin-bottom: var(--space-lg); }
.product-detail-description h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-sm); }
.product-detail-description p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.product-detail-sidebar { display: flex; flex-direction: column; gap: var(--space); }
.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.contact-info { margin-bottom: var(--space-md); }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 14px;
  color: var(--text-primary);
}
.contact-info-item .icon { width: 24px; text-align: center; }
.contact-btn {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,68,0,0.3);
  color: white;
}

/* ===== 管理后台表格 ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: var(--bg-gray);
  padding: 12px var(--space);
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px var(--space);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  vertical-align: top;
}
.admin-table tr:hover td { background: var(--bg-hover); }

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .left-content { order: 2; }
  .right-sidebar { order: 3; }
  .category-nav { order: 1; }
  .category-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .category-item { border-bottom: none; border-right: 1px solid var(--border-light); }
  .category-item:nth-child(3n) { border-right: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-container { grid-template-columns: 1fr; }
  .shortcuts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: var(--space-sm) 0;
    flex-wrap: wrap;
  }
  .nav {
    width: 100%;
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
  }
  .nav a { font-size: 13px; padding: 4px 8px; }
  .logo { font-size: 18px; }
  .logo-icon { font-size: 24px; }
  .search-wrapper { flex-wrap: wrap; }
  .city-select { width: 100%; justify-content: center; }
  .search-box { width: 100%; }
  .btn-publish { width: 100%; justify-content: center; }
  .category-list { grid-template-columns: repeat(2, 1fr); }
  .info-item { flex-wrap: wrap; }
  .info-image { width: 80px; height: 60px; }
  .products-grid { grid-template-columns: 1fr; gap: var(--space); }
  .search-bar { flex-direction: column; }
  .search-bar input, .search-bar select, .search-bar .btn { width: 100%; }
  .footer-content { grid-template-columns: 1fr; gap: var(--space); }
  .product-detail-images .main-image { min-height: 150px; }
  .shortcuts-grid { grid-template-columns: repeat(3, 1fr); }
  .main-search-section { padding: 32px 0 40px; }
}

@media (max-width: 480px) {
  .shortcuts-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ===== Footer - 深色底部 ===== */
.footer {
  background: #2c3e50;
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-lg);
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
.footer-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space);
}
.footer-section p, .footer-section a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 2;
}
.footer-section a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-lg);
  padding-top: var(--space);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--primary-light); }

/* ===== 通用组件 ===== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-white {
  background: var(--primary-gradient);
  color: white;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,68,0,0.3);
}
.btn-outline-white {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline-white:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,68,0,0.04);
}

/* Toast */
.toast {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* 空状态 */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space);
  text-align: center;
}
.empty-state svg { width: 80px; height: 80px; color: var(--text-muted); margin-bottom: var(--space-lg); }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-sm); }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-md); }

/* ===== 分类页 ===== */
/* 淘宝黄Banner */
.category-banner {
  background: linear-gradient(135deg, #ff4400 0%, #ff6600 40%, #ff8800 100%);
  padding: 48px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.category-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.category-banner h1 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}
.category-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}
.category-search-box {
  display: flex;
  gap: var(--space-sm);
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}
.category-search-box input {
  flex: 1;
  padding: 12px var(--space);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
  background: var(--bg-gray);
  min-width: 0;
}
.category-search-box input:focus { background: #fff; }
.category-search-box select {
  padding: 10px var(--space);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--bg-white);
  cursor: pointer;
  min-width: 130px;
}
.category-search-btn {
  padding: 10px 28px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.category-search-btn:hover {
  background: linear-gradient(135deg, #cc3300 0%, #ff4400 100%);
}

/* 分类标签切换 */
.category-tabs-section {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 50;
}
.category-tabs {
  display: flex;
  gap: 4px;
  padding: var(--space-sm) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-gray);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.cat-tab:hover {
  color: var(--primary);
  background: rgba(255,68,0,0.08);
}
.cat-tab.active {
  background: var(--primary);
  color: white;
}

/* 两栏布局 */
.category-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space);
  padding: var(--space-lg) 0;
}

/* 左侧列表 */
.category-main {
  min-width: 0;
}
.category-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space);
}
.category-list-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.category-list-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}
.category-count {
  font-size: 13px;
  color: var(--text-muted);
}
.category-list {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.category-list .product-card {
  display: flex;
  flex-direction: row;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space);
  gap: var(--space);
}
.category-list .product-card:last-child { border-bottom: none; }
.category-list .product-card:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-hover);
}
.category-list .product-image {
  width: 140px;
  height: 105px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
.category-list .product-info {
  flex: 1;
  min-width: 0;
  padding: 0;
  justify-content: center;
}
.category-list .product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.category-list .product-desc {
  font-size: 13px;
  -webkit-line-clamp: 2;
  margin-top: 4px;
}
.category-list .product-meta {
  margin-top: 8px;
  padding-top: 8px;
}

/* 右侧边栏 */
.category-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space);
}
.sidebar-publish-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  text-align: center;
  border: 1px dashed var(--accent);
}
.sidebar-publish-icon { font-size: 40px; margin-bottom: var(--space-sm); }
.sidebar-publish-card h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.sidebar-publish-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: var(--space); }
.sidebar-publish-btn {
  display: inline-block;
  padding: 10px 32px;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.sidebar-publish-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
  color: white;
}
.sidebar-hot-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space);
}
.sidebar-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.sidebar-hot-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar-hot-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  text-decoration: none;
}
.sidebar-hot-item:hover { background: var(--bg-hover); }
.sidebar-hot-index {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--bg-gray);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-hot-index.top { background: var(--primary); color: white; }
.sidebar-hot-title {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-hot-item:hover .sidebar-hot-title { color: var(--primary); }

/* 旧page-header兼容 */
.page-header {
  background: linear-gradient(135deg, #ff4400 0%, #ff6600 100%);
  padding: var(--space-lg) 0;
  text-align: center;
  color: white;
}
.page-header h1 { font-size: 28px; font-weight: 700; color: white; margin-bottom: var(--space-sm); }
.page-header p { font-size: 15px; color: rgba(255,255,255,0.85); }
.search-bar {
  display: flex;
  gap: var(--space);
  margin: var(--space-lg) 0;
  align-items: center;
  background: var(--bg-white);
  padding: var(--space);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.search-bar input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s;
  min-width: 0;
  background: var(--bg-gray);
}
.search-bar input:focus { outline: none; border-color: var(--primary); }
.search-bar select {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  min-width: 140px;
  background: var(--bg-white);
  cursor: pointer;
}
.search-bar select:focus { outline: none; border-color: var(--primary); }
.search-bar .btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.search-bar .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,68,0,0.3);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.product-image {
  width: 100%;
  height: 180px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: var(--space); flex: 1; display: flex; flex-direction: column; }
.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 表单页面 ===== */
.form-page { padding: var(--space-lg) 0; min-height: 60vh; }
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.form-container h1 { font-size: 24px; font-weight: 700; margin-bottom: var(--space-lg); color: var(--text-primary); text-align: center; }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-sm); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--bg-white);
  transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,68,0,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; gap: var(--space); margin-top: var(--space-lg); }
.form-actions .btn { flex: 1; padding: var(--space-sm) var(--space-md); }
.btn-primary-full {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  padding: 12px;
}
.btn-primary-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,68,0,0.3);
}
.btn-secondary-full {
  background: var(--bg-gray);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary-full:hover { border-color: var(--text-muted); }
.image-preview { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-sm); }
.image-preview img { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); }

/* ===== 用户中心 ===== */
.user-page { padding: var(--space-lg) 0; }
.user-header {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.user-info { display: flex; align-items: center; gap: var(--space-md); }
.user-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
}
.user-details h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-xs); }
.user-details p { font-size: 14px; color: var(--text-secondary); }
.user-products {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.user-products h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

/* ===== 详情页 ===== */
.product-detail-page { padding: var(--space-lg) 0; }
.product-detail-container { display: grid; grid-template-columns: 1fr 350px; gap: var(--space-lg); }
.product-detail-main {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.product-detail-images { margin-bottom: var(--space-lg); }
.product-detail-images .main-image {
  width: 100%;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  min-height: 200px;
}
.product-detail-images .main-image img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.product-detail-images .image-list { display: flex; flex-direction: column; gap: var(--space-md); }
.product-detail-images .image-list img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.product-detail-title { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-md); }
.product-detail-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}
.product-detail-meta span { display: flex; align-items: center; gap: var(--space-xs); }
.product-detail-description { margin-bottom: var(--space-lg); }
.product-detail-description h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-sm); }
.product-detail-description p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.product-detail-sidebar { display: flex; flex-direction: column; gap: var(--space); }
.contact-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
}
.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.contact-info { margin-bottom: var(--space-md); }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 14px;
  color: var(--text-primary);
}
.contact-info-item .icon { width: 24px; text-align: center; }
.contact-btn {
  display: block;
  width: 100%;
  padding: 12px var(--space-md);
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,68,0,0.3);
  color: white;
}

/* ===== 管理后台表格 ===== */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--bg-gray);
  padding: 12px var(--space);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px var(--space);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-primary);
}
.admin-table tr:hover td { background: var(--bg-hover); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .left-content { order: 2; }
  .right-sidebar { order: 3; }
  .category-nav { order: 1; }
  .category-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .category-item { border-bottom: none; border-right: 1px solid var(--border-light); }
  .category-item:nth-child(3n) { border-right: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-container { grid-template-columns: 1fr; }
  .shortcuts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { height: auto; padding: var(--space-sm) 0; flex-wrap: wrap; }
  .nav { width: 100%; order: 3; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--border); }
  .nav a { font-size: 13px; padding: 4px 8px; }
  .logo { font-size: 18px; }
  .logo-icon { font-size: 24px; }
  .search-wrapper { flex-wrap: wrap; }
  .city-select { width: 100%; justify-content: center; }
  .search-box { width: 100%; }
  .btn-publish { width: 100%; justify-content: center; }
  .category-list { grid-template-columns: repeat(2, 1fr); }
  .info-item { flex-wrap: wrap; }
  .info-image { width: 90px; height: 68px; }
  .products-grid { grid-template-columns: 1fr; gap: var(--space); }
  .search-bar { flex-direction: column; }
  .search-bar input, .search-bar select, .search-bar .btn { width: 100%; }
  .footer-content { grid-template-columns: 1fr; gap: var(--space); }
  .product-detail-images .main-image { min-height: 150px; }
  .shortcuts-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-list { grid-template-columns: repeat(3, 1fr); }
  .main-search-section { padding: 32px 0 40px; }
  .category-layout { grid-template-columns: 1fr; }
  .category-sidebar { order: -1; }
  .category-search-box { flex-wrap: wrap; }
  .category-search-box select { width: 100%; }
  .category-search-btn { width: 100%; }
  .category-list .product-card { flex-direction: column; }
  .category-list .product-image { width: 100%; height: 180px; }
  .category-banner { padding: 32px 0 40px; }
}

@media (max-width: 480px) {
  .shortcuts-grid { grid-template-columns: repeat(2, 1fr); }
}
