/* ============================================================
   服装产业网 - 京东/淘宝风格大气版
   商品大类：男装 女装 童装 鞋靴 箱包 饰品 + 面料辅料 + 加工订单 + 找工厂
   ============================================================ */

/* ===== 变量 & 重置 ===== */
:root {
  --jd-red: #c91623;
  --jd-red-dark: #a8111e;
  --jd-red-light: #e83d4a;
  --primary: #c91623;
  --primary-dark: #a8111e;
  --accent: #f59e0b;
  --bg: #f5f5f5;
  --bg-light: #fafafa;
  --white: #fff;
  --text: #222;
  --text-light: #666;
  --text-muted: #888;
  --border: #eee;
  --border-light: #f0f0f0;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;
  --max-width: 1190px;
  --header-h: 90px;
  --nav-h: 40px;
}
* { 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);
  color: var(--text);
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== 顶部栏 - 京东风格 ===== */
#topBar {
  background: #333;
  color: #ccc;
  font-size: 12px;
  line-height: 34px;
  border-bottom: 1px solid #222;
}
.top-bar-inner { display: flex; justify-content: space-between; }
.top-left { display: flex; align-items: center; gap: 8px; }
.top-left .sep { color: #555; }
.top-left a { color: #ccc; transition: color var(--transition); }
.top-left a:hover { color: var(--jd-red); }
.top-left .register-link { color: #e85d6b; }
.top-left .register-link:hover { color: var(--jd-red); }
.top-right { display: flex; gap: 10px; }
.top-right a { color: #ccc; padding: 0 8px; transition: color var(--transition); }
.top-right a + a::before { content: '|'; color: #555; margin-right: 10px; }
.top-right a:hover { color: var(--white); }

/* ===== 主头部（京东风格大布局） ===== */
#mainHeader {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
  height: var(--header-h);
  position: relative;
}

/* Logo - JD风格 */
.logo a { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--jd-red), var(--jd-red-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 900; font-size: 20px;
  box-shadow: 0 3px 10px rgba(201,22,35,0.3);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.1; }
.logo-text span { font-size: 10px; color: var(--text-muted); letter-spacing: 2px; }

/* ===== 城市选择器 ===== */
.city-selector {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); user-select: none;
  background: var(--white); flex-shrink: 0; position: relative;
}
.city-selector:hover { border-color: var(--jd-red); }
.city-label { font-size: 14px; }
.city-current { font-size: 13px; font-weight: 600; color: var(--jd-red); max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-arrow { font-size: 9px; color: var(--text-muted); }

/* 城市下拉 */
.city-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  width: 440px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  z-index: 200; padding: 18px; max-height: 520px; overflow-y: auto;
}
.city-dropdown.active { display: block; }
.city-dropdown-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.city-dropdown-title { font-size: 16px; font-weight: 700; }
.city-close-btn { background: none; border: none; font-size: 20px; color: var(--text-muted); transition: color var(--transition); }
.city-close-btn:hover { color: var(--text); }
.city-search-box { margin-bottom: 12px; }
.city-search-box input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; outline: none; transition: border var(--transition);
}
.city-search-box input:focus { border-color: var(--jd-red); }
.city-hot { margin-bottom: 14px; }
.city-hot-title { font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 8px; display: block; }
.city-hot-list { display: flex; flex-wrap: wrap; gap: 6px; }
.hot-city {
  padding: 4px 14px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 12px; color: var(--text-light); cursor: pointer; transition: all var(--transition);
}
.hot-city:hover, .hot-city.active { border-color: var(--jd-red); color: var(--jd-red); background: #fef0ef; }
.city-province-list { border-top: 1px solid var(--border); padding-top: 12px; }
.province-group { margin-bottom: 10px; }
.province-name { font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.province-cities { display: flex; flex-wrap: wrap; gap: 4px; }
.province-city { padding: 3px 10px; font-size: 12px; color: var(--text-light); cursor: pointer; border-radius: 3px; transition: all var(--transition); }
.province-city:hover, .province-city.active { background: #fef0ef; color: var(--jd-red); }

/* ===== 搜索框（京东风格大搜索） ===== */
.search-box {
  flex: 1; max-width: 560px; display: flex;
  border: 2px solid var(--jd-red); border-radius: var(--radius);
  overflow: hidden; background: var(--white); position: relative;
}
.search-category {
  display: flex; align-items: center; gap: 4px;
  padding: 0 16px; background: #f7f7f7; border-right: 1px solid #ddd;
  font-size: 14px; color: var(--text-light); cursor: pointer;
  user-select: none; white-space: nowrap; position: relative;
}
.search-category i { font-size: 9px; font-style: normal; color: #bbb; }
.search-cat-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  width: 140px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  z-index: 150; padding: 6px 0; max-height: 300px; overflow-y: auto;
}
.search-cat-dropdown.active { display: block; }
.search-cat-dropdown span {
  display: block; padding: 9px 16px; font-size: 13px; color: var(--text);
  transition: background var(--transition); cursor: pointer;
}
.search-cat-dropdown span:hover, .search-cat-dropdown span.active { background: #fef0ef; color: var(--jd-red); }
.search-box input {
  flex: 1; border: none; outline: none; padding: 12px 16px;
  font-size: 14px; color: #333;
}
.search-box input::placeholder { color: #bbb; }
.search-box button {
  background: var(--jd-red); color: var(--white); border: none;
  padding: 12px 32px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background var(--transition); letter-spacing: 2px;
}
.search-box button:hover { background: var(--jd-red-dark); }

/* ===== 头部操作区 ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
}
.publish-btn {
  padding: 10px 22px; background: linear-gradient(135deg, var(--accent), #d97706);
  color: var(--white); border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; transition: all var(--transition); white-space: nowrap;
}
.publish-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245,158,11,0.35); }

/* ===== 企业直招按钮（突破容器右边界，利用右侧空白居中） ===== */
.hire-btn {
  position: absolute;
  left: calc(50% + 615px);
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 22px;
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  color: var(--white); border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 0 12px rgba(231,76,60,0.35);
  animation: hirePulse 2s ease-in-out infinite;
  z-index: 50;
}
.hire-btn:hover {
  transform: translateY(-50%) translateY(-2px) scale(1.03);
  box-shadow: 0 6px 25px rgba(231,76,60,0.5);
  background: linear-gradient(135deg, #c0392b, #e67e22);
}
.hire-btn::after {
  content: '🔴 急';
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: #e74c3c;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  line-height: 1.4;
  animation: hireBadge 1.5s ease-in-out infinite;
}
@keyframes hirePulse {
  0%, 100% { box-shadow: 0 0 12px rgba(231,76,60,0.35); }
  50% { box-shadow: 0 0 24px rgba(231,76,60,0.55), 0 0 40px rgba(243,156,18,0.2); }
}
@keyframes hireBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===== 导航（京东风格） ===== */
#mainNav { border-top: 1px solid var(--border); background: var(--white); }
.nav-inner { display: flex; align-items: center; padding: 0 20px; }
.nav-all-cat {
  background: var(--jd-red); color: var(--white);
  padding: 9px 24px; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap; position: relative;
  letter-spacing: 1px;
}
.nav-all-cat:hover { background: var(--jd-red-dark); }

/* Mega 下拉菜单 */
.all-cat-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  width: 580px; background: var(--white);
  box-shadow: var(--shadow-lg); z-index: 200;
  padding: 20px 24px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.all-cat-dropdown.active { display: grid; }
.mega-col h4 {
  font-size: 15px; font-weight: 700; color: var(--jd-red);
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.mega-col a {
  display: block; padding: 5px 0; font-size: 14px; color: var(--text);
  transition: all var(--transition);
}
.mega-col a:hover { color: var(--jd-red); padding-left: 4px; }
.mega-col a:hover { color: var(--jd-red); padding-left: 4px; }

#mainNav ul { display: flex; flex: 1; }
#mainNav li {
  white-space: nowrap;
}
#mainNav li a {
  display: block; padding: 9px 14px; font-size: 14px; color: var(--text);
  transition: color var(--transition); font-weight: 500;
}
#mainNav li a:hover, #mainNav li.active a { color: var(--jd-red); }
#mainNav li.active a::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: var(--jd-red);
}
#mainNav li { position: relative; }

/* ===== 大Banner + 左侧分类导航（京东核心布局） ===== */
#bannerWrap {
  background: var(--white);
  padding-top: 10px;
  border-bottom: 1px solid var(--border);
}
.banner-layout {
  display: flex;
  gap: 0;
  position: relative;
  z-index: 3;
}

/* 左侧分类导航（京东/淘宝风格悬浮展开） */
.banner-cat-nav {
  width: 200px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 6px 0;
  flex-shrink: 0;
}

/* 每个导航项容器（static 使子面板锚定到侧栏容器，固定在顶部位置） */
.banner-cat-nav .nav-item {
  position: static;
}
.banner-cat-nav .nav-item > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
  font-weight: 500;
}
.banner-cat-nav .nav-item > a:hover,
.banner-cat-nav .nav-item:hover > a {
  background: var(--white);
  color: var(--jd-red);
}
.banner-cat-nav .nav-item > a span { font-size: 16px; }

/* 扩展hover热区：让每个导航项的右侧多出一块透明区域连接子面板 */
.banner-cat-nav .nav-item > a::after {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
  z-index: 3;
}

/* 悬浮展开子面板（撑满整个Banner区域） */
.banner-cat-nav .sub-panel {
  position: absolute;
  left: 200px;
  right: 0;
  top: 0;
  bottom: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.1);
  z-index: 300;
  padding: 14px 18px 12px;
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* 动画：淡入 + 右滑出 */
  visibility: hidden;
  opacity: 0;
  transform: translateX(-6px);
  transition: visibility 0s linear 0.18s, opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.banner-cat-nav .nav-item:hover .sub-panel {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0s;
  pointer-events: auto;
}



/* 子面板行（淘宝风格：标题+明细在同一行横排） */
.sub-panel .sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 0;
  padding: 2px 0;
}
.sub-panel .sub-row-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--jd-red);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
}
.sub-panel .sub-row a {
  font-size: 13px;
  color: #555;
  transition: color var(--transition);
  white-space: nowrap;
  padding: 0 5px;
  line-height: 1.8;
}
.sub-panel .sub-row a:hover {
  color: var(--jd-red);
  text-decoration: underline;
}

/* 合并分类子面板 — 双列布局（大气版） */
.sub-panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 100%;
}
.sub-panel-split .sub-panel-col {
  padding: 8px 14px 6px;
  overflow-y: auto;
}
.sub-panel-split .sub-panel-col:first-child {
  border-right: 1px solid #e8e8e8;
}
.sub-panel-split .col-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--jd-red);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--jd-red);
}
.sub-panel-split .sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 0;
  padding: 2px 0;
}
.sub-panel-split .sub-row-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--jd-red);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
}
.sub-panel-split .sub-row a {
  font-size: 13px;
  color: #555;
  transition: color var(--transition);
  white-space: nowrap;
  padding: 0 5px;
  line-height: 1.8;
}
.sub-panel-split .sub-row a:hover {
  color: var(--jd-red);
  text-decoration: underline;
}

