/* ===== 自定义变量 ===== */
:root {
  --primary: #1890ff;
  --primary-dark: #096dd9;
  --primary-light: #e6f7ff;
  --orange: #ff6a00;
  --orange-dark: #e55d00;
  --orange-light: #fff7e6;
  --purple: #722ed1;
  --purple-dark: #531dab;
  --green: #52c41a;
  --red: #f5222d;

  /* 文本 */
  --text-main: #333;
  --text-secondary: #666;
  --text-light: #999;

  /* 背景 */
  --bg-white: #fff;
  --bg-gray: #f5f5f5;
  --bg-light: #fafafa;
  --bg-site: #f0f2f5;

  /* 边框 */
  --border-color: #e8e8e8;
  --border-light: #f0f0f0;

  /* 圆角 */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-site);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-main); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { vertical-align: middle; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.clearfix::after { content: ''; display: block; clear: both; }

/* ===== 顶部栏 ===== */
.header {
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.header-top {
  background: #f5f5f5;
  height: 34px;
  line-height: 34px;
  font-size: 12px;
  color: var(--text-light);
}
.header-top .container {
  display: flex;
  justify-content: space-between;
}
.header-top-right a {
  color: var(--text-light);
  margin-left: 15px;
}
.header-top-right a:hover { color: var(--primary); }

/* 主导航 */
.header-main { padding: 16px 0; }
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.logo-text { font-size: 18px; font-weight: 600; color: #333; }
.logo-text small {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  margin-top: -2px;
}

/* 搜索栏 */
.search-bar {
  display: flex;
  flex: 1;
  max-width: 460px;
  margin: 0 30px;
}
.search-bar input {
  flex: 1;
  height: 40px;
  line-height: 40px;
  border: 2px solid var(--primary);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.search-bar input::placeholder { color: #bbb; }
.search-btn {
  height: 40px;
  padding: 0 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.search-btn:hover { background: var(--primary-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-actions a {
  font-size: 13px;
  color: var(--text-secondary);
}
.header-actions a:hover { color: var(--primary); }

/* ===== 导航栏 ===== */
.nav-bar {
  background: #fff;
  border-bottom: 2px solid var(--primary);
}
.nav-bar .container {
  display: flex;
  align-items: center;
  height: 48px;
}
.nav-item {
  padding: 0 22px;
  height: 48px;
  line-height: 48px;
  font-size: 15px;
  color: var(--text-main);
  position: relative;
  cursor: pointer;
  transition: color .2s;
}
.nav-item:hover { color: var(--primary); }
.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}
.nav-all {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}
.nav-all:hover { background: var(--primary-dark); color: #fff; }

/* ===== Banner (手动轮播) ===== */
.banner-section {
  padding: 20px 0;
}
.banner-wrapper {
  display: flex;
  gap: 10px;
}
.banner-main {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 350px;
}
.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .6s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide-content {
  text-align: center;
  padding: 40px;
  color: #fff;
}
.banner-slide-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.banner-slide-content p {
  font-size: 16px;
  opacity: .85;
  margin-bottom: 20px;
}
.banner-slide-content .banner-btn {
  display: inline-block;
  padding: 8px 28px;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.banner-slide-content .banner-btn:hover {
  background: rgba(255,255,255,.35);
}
/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s;
}
.banner-dot.active { background: #fff; }

/* 侧栏 */
.banner-side {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.banner-side-item {
  flex: 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  padding: 15px;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  text-align: center;
}
.banner-side-item:hover { opacity: .9; transform: translateY(-2px); }
.banner-side-item:nth-child(1) {
  background: linear-gradient(135deg, #ff6a00, #e55d00);
}
.banner-side-item:nth-child(2) {
  background: linear-gradient(135deg, #1890ff, #096dd9);
}
.banner-side-item:nth-child(3) {
  background: linear-gradient(135deg, #722ed1, #531dab);
}

/* ===== Section ===== */
.content-section {
  background: var(--bg-white);
  margin: 16px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .title-icon { font-size: 18px; }
.section-title .title-highlight { color: var(--orange); }
.section-more {
  font-size: 13px;
  color: var(--text-light);
}
.section-more:hover { color: var(--primary); }
.section-body { padding: 16px 20px; }

/* Tab 子导航 */
.sub-section-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border-light);
}
.sub-tab {
  position: relative;
  bottom: -2px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.sub-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.sub-tab:hover { color: var(--primary); }

/* ===== Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Card ===== */
.goods-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.goods-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(24,144,255,.12);
  transform: translateY(-3px);
}
.goods-card-img {
  height: 160px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}
.goods-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.goods-card-img .img-placeholder {
  color: var(--text-light);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.goods-card-img .img-placeholder .placeholder-icon {
  font-size: 36px;
  color: #d2d2d2;
}
.goods-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.goods-card-body { padding: 10px 12px; }
.goods-card-title {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.goods-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}
.goods-card-price {
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
}

/* ===== Hot List ===== */
.hot-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.hot-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.hot-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(24,144,255,.08);
}
.hot-item-img {
  width: 56px;
  height: 56px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.hot-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hot-item-info { flex: 1; min-width: 0; }
.hot-item-title {
  font-size: 13px;
  color: var(--text-main);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}
.hot-item-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

/* 今日热点特殊样式 */
.carousel-section {
  background: #fff;
  margin: 16px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.carousel-section .section-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.carousel-section .section-body {
  padding: 15px 20px;
}

/* ===== Two Column ===== */
.two-col-layout { display: flex; gap: 15px; }
.two-col-main { flex: 1; }
.two-col-side { width: 280px; }

/* ===== Category Page ===== */
.category-page { padding: 20px 0; }
.category-header {
  background: #fff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.category-header h2 {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
}
.filter-label { font-size: 13px; color: var(--text-secondary); }
.filter-item {
  padding: 4px 14px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all .2s;
}
.filter-item:hover { border-color: var(--primary); color: var(--primary); }
.filter-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

/* ===== Detail Page ===== */
.detail-page { padding: 20px 0; }
.detail-wrapper { display: flex; gap: 15px; }
.detail-main {
  flex: 1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.detail-top {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}
.detail-img {
  width: 380px;
  height: 280px;
  flex-shrink: 0;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  overflow: hidden;
}
.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-info { flex: 1; }
.detail-info h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 12px;
}
.detail-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
}
.detail-meta { margin-bottom: 20px; }
.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.detail-price-box {
  background: var(--orange-light);
  padding: 12px 16px;
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.detail-price {
  font-size: 24px;
  color: var(--red);
  font-weight: 700;
}
.detail-price-unit { font-size: 12px; color: var(--text-light); margin-left: 4px; }
.detail-actions { display: flex; gap: 10px; }
.detail-btn {
  padding: 8px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  border: none;
  transition: all .2s;
}
.detail-btn-primary {
  background: var(--primary);
  color: #fff;
}
.detail-btn-primary:hover { background: var(--primary-dark); }
.detail-btn-secondary {
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.detail-btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.detail-desc { padding: 20px; }
.detail-desc-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--text-main);
}
.detail-desc-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  word-break: break-all;
}
.detail-desc-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 10px 0;
}

/* 服务属性 */
.attrs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.attr-item {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.attr-name { font-size: 13px; color: var(--text-secondary); }
.attr-value { font-size: 13px; color: var(--primary); font-weight: 500; }

/* 联系信息 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.contact-item {
  background: #f8f8ff;
  border: 1px solid #e6edf5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.contact-label { font-size: 11px; color: var(--text-light); }
.contact-text { font-size: 13px; color: var(--text-main); font-weight: 500; margin-top: 2px; }

/* 侧栏 */
.detail-side { width: 280px; }
.detail-side-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 15px;
  overflow: hidden;
}
.detail-side-card .section-header { padding: 12px 16px; }
.detail-side-card .section-title { font-size: 15px; }

/* ===== 登录/注册页 ===== */
.auth-page {
  padding: 40px 0;
  min-height: calc(100vh - 350px);
}
.auth-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-form-box {
  flex: 1;
  padding: 40px 50px;
}
.auth-form-box h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}
.auth-form-box .auth-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 30px;
}
.auth-form-box .auth-subtitle a {
  color: var(--primary);
  font-weight: 500;
}
.auth-side-banner {
  width: 320px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 40px;
  text-align: center;
}
.auth-side-banner h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.auth-side-banner p {
  font-size: 13px;
  opacity: .85;
  line-height: 1.8;
  margin-bottom: 24px;
}
.auth-side-banner .auth-side-btn {
  display: inline-block;
  padding: 8px 32px;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.auth-side-banner .auth-side-btn:hover {
  background: rgba(255,255,255,.15);
}

/* 表单控件 */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 4px rgba(24,144,255,.15); }
.form-input::placeholder { color: #bbb; }

.form-input-row { display: flex; gap: 10px; }
.form-input-row .form-input { flex: 1; }
.form-captcha-btn {
  width: 110px;
  height: 40px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
  white-space: nowrap;
}
.form-captcha-btn:hover { background: var(--primary-light); }

.form-captcha-img {
  width: 110px;
  height: 40px;
  flex-shrink: 0;
  background: #f0f0f0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-light);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.form-checkbox input[type="checkbox"] { accent-color: var(--primary); }
.form-checkbox a { color: var(--primary); }

.form-btn {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: 2px;
}
.form-btn:hover { background: var(--primary-dark); }

.form-extra {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}
.form-extra a { color: var(--primary); margin: 0 4px; }

/* 验证码显示 */
.form-captcha-display {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #e6f7ff, #d2e9ff);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 3px;
  user-select: none;
  margin-left: 8px;
}

/* ===== Help Page ===== */
.help-page { padding: 20px 0; }
.help-search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto 30px;
}
.help-search-bar input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 14px;
  outline: none;
}
.help-search-bar input:focus { border-color: var(--primary); }
.help-search-bar button {
  height: 44px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: 14px;
}
.help-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.help-nav-item {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.help-nav-item:hover { border-color: var(--primary); color: var(--primary); }
.help-nav-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.help-faqs { max-width: 800px; }
.help-faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
}
.help-faq-q {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
  color: var(--text-main);
}
.help-faq-q:hover { background: var(--bg-light); }
.help-faq-arrow {
  font-size: 12px;
  color: var(--text-light);
  transition: transform .2s;
}
.help-faq-item.open .help-faq-arrow { transform: rotate(180deg); }
.help-faq-a {
  padding: 0 20px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  display: none;
  border-top: 1px solid var(--border-light);
}
.help-faq-item.open .help-faq-a { display: block; padding-top: 14px; }
.help-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  color: var(--text-main);
}
.help-contact-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin-top: 30px;
}
.help-contact-box h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-main); }
.help-contact-box p { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.help-contact-channels {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.help-contact-channel {
  padding: 12px 28px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.help-contact-channel:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Footer ===== */
.footer {
  background: #2c3e50;
  color: rgba(255,255,255,.7);
  padding: 35px 0 20px;
  margin-top: 30px;
}
.footer-content { display: flex; justify-content: space-between; gap: 40px; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
}
.footer-col a {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  margin-top: 25px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a {
  color: rgba(255,255,255,.4);
}
.footer-bottom a:hover {
  color: #fff;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 20px 0;
}
.page-item {
  min-width: 34px;
  height: 34px;
  line-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  color: var(--text-secondary);
  padding: 0 10px;
  transition: all .2s;
}
.page-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.page-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-item.disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 10px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 99999;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ===== Scroll to top ===== */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(24,144,255,.3);
  font-size: 18px;
  transition: all .2s;
  opacity: 0;
  z-index: 999;
}
.scroll-top.visible { opacity: 1; }
.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ===== Search Page ===== */
.search-page { padding: 20px 0; }
.search-header {
  background: #fff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.search-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.search-header .search-keyword {
  color: var(--primary);
}
.search-header .search-count {
  font-size: 13px;
  color: var(--text-light);
}
.search-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.search-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

/* ===== Responsive ===== */

/* ---- Tablet: 768px~1024px ---- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hot-list { grid-template-columns: repeat(3, 1fr); }
  .banner-side { width: 180px; }
  .two-col-side { width: 240px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .search-results { grid-template-columns: repeat(3, 1fr); }
  .auth-container { max-width: 700px; }
  .auth-side-banner { width: 240px; }

  /* Header */
  .search-bar { margin: 0 15px; max-width: 300px; }
  .header-actions { gap: 12px; }
}

/* ---- Mobile: ≤768px ---- */
@media (max-width: 768px) {

  /* ========== 全局 ========== */
  html { font-size: 13px; }
  body { padding-top: 50px; } /* 为固定header留空间 */

  /* ========== Header 重构 ========== */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  /* 隐藏顶部栏 */
  .header-top { display: none; }

  /* 主导航区 - 横向紧凑布局 */
  .header-main { padding: 8px 0; }
  .header-main .container {
    gap: 8px;
  }
  /* Logo 缩小 */
  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .logo-text { display: none; } /* 移动端隐藏文字logo */

  /* 搜索栏 - 紧凑 */
  .search-bar {
    margin: 0;
    max-width: none;
    flex: 1;
  }
  .search-bar input {
    height: 34px;
    font-size: 12px;
    padding: 0 8px;
  }
  .search-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* 右侧按钮 - 只显示图标或隐藏 */
  .header-actions { gap: 8px; }
  .header-actions a { font-size: 11px; white-space: nowrap; }

  /* ========== 导航栏 - 底部固定Tab栏 ========== */
  .nav-bar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: none;
    border-top: 2px solid var(--primary);
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  }
  .nav-bar .container {
    height: 52px;
    justify-content: space-around;
    overflow-x: auto;
  }
  .nav-item {
    height: 52px;
    line-height: 52px;
    padding: 0 6px;
    font-size: 11px !important;
    text-align: center;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
  }
  .nav-item .nav-icon { font-size: 18px; }
  .nav-item.active::after {
    bottom: 0;
    width: 30%;
    left: 35%;
    right: auto;
  }
  .nav-all {
    background: transparent;
    color: var(--text-main);
    border-radius: 0;
    padding: 0 4px;
  }
  .nav-all:hover { background: transparent; color: var(--primary); }

  /* ========== Banner ========== */
  .banner-section { padding: 10px 0; }
  .banner-wrapper { flex-direction: column; gap: 10px; }
  .banner-main {
    height: 220px;
    min-height: 200px;
  }
  .banner-slide-content {
    padding: 20px 16px;
  }
  .banner-slide-content h2 {
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }
  .banner-slide-content p {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .banner-slide-content .banner-btn {
    padding: 7px 22px;
    font-size: 13px;
  }
  /* 轮播指示器 */
  .banner-dots { bottom: 10px; gap: 6px; }
  .banner-dot { width: 8px; height: 8px; }

  /* 变成横向滚动小卡片 */
  .banner-side {
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }
  .banner-side-item {
    flex: 1;
    padding: 12px 6px;
    font-size: 11px;
    border-radius: var(--radius-sm);
    min-height: 56px;
  }

  /* ========== 今日热点 - 列表模式 ========== */
  .carousel-section .section-header {
    padding: 12px 16px;
  }
  .carousel-section .section-body {
    padding: 12px 16px;
  }
  .hot-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hot-item {
    padding: 10px;
    border-radius: var(--radius-sm);
  }
  .hot-item-img {
    width: 64px;
    height: 64px;
  }
  .hot-item-title {
    font-size: 13px;
    line-height: 1.45;
  }

  /* ========== Section通用 ========== */
  .content-section {
    margin: 10px 0;
    border-radius: var(--radius-sm);
  }
  .section-header {
    padding: 12px 16px;
  }
  .section-title {
    font-size: 15px;
  }
  .section-body {
    padding: 12px 16px;
  }

  /* ========== 卡片网格 - 双列 ========== */
  .cards-grid,
  .cards-grid-4,
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .goods-card-img {
    height: 130px;
  }
  .goods-card-tag {
    top: 6px;
    left: 6px;
    font-size: 10px;
    padding: 1px 6px;
  }
  .goods-card-body {
    padding: 8px 8px;
  }
  .goods-card-title {
    font-size: 12px;
    height: 38px;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .goods-card-meta { font-size: 11px; }
  .goods-card-price { font-size: 13px; }

  /* ========== 子Tab ========== */
  .sub-section-header {
    margin-bottom: 10px;
    gap: 0;
  }
  .sub-tab {
    padding: 5px 12px;
    font-size: 12px;
  }

  /* ========== 两列布局 -> 单列堆叠 ========== */
  .two-col-layout {
    flex-direction: column;
    gap: 10px;
  }
  .two-col-side { width: 100%; }

  /* ========== 分类页 ========== */
  .category-page { padding: 10px 0; }
  .category-header {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
  }
  .category-header h2 {
    font-size: 17px;
  }
  .category-filter {
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    gap: 6px;
  }
  .filter-label { font-size: 12px; width: 100%; }
  .filter-item {
    padding: 3px 10px;
    font-size: 11px;
  }
  .category-grid,
  .search-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ========== 详情页 ========== */
  .detail-page { padding: 10px 0; padding-bottom: 70px; }
  .detail-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .detail-main {
    border-radius: var(--radius-sm);
  }
  .detail-top {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .detail-img {
    width: 100%;
    height: 220px;
  }
  .detail-info h1 {
    font-size: 16px;
  }
  .detail-desc { padding: 16px; }
  .detail-desc-title {
    font-size: 15px;
  }
  .detail-price {
    font-size: 20px;
  }
  .detail-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .detail-btn {
    padding: 8px 16px;
    font-size: 13px;
    flex: 1;
    text-align: center;
    min-width: calc(33% - 6px);
  }
  .detail-side {
    width: 100%;
  }
  .detail-side-card {
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
  }
  .detail-side-card .section-header {
    padding: 10px 14px;
  }
  .attrs-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* ========== 分页 ========== */
  .pagination {
    gap: 4px;
    padding: 16px 0;
  }
  .page-item {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* ========== Footer ========== */
  .footer {
    padding: 24px 0 16px;
    margin-bottom: 60px; /* 为底部导航留空 */
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  .footer-col h4 {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .footer-col a {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .footer-bottom {
    margin-top: 20px;
    padding-top: 12px;
    font-size: 11px;
  }

  /* ========== 登录注册页 ========== */
  .auth-container {
    flex-direction: column-reverse;
  }
  .auth-side-banner {
    width: 100%;
    padding: 30px 20px;
    min-height: 160px;
  }
  .auth-form-box {
    padding: 24px 18px;
  }
  .auth-form-box h2 { font-size: 19px; }

  /* ========== 帮助页 ========== */
  .help-search-bar { margin: 0 0 20px; }
  .help-nav { gap: 6px; }
  .help-nav-item { padding: 6px 14px; font-size: 12px; }

  /* ========== Toast ========== */
  .toast {
    top: 55px;
    font-size: 13px;
    padding: 8px 20px;
  }

  /* ========== Scroll Top ========== */
  .scroll-top {
    bottom: 65px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

/* ---- 小屏手机: ≤480px ---- */
@media (max-width: 480px) {
  html { font-size: 12px; }
  .header-main .container { gap: 6px; }
  .logo-icon { width: 30px; height: 30px; font-size: 12px; }
  .search-btn { display: none; }
  .search-bar input { height: 32px; font-size: 11px; }
  .header-actions { display: none; }
  .nav-bar .container { height: 48px; }
  .nav-item { font-size: 10px !important; height: 48px; line-height: normal; }
  .nav-item .nav-icon { font-size: 16px; }
  .banner-main { height: 180px; }
  .banner-slide-content h2 { font-size: 16px; }
  .banner-slide-content p { font-size: 12px; }
  .banner-slide-content .banner-btn { padding: 6px 18px; font-size: 12px; }
  .cards-grid,
  .cards-grid-4,
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
  .goods-card-img { height: 170px; }
  .goods-card-body { padding: 10px 12px; }
  .goods-card-title { height: auto; max-height: 42px; }
}
