/* ==========================================================================
   优模云采 UBMYC - 现代供应链金融大宗与特种辅料交易中心 核心样式库
   Design System: Deep Cyber Slate (#070d18) + Neon Cyber Blue (#2563eb/#38bdf8) + Spot Emerald (#10b981)
   ========================================================================== */

:root {
  --bg-main: #070d18;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.85);
  --border-color: rgba(56, 189, 248, 0.15);
  --border-highlight: rgba(56, 189, 248, 0.4);
  
  --primary: #2563eb;
  --primary-light: #38bdf8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.3);
  
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.3);
  
  --accent-purple: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, #070d18, #0a1122 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ================= Top Ticker Bar 实时行情与入库走马灯 ================= */
.ticker-bar {
  background: rgba(10, 17, 34, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding: 7px 0;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.ticker-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
}

.ticker-label .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ticker-scroll-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-content {
  display: inline-block;
  animation: tickerSlide 35s linear infinite;
  color: var(--text-muted);
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  margin-right: 40px;
}

.ticker-item strong {
  color: var(--text-main);
}

.ticker-item .badge-tag {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 4px;
}

@keyframes tickerSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker-hubs {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ================= Main Header 导航栏 ================= */
.main-nav-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 35px;
  z-index: 99;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.nav-link .badge-hot {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.nav-actions {
  display: none !important; /* 按照用户要求，快速发布/寄售与管理后台按钮在前端隐藏 */
}

.btn-post-rfq {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-post-rfq:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-admin-link {
  color: var(--text-dim);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-admin-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* ================= Hero Banner 现货大宗大盘看板 ================= */
.hero-market-banner {
  padding: 40px 20px 30px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  align-items: stretch;
}

.hero-main-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #10b981, #38bdf8);
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-main-card h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-main-card h2 span.gradient-text {
  background: linear-gradient(90deg, #38bdf8, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.7;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item .num {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-item .num span {
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 500;
}

.stat-item .label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* 右侧大宗行情指数看板 */
.hero-index-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 19, 36, 0.8));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.index-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.index-date {
  font-size: 12px;
  color: var(--text-dim);
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.index-name {
  font-size: 13px;
  color: var(--text-muted);
}

.index-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
}

.index-trend.up {
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.index-trend.down {
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.index-trend.stable {
  color: var(--text-dim);
  font-size: 12px;
  margin-left: 6px;
}

.index-footer-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  background: rgba(16, 185, 129, 0.05);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-green);
}

/* ================= 筛选与分类过滤条 ================= */
.market-filter-section {
  max-width: 1360px;
  margin: 0 auto 30px;
  padding: 0 20px;
  width: 100%;
}

.filter-glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  color: var(--text-dim);
  min-width: 70px;
  font-weight: 600;
}

.filter-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--primary-light);
  background: rgba(56, 189, 248, 0.1);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* ================= Section Header 通用章节标题 ================= */
.section-wrapper {
  max-width: 1360px;
  margin: 0 auto 50px;
  padding: 0 20px;
  width: 100%;
}

.section-title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.title-left h3 {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.title-left p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.title-more {
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.title-more:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

/* ================= 现货卡片网格 (Spot Cards) ================= */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.spot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.spot-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card), 0 0 20px rgba(56, 189, 248, 0.15);
}

.spot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.spot-brand-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.spot-tag-clearance {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.spot-model-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.spot-category-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.spot-specs-list {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.spec-line {
  display: flex;
  justify-content: space-between;
}

.spec-k {
  color: var(--text-dim);
}

.spec-v {
  color: var(--text-main);
  font-weight: 500;
}

.spot-bottom-price-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-box .price-label {
  font-size: 11px;
  color: var(--text-dim);
}

.price-box .price-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-green);
}

.btn-spot-order {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-spot-order:hover {
  background: var(--accent-green);
  color: #070d18;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* ================= 模切设备与二手圆刀机卡片 (Machines) ================= */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 22px;
}

.machine-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.machine-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--shadow-card), 0 0 25px rgba(37, 99, 235, 0.2);
}

.machine-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.machine-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.machine-tag-station {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(139, 92, 246, 0.3));
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.machine-verify-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px dashed rgba(16, 185, 129, 0.4);
}

.machine-specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
}

.m-spec-item .k {
  color: var(--text-dim);
  font-size: 11px;
}

.m-spec-item .v {
  color: var(--text-main);
  font-weight: 600;
}