/* Banner主区域 */
.banner-main {
  flex: 1;
  position: relative;
  height: 380px;
  overflow: hidden;
}
.banner-slider { position: relative; height: 100%; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  justify-content: flex-start; padding-left: 60px;
  opacity: 0; transition: opacity 0.7s ease;
}
.slide.active { opacity: 1; }
.slide-text { color: var(--white); max-width: 520px; }
.slide-text h2 {
  font-size: 36px; font-weight: 800; margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25); letter-spacing: 1px;
}
.slide-text p {
  font-size: 16px; margin-bottom: 16px; opacity: 0.92;
  line-height: 1.6; text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.slide-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.slide-tags span {
  padding: 4px 14px; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px; font-size: 12px;
  backdrop-filter: blur(4px); background: rgba(255,255,255,0.1);
}
.slide-btn {
  display: inline-block; padding: 12px 38px;
  background: var(--jd-red); color: var(--white);
  border-radius: var(--radius); font-weight: 700; font-size: 15px;
  transition: all var(--transition); letter-spacing: 1px;
}
.slide-btn:hover { background: var(--jd-red-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,22,35,0.4); }
.banner-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.banner-dots .dot {
  width: 24px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: all var(--transition);
}
.banner-dots .dot.active { background: var(--white); width: 36px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.2); color: var(--white); border: none;
  width: 40px; height: 56px; font-size: 28px; cursor: pointer;
  opacity: 0; transition: all var(--transition);
  line-height: 56px; text-align: center;
}
.banner-main:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover { background: rgba(0,0,0,0.5); }
.banner-arrow.left { left: 0; border-radius: 0 4px 4px 0; }
.banner-arrow.right { right: 0; border-radius: 4px 0 0 4px; }

