/* ========================================
   梁山二手设备交易市场 - 主样式文件
   基于Figma设计稿1:1还原
   ======================================== */

/* 全局变量 */
:root {
  --primary: #002b5c;
  --primary-light: rgba(0, 43, 92, 0.1);
  --primary-hover: #003a7a;
  --text-dark: #191c1d;
  --text-body: #1f2937;
  --text-secondary: #444653;
  --text-muted: #757684;
  --text-border: #c4c5d5;
  --bg-gray: #edeeef;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --red: #ef4444;
  --green: #22c55e;
  --orange: #855300;
  --border-light: rgba(196, 197, 213, 0.3);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.5;
  min-width: 320px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   HEADER - 导航栏
   ======================================== */
.header {
  position: relative;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.header-top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.logo-full {
  display: block;
  height: 48px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon img {
  width: 32px;
  height: 32px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.6px;
  white-space: nowrap;
  line-height: 32px;
}

.logo-subtitle {
  font-size: 12px;
  color: rgba(0,0,0,0.7);
  line-height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  padding: 28px 32px 28px 32px;
  display: block;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--primary);
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-login:hover {
  background: var(--primary-hover);
}

.btn-login img {
  width: 16px;
  height: 16px;
}

/* Search Bar */
.header-search {
  border-top: 1px solid rgba(196, 197, 213, 0.2);
  background: #fff;
}

.header-search-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.search-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 299px;
}

.search-tag-label {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.search-tag-label img {
  width: 14px;
  height: 14px;
}

.search-tag-label span {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.search-tag-items {
  display: flex;
  gap: 8px;
}

.search-tag-item {
  background: var(--bg-gray);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.search-tag-item:hover {
  background: #dde0e3;
}

.search-input-group {
  flex: 1;
  max-width: 992px;
}

.search-box {
  display: flex;
  align-items: center;
  height: 46px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 2px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.search-category {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  border-right: 1px solid var(--text-border);
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-category-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-right: 1px solid var(--text-border);
}

.search-category-wrap::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
  font-size: 11px;
}

.search-type-select {
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 28px 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
  appearance: none;
  font-family: inherit;
  min-width: 88px;
}

.search-type-select:focus {
  outline: none;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  min-width: 0;
}

.search-input-wrap img {
  width: 23px;
  height: 15px;
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
  min-width: 0;
  font-family: inherit;
}

.search-input-wrap input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  height: 38px;
  padding: 0 32px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  font-family: inherit;
}

.search-btn:hover {
  background: var(--primary-hover);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ========================================
   HERO SECTION - 全屏Banner
   ======================================== */
.hero {
  position: relative;
  height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 240%;
  object-fit: cover;
  position: absolute;
  top: -70%;
  left: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}

/* Glass Sidebar */
.hero-sidebar {
  width: 288px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  position: relative;
}

.sidebar-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 28px;
}

.sidebar-header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 20px;
  margin-top: 4px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-nav li:last-child {
  border-bottom: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
}

.sidebar-nav a:hover {
  color: var(--primary);
}

.sidebar-nav li.active a {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  margin: 0 -8px;
  padding: 9px 16px;
}

.sidebar-nav a img {
  width: 7.4px;
  height: 12px;
}

.sidebar-qrcode {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sidebar-qrcode img.qr-img {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sidebar-qrcode-text {
  text-align: center;
}

.sidebar-qrcode-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.sidebar-qrcode-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 18px;
}

/* Hero Main Content */
.hero-main {
  flex: 1;
  padding-left: 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-title {
  drop-shadow: 0 25px 12.5px rgba(0,0,0,0.15);
}

.hero-title h1 {
  font-size: 80px;
  font-weight: 700;
  line-height: 100px;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 25px 12.5px rgba(0,0,0,0.15);
}

.hero-title h1 span {
  color: #dde1ff;
  display: block;
}

.hero-btns {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary-hero {
  background: var(--primary);
  color: #fff;
  padding: 20px 40px;
  border-radius: var(--radius-lg);
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-xl);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-primary-hero:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 21px 41px;
  border-radius: var(--radius-lg);
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-glass:hover {
  background: rgba(255,255,255,0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.scroll-indicator img {
  width: 12px;
  height: 7.4px;
}

/* ========================================
   INFO STATS BAR
   ======================================== */
.stats-bar {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 33px 0 32px;
}

.stats-bar-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: opacity 0.2s;
}

a.stat-item {
  text-decoration: none;
  color: inherit;
}

.stat-item:hover {
  opacity: 0.85;
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.stat-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 22.5px;
}

.stat-text p {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 15px;
}

/* ========================================
   NEWS MARQUEE BAR
   ======================================== */
.marquee-bar {
  background: #fff;
  border-bottom: 1px solid rgba(196, 197, 213, 0.1);
  padding: 16px 0 17px;
}

.marquee-bar-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.marquee-label {
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid rgba(196, 197, 213, 0.3);
  padding-right: 25px;
  flex-shrink: 0;
}

.marquee-dot {
  width: 12px;
  height: 12px;
  background: #855300;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.marquee-label span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.marquee-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.marquee-badge {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 20px;
  flex-shrink: 0;
}

.marquee-badge.sold {
  background: var(--bg-gray);
  color: var(--text-muted);
}

.marquee-badge.new {
  background: var(--primary-light);
  color: var(--primary);
}

.marquee-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.marquee-item-loc {
  font-size: 14px;
  color: var(--text-secondary);
}

.marquee-item-sep {
  font-size: 14px;
  color: var(--text-border);
}

.marquee-item-time {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========================================
   CATEGORIZED EQUIPMENT SECTION
   ======================================== */
.equipment-section {
  background: #fff;
  padding: 80px 0;
}

.equipment-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 40px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 24px;
}

.section-header-bar {
  width: 96px;
  height: 6px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin: 16px auto 0;
}

.category-block {
  margin-bottom: 48px;
}

.category-block:last-child {
  margin-bottom: 0;
}

.category-heading {
  display: flex;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(0,43,92,0.1);
  margin-bottom: 24px;
}

.category-heading h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card-img {
  position: relative;
  height: 257px;
  background: var(--bg-gray);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 133%;
  object-fit: cover;
  position: absolute;
  top: -16.67%;
  left: 0;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 16.5px;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.product-badge.new-badge { background: var(--green); }
.product-badge.hot-badge { background: #dc2626; }
.product-badge.pick-badge { background: var(--primary); }

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 24px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-spec {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 16px;
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-footer {
  border-top: 1px solid rgba(196, 197, 213, 0.2);
  padding-top: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.product-price-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 15px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.product-price-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  line-height: 24px;
}

.product-price-unit {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}

.product-location {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.product-location img {
  width: 16px;
  height: 20px;
  object-fit: contain;
}

.category-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.category-more a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  transition: opacity 0.2s;
}

.category-more a:hover {
  opacity: 0.8;
}

.category-more img {
  width: 16px;
  height: 16px;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-section {
  display: flex;
  min-height: 670px;
}

.why-left {
  flex: 1;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px;
}

.why-left-inner {
  max-width: 411px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.why-left-inner h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.75px;
  line-height: 36px;
}

.why-divider {
  width: 64px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.why-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 15px;
}

.why-text p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 29.25px;
}

.why-link {
  display: inline-flex;
  align-items: center;
  padding-top: 32px;
}

.why-link a {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 5px;
  transition: opacity 0.2s;
}

.why-link a:hover {
  opacity: 0.8;
}

.why-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.why-right-bg {
  position: absolute;
  inset: 0 0.5px 0 0;
}

.why-right-bg img {
  width: 100%;
  height: 157%;
  object-fit: cover;
  position: absolute;
  top: -28.65%;
  left: 0;
}

.why-right-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,43,92,0.4);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.why-advantages {
  position: relative;
  z-index: 1;
  padding: 96px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  height: 100%;
  justify-content: center;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.advantage-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.advantage-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 32px;
  margin-bottom: 8px;
}

.advantage-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  line-height: 26px;
}

/* ========================================
   MERCHANT SECTION
   ======================================== */
.merchant-section {
  padding: 96px 0;
  background: #fff;
}

.merchant-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-title-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title-block h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 40px;
  white-space: nowrap;
}

.section-title-underline {
  width: 80px;
  height: 6px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-outline {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-outline img {
  width: 13.5px;
  height: 12px;
}

.btn-gray {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e1e3e4;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-gray:hover {
  background: #d0d3d5;
}

.btn-gray img {
  width: 15px;
  height: 13.5px;
}

.section-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}

.section-link img {
  width: 8.667px;
  height: 8.667px;
}

.merchant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.merchant-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 33px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}

.merchant-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.merchant-avatar {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--bg-gray);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.merchant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merchant-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.merchant-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.merchant-stars img {
  width: 11.667px;
  height: 11.083px;
}

.merchant-divider {
  width: 100%;
  border-top: 1px solid rgba(196, 197, 213, 0.3);
  padding-top: 25px;
  text-align: center;
}

.merchant-count-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  line-height: 18px;
}

.merchant-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 24px;
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news-section {
  padding: 97px 0 96px;
  background: linear-gradient(90deg, #f8f9fa 0%, #f8f9fa 100%);
  border-top: 1px solid rgba(196, 197, 213, 0.2);
}

.news-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.news-card-img {
  position: relative;
  height: 259px;
  overflow: hidden;
  background: var(--bg-gray);
}

.news-card-img img {
  width: 100%;
  height: 178%;
  object-fit: cover;
  position: absolute;
  top: -38.89%;
  left: 0;
  transition: transform 0.3s;
}

.news-card:hover .news-card-img img {
  transform: scale(1.03);
}

.news-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-date {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 20px;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 22.75px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--primary);
  padding: 64px 0;
}

.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-brand h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 32px;
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 26px;
  margin-bottom: 24px;
  max-width: 384px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-link:hover {
  background: rgba(255,255,255,0.2);
}

.social-link img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.footer-links h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 28px;
  margin-bottom: 24px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-links-grid a {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 24px;
  transition: color 0.2s;
}

.footer-links-grid a:hover {
  color: #fff;
}

.footer-contact h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 28px;
  margin-bottom: 24px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item img {
  width: 15px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-item span {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 33px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 20px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.85);
}

/* ========================================
   RESPONSIVE - 平板
   ======================================== */
@media (max-width: 1200px) {
  .hero-title h1 {
    font-size: 56px;
    line-height: 72px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .merchant-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .why-left {
    padding: 60px;
  }

  .why-advantages {
    padding: 60px;
  }
}

@media (max-width: 1024px) {
  .header-top {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-search-inner {
    padding: 12px 24px;
  }

  .search-tags {
    display: none;
  }

  .search-input-group {
    max-width: 100%;
  }

  .hero-container {
    padding: 0 24px;
  }

  .stats-bar-inner {
    padding: 0 24px;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item {
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .stat-item:nth-child(even) {
    border-left: 1px solid rgba(255,255,255,0.2);
  }
}

/* ========================================
   RESPONSIVE - 手机
   ======================================== */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 600px;
    padding: 80px 0 60px;
  }

  .hero-container {
    flex-direction: column;
    gap: 32px;
    padding: 24px;
    align-items: flex-start;
  }

  .hero-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .hero-main {
    padding-left: 0;
    gap: 32px;
  }

  .hero-title h1 {
    font-size: 32px;
    line-height: 48px;
    white-space: normal;
  }

  .hero-btns {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .btn-primary-hero,
  .btn-glass {
    font-size: 16px;
    padding: 14px 28px;
  }

  .scroll-indicator {
    display: none;
  }

  .equipment-inner,
  .merchant-inner,
  .news-inner,
  .footer-inner {
    padding: 0 20px;
  }

  .equipment-section {
    padding: 48px 0;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card-img {
    height: 160px;
  }

  .merchant-section,
  .news-section {
    padding: 48px 0;
  }

  .merchant-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .why-section {
    flex-direction: column;
  }

  .why-left {
    padding: 40px 24px;
  }

  .why-advantages {
    padding: 40px 24px;
    gap: 40px;
  }

  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .section-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer {
    padding: 40px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .stats-bar {
    padding: 20px 0;
  }

  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
    gap: 0;
  }

  .stat-item {
    padding: 12px;
  }

  .stat-text h4 {
    font-size: 16px;
  }

  .marquee-bar-inner {
    padding: 0 20px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .section-title-block h2 {
    font-size: 26px;
  }

  .category-heading h3 {
    font-size: 20px;
  }

  .news-card-img {
    height: 200px;
  }

  .merchant-card {
    padding: 20px;
  }

  .merchant-avatar {
    width: 96px;
    height: 96px;
  }

  .merchant-name {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 0 16px;
    height: 64px;
  }

  .logo-full {
    height: 36px;
    max-width: 220px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-icon img {
    width: 24px;
    height: 24px;
  }

  .logo-title {
    font-size: 16px;
    letter-spacing: 0;
  }

  .logo-subtitle {
    display: none;
  }

  .btn-login {
    padding: 6px 14px;
    font-size: 13px;
  }

  .btn-login img {
    width: 14px;
    height: 14px;
  }

  .header-search-inner {
    padding: 10px 16px;
  }

  .search-box {
    height: 40px;
  }

  .search-category,
  .search-type-select {
    padding: 0 10px;
    font-size: 13px;
  }

  .search-type-select {
    min-width: 72px;
    padding-right: 22px;
  }

  .search-category-wrap::after {
    right: 6px;
  }

  .search-btn {
    padding: 0 18px;
    font-size: 14px;
    height: 32px;
    border-radius: var(--radius-md);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .merchant-grid {
    grid-template-columns: 1fr;
  }

  .hero-title h1 {
    font-size: 28px;
    line-height: 40px;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-brand h2 {
    font-size: 20px;
  }

  .footer-desc {
    font-size: 14px;
  }

  .footer-links h3,
  .footer-contact h3 {
    font-size: 16px;
  }

  .footer-links-grid a,
  .contact-item span {
    font-size: 14px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .back-to-top {
    right: 16px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-panel {
  background: #fff;
  width: 280px;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.mobile-nav-close button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-nav-panel a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: var(--bg-gray);
  color: var(--primary);
}

/* Hover effects */
.product-card a,
.news-card a,
.merchant-card a {
  display: block;
}

/* 统一过渡 */
.product-card,
.news-card,
.merchant-card,
.social-link,
.btn-login,
.search-btn,
.btn-primary-hero,
.btn-glass {
  transition: all 0.2s ease;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: background 0.2s, transform 0.2s;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.back-to-top.visible {
  display: flex;
}