.machine-desc-short {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.machine-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mach-price-tag .orig {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.mach-price-tag .cur {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
}

.btn-mach-inspect {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.btn-mach-inspect:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

/* ================= 模具治具卡片 (Tooling) ================= */
.tooling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.tooling-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}

.tooling-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: var(--shadow-card), 0 0 20px rgba(139, 92, 246, 0.2);
}

.tooling-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.tooling-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.tooling-specs-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tooling-highlights {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.tooling-highlights li {
  position: relative;
  padding-left: 16px;
}

.tooling-highlights li::before {
  content: "•";
  color: var(--accent-green);
  position: absolute;
  left: 4px;
  font-size: 16px;
  top: -2px;
}

/* ================= 机长技术圈文章列表 (Club) ================= */
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}

.club-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.club-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-card);
}

.club-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.club-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
}

.club-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.club-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.club-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.club-author {
  color: var(--primary-light);
  font-weight: 600;
}

/* ================= 估值计算器小工具 (Valuation Tool Widget) ================= */
.calc-widget-container {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(10, 17, 34, 0.95));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 30px auto;
  box-shadow: var(--shadow-card), 0 0 30px rgba(37, 99, 235, 0.15);
}

.calc-widget-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 25px;
}

.calc-widget-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.calc-widget-header p {
  font-size: 14px;
  color: var(--text-dim);
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.calc-field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.calc-field select, .calc-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.calc-field select:focus, .calc-field input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.calc-result-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.calc-res-left .res-label {
  font-size: 13px;
  color: var(--accent-green);
  font-weight: 600;
}

.calc-res-left .res-val {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  font-family: monospace;
}

.calc-res-left .res-val span {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-dim);
}

/* ================= 友情链接专区 (Friend Links) ================= */
.friend-links-section {
  max-width: 1360px;
  margin: 0 auto 40px;
  padding: 25px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.friend-links-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.friend-link-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
}

.friend-link-tag:hover {
  color: #fff;
  border-color: var(--primary-light);
  background: rgba(56, 189, 248, 0.1);
}