/* 右侧用户面板（京东风格 — 绝对定位突破容器边界） */
#bannerWrap {
  position: relative;
  overflow: visible;
}
.banner-side {
  position: absolute;
  top: 0;
  bottom: 0;
  /* 突破容器右侧边界，利用空白区域 */
  /* calc(50% + 595px) = .wrap 容器的右边缘 */
  /* + 20px = 与容器保持间距 */
  left: calc(50% + 595px + 20px);
  width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 20px rgba(0,0,0,0.06);
  z-index: 2;
  border-radius: 0 6px 6px 0;
}

/* ===== 左侧公告/动态面板（贴在左边缘，不依赖容器位置） ===== */
.banner-side-left {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 20px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
  z-index: 2;
  border-radius: 8px;
  padding: 10px 0;
  /* 窄屏自动隐藏 */
}
@media (max-width: 1600px) {
  .banner-side-left { display: none; }
}
.bsl-section {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--border-light);
}
.bsl-section:last-child {
  border-bottom: none;
}
.bsl-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-light);
}
/* 公告列表 */
.bsl-notice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bsl-notice-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}
.bsl-notice-item:hover {
  color: var(--jd-red);
}
.bsl-notice-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-light);
}
.bsl-notice-text strong {
  color: var(--text);
  font-weight: 600;
}
.bsl-notice-item:hover .bsl-notice-text {
  color: var(--jd-red);
}
.bsl-notice-item:hover .bsl-notice-text strong {
  color: var(--jd-red);
}
/* 绿色/橙色圆点 */
.bsl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.bsl-dot.green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}
.bsl-dot.orange {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245,158,11,0.4);
}
/* 交易数据 */
.bsl-stats {
  display: flex;
  gap: 6px;
}
.bsl-stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: var(--bg);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.bsl-stat-item:hover {
  background: #fef0ef;
  transform: translateY(-1px);
}
.bsl-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--jd-red);
  line-height: 1.2;
}
.bsl-stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.bsl-stat-change {
  display: block;
  font-size: 9px;
  margin-top: 1px;
  font-weight: 600;
}
.bsl-stat-change.up {
  color: #22c55e;
}
.bsl-stat-change.down {
  color: #ef4444;
}
/* 活动倒计时 */
.bsl-countdown-section {
  background: linear-gradient(135deg, #fff8f0, #fff0e0);
}
.bsl-countdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bsl-countdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius);
}
.bsl-countdown-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.bsl-countdown-time {
  font-size: 14px;
  font-weight: 800;
  color: var(--jd-red);
  letter-spacing: 2px;
}
.bsl-countdown-time strong {
  background: var(--jd-red);
  color: var(--white);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 13px;
}
/* 最新成交 */
.bsl-trade-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bsl-trade-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 2px 0;
}
.bsl-trade-text {
  flex: 1;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bsl-trade-text strong {
  color: var(--text);
  font-weight: 600;
}
.bsl-trade-time {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== 用户卡片 ===== */
.jd-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--border-light);
}
.jd-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}
.jd-user-avatar-icon {
  font-size: 26px;
  line-height: 1;
}
.jd-user-info {
  flex: 1;
  min-width: 0;
}
.jd-user-greeting {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.jd-user-login-link {
  color: var(--text);
  transition: color var(--transition);
}
.jd-user-login-link:hover {
  color: var(--jd-red);
}
.jd-user-register {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.jd-user-register a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.jd-user-register a:hover {
  color: var(--jd-red);
}
.jd-user-sep {
  color: var(--border);
}

/* ===== 我的订单 ===== */
.jd-order-stats {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border-light);
}
.jd-order-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.jd-order-more {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color var(--transition);
}
.jd-order-more:hover {
  color: var(--jd-red);
}
.jd-order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.jd-order-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
  color: var(--text);
}
.jd-order-item:hover {
  background: var(--bg);
}
.jd-order-icon {
  font-size: 20px;
  line-height: 1;
}
.jd-order-label {
  font-size: 11px;
  color: var(--text-light);
}
.jd-order-count {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  background: var(--jd-red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/* ===== 我的服务 ===== */
.jd-services {
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--border-light);
}
.jd-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.jd-service-item {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  padding: 5px 6px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jd-service-item:hover {
  background: var(--bg);
  color: var(--jd-red);
}

/* ===== 平台公告 ===== */
.jd-notice {
  padding: 10px 14px 12px;
}
.jd-notice-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.jd-notice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jd-notice-list a {
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition);
  padding: 2px 0;
}
.jd-notice-list a:hover {
  color: var(--jd-red);
}

/* ===== 限时特卖（京东秒杀风格） ===== */
#flashSale {
  background: var(--white);
  margin: 12px auto;
  max-width: var(--max-width);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
#flashSale .wrap { padding: 16px 20px 20px; }

.flash-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.flash-title { display: flex; align-items: center; gap: 16px; }
.flash-title h2 { font-size: 20px; color: var(--jd-red); font-weight: 700; }
.flash-countdown { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-light); }
.countdown-box {
  display: inline-flex; align-items: center; justify-content: center;
  background: #222; color: var(--white); padding: 3px 6px; border-radius: 3px;
  font-size: 16px; font-weight: 700; min-width: 34px;
  font-family: "Courier New", monospace;
}
.cd-colon { font-weight: 700; color: var(--text); }
.flash-nav { display: flex; gap: 6px; }
.flash-nav-btn {
  width: 28px; height: 28px; border: 1px solid var(--border);
  background: var(--white); border-radius: 50%;
  font-size: 16px; color: var(--text-light); transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.flash-nav-btn:hover { border-color: var(--jd-red); color: var(--jd-red); }
.flash-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.flash-card {
  text-align: center; cursor: pointer; padding: 10px 6px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--transition);
}
.flash-card:hover { border-color: var(--jd-red); box-shadow: 0 2px 12px rgba(201,22,35,0.1); transform: translateY(-2px); }
.flash-card-img {
  width: 100%; height: 110px; display: flex; align-items: center;
  justify-content: center; font-size: 42px; border-radius: var(--radius); margin-bottom: 6px;
}
.flash-card-name { font-size: 13px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.flash-card-price { font-size: 17px; font-weight: 700; color: var(--jd-red); }
.flash-card-price .original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: 4px; }

