:root {
  --bg-body: #FFF8F1;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-row-hover: #FDF9F3;
  --bg-row-alt: #FBFAF8;
  --bg-search: #ffffff;
  --bg-tag-supply: #EDF4FA;
  --bg-tag-demand: #EDFAF7;
  --border-table: #E6E4E0;
  --border-light: #FEE8D0;
  --border-input: #FDBA74;
  --accent-orange: #F97316;
  --accent-orange-hover: #EA580C;
  --accent-orange-light: #FFF7ED;
  --accent-green: #2EA8A8;
  --accent-green-hover: #279090;
  --accent-blue: #3D8FD4;
  --accent-blue-light: #EDF3FA;
  --accent-red: #C94040;
  --text-dark: #22160F;
  --text-primary: #44403C;
  --text-muted: #78716C;
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-display: 'Rajdhani', sans-serif;
  --font-handwrite: 'Zhi Mang Xing', cursive;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 3px 10px rgba(0,0,0,0.05);
  --shadow-lg: 0 6px 20px rgba(0,0,0,0.08);
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #F97316, #FB923C);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249,115,22,0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #EA580C, #F97316);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249,115,22,0.25);
}
.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  background: var(--accent-orange-light);
}
.btn-outline-orange {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  border: 1px solid rgba(249,115,22,0.2);
}
.btn-outline-orange:hover {
  background: #ffe4cc;
  color: var(--accent-orange-hover);
}
.btn-outline-green {
  background: var(--bg-tag-demand);
  color: var(--accent-green);
  border: 1px solid rgba(46,168,168,0.2);
}
.btn-outline-green:hover {
  background: #d8fae2;
  color: #279090;
}
.btn-outline-blue {
  background: var(--bg-tag-supply);
  color: var(--accent-blue);
  border: 1px solid rgba(61,143,212,0.2);
}
.btn-outline-blue:hover {
  background: #dbeafe;
  color: #2a6db5;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-supply {
  background: var(--bg-tag-supply);
  color: var(--accent-blue);
  border: 1px solid rgba(61,143,212,0.2);
}
.badge-demand {
  background: var(--bg-tag-demand);
  color: var(--accent-green);
  border: 1px solid rgba(46,168,168,0.2);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-table);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.glass-effect {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
}