/* ================= Footer 页脚 ================= */
.main-footer {
  background: #040810;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 20px 25px;
  margin-top: auto;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col p {
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

/* ================= Modal 弹出式表单 (询盘/验机/锁单) ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0f172a;
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-card);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.modal-box p.modal-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.btn-submit-form {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
}

.btn-submit-form:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ==========================================================================
   全新移动端全要素自适应与流体布局增强引擎 (100% Mobile Responsive System)
   ========================================================================== */

/* 全局防止任何横向溢出导致页面缩放或左右晃动 */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .machine-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶部走马灯 Ticker 移动端轻量化 */
  .ticker-bar {
    top: 0;
    padding: 6px 0;
  }
  .ticker-container {
    padding: 0 10px;
    gap: 8px;
  }
  .ticker-label {
    font-size: 11px;
    padding: 1px 6px;
    gap: 4px;
    flex-shrink: 0;
  }
  .ticker-scroll-wrapper {
    flex: 1;
    overflow: hidden;
  }
  .ticker-item {
    font-size: 11px;
    margin-right: 25px;
  }
  /* 关键：在手机端隐藏顶部跑马灯横跨的10个城市药丸，彻底解决横向撑大拉爆屏幕的元凶 */
  .ticker-hubs {
    display: none !important;
  }

  /* 2. 顶部主导航栏 App化 横滑体验 */
  .main-nav-header {
    top: 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  }
  .header-inner {
    padding: 10px 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .logo-area {
    gap: 8px;
  }
  .logo-symbol {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
  }
  .logo-text .logo-brand-title {
    font-size: 16px !important;
  }
  .logo-text p {
    font-size: 10px;
    display: none !important; /* 移动端隐藏英文副标题保持轻量整洁 */
  }

  .nav-actions {
    display: none !important; /* 移动端彻底隐藏快速发布/寄售与管理后台按钮 */
  }

  /* 导航链接：移动端按照用户需求排布为 2 排 (4列 × 2行 紧凑高质感金刚区网格) */
  .nav-links {
    order: 2;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px 4px !important;
    padding: 8px 0 2px !important;
    margin: 4px 0 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    overflow-x: visible !important;
    list-style: none !important;
  }
  .nav-links li {
    list-style: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nav-link {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 6px 1px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: -0.3px !important;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    color: var(--text-muted) !important;
  }
  .nav-link .badge-hot {
    font-size: 8px !important;
    padding: 1px 3px !important;
    margin-left: 2px !important;
    line-height: 1 !important;
    border-radius: 3px !important;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(37, 99, 235, 0.25) !important;
    border-color: #38bdf8 !important;
    color: #fff !important;
    font-weight: 600 !important;
  }

  /* 3. Hero 区域移动端极致流体适配 */
  .hero-market-banner {
    padding: 12px 10px 18px !important;
  }
  .hero-main-card {
    padding: 18px 14px !important;
    border-radius: 12px !important;
  }
  .hero-tagline {
    font-size: 11px !important;
    padding: 3px 10px !important;
    margin-bottom: 12px !important;
  }
  .hero-main-card h1, .hero-main-card h2 {
    font-size: 20px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 12px !important;
  }
  .hero-desc {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
  }

  /* 4 项核心数据看板在手机上 2x2 排列 */
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding-top: 14px !important;
  }
  .stat-item {
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
  }
  .stat-item .num {
    font-size: 18px !important;
  }

  /* 大宗指数卡片 */
  .hero-index-card {
    padding: 16px 14px !important;
    border-radius: 12px !important;
  }
  .index-header h3 {
    font-size: 15px !important;
  }
  .index-row {
    padding: 8px 10px !important;
  }
  .index-name {
    font-size: 12px !important;
  }
  .index-val {
    font-size: 13px !important;
  }

  /* 4. 通用区域容器 padding 收窄 */
  .section-wrapper {
    padding: 0 10px !important;
    margin-bottom: 25px !important;
  }
  .section-title-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
  }
  .title-left h1, .title-left h3 {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }
  .title-left p {
    font-size: 12px !important;
  }

  /* 5. 现货 / 机器 / 刀模 / 文章卡片全量单列流体 */
  .spot-grid, .machine-grid, .tooling-grid, .club-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .spot-card, .machine-card, .tooling-card, .club-card {
    padding: 16px 14px !important;
    border-radius: 10px !important;
  }
  .spot-model-title {
    font-size: 16px !important;
  }
  .machine-title {
    font-size: 16px !important;
  }
  .machine-specs-table {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 10px !important;
  }
  .m-spec-item {
    font-size: 12px !important;
  }

  /* 6. 筛选分类条滑动 */
  .filter-glass-card {
    padding: 12px !important;
    gap: 10px !important;
  }
  .filter-group {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .filter-label {
    font-size: 12px !important;
  }
  .filter-options {
    width: 100% !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    gap: 6px !important;
    scrollbar-width: none !important;
  }
  .filter-options::-webkit-scrollbar {
    display: none !important;
  }
  .filter-btn {
    flex-shrink: 0 !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* 7. 估值计算器小工具 */
  .calc-widget-container {
    padding: 16px 12px !important;
    margin: 15px auto !important;
    border-radius: 12px !important;
  }
  .calc-widget-header h3 {
    font-size: 18px !important;
  }
  .calc-widget-header p {
    font-size: 12px !important;
  }
  .calc-form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .calc-result-box {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .calc-res-left .res-val {
    font-size: 20px !important;
  }
  .btn-mach-inspect {
    width: 100% !important;
    text-align: center !important;
    padding: 10px !important;
  }

  /* 8. 详情页排版 (现货/设备/文章详情) */
  .hero-main-card .machine-specs-table {
    grid-template-columns: 1fr 1fr !important;
  }
  .hero-main-card h1 {
    font-size: 20px !important;
  }
  .article-body {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  /* 9. 337城市分站矩阵网格 */
  .geo-matrix-container {
    max-height: 280px !important;
    font-size: 12px !important;
  }
  .geo-kw-link {
    margin-right: 6px !important;
    line-height: 1.8 !important;
  }

  /* 10. 页脚 Footer 移动端单列 */
  .main-footer {
    padding: 30px 14px 20px !important;
  }
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  .footer-col h4 {
    font-size: 15px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
    font-size: 11px !important;
  }

  /* 11. 弹窗 Modal 移动端全宽贴合 */
  .modal-overlay {
    padding: 10px !important;
  }
  .modal-box {
    padding: 20px 16px !important;
    max-width: 100% !important;
    border-radius: 12px !important;
  }
  .modal-box h3 {
    font-size: 18px !important;
  }
  .city-dna-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .city-regions-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .desktop-only {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero-stats-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .machine-specs-table {
    grid-template-columns: 1fr !important;
  }
  .hero-main-card h1, .hero-main-card h2 {
    font-size: 18px !important;
  }
  .spot-bottom-price-action {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-spot-order {
    text-align: center;
    width: 100%;
    padding: 8px;
  }
  .city-dna-stats-grid {
    grid-template-columns: 1fr !important;
  }
}