/* ===== 通用区块样式 ===== */
#products, #fabricSection, #orderSection, #factorySection,
#brandSection, #latestSection, #newsSection {
  padding: 24px 0;
  background: var(--white);
  margin-bottom: 12px;
}
#products { background: var(--white); }
#fabricSection { background: var(--bg-light); }
#orderSection { background: var(--white); }
#factorySection { background: var(--bg-light); }
#brandSection { background: var(--white); }
#latestSection { background: var(--bg-light); }
#newsSection { background: var(--white); }

/* Section 头部 */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.section-header-left { display: flex; align-items: baseline; gap: 12px; }
.section-header-left h2 {
  font-size: 22px; color: var(--text); font-weight: 700;
  position: relative; padding-left: 14px;
}
.section-header-left h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--jd-red); border-radius: 2px;
}
.section-subtitle { font-size: 14px; color: var(--text-muted); }
.section-header-right { display: flex; align-items: center; gap: 12px; }
.more-link { color: var(--text-light); font-size: 14px; transition: color var(--transition); font-weight: 500; }
.more-link:hover { color: var(--jd-red); }

/* ===== 商品展示 Tab ===== */
.pro-tabs {
  display: flex; gap: 2px; background: var(--bg); border-radius: var(--radius); padding: 2px;
}
.pro-tab {
  padding: 7px 18px; font-size: 14px; cursor: pointer;
  transition: all var(--transition); color: var(--text-light);
  border-radius: 3px; font-weight: 500;
}
.pro-tab:hover { color: var(--text); }
.pro-tab.active { background: var(--white); color: var(--jd-red); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* 商品网格（5列） */
.product-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.product-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition); cursor: pointer;
  background: var(--white); position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ddd; }