.text-gradient-orange {
  color: transparent;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #0f9f6e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.top-bar {
  background: #F0EFED;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}
.top-bar a { color: var(--text-muted); text-decoration: none; margin: 0 12px; transition: color 0.2s; }
.top-bar a:hover { color: var(--accent-orange); }
.top-bar .sep { opacity: 0.3; }
header {
  background: #fff;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border-bottom: 1px solid var(--border-light);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
}
header.visible {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-box {
  display: none;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  letter-spacing: 2px;
  line-height: 1.1;
}
.mobile-slogan { display: none; }
.logo-domain {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-family: var(--font-mono);
  display: none;
}
.nav-main { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--text-dark); background: rgba(0,0,0,0.015); }
.nav-link.active { color: var(--accent-orange); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 1px;
}
.nav-link.nav-post {
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  margin-left: 8px;
  border: 1px solid rgba(249,115,22,0.15);
}
.nav-link.nav-post:hover { background: #EFE5D0; color: var(--accent-orange-hover); }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-input);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-login:hover { color: var(--accent-orange); border-color: var(--accent-orange); }
.btn-register {
  color: #fff;
  background: linear-gradient(135deg, #F97316, #FB923C);
  border: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-register:hover { background: linear-gradient(135deg, #EA580C, #F97316); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(249,115,22,0.25); }
.user-phone {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  padding-right: 8px;
}
.hero-banner {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.hero-inner {
  background: linear-gradient(135deg, #FDF8F0 0%, #FBF9F5 30%, #F2F6FA 70%, #EDF7F3 100%);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(249,115,22,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(61,143,212,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(46,168,168,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-left { position: relative; z-index: 1; }
.hero-slogan {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.hero-slogan .orange { color: var(--accent-orange); }
.hero-slogan-link { text-decoration: none; }
.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-dark);
  letter-spacing: 0.6px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.hero-tags { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hero-tag {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.hero-tag.buy { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #B07818; border: 1px solid rgba(249,115,22,0.15); }
.hero-tag.buy:hover { background: linear-gradient(135deg, #FFEDD5, #E8D8B8); }
.hero-tag.sell { background: linear-gradient(135deg, #EDFAF7, #D8F2EC); color: #1E8A8A; border: 1px solid rgba(46,168,168,0.15); }
.hero-tag.sell:hover { background: linear-gradient(135deg, #D8F2EC, #C8EBE2); }
.hero-tag.free { background: linear-gradient(135deg, #EDF3FA, #D8E8F2); color: #2E72B0; border: 1px solid rgba(61,143,212,0.15); }
.hero-tag.free:hover { background: linear-gradient(135deg, #D8E8F2, #C8DCF0); }
.mobile-float-actions {
  display: none;
}
.hero-search { position: relative; z-index: 1; flex-shrink: 0; width: 420px; }
.hero-search-box {
  display: flex;
  background: var(--bg-search);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--border-input);
}
.hero-search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: none;
}
.hero-search-box input::placeholder { color: var(--text-muted); }
.hero-search-btn {
  background: linear-gradient(135deg, #F97316, #FB923C);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  white-space: nowrap;
}
.hero-search-btn:hover { background: linear-gradient(135deg, #EA580C, #F97316); box-shadow: 0 2px 8px rgba(249,115,22,0.2); }
.main-content {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 0 24px 40px;
}
.ad-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  margin-bottom: 16px;
  background: var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ad-slot {
  border-radius: 0;
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}
.ad-slot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); z-index: 1; }
.ad-slot.ad-1 { background: linear-gradient(135deg, #FDF6E6, #F8EDCF); }
.ad-slot.ad-2 { background: linear-gradient(135deg, #EEF3F8, #DEE8F2); }
.ad-slot.ad-3 { background: linear-gradient(135deg, #ECF5EE, #D4EAD8); }
.ad-slot .ad-text { font-size: 13px; font-weight: 600; text-align: left; padding: 12px 16px; }
.ad-slot.ad-1 .ad-text { color: #7A5C10; }
.ad-slot.ad-2 .ad-text { color: #3A5E80; }
.ad-slot.ad-3 .ad-text { color: #2A6040; }
.ad-slot .ad-text small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; margin-top: 2px; }
.ad-label {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
}
.ad-slot.ad-1 .ad-label { background: #F97316; color: #fff; }
.ad-slot.ad-2 .ad-label { background: #3D8FD4; color: #fff; }
.ad-slot.ad-3 .ad-label { background: #2EA8A8; color: #fff; }
.location-bar {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: #666;
}
.location-label {
  color: #999;
}
.location-link {
  color: #666;
  text-decoration: none;
}
.location-link:hover {
  color: #F97316;
  text-decoration: underline;
}
.location-separator {
  margin: 0 6px;
  color: #ccc;
}
.location-path {
  color: #666;
}
.location-keyword {
  color: #F97316;
  font-weight: 500;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 20px;
}
.filter-tabs {
  display: flex;
  gap: 2px;
  background: #FEE8D0;
  border-radius: var(--radius-md);
  padding: 3px;
}
.filter-tab {
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.filter-tab:hover { color: var(--text-dark); }
.filter-tab.active {
  background: linear-gradient(135deg, #F97316, #FB923C);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(249,115,22,0.2);
}
.filter-info { display: none; font-size: 12px; color: var(--text-muted); margin-left: auto; }
.filter-info span { color: var(--accent-orange); font-weight: 600; }
.scroll-notice {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 24px;
}
.scroll-notice-list {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  animation: scrollNotice 15s linear infinite;
}
.scroll-notice-list span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 24px;
  white-space: nowrap;
}
@keyframes scrollNotice {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-24px); }
  40%, 56% { transform: translateY(-48px); }
  60%, 76% { transform: translateY(-72px); }
  80%, 96% { transform: translateY(-96px); }
  100% { transform: translateY(-120px); }
}
.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-table);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.data-table-wrap::-webkit-scrollbar {
  display: none;
}
table.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
table.data-table thead {
  background: linear-gradient(180deg, #FFF8F1, #F0EFED);
  border-bottom: 2px solid var(--border-table);
}
table.data-table th {
  padding: 10px 12px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}
table.data-table th:first-child { padding-left: 16px; }
table.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
table.data-table tbody tr:nth-child(even) { background: var(--bg-row-alt); }
table.data-table tbody tr:hover { background: var(--bg-row-hover); }
table.data-table td {
  padding: 10px 12px;
  vertical-align: middle;
  color: var(--text-primary);
  white-space: nowrap;
}
table.data-table td.col-company {
  white-space: normal;
}
table.data-table td:first-child { padding-left: 16px; }
.col-type { width: 40px; text-align: center; }
.col-img { width: 60px; }
.col-model { width: 150px; }
.col-brand { width: 70px; }
.col-price { width: 65px; }
.col-pkg { width: 70px; }
.col-spec { width: 198px; }
.col-batch { width: 60px; }
.col-qty { width: 70px; }
.col-warehouse { width: 55px; }
.col-remark { width: 50px; }
.col-contact { width: 120px; }
.col-company { width: 140px; }
.col-price .unit-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.col-price .price-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.col-price .tax-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--accent-orange);
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--accent-orange);
  border-radius: 50%;
  line-height: 1;
  margin-right: 2px;
  flex-shrink: 0;
}
.col-price .tax-badge-top {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--accent-orange);
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--accent-orange);
  border-radius: 50%;
  line-height: 1;
  margin: 0 auto 2px;
}
.col-price .unit-price.high-price {
  justify-content: center;
}
.contact-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.demand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green);
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent-green);
  border-radius: 50%;
  line-height: 1;
  margin-right: 4px;
  vertical-align: middle;
}
.warehouse-text {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px;
  background: var(--bg-row-alt);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.type-badge.supply { background: var(--bg-tag-supply); color: var(--accent-blue); border: 1px solid rgba(61,143,212,0.15); }
.type-badge.demand { background: var(--bg-tag-demand); color: var(--accent-green); border: 1px solid rgba(46,168,168,0.15); }
.mobile-type-badge,
.mobile-img-date {
  display: none;
}
.product-img-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.product-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f8f8f8;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}
.product-img:hover {
  transform: scale(2.8);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  position: relative;
  border-color: var(--accent-orange);
}
.product-img-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.product-img-placeholder svg { width: 18px; height: 18px; color: var(--text-muted); margin-bottom: 1px; }
.product-img-placeholder span { font-size: 8px; color: var(--text-muted); }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay .lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: zoom-in;
  transition: transform 0.2s ease-out;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: transform 0.2s ease-out;
}
.lightbox-overlay.active img {
  transform: scale(1);
}
.lightbox-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10000;
}
.lightbox-overlay.active .lightbox-controls {
  opacity: 1;
}
.lightbox-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.lightbox-control-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}
.lightbox-scale-info {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10000;
}
.model-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}
.model-name:hover { color: var(--accent-orange); }
.spec-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}
.unit-price {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-red);
}
.qty-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}
.qty-value .num { color: var(--accent-orange); display: block; }
.qty-value .unit { display: block; font-size: 10px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.warehouse-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--text-secondary);
}
.warehouse-badge svg { width: 12px; height: 12px; color: var(--text-muted); }
.contact-btns {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.contact-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.btn-qq { background: var(--accent-blue-light); color: var(--accent-blue); border: 1px solid rgba(61,143,212,0.12); }
.btn-qq:hover { background: #D8E6F2; border-color: rgba(61,143,212,0.25); }
.btn-wechat { background: var(--bg-tag-demand); color: var(--accent-green); border: 1px solid rgba(46,168,168,0.12); }
.btn-wechat:hover { background: #D8F0EA; border-color: rgba(46,168,168,0.25); }
.btn-inquiry { background: linear-gradient(135deg, #F97316, #FB923C); color: #fff; border: none; }
.btn-inquiry:hover { background: linear-gradient(135deg, #EA580C, #F97316); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(249,115,22,0.2); }
.btn-quote { background: linear-gradient(135deg, #2EA8A8, #3CC0C0); color: #fff; border: none; }
.btn-quote:hover { background: linear-gradient(135deg, #279090, #2EA8A8); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(46,168,168,0.2); }
.company-cell {
  min-width: 160px;
  max-width: 200px;
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  word-break: break-all;
}
.company-cell .company-name {
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.15s;
  display: block;
  align-self: flex-start;
}

.company-cell .company-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
}
.mobile-row-date,
.mobile-row-company,
.mobile-row-spec,
.mobile-row-brand-pkg,
.mobile-row-qty,
.mobile-row-batch-warehouse,
.mobile-row-warehouse,
.mobile-row-remark,
.mobile-row-contact {
  display: none;
}
.date-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.remark-text {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-table);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.page-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border-table);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.page-btn:hover:not(:disabled) { border-color: var(--accent-orange); color: var(--accent-orange); }
.page-btn.active { background: linear-gradient(135deg, #F97316, #FB923C); color: #fff; border-color: var(--accent-orange); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.page-info { font-size: 12px; color: var(--text-muted); margin: 0 6px; }
footer {
  background: #FEE8D0;
  padding: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border-table);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-primary); letter-spacing: 2px; }
.footer-copy { font-size: 11px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-orange); }
.icp-link { text-decoration: none; color: inherit; }
.qq-icon-link { display: inline-flex; align-items: center; text-decoration: none; transition: transform 0.2s; }
.qq-icon-link:hover { transform: scale(1.1); }
@media (max-width: 1200px) {
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-search { width: 100%; }
}
@media (max-width: 900px) {
  .data-table-wrap { overflow-x: auto; }
  table.data-table { min-width: 1100px; }
  .hero-inner { padding: 20px 24px; }
  .hero-slogan { font-size: 20px; }
  .nav-main { display: none; }
}
@media (max-width: 600px) {
  body { overflow-x: hidden; }
  .top-bar { display: none; }
  header { padding: 0 10px; }
  .header-inner {
    height: auto;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
  }
  .logo-box { display: none; }
  .logo-text { display: none; }
  .mobile-slogan {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #22160f;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1;
    text-transform: uppercase;
  }
  .mobile-slogan .orange {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: #F97316;
    letter-spacing: inherit;
    vertical-align: baseline;
    text-transform: none;
  }
  .header-right {
    gap: 6px;
    order: 2;
  }
  .btn-login,
  .btn-register {
    padding: 5px 10px;
    font-size: 12px;
  }
  .hero-banner {
    margin-top: 10px;
    padding: 0 6px;
  }
  .hero-inner {
    padding: 14px 12px;
    gap: 14px;
    border-radius: 10px;
  }
  .hero-left { width: 100%; }
  .hero-slogan {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: 1px;
  }
  .hero-sub {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.2px;
    text-align: right;
  }
  .hero-sub span { display: block; }
  .hero-sub .hero-sub-sep { display: none; }
  .hero-tags { display: none; }
  .hero-search { width: 100%; }
  .hero-search-box {
    flex-direction: row;
    align-items: stretch;
    border-radius: 10px;
  }
  .hero-search-box input {
    min-width: 0;
    width: auto;
    padding: 12px 12px;
    font-size: 14px;
  }
  .hero-search-btn {
    width: auto;
    padding: 12px 18px;
    font-size: 14px;
    flex-shrink: 0;
  }
  .main-content {
    margin-top: 12px;
    padding: 0 6px 28px;
  }
  .ad-row { display: none; }
  .filter-bar {
    display: none;
  }
  .filter-info { display: none; }
  .data-table-wrap {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    -webkit-overflow-scrolling: touch;
  }
  table.data-table {
    width: 100%;
    min-width: 0;
    font-size: 16px;
    table-layout: fixed;
  }
  table.data-table th,
  table.data-table td {
    padding: 8px 5px;
  }
  table.data-table th.col-type,
  table.data-table td.col-type {
    display: none;
  }
  table.data-table td.col-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .mobile-type-badge,
  .mobile-img-date {
    display: block;
  }
  table.data-table th.col-img {
    color: var(--accent-orange);
    cursor: pointer;
    user-select: none;
  }
  table.data-table th.col-img::after {
    content: ' 点击切换';
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
  }
  table.data-table th.col-img.sort-supply::after {
    content: '供优先';
    color: var(--accent-blue);
  }
  table.data-table th.col-img.sort-demand::after {
    content: '需优先';
    color: var(--accent-green);
  }
  table.data-table th.col-img,
  table.data-table td.col-img {
    width: 50px;
  }
  table.data-table th.col-model,
  table.data-table td.col-model {
    width: 195px;
  }
  .product-img-wrap,
  .product-img,
  .product-img-placeholder {
    width: 42px;
    height: 42px;
  }
  
  table.data-table th.col-type {
    color: var(--accent-orange);
    cursor: pointer;
    user-select: none;
  }
  table.data-table th.col-type::after {
    content: ' 点击切换';
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
  }
  table.data-table th.col-type.sort-supply::after {
    content: '供优先';
    color: var(--accent-blue);
  }
  table.data-table th.col-type.sort-demand::after {
    content: '需优先';
    color: var(--accent-green);
  }
  table.data-table th.col-spec,
  table.data-table td.col-spec,
  table.data-table th.col-brand,
  table.data-table td.col-brand,
  table.data-table th.col-pkg,
  table.data-table td.col-pkg,
  table.data-table th.col-batch,
  table.data-table td.col-batch,
  table.data-table th.col-qty,
  table.data-table td.col-qty,
  table.data-table th.col-warehouse,
  table.data-table td.col-warehouse,
  table.data-table th.col-remark,
  table.data-table td.col-remark,
  table.data-table th.col-contact,
  table.data-table td.col-contact,
  table.data-table th.col-company,
  table.data-table td.col-company {
    display: none;
  }
  .mobile-row-date {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
  }
  .mobile-row-company,
  .mobile-row-spec,
  .mobile-row-brand-pkg {
    display: block;
    margin-top: 4px;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
  }
  .mobile-row-company {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
  }
  .mobile-row-spec {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 185px;
  }
  .mobile-row-brand-pkg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
  }
  .mobile-row-brand-pkg .brand {
    display: inline;
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
  }
  .mobile-row-brand-pkg .pkg {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
  }
  .mobile-row-qty {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 0;
    margin-left: 6px;
    font-family: var(--font-mono);
    line-height: 1.2;
    vertical-align: baseline;
  }
  .mobile-row-qty .num {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
  }
  .mobile-row-qty .unit {
    color: var(--text-muted);
    font-size: 10px;
  }
  .mobile-row-warehouse {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
  }
  .mobile-row-warehouse svg {
    width: 11px;
    height: 11px;
  }
  .mobile-row-remark {
    display: block;
    margin-top: 4px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
  }
  .mobile-row-contact {
    display: block;
    margin-top: 6px;
  }
  .mobile-row-contact .contact-btns {
    gap: 5px;
    justify-content: flex-start;
  }
  .mobile-row-contact .contact-btn {
    padding: 4px 7px;
    font-size: 10px;
  }
  .mobile-row-contact .contact-btn svg {
    width: 11px;
    height: 11px;
  }
  .mobile-row-batch-warehouse {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
  }
  .mobile-row-batch-warehouse .mobile-row-warehouse {
    display: inline-flex;
    margin-top: 0;
  }
  .mobile-row-batch-warehouse .mobile-row-remark {
    display: inline;
    margin-top: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
  }
  .product-img:hover { transform: none; }
  .pagination-bar {
    flex-wrap: wrap;
    padding: 14px 10px;
  }
  .page-btn {
    padding: 6px 10px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }
  .mobile-float-actions {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .mobile-float-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .mobile-float-actions.open .mobile-float-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .mobile-float-option,
  .mobile-float-toggle {
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  }
  .mobile-float-option {
    min-width: 112px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
  }
  .mobile-float-option.demand {
    color: var(--accent-green);
    border: 1px solid rgba(46,168,168,0.2);
  }
  .mobile-float-option.supply {
    color: var(--accent-blue);
    border: 1px solid rgba(61,143,212,0.2);
  }
  .mobile-float-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316, #FB923C);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }
}
.empty-state {
  display: inline-block;
  padding: 30px 40px;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text-dark);
}
.empty-state p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.empty-cell {
  text-align: center;
  padding: 40px;
}
.qq-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.qq-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 320px;
  padding: 24px;
  text-align: center;
  position: relative;
}
.qq-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
}
.qq-modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #999;
  stroke-width: 2;
}
.qq-modal-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.qq-modal-display {
  font-size: 28px;
  font-weight: 700;
  color: #12B7F5;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.qq-modal-copy-btn {
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
}
.qq-modal-qrcode {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 8px;
}
.qq-modal-qrhint {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #999;
}
.qq-modal-weblink {
  display: inline-block;
  color: #12B7F5;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #12B7F5;
  border-radius: 8px;
}
.tax-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #FF6B6B;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  margin-left: 4px;
  vertical-align: middle;
}
.price-unit {
  font-size: 12px;
  color: #999;
}
.qty-unit {
  font-size: 12px;
  color: #999;
}