.product-card .pro-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 10px; font-size: 11px; font-weight: 600;
  z-index: 2; border-radius: 2px;
}
.pro-badge.hot { background: var(--jd-red); color: var(--white); }
.pro-badge.new { background: #22c55e; color: var(--white); }
.pro-badge.discount { background: var(--accent); color: var(--white); }
.pro-img {
  height: 200px; display: flex; align-items: center;
  justify-content: center; font-size: 56px; position: relative;
}
.pro-info { padding: 10px 12px 8px; }
.pro-info h3 { font-size: 14px; margin-bottom: 4px; font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-info .pro-brand { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.pro-info .pro-price { font-size: 18px; font-weight: 700; color: var(--jd-red); }
.pro-info .pro-price .symbol { font-size: 12px; }
.pro-info .pro-price .original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: 4px; }

/* ===== 面料辅料 Tabs & Grid ===== */
.fabric-tabs, .order-tabs, .latest-tabs, .shoe-tabs, .equipment-tabs {
  display: flex; gap: 2px; background: var(--bg); border-radius: var(--radius); padding: 2px;
}
.fabric-tab, .order-tab, .latest-tab, .shoe-tab {
  padding: 7px 16px; font-size: 13px; cursor: pointer;
  transition: all var(--transition); color: var(--text-light); border-radius: 3px; font-weight: 500;
}
.fabric-tab:hover, .order-tab:hover, .latest-tab:hover, .shoe-tab:hover, .equip-tab:hover { color: var(--text); }
.fabric-tab.active, .order-tab.active, .latest-tab.active, .shoe-tab.active, .equip-tab.active { background: var(--white); color: var(--jd-red); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.equip-tab { padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all var(--transition); color: var(--text-light); border-radius: 3px; font-weight: 500; background: var(--bg); }
.equip-tab:hover { color: var(--text); }
.equip-tab.active { background: var(--white); color: var(--jd-red); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.fabric-grid, .shoe-grid, .equipment-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.fabric-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all var(--transition); background: var(--white);
}
.fabric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--jd-red); }
.fabric-card-img { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.fabric-card-body { padding: 8px 10px 10px; }
.fabric-card-body h4 { font-size: 14px; margin-bottom: 3px; font-weight: 600; line-height: 1.4; }
.fabric-card-body .fabric-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; line-height: 1.5; }
.fabric-card-body .fabric-supplier { font-size: 11px; color: var(--text-light); }
.fabric-card-body .fabric-supplier span { color: var(--jd-red); }

/* ===== 加工订单 Grid ===== */
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.order-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: all var(--transition); background: var(--white);
}
.order-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--jd-red); }
.order-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-type-tag {
  display: inline-block; padding: 3px 12px; border-radius: 3px;
  font-size: 12px; font-weight: 600;
}
.order-type-tag.sample { background: #fef0ef; color: var(--jd-red); }
.order-type-tag.material { background: #fef3c7; color: #b45309; }
.order-type-tag.full { background: #ede9fe; color: #7c3aed; }
.order-amount { font-size: 16px; font-weight: 700; color: var(--jd-red); }
.order-card h4 { font-size: 15px; margin-bottom: 6px; line-height: 1.4; font-weight: 600; }
.order-card p { font-size: 13px; color: var(--text-light); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.order-card-footer .order-time { font-size: 12px; color: var(--text-muted); }
.order-card-footer .order-city { font-size: 12px; color: var(--text-light); background: var(--bg); padding: 3px 10px; border-radius: 3px; }

/* ===== 找工厂 ===== */
.factory-filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; padding: 12px 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  flex-wrap: wrap;
}
.factory-filter-bar .filter-label { font-size: 13px; font-weight: 600; color: var(--text-light); white-space: nowrap; }
.factory-filter-bar select {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; color: var(--text); background: var(--white); outline: none; cursor: pointer; min-width: 110px;
}
.factory-filter-bar select:focus { border-color: var(--jd-red); }
.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.factory-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: all var(--transition); background: var(--white);
}
.factory-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--jd-red); }
.factory-card-header {
  height: 74px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; position: relative;
}
.factory-card-header .factory-verify {
  position: absolute; top: 6px; left: 6px;
  background: #22c55e; color: var(--white); padding: 1px 8px;
  border-radius: 3px; font-size: 10px; font-weight: 600;
}
.factory-card-body { padding: 10px 12px 12px; }
.factory-card-body h4 { font-size: 15px; margin-bottom: 3px; font-weight: 600; }
.factory-card-body .factory-location { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.factory-card-body .factory-location span { color: var(--jd-red); }
.factory-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 6px; }
.factory-tags span { padding: 3px 10px; font-size: 11px; background: var(--bg); border-radius: 3px; color: var(--text-light); }
.factory-card-body .factory-desc { font-size: 13px; color: var(--text-light); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.factory-card-body .factory-contact { margin-top: 6px; font-size: 12px; color: var(--jd-red); display: flex; align-items: center; gap: 4px; }

/* 认证推荐 */
.featured-header {
  display: flex; justify-content: space-between; align-items: center;
  margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid var(--border);
}
.featured-header h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.featured-factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.featured-factory-card {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all var(--transition); background: var(--white);
  border: 2px solid var(--border);
}
.featured-factory-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.ff-banner {
  height: 64px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; position: relative;
}
.ff-banner .ff-badge {
  position: absolute; top: 5px; right: 5px;
  background: var(--accent); color: var(--white); padding: 1px 8px;
  border-radius: 3px; font-size: 10px; font-weight: 600;
}
.ff-body { padding: 10px 14px 14px; text-align: center; }
.ff-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.ff-body .ff-location { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ff-body .ff-tags { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.ff-body .ff-tags span { font-size: 11px; color: var(--text-light); background: var(--bg); padding: 3px 10px; border-radius: 3px; }

/* ===== 品牌推荐 ===== */
.brand-grid {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.brand-item {
  flex: 1 0 16.666%;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-light);
  cursor: pointer; transition: all var(--transition);
  text-align: center;
}
.brand-item:nth-child(6n) { border-right: none; }
.brand-item:nth-child(n+7) { border-bottom: none; }
.brand-item:hover { color: var(--jd-red); background: #fef0ef; position: relative; z-index: 1; }

/* ===== 品牌厂商（品牌生态第一步） ===== */
#brandManufacturerSection { background: var(--white); }
.brand-mfr-tab {
  padding: 7px 18px; border-radius: 16px; font-size: 14px; cursor: pointer;
  color: var(--text-light); transition: all var(--transition); font-weight: 500;
}
.brand-mfr-tab.active { background: var(--jd-red); color: var(--white); }
.brand-mfr-tab:hover:not(.active) { background: #f5f5f5; }
.manufacturer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.mfr-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column;
}
.mfr-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--jd-red); }
.mfr-top {
  display: flex; align-items: center; gap: 16px; padding: 20px 20px 0;
}
.mfr-logo {
  width: 64px; height: 64px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--white); flex-shrink: 0;
}
.mfr-info { flex: 1; min-width: 0; }
.mfr-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.mfr-brand { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.mfr-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mfr-tags span {
  font-size: 11px; padding: 1px 8px; border-radius: 10px;
  background: #fef0ef; color: var(--jd-red);
}
.mfr-body { padding: 14px 20px; flex: 1; }
.mfr-body p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.mfr-products { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 14px; }
.mfr-products span {
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
  background: var(--bg); color: var(--text-light); border: 1px solid var(--border);
}
.mfr-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; border-top: 1px solid var(--border-light);
  background: #fafafa;
}
.mfr-footer .mfr-contact { font-size: 12px; color: var(--text-muted); }
.mfr-footer .mfr-btn {
  font-size: 12px; padding: 4px 14px; border-radius: 14px;
  background: var(--jd-red); color: var(--white); border: none; cursor: pointer;
  transition: opacity var(--transition);
}
.mfr-footer .mfr-btn:hover { opacity: 0.85; }

/* ===== 品牌订货会（品牌生态第二步） ===== */
#orderingSection { background: var(--bg); }
.ordering-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ordering-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
}
.ordering-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ordering-card .oc-banner {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; position: relative; color: var(--white); font-weight: 700;
}
.ordering-card .oc-badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 10px;
  border-radius: 12px; font-size: 11px; font-weight: 600;
  background: rgba(0,0,0,0.35); color: var(--white);
}
.ordering-card .oc-body { padding: 16px; }
.ordering-card .oc-body h4 { font-size: 15px; margin-bottom: 6px; }
.ordering-card .oc-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }
.ordering-card .oc-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); }
.ordering-card .oc-meta span { display: flex; align-items: center; gap: 4px; }
.ordering-card .oc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--border-light); background: #fafafa;
}
.ordering-card .oc-footer .oc-status {
  font-size: 12px; padding: 2px 10px; border-radius: 10px; font-weight: 500;
}
.ordering-card .oc-footer .oc-status.open { background: #e8f8f0; color: #0a7e3d; }
.ordering-card .oc-footer .oc-status.soon { background: #fff4e8; color: #c07a1a; }
.ordering-card .oc-footer .oc-status.ended { background: #f0f0f0; color: #999; }
.ordering-card .oc-footer .oc-link { font-size: 13px; color: var(--jd-red); font-weight: 500; }

/* ===== 展销会（品牌生态第三步） ===== */
#exhibitionSection { background: var(--white); }
.exh-tab {
  padding: 7px 18px; border-radius: 16px; font-size: 14px; cursor: pointer;
  color: var(--text-light); transition: all var(--transition); font-weight: 500;
}
.exh-tab.active { background: var(--jd-red); color: var(--white); }
.exh-tab:hover:not(.active) { background: #f5f5f5; }
.exhibition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exh-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition);
}
.exh-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--jd-red); }
.exh-card .ec-banner {
  height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; position: relative; color: var(--white);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.exh-card .ec-badge {
  position: absolute; top: 10px; right: 10px; padding: 3px 10px;
  border-radius: 12px; font-size: 11px; font-weight: 600;
}
.exh-card .ec-badge.international { background: #e8f8f0; color: #0a7e3d; }
.exh-card .ec-badge.domestic { background: #eef3ff; color: #2563eb; }
.exh-card .ec-body { padding: 16px; }
.exh-card .ec-body h4 { font-size: 15px; margin-bottom: 6px; }
.exh-card .ec-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }
.exh-card .ec-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); }
.exh-card .ec-meta span { display: flex; align-items: center; gap: 4px; }
.exh-card .ec-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--border-light); background: #fafafa;
}
.exh-card .ec-footer .ec-btn {
  font-size: 13px; padding: 5px 16px; border-radius: 14px;
  background: var(--jd-red); color: var(--white); border: none; cursor: pointer;
  transition: opacity var(--transition); font-weight: 500;
}
.exh-card .ec-footer .ec-btn:hover { opacity: 0.85; }
.exh-card .ec-footer .ec-date { font-size: 12px; color: var(--text-muted); }

/* ===== 通用按钮 ===== */
.btn { display: inline-block; padding: 10px 28px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); }
.btn-primary { background: var(--jd-red); color: var(--white); }
.btn-primary:hover { background: var(--jd-red-dark); transform: translateY(-1px); }

/* ===== 最新需求 ===== */
.latest-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.latest-item {
  display: flex; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition); cursor: pointer; gap: 14px;
}
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { background: #f8f8f8; }
.latest-item .li-type {
  padding: 3px 12px; border-radius: 3px; font-size: 12px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.li-type.order { background: #fef0ef; color: var(--jd-red); }
.li-type.fabric { background: #dcfce7; color: #059669; }
.li-type.cooperation { background: #fef3c7; color: #b45309; }
.latest-item .li-title { flex: 1; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.latest-item .li-amount { font-size: 15px; font-weight: 700; color: var(--jd-red); white-space: nowrap; }
.latest-item .li-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.latest-item .li-city { font-size: 12px; color: var(--text-light); background: var(--bg); padding: 2px 8px; border-radius: 3px; white-space: nowrap; }

/* ===== 行业资讯 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all var(--transition); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-img { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--white); }
.news-card-body { padding: 14px 16px 16px; }
.news-card-body .news-date { font-size: 11px; color: var(--text-muted); }
.news-card-body h4 { font-size: 15px; margin: 4px 0 8px; line-height: 1.4; font-weight: 600; }
.news-card-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 服务保障 ===== */
#serviceGuarantee { background: var(--white); padding: 14px 0; margin-bottom: 12px; }
.guarantee-list { display: flex; }
.guarantee-item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-right: 1px solid var(--border); }
.guarantee-item:last-child { border-right: none; }
.gi-icon { font-size: 24px; }
.guarantee-item strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.guarantee-item span { font-size: 13px; color: var(--text-muted); }

/* ===== 友链 ===== */
#friendLinks { background: var(--white); padding: 10px 0; margin-bottom: 12px; }
.friend-inner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.friend-title { font-size: 12px; color: var(--text-muted); white-space: nowrap; font-weight: 500; }
#friendLinks a { font-size: 12px; color: var(--text-light); padding: 2px 10px; transition: color var(--transition); }
#friendLinks a:hover { color: var(--jd-red); }

/* ===== Overlay ===== */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 150; display: none; backdrop-filter: blur(2px);
}
.overlay.active { display: block; }

/* ===== 模态框 ===== */
.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--white); border-radius: var(--radius-lg);
  z-index: 250; width: 90%; max-width: 520px;
  max-height: 80vh; overflow-y: auto; display: none;
  box-shadow: var(--shadow-lg); opacity: 0; transition: all 0.25s ease;
}
.modal.active { display: block; transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; }
#modalCloseBtn { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); transition: color var(--transition); }
#modalCloseBtn:hover { color: var(--text); }
.modal-body { padding: 24px; text-align: center; }
.modal-body .modal-icon { font-size: 52px; margin-bottom: 12px; }
.modal-body h3 { font-size: 18px; margin-bottom: 6px; }
.modal-body p { color: var(--text-light); font-size: 14px; line-height: 1.6; }
.modal-body .modal-desc { text-align: left; background: #f8f8f8; padding: 16px 20px; border-radius: var(--radius); margin-top: 12px; font-size: 14px; color: var(--text); line-height: 2; }

/* ===== Toast ===== */
#toastContainer {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  background: #333; color: var(--white); padding: 10px 28px;
  border-radius: var(--radius); font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
}
.toast.success { background: #059669; }
.toast.error { background: var(--jd-red); }
.toast.info { background: var(--jd-red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-16px); } }

/* ===== 底部 ===== */
#mainFooter { background: #222; color: #999; padding: 36px 20px 20px; }
.footer-inner { }
.footer-links { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-bottom: 24px; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; font-size: 13px; color: #999; margin-bottom: 6px; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 13px; color: #999; margin-bottom: 6px; line-height: 1.6; }
.footer-bottom { padding-top: 16px; border-top: 1px solid #444; text-align: center; font-size: 12px; color: #777; }
.footer-bottom p { margin-bottom: 4px; }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .fabric-grid, .shoe-grid, .equipment-grid { grid-template-columns: repeat(4, 1fr); }
  .factory-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-factory-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-side { display: none; }
  .banner-side-left { display: none; }
  .banner-cat-nav { width: 160px; }
  .banner-cat-nav .sub-panel { left: 160px; }
}
@media (max-width: 768px) {
  .top-right { display: none; }
  .main-header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 16px; height: auto; }
  .logo-text strong { font-size: 18px; }
  .city-selector { display: none; }
  .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
  .search-category { display: none; }
  .header-actions { order: 2; gap: 10px; }
  .publish-btn { padding: 8px 14px; font-size: 12px; }
  .hire-btn { position: static; transform: none; padding: 8px 14px; font-size: 13px; }
  .hire-btn:hover { transform: scale(1.03); }
  .hire-btn::after { content: '🔴'; top: -6px; right: -10px; font-size: 8px; padding: 0 4px; }
  .nav-all-cat { display: none; }
  #mainNav ul { overflow-x: auto; gap: 0; }
  #mainNav li a { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .banner-cat-nav { display: none; }
  .banner-main { height: 200px; }
  .slide { padding-left: 24px; }
  .slide-text h2 { font-size: 22px; }
  .slide-text p { font-size: 13px; }
  .slide-tags { display: none; }
  .slide-btn { padding: 9px 24px; font-size: 13px; }
  .flash-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pro-img { height: 160px; font-size: 42px; }
  .fabric-grid, .shoe-grid { grid-template-columns: repeat(3, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
  .factory-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-factory-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-header-right { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .pro-tabs, .fabric-tabs, .order-tabs, .latest-tabs { flex-wrap: nowrap; }
  .city-dropdown { width: 320px; left: auto; right: 0; }
  .brand-item { flex: 1 0 33.33%; }
  .brand-item:nth-child(6n) { border-right: 1px solid var(--border); }
  .brand-item:nth-child(3n) { border-right: none; }
  .brand-item:nth-child(n+5) { border-bottom: none; }
  .guarantee-list { flex-wrap: wrap; }
  .guarantee-item { flex: 1 0 45%; border-right: none; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .flash-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pro-img { height: 130px; font-size: 36px; }
  .fabric-grid, .shoe-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: 1fr; }
  .featured-factory-grid { grid-template-columns: 1fr; }
  .latest-item { flex-wrap: wrap; gap: 4px; }
  .latest-item .li-time { width: 100%; }
  .search-box button { padding: 12px 18px; }
}

/* ===== 新板块响应式 ===== */
@media (max-width: 1024px) {
  .manufacturer-grid { grid-template-columns: repeat(2, 1fr); }
  .ordering-grid { grid-template-columns: repeat(2, 1fr); }
  .exhibition-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .manufacturer-grid { grid-template-columns: 1fr; }
  .ordering-grid { grid-template-columns: 1fr; }
  .exhibition-grid { grid-template-columns: 1fr; }
  .brand-mfr-tabs, .exhibition-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .mfr-top { flex-direction: column; text-align: center; }
}

/* ===== 企业招商（主页板块） ===== */
#zhaoshangSection {
  padding: 40px 0;
  background: var(--bg-light);
}
.zhaoshang-tabs {
  display: flex; gap: 4px;
}
.zs-tab {
  padding: 7px 20px; border-radius: 20px;
  font-size: 14px; border: 1px solid #ddd;
  background: #fff; cursor: pointer; transition: 0.25s; color: #666;
}
.zs-tab:hover { border-color: var(--primary); color: var(--primary); }
.zs-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.zhaoshang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.zs-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer; position: relative;
}
.zs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.zs-card .zs-card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; z-index: 2;
  background: rgba(0,0,0,0.5); color: #fff;
}
.zs-card .zs-card-badge.hot {
  background: linear-gradient(135deg,#e74c3c,#c0392b);
}
.zs-card .zs-card-top {
  height: 90px; display: flex; align-items: center;
  justify-content: center; font-size: 40px;
}
.zs-card .zs-card-body { padding: 14px 16px; }
.zs-card .zs-card-body h4 { font-size: 15px; margin-bottom: 2px; }
.zs-card .zs-card-body .zs-card-brand { font-size: 12px; color: #999; margin-bottom: 8px; }
.zs-card .zs-card-body .zs-card-info {
  display: flex; gap: 12px; margin-bottom: 8px;
}
.zs-card .zs-card-body .zs-card-info span { font-size: 12px; color: #666; }
.zs-card .zs-card-body .zs-card-desc {
  font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 8px;
}
.zs-card .zs-card-body .zs-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.zs-card .zs-card-body .zs-card-tags span {
  background: #f0f4ff; color: #4a6cf7;
  padding: 2px 8px; border-radius: 3px; font-size: 10px;
}
.zs-card .zs-card-footer {
  padding: 10px 16px; border-top: 1px solid #f0f0f0;
  text-align: center;
}
.zs-card .zs-card-footer .zs-card-btn {
  color: var(--primary); font-size: 13px; font-weight: 500;
}

@media (max-width: 768px) {
  .zhaoshang-grid { grid-template-columns: 1fr; }
  .zhaoshang-tabs { flex-wrap: nowrap; overflow-x: auto; }
}